diff options
| author | William Henrotin <whe@odoo.com> | 2018-08-29 15:36:31 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2018-09-10 13:33:42 +0200 |
| commit | 95a9572da3a8f2134ea6d5ff917c7c17526f6ee7 (patch) | |
| tree | bc754d7f50109cad225d106f6f3af0eeb694dc45 /addons/barcodes/__manifest__.py | |
| parent | acace4d8c3caca5f38eb6d6e603a1133329b4ccc (diff) | |
[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.
Diffstat (limited to 'addons/barcodes/__manifest__.py')
| -rw-r--r-- | addons/barcodes/__manifest__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/barcodes/__manifest__.py b/addons/barcodes/__manifest__.py index f65d24a4316..83419dcd933 100644 --- a/addons/barcodes/__manifest__.py +++ b/addons/barcodes/__manifest__.py @@ -9,7 +9,9 @@ 'views/barcodes_view.xml', 'security/ir.model.access.csv', 'views/barcodes_templates.xml', + 'views/res_company.xml', ], 'installable': True, 'auto_install': False, + 'post_init_hook': '_assign_default_nomeclature_id', } |
