Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
b6ab2f26 by Cédric Krier at 2023-01-08T18:12:49+01:00
Add help text about price selection of product
Closes #8950
- - - - -
2 changed files:
- modules/product_price_list/price_list.py
- modules/purchase/product.py
Changes:
=====================================
modules/product_price_list/price_list.py
=====================================
@@ -55,8 +55,10 @@
('product_default', "Product Default"),
], "Unit", required=True,
help="The unit in which the quantity is expressed.")
- lines = fields.One2Many('product.price_list.line', 'price_list', 'Lines',
- help="Add price formulas for different criterias.")
+ lines = fields.One2Many(
+ 'product.price_list.line', 'price_list', "Lines",
+ help="Add price formulas for different criteria.\n"
+ "The first matching line is used.")
@staticmethod
def default_company():
=====================================
modules/purchase/product.py
=====================================
@@ -280,8 +280,10 @@
depends={'company'})
name = fields.Char("Name", translate=True)
code = fields.Char("Code")
- prices = fields.One2Many('purchase.product_supplier.price',
- 'product_supplier', 'Prices')
+ prices = fields.One2Many(
+ 'purchase.product_supplier.price', 'product_supplier', "Prices",
+ help="Add price for different criteria.\n"
+ "The last matching line is used.")
company = fields.Many2One(
'company.company', "Company",
required=True, ondelete='CASCADE')
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/b6ab2f2687ebed38616aaa5f702775eb029da6cb
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/b6ab2f2687ebed38616aaa5f702775eb029da6cb
You're receiving this email because of your account on foss.heptapod.net.