[IMP] point_of_sale: move barcode field into base

The field was already declared in base but added in the view in point_of_sale
only.

Remove the duplicated field definition on the model.

Closes #25070
Fixes #13544
This commit is contained in:
Sylvain LE GAL
2018-06-12 10:35:25 +02:00
committed by Martin Trigaux
parent ae6b85cf7a
commit 5a6f6edb17
3 changed files with 1 additions and 6 deletions
@@ -6,7 +6,6 @@ from odoo import api, fields, models
class ResPartner(models.Model):
_inherit = 'res.partner'
barcode = fields.Char(string='Barcode', oldname='ean13')
pos_order_count = fields.Integer(
compute='_compute_pos_order',
help="The number of point of sales orders related to this customer",
@@ -14,11 +14,6 @@
<field string="POS Sales" name="pos_order_count" widget="statinfo"/>
</button>
</div>
<xpath expr="//page[@name='sales_purchases']/group">
<group string="Point of Sale" name="point_of_sale">
<field name="barcode" />
</group>
</xpath>
</field>
</record>
<record id="view_partner_pos_kanban" model="ir.ui.view">
@@ -380,6 +380,7 @@
</group>
<group string="Misc">
<field name="ref"/>
<field name="barcode"/>
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
<field name="industry_id" attrs="{'invisible': [('is_company', '=', False)]}" options="{'no_create': True}"/>
</group>