product_print_category_supermarket: strings for price labels configurable
This commit is contained in:
parent
7c8d1e4342
commit
d2a08d6238
3 changed files with 6 additions and 2 deletions
|
|
@ -6,3 +6,5 @@ class ProductPrintCategorySupermarket(models.Model):
|
||||||
|
|
||||||
show_ref = fields.Boolean(string="Show Product Code")
|
show_ref = fields.Boolean(string="Show Product Code")
|
||||||
show_barcode = fields.Boolean(string="Show Product Barcode")
|
show_barcode = fields.Boolean(string="Show Product Barcode")
|
||||||
|
price_label = fields.Char(string="Members Price Label", default="PVS")
|
||||||
|
price_label_public = fields.Char(string="Public Price Label", default="PVP")
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@
|
||||||
<field name="active" position="after">
|
<field name="active" position="after">
|
||||||
<field name="show_ref"/>
|
<field name="show_ref"/>
|
||||||
<field name="show_barcode"/>
|
<field name="show_barcode"/>
|
||||||
|
<field name="price_label"/>
|
||||||
|
<field name="price_label_public"/>
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="product_member_price" >
|
<div class="product_member_price" >
|
||||||
<t t-set="members_price" t-value="product.get_price_member()" />
|
<t t-set="members_price" t-value="product.get_price_member()" />
|
||||||
<span>PVS</span>
|
<span t-out="category_data['print_category'].price_label" />
|
||||||
<strong><span
|
<strong><span
|
||||||
t-out="members_price"
|
t-out="members_price"
|
||||||
t-options='{"widget": "float", "precision": 2}'
|
t-options='{"widget": "float", "precision": 2}'
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
t-set="public_price"
|
t-set="public_price"
|
||||||
t-value="round(product.get_price_public(), 2)"
|
t-value="round(product.get_price_public(), 2)"
|
||||||
/>
|
/>
|
||||||
<span>PVP</span>
|
<span t-out="category_data['print_category'].price_label_public" />
|
||||||
<strong><span
|
<strong><span
|
||||||
t-out="public_price" t-options='{"widget": "float", "precision": 2}'
|
t-out="public_price" t-options='{"widget": "float", "precision": 2}'
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue