[REF] barcodes, stock, point_of_sale: one nomenclature per company

This commit adds a many2one between barcode.nomenclature and res.company
and removes Many2one pointing toward a nomenclature record.

This aims to improve the usability and allows using nomenclature in
inventory adjustment where a `nomenclature_id` field was set.
This commit is contained in:
William Henrotin
2018-09-10 13:33:42 +02:00
committed by Simon Lejeune
parent acace4d8c3
commit 95a9572da3
8 changed files with 48 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<odoo>
<record model="ir.ui.view" id="view_company_form_inherit">
<field name="name">barcode.company.form</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='currency_id']" position="after">
<field name="nomenclature_id"/>
</xpath>
</field>
</record>
</odoo>