nfu/nfu_ecommerce/models/website.py
madmooose fee5016550
[130] nfu_ecommerce: advanced credit handling
* [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>
2025-07-29 13:10:04 +02:00

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")