* [IMP] apply pre-commits and small fixes * [imp] nfu_ecommerce: add avoid_depts * [IMP] nfu_ecommerce: use warning level in checkout * [IMP] nfu_ecommerce: add translation --------- Co-authored-by: Niels Göttsch <ng@ife.de>
12 lines
373 B
Python
12 lines
373 B
Python
from odoo import fields, models
|
|
|
|
|
|
class Website(models.Model):
|
|
_inherit = "website"
|
|
|
|
credit_warning_level = fields.Monetary(
|
|
string="Credit Warning",
|
|
readonly=False,
|
|
help="When the credit of a customer is lower than the warning level the credit is shown in red on the website.",
|
|
)
|
|
avoid_depts = fields.Boolean(string="Avoid depths")
|