Browse Source

Add suggested price and change naming ( exVAT price instead of price)

pull/14/head
EliseDup 9 years ago
parent
commit
b704115439
  1. 2
      beesdoo_product/models/beesdoo_product.py
  2. 6
      beesdoo_product/views/beesdoo_product.xml

2
beesdoo_product/models/beesdoo_product.py

@ -25,7 +25,7 @@ class BeesdooProduct(models.Model):
label_last_printed = fields.Datetime('Label last printed on') label_last_printed = fields.Datetime('Label last printed on')
# S0023 : List_price = Price HTVA, so add a suggested price # S0023 : List_price = Price HTVA, so add a suggested price
list_price = fields.Float(string='ex VAT price')
list_price = fields.Float(string='exVAT Price')
suggested_price = fields.Float(string='Suggested Price', compute='_get_suggested_price', readOnly = True) suggested_price = fields.Float(string='Suggested Price', compute='_get_suggested_price', readOnly = True)
@api.one @api.one

6
beesdoo_product/views/beesdoo_product.xml

@ -7,6 +7,9 @@
<field name="model">product.template</field> <field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view" /> <field name="inherit_id" ref="product.product_template_only_form_view" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="list_price" position="after">
<field name="suggested_price" widget='monetary' options="{'currency_field': 'currency_id'}"/>
</field>
<field name="invoice_policy" position="attributes"> <field name="invoice_policy" position="attributes">
<attribute name="invisible">1</attribute> <attribute name="invisible">1</attribute>
</field> </field>
@ -19,7 +22,8 @@
<group name="sale_condition" position="attributes"> <group name="sale_condition" position="attributes">
<attribute name="invisible">1</attribute> <attribute name="invisible">1</attribute>
</group> </group>
<field name="property_account_creditor_price_difference" position="attributes">
<field name="property_account_creditor_price_difference"
position="attributes">
<attribute name="invisible">1</attribute> <attribute name="invisible">1</attribute>
</field> </field>
<xpath expr="//group[@name='inventory']/.." position="after"> <xpath expr="//group[@name='inventory']/.." position="after">

Loading…
Cancel
Save