From d8762a20cf46573f2e6951eebd9311a22c422fbf Mon Sep 17 00:00:00 2001 From: Manuel Claeys Bouuaert Date: Fri, 11 Sep 2020 20:17:43 +0200 Subject: [PATCH] fixup! fixup! [ADD] beesdoo_product: profit margin on suppliers --- beesdoo_product/models/beesdoo_product.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/beesdoo_product/models/beesdoo_product.py b/beesdoo_product/models/beesdoo_product.py index a30f951..9545f7e 100644 --- a/beesdoo_product/models/beesdoo_product.py +++ b/beesdoo_product/models/beesdoo_product.py @@ -75,7 +75,12 @@ class BeesdooProduct(models.Model): # S0023 : List_price = Price HTVA, so add a suggested price list_price = fields.Float(string="exVAT Price") suggested_price = fields.Float( - string="Suggested exVAT Price", compute="_compute_cost", readOnly=True + string="Suggested exVAT Price", compute="_compute_cost", readOnly=True, + help=""" + This field computes a suggested price based on the 'Product Margin' + field on Partners (Vendors), if it's set, or otherwise on the 'Product + Margin' field in Product Categories (which has a default value). + """ ) deadline_for_sale = fields.Integer(string="Deadline for sale(days)")