Browse Source

[REM] beesdoo_product: 'exvat' in name of list_price and suggested_price

pull/164/head
Manuel Claeys Bouuaert 4 years ago
parent
commit
64294e14c4
  1. 6
      beesdoo_product/models/beesdoo_product.py
  2. 2
      beesdoo_product/readme/DESCRIPTION.rst

6
beesdoo_product/models/beesdoo_product.py

@ -72,10 +72,8 @@ class BeesdooProduct(models.Model):
note = fields.Text("Comments") note = fields.Text("Comments")
# S0023 : List_price = Price HTVA, so add a suggested price
list_price = fields.Float(string="exVAT Price")
suggested_price = fields.Float( suggested_price = fields.Float(
string="Suggested exVAT Price", compute="_compute_cost", readOnly=True,
string="Suggested Price", compute="_compute_cost", readOnly=True,
help=""" help="""
This field computes a suggested price based on the 'Product Margin' This field computes a suggested price based on the 'Product Margin'
field on Partners (Vendors), if it's set, or otherwise on the 'Product field on Partners (Vendors), if it's set, or otherwise on the 'Product
@ -332,7 +330,7 @@ class BeesdooProductCategory(models.Model):
class BeesdooProductSupplierInfo(models.Model): class BeesdooProductSupplierInfo(models.Model):
_inherit = "product.supplierinfo" _inherit = "product.supplierinfo"
price = fields.Float("exVAT Price")
price = fields.Float("Price")
class BeesdooUOMCateg(models.Model): class BeesdooUOMCateg(models.Model):

2
beesdoo_product/readme/DESCRIPTION.rst

@ -1,3 +1,3 @@
Modification of product module for the needs of beescoop Modification of product module for the needs of beescoop
- SOOO5 - Adds the label bio/ethique/provenance - SOOO5 - Adds the label bio/ethique/provenance
- Add a 'Suggested exVAT Price' field on products, and a 'Product Margin' field on Partners (Vendors) and Product Categories. The first margin is used if set, otherwise the second margin (which has a default value) is used.
- Add a 'Suggested Price' field on products, and a 'Product Margin' field on Partners (Vendors) and Product Categories. The first margin is used if set, otherwise the second margin (which has a default value) is used.
Loading…
Cancel
Save