diff --git a/product_discount_limit/README.rst b/product_discount_limit/README.rst index fc66825ec..2f29be214 100644 --- a/product_discount_limit/README.rst +++ b/product_discount_limit/README.rst @@ -1,6 +1,6 @@ Product Discount Limit -====================== +===================================== Product Discount Limit Configuration diff --git a/product_discount_limit/models/discount_limit.py b/product_discount_limit/models/discount_limit.py index 0d9bcaf8c..6573edc44 100644 --- a/product_discount_limit/models/discount_limit.py +++ b/product_discount_limit/models/discount_limit.py @@ -21,13 +21,15 @@ ################################################################################ from odoo import exceptions, api, models, _ +"""Inherited sale.order.line for checking the limit of discount allowed for product and category""" + class SalesOrderDiscountLimit(models.Model): _inherit = 'sale.order.line' - """Checking the limit of discount allowed for products and category""" @api.onchange('discount') def _onchange_discount(self): + """Checking the limit of discount allowed for products and category""" if not self.env.user.allow_discount: if self.product_id.product_tmpl_id.desc_limit > 0: if self.discount > self.product_id.product_tmpl_id.desc_limit: diff --git a/product_discount_limit/static/description/index.html b/product_discount_limit/static/description/index.html index a2f8a8b53..88dd2faa0 100644 --- a/product_discount_limit/static/description/index.html +++ b/product_discount_limit/static/description/index.html @@ -28,7 +28,7 @@ Product Discount Limit
- Discount Limit for Products & Product Category + Limit Discount for Products & Product Category