product_print_category_supermarket: optional show product ref
This commit is contained in:
parent
d33ff7d772
commit
8d39b937a8
2 changed files with 22 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
||||||
|
from odoo import models, fields
|
||||||
|
|
||||||
|
|
||||||
|
class ProductPrintCategorySupermarket(models.Model):
|
||||||
|
_inherit = "product.print.category"
|
||||||
|
|
||||||
|
show_ref = fields.Boolean(string="Show Product Code")
|
||||||
|
show_barcode = fields.Boolean(string="Show Product Barcode")
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<odoo>
|
||||||
|
<record id="view_product_print_category_form" model="ir.ui.view">
|
||||||
|
<field name="name">product.print.category.form</field>
|
||||||
|
<field name="model">product.print.category</field>
|
||||||
|
<field name="inherit_id" ref="product_print_category.view_product_print_category_form_2"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="active" position="after">
|
||||||
|
<field name="show_ref"/>
|
||||||
|
<field name="show_barcode"/>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</odoo>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue