From 2f9bfa8088a613a609b3792f4ee6c4678dc48042 Mon Sep 17 00:00:00 2001 From: jbeficent Date: Mon, 24 Oct 2016 18:32:54 +0200 Subject: [PATCH 01/12] rename module --- stock_orderpoint_uom/README.rst | 65 +++++++++++++++++++ stock_orderpoint_uom/__init__.py | 6 ++ stock_orderpoint_uom/__openerp__.py | 19 ++++++ stock_orderpoint_uom/models/__init__.py | 7 ++ .../models/procurement_order.py | 27 ++++++++ .../models/stock_warehouse_orderpoint.py | 19 ++++++ stock_orderpoint_uom/tests/__init__.py | 6 ++ .../test_stock_orderpoint_procure_uom.py | 41 ++++++++++++ .../views/stock_warehouse_orderpoint_view.xml | 31 +++++++++ 9 files changed, 221 insertions(+) create mode 100644 stock_orderpoint_uom/README.rst create mode 100644 stock_orderpoint_uom/__init__.py create mode 100644 stock_orderpoint_uom/__openerp__.py create mode 100644 stock_orderpoint_uom/models/__init__.py create mode 100644 stock_orderpoint_uom/models/procurement_order.py create mode 100644 stock_orderpoint_uom/models/stock_warehouse_orderpoint.py create mode 100644 stock_orderpoint_uom/tests/__init__.py create mode 100644 stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py create mode 100644 stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml diff --git a/stock_orderpoint_uom/README.rst b/stock_orderpoint_uom/README.rst new file mode 100644 index 000000000..4bb323ca3 --- /dev/null +++ b/stock_orderpoint_uom/README.rst @@ -0,0 +1,65 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +==================== +Stock Orderpoint UoM +==================== + +This module allows users users to define what unit of measure should be used +in procurements created from minimum stock rules. + +A typical use case would be a product that is stocked in centimeters, and +needs to be restocked in meters from another warehouse. When the picking is +created, the quantity to be transferred will be expressed in meters, making +it easier for the people responsible for the transfers to understand the +requirement. + + +Usage +===== + +Go to 'Configuration / Reordering Rules' and indicate a Procurement UoM. + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/153/8.0 + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Jordi Ballester Alomar + + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/stock_orderpoint_uom/__init__.py b/stock_orderpoint_uom/__init__.py new file mode 100644 index 000000000..08f93b3a4 --- /dev/null +++ b/stock_orderpoint_uom/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/stock_orderpoint_uom/__openerp__.py b/stock_orderpoint_uom/__openerp__.py new file mode 100644 index 000000000..7ffcd3596 --- /dev/null +++ b/stock_orderpoint_uom/__openerp__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Stock Orderpoint UoM", + "summary": "Allows to create procurement orders in the UoM indicated in " + "the orderpoint", + "version": "8.0.1.0.0", + "author": "Eficent Business and IT Consulting Services S.L," + "Odoo Community Association (OCA)", + "website": "https://www.odoo-community.org", + "category": "Warehouse Management", + "depends": ["stock"], + "data": ["views/stock_warehouse_orderpoint_view.xml"], + "license": "AGPL-3", + 'installable': True, + 'application': True, +} diff --git a/stock_orderpoint_uom/models/__init__.py b/stock_orderpoint_uom/models/__init__.py new file mode 100644 index 000000000..508e43109 --- /dev/null +++ b/stock_orderpoint_uom/models/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import stock_warehouse_orderpoint +from . import procurement_order diff --git a/stock_orderpoint_uom/models/procurement_order.py b/stock_orderpoint_uom/models/procurement_order.py new file mode 100644 index 000000000..8e5862655 --- /dev/null +++ b/stock_orderpoint_uom/models/procurement_order.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from openerp import api, models + + +class ProcurementOrder(models.Model): + _inherit = "procurement.order" + + @api.multi + @api.onchange('product_id') + def onchange_product_id(self): + for rec in self: + rec.procure_uom_id = rec.product_id.uom_id + + @api.model + def _prepare_orderpoint_procurement(self, orderpoint, product_qty): + res = super(ProcurementOrder,self)._prepare_orderpoint_procurement( + orderpoint, product_qty) + if orderpoint.procure_uom_id: + res['product_qty'] = orderpoint.procure_uom_id._compute_qty( + orderpoint.product_id.uom_id.id, product_qty, + orderpoint.procure_uom_id.id) + res['product_uom'] = orderpoint.procure_uom_id.id + return res diff --git a/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py new file mode 100644 index 000000000..5cb40275d --- /dev/null +++ b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from openerp import api, fields, models + + +class StockWarehouseOrderpoint(models.Model): + _inherit = "stock.warehouse.orderpoint" + + procure_uom_id = fields.Many2one(comodel_name='product.uom', + string="Procurement UoM") + + @api.multi + @api.onchange('product_id') + def onchange_product_id(self): + for rec in self: + rec.procure_uom_id = rec.product_id.uom_id diff --git a/stock_orderpoint_uom/tests/__init__.py b/stock_orderpoint_uom/tests/__init__.py new file mode 100644 index 000000000..8ab7b3f74 --- /dev/null +++ b/stock_orderpoint_uom/tests/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import test_stock_orderpoint_procure_uom diff --git a/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py b/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py new file mode 100644 index 000000000..b664c658d --- /dev/null +++ b/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Eficent Business and IT Consulting Services S.L. +# (http://www.eficent.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +import openerp.tests.common as common + + +class TestStockOrderpointProcureUom(common.TransactionCase): + + def test_stock_orderpoont_procure_uom(self): + super(TestStockOrderpointProcureUom, self).setUp() + productObj = self.env['product.product'] + warehouse = self.env.ref('stock.warehouse0') + location_stock = self.env.ref('stock.stock_location_stock') + uom_unit = self.env.ref('product.product_uom_unit') + uom_dozen = self.env.ref('product.product_uom_dozen') + self.company_partner = self.env.ref('base.main_partner') + + productA = productObj.create( + {'name': 'product A', + 'standard_price': 1, + 'type': 'product', + 'uom_id': uom_unit.id, + 'default_code': 'A', + }) + + self.env['stock.warehouse.orderpoint'].create({ + 'warehouse_id': warehouse.id, + 'location_id': location_stock.id, + 'product_id': productA.id, + 'product_max_qty': 24, + 'product_min_qty': 12, + 'procure_uom_id': uom_dozen.id, + }) + + sched = self.env['procurement.order'] + sched.run_scheduler() + proc = sched.search([('product_id', '=', productA.id)]) + self.assertEqual(proc.product_uom, uom_dozen) + self.assertEqual(proc.product_qty, 2) diff --git a/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml b/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml new file mode 100644 index 000000000..ae41f7756 --- /dev/null +++ b/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml @@ -0,0 +1,31 @@ + + + + + + stock.warehouse.orderpoint.tree + stock.warehouse.orderpoint + + + + + + + + + + stock.warehouse.orderpoint.form + stock.warehouse.orderpoint + + + + + + + + + + From 4b5d1f4eaabc071158d6f941bb6e9321a9688f5f Mon Sep 17 00:00:00 2001 From: jbeficent Date: Mon, 24 Oct 2016 18:34:23 +0200 Subject: [PATCH 02/12] travis --- stock_orderpoint_uom/models/procurement_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_orderpoint_uom/models/procurement_order.py b/stock_orderpoint_uom/models/procurement_order.py index 8e5862655..a75b893a9 100644 --- a/stock_orderpoint_uom/models/procurement_order.py +++ b/stock_orderpoint_uom/models/procurement_order.py @@ -17,7 +17,7 @@ class ProcurementOrder(models.Model): @api.model def _prepare_orderpoint_procurement(self, orderpoint, product_qty): - res = super(ProcurementOrder,self)._prepare_orderpoint_procurement( + res = super(ProcurementOrder, self)._prepare_orderpoint_procurement( orderpoint, product_qty) if orderpoint.procure_uom_id: res['product_qty'] = orderpoint.procure_uom_id._compute_qty( From 0c010e88a3b1837efb25c79ae370ad20979de558 Mon Sep 17 00:00:00 2001 From: jbeficent Date: Mon, 24 Oct 2016 18:53:41 +0200 Subject: [PATCH 03/12] failing tests --- stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py b/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py index b664c658d..9698b3302 100644 --- a/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py +++ b/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py @@ -9,13 +9,11 @@ import openerp.tests.common as common class TestStockOrderpointProcureUom(common.TransactionCase): def test_stock_orderpoont_procure_uom(self): - super(TestStockOrderpointProcureUom, self).setUp() productObj = self.env['product.product'] warehouse = self.env.ref('stock.warehouse0') location_stock = self.env.ref('stock.stock_location_stock') uom_unit = self.env.ref('product.product_uom_unit') uom_dozen = self.env.ref('product.product_uom_dozen') - self.company_partner = self.env.ref('base.main_partner') productA = productObj.create( {'name': 'product A', From 16fe74b0b467d3b57eebd65c15e456af3039a954 Mon Sep 17 00:00:00 2001 From: jbeficent Date: Mon, 24 Oct 2016 19:10:26 +0200 Subject: [PATCH 04/12] when the product changes reset the procurement uom --- stock_orderpoint_uom/models/stock_warehouse_orderpoint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py index 5cb40275d..3cefdfcba 100644 --- a/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py +++ b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py @@ -16,4 +16,5 @@ class StockWarehouseOrderpoint(models.Model): @api.onchange('product_id') def onchange_product_id(self): for rec in self: - rec.procure_uom_id = rec.product_id.uom_id + if rec.procure_uom_id: + rec.procure_uom_id = False From ad99c3a2516aa8448803b8460b52169aa6d34f82 Mon Sep 17 00:00:00 2001 From: jbeficent Date: Mon, 24 Oct 2016 19:26:06 +0200 Subject: [PATCH 05/12] Can only procure on a UoM in the same dimension as the base UoM --- .../models/stock_warehouse_orderpoint.py | 15 ++++++- .../test_stock_orderpoint_procure_uom.py | 45 +++++++++++++------ 2 files changed, 46 insertions(+), 14 deletions(-) diff --git a/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py index 3cefdfcba..c2943e47e 100644 --- a/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py +++ b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py @@ -3,7 +3,8 @@ # (http://www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from openerp import api, fields, models +from openerp import api, fields, models, _ +from openerp.exceptions import Warning as UserError class StockWarehouseOrderpoint(models.Model): @@ -18,3 +19,15 @@ class StockWarehouseOrderpoint(models.Model): for rec in self: if rec.procure_uom_id: rec.procure_uom_id = False + + @api.constrains('product_uom', 'procure_uom_id') + def _check_procure_uom(self): + if any(orderpoint.product_uom + and orderpoint.procure_uom_id + and orderpoint.product_uom.category_id + != orderpoint.procure_uom_id.category_id + for orderpoint in self): + raise UserError(_('Error: The product default Unit of Measure and ' + 'the procurement Unit of Measure must be in ' + 'the same category.')) + return True diff --git a/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py b/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py index 9698b3302..b59453679 100644 --- a/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py +++ b/stock_orderpoint_uom/tests/test_stock_orderpoint_procure_uom.py @@ -4,36 +4,55 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import openerp.tests.common as common +from openerp.tools import mute_logger +from openerp.exceptions import ValidationError class TestStockOrderpointProcureUom(common.TransactionCase): - def test_stock_orderpoont_procure_uom(self): + def setUp(self): + super(TestStockOrderpointProcureUom, self).setUp() productObj = self.env['product.product'] - warehouse = self.env.ref('stock.warehouse0') - location_stock = self.env.ref('stock.stock_location_stock') - uom_unit = self.env.ref('product.product_uom_unit') - uom_dozen = self.env.ref('product.product_uom_dozen') + self.warehouse = self.env.ref('stock.warehouse0') + self.location_stock = self.env.ref('stock.stock_location_stock') + self.uom_unit = self.env.ref('product.product_uom_unit') + self.uom_dozen = self.env.ref('product.product_uom_dozen') + self.uom_kg = self.env.ref('product.product_uom_kgm') - productA = productObj.create( + self.productA = productObj.create( {'name': 'product A', 'standard_price': 1, 'type': 'product', - 'uom_id': uom_unit.id, + 'uom_id': self.uom_unit.id, 'default_code': 'A', }) + def test_stock_orderpoint_procure_uom(self): + self.env['stock.warehouse.orderpoint'].create({ - 'warehouse_id': warehouse.id, - 'location_id': location_stock.id, - 'product_id': productA.id, + 'warehouse_id': self.warehouse.id, + 'location_id': self.location_stock.id, + 'product_id': self.productA.id, 'product_max_qty': 24, 'product_min_qty': 12, - 'procure_uom_id': uom_dozen.id, + 'procure_uom_id': self.uom_dozen.id, }) sched = self.env['procurement.order'] sched.run_scheduler() - proc = sched.search([('product_id', '=', productA.id)]) - self.assertEqual(proc.product_uom, uom_dozen) + proc = sched.search([('product_id', '=', self.productA.id)]) + self.assertEqual(proc.product_uom, self.uom_dozen) self.assertEqual(proc.product_qty, 2) + + def test_stock_orderpoint_wrong_uom(self): + + with mute_logger('openerp.sql_db'): + with self.assertRaises(ValidationError): + self.env['stock.warehouse.orderpoint'].create({ + 'warehouse_id': self.warehouse.id, + 'location_id': self.location_stock.id, + 'product_id': self.productA.id, + 'product_max_qty': 24, + 'product_min_qty': 12, + 'procure_uom_id': self.uom_kg.id, + }) From e13c14e93cdf82f1b1c489da4f38c1b69b9e7140 Mon Sep 17 00:00:00 2001 From: jbeficent Date: Mon, 24 Oct 2016 23:00:01 +0200 Subject: [PATCH 06/12] the procurement uom is optional in the orderpoint --- stock_orderpoint_uom/models/stock_warehouse_orderpoint.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py index c2943e47e..9e0e9cb3e 100644 --- a/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py +++ b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py @@ -13,13 +13,6 @@ class StockWarehouseOrderpoint(models.Model): procure_uom_id = fields.Many2one(comodel_name='product.uom', string="Procurement UoM") - @api.multi - @api.onchange('product_id') - def onchange_product_id(self): - for rec in self: - if rec.procure_uom_id: - rec.procure_uom_id = False - @api.constrains('product_uom', 'procure_uom_id') def _check_procure_uom(self): if any(orderpoint.product_uom From 4bd2d3ad008b36416873067a8219d7276bb07ada Mon Sep 17 00:00:00 2001 From: jbeficent Date: Tue, 25 Oct 2016 16:16:37 +0200 Subject: [PATCH 07/12] travis errors and review comments --- stock_orderpoint_uom/__openerp__.py | 2 +- .../models/stock_warehouse_orderpoint.py | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/stock_orderpoint_uom/__openerp__.py b/stock_orderpoint_uom/__openerp__.py index 7ffcd3596..10708378f 100644 --- a/stock_orderpoint_uom/__openerp__.py +++ b/stock_orderpoint_uom/__openerp__.py @@ -15,5 +15,5 @@ "data": ["views/stock_warehouse_orderpoint_view.xml"], "license": "AGPL-3", 'installable': True, - 'application': True, + 'application': False, } diff --git a/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py index 9e0e9cb3e..a4ca61052 100644 --- a/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py +++ b/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py @@ -15,12 +15,13 @@ class StockWarehouseOrderpoint(models.Model): @api.constrains('product_uom', 'procure_uom_id') def _check_procure_uom(self): - if any(orderpoint.product_uom - and orderpoint.procure_uom_id - and orderpoint.product_uom.category_id - != orderpoint.procure_uom_id.category_id - for orderpoint in self): - raise UserError(_('Error: The product default Unit of Measure and ' - 'the procurement Unit of Measure must be in ' - 'the same category.')) + if any(orderpoint.product_uom and + orderpoint.procure_uom_id and + orderpoint.product_uom.category_id != + orderpoint.procure_uom_id.category_id + for orderpoint in self): + raise UserError( + _('Error: The product default Unit of Measure and ' + 'the procurement Unit of Measure must be in the ' + 'same category.')) return True From f6f3203c4bcfc8061705c53909fb18437095b0e2 Mon Sep 17 00:00:00 2001 From: jbeficent Date: Wed, 26 Oct 2016 19:07:45 +0200 Subject: [PATCH 08/12] remove irrelevant on_change --- stock_orderpoint_uom/models/procurement_order.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stock_orderpoint_uom/models/procurement_order.py b/stock_orderpoint_uom/models/procurement_order.py index a75b893a9..250faf038 100644 --- a/stock_orderpoint_uom/models/procurement_order.py +++ b/stock_orderpoint_uom/models/procurement_order.py @@ -9,12 +9,6 @@ from openerp import api, models class ProcurementOrder(models.Model): _inherit = "procurement.order" - @api.multi - @api.onchange('product_id') - def onchange_product_id(self): - for rec in self: - rec.procure_uom_id = rec.product_id.uom_id - @api.model def _prepare_orderpoint_procurement(self, orderpoint, product_qty): res = super(ProcurementOrder, self)._prepare_orderpoint_procurement( From 4640ca010b48217a2d2261c84bc9f897f6b8f73f Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Tue, 29 Nov 2016 13:34:34 -0500 Subject: [PATCH 09/12] OCA Transbot updated translations from Transifex --- stock_orderpoint_uom/i18n/de.po | 43 +++++++++++++++++++++++++++++ stock_orderpoint_uom/i18n/es.po | 42 ++++++++++++++++++++++++++++ stock_orderpoint_uom/i18n/fr.po | 42 ++++++++++++++++++++++++++++ stock_orderpoint_uom/i18n/hr.po | 42 ++++++++++++++++++++++++++++ stock_orderpoint_uom/i18n/it.po | 42 ++++++++++++++++++++++++++++ stock_orderpoint_uom/i18n/pt_BR.po | 43 +++++++++++++++++++++++++++++ stock_orderpoint_uom/i18n/ro.po | 42 ++++++++++++++++++++++++++++ stock_orderpoint_uom/i18n/sl.po | 44 ++++++++++++++++++++++++++++++ stock_orderpoint_uom/i18n/vi_VN.po | 42 ++++++++++++++++++++++++++++ stock_orderpoint_uom/i18n/zh_CN.po | 42 ++++++++++++++++++++++++++++ 10 files changed, 424 insertions(+) create mode 100644 stock_orderpoint_uom/i18n/de.po create mode 100644 stock_orderpoint_uom/i18n/es.po create mode 100644 stock_orderpoint_uom/i18n/fr.po create mode 100644 stock_orderpoint_uom/i18n/hr.po create mode 100644 stock_orderpoint_uom/i18n/it.po create mode 100644 stock_orderpoint_uom/i18n/pt_BR.po create mode 100644 stock_orderpoint_uom/i18n/ro.po create mode 100644 stock_orderpoint_uom/i18n/sl.po create mode 100644 stock_orderpoint_uom/i18n/vi_VN.po create mode 100644 stock_orderpoint_uom/i18n/zh_CN.po diff --git a/stock_orderpoint_uom/i18n/de.po b/stock_orderpoint_uom/i18n/de.po new file mode 100644 index 000000000..3eedef5d0 --- /dev/null +++ b/stock_orderpoint_uom/i18n/de.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# Rudolf Schnapka , 2016 +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "Mindestbestandsregel" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Beschaffung" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" diff --git a/stock_orderpoint_uom/i18n/es.po b/stock_orderpoint_uom/i18n/es.po new file mode 100644 index 000000000..88e942323 --- /dev/null +++ b/stock_orderpoint_uom/i18n/es.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "Regla de inventario mínimo" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Abastecimiento" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" diff --git a/stock_orderpoint_uom/i18n/fr.po b/stock_orderpoint_uom/i18n/fr.po new file mode 100644 index 000000000..b4dcb9132 --- /dev/null +++ b/stock_orderpoint_uom/i18n/fr.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Procurement" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" diff --git a/stock_orderpoint_uom/i18n/hr.po b/stock_orderpoint_uom/i18n/hr.po new file mode 100644 index 000000000..3a9fea120 --- /dev/null +++ b/stock_orderpoint_uom/i18n/hr.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# Bole , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: Bole , 2016\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Nabava" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" diff --git a/stock_orderpoint_uom/i18n/it.po b/stock_orderpoint_uom/i18n/it.po new file mode 100644 index 000000000..80e0d28c6 --- /dev/null +++ b/stock_orderpoint_uom/i18n/it.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# Paolo Valier , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: Paolo Valier , 2016\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Approvvigionamento" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" diff --git a/stock_orderpoint_uom/i18n/pt_BR.po b/stock_orderpoint_uom/i18n/pt_BR.po new file mode 100644 index 000000000..ff0b0a2b5 --- /dev/null +++ b/stock_orderpoint_uom/i18n/pt_BR.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# Armando Vulcano Junior , 2016 +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "Regra minima de inventário" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Aprovisionamento" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" diff --git a/stock_orderpoint_uom/i18n/ro.po b/stock_orderpoint_uom/i18n/ro.po new file mode 100644 index 000000000..bea213b16 --- /dev/null +++ b/stock_orderpoint_uom/i18n/ro.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# Dorin Hongu , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: Dorin Hongu , 2016\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Aprovizionare" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" diff --git a/stock_orderpoint_uom/i18n/sl.po b/stock_orderpoint_uom/i18n/sl.po new file mode 100644 index 000000000..2e9d8646c --- /dev/null +++ b/stock_orderpoint_uom/i18n/sl.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: Matjaž Mozetič , 2016\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" +"Napaka: privzeti enoti mere za proizvod in enoto oskrbe morata biti iz iste" +" kategorije." + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "Pravilo minimalne zaloge" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Oskrbovanje" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "EM oskrbovanja" diff --git a/stock_orderpoint_uom/i18n/vi_VN.po b/stock_orderpoint_uom/i18n/vi_VN.po new file mode 100644 index 000000000..6a95e0d1d --- /dev/null +++ b/stock_orderpoint_uom/i18n/vi_VN.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/teams/23907/vi_VN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: vi_VN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Mua sắm / Cung ứng" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" diff --git a/stock_orderpoint_uom/i18n/zh_CN.po b/stock_orderpoint_uom/i18n/zh_CN.po new file mode 100644 index 000000000..095001d36 --- /dev/null +++ b/stock_orderpoint_uom/i18n/zh_CN.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# Jeffery Chen Fan , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-18 03:44+0000\n" +"PO-Revision-Date: 2016-11-18 03:44+0000\n" +"Last-Translator: Jeffery Chen Fan , 2016\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "补货" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" From acfe193487f99ef77969af6a91192d560ad9da46 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 10 Dec 2016 01:02:29 -0500 Subject: [PATCH 10/12] OCA Transbot updated translations from Transifex --- stock_orderpoint_uom/i18n/es_MX.po | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 stock_orderpoint_uom/i18n/es_MX.po diff --git a/stock_orderpoint_uom/i18n/es_MX.po b/stock_orderpoint_uom/i18n/es_MX.po new file mode 100644 index 000000000..23ad2b186 --- /dev/null +++ b/stock_orderpoint_uom/i18n/es_MX.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_uom +# +# Translators: +# Juan González , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-29 18:43+0000\n" +"PO-Revision-Date: 2016-11-29 18:43+0000\n" +"Last-Translator: Juan González , 2016\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/es_MX/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_MX\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: stock_orderpoint_uom +#: code:addons/stock_orderpoint_uom/models/stock_warehouse_orderpoint.py:24 +#, python-format +msgid "" +"Error: The product default Unit of Measure and the procurement Unit of " +"Measure must be in the same category." +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "" + +#. module: stock_orderpoint_uom +#: model:ir.model,name:stock_orderpoint_uom.model_procurement_order +msgid "Procurement" +msgstr "Contratación" + +#. module: stock_orderpoint_uom +#: field:stock.warehouse.orderpoint,procure_uom_id:0 +msgid "Procurement UoM" +msgstr "" From 0cb694d1d14b8774311cb748cefe091ab4298807 Mon Sep 17 00:00:00 2001 From: lreficent Date: Thu, 22 Dec 2016 14:52:08 +0100 Subject: [PATCH 11/12] [MIG] stock_orderpoint_uom: Migrated to 9.0 --- stock_orderpoint_uom/__openerp__.py | 2 +- .../views/stock_warehouse_orderpoint_view.xml | 48 +++++++++---------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/stock_orderpoint_uom/__openerp__.py b/stock_orderpoint_uom/__openerp__.py index 10708378f..2b381a532 100644 --- a/stock_orderpoint_uom/__openerp__.py +++ b/stock_orderpoint_uom/__openerp__.py @@ -6,7 +6,7 @@ "name": "Stock Orderpoint UoM", "summary": "Allows to create procurement orders in the UoM indicated in " "the orderpoint", - "version": "8.0.1.0.0", + "version": "9.0.1.0.0", "author": "Eficent Business and IT Consulting Services S.L," "Odoo Community Association (OCA)", "website": "https://www.odoo-community.org", diff --git a/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml b/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml index ae41f7756..d52bf56b1 100644 --- a/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml +++ b/stock_orderpoint_uom/views/stock_warehouse_orderpoint_view.xml @@ -1,31 +1,29 @@ - - + - - stock.warehouse.orderpoint.tree - stock.warehouse.orderpoint - - - - - + + stock.warehouse.orderpoint.tree + stock.warehouse.orderpoint + + + + - + + - - stock.warehouse.orderpoint.form - stock.warehouse.orderpoint - - - - - + + stock.warehouse.orderpoint.form + stock.warehouse.orderpoint + + + + - + + - - + From 365582afd507b3e5a0476a52c4c4802455d5438e Mon Sep 17 00:00:00 2001 From: lreficent Date: Thu, 22 Dec 2016 15:13:30 +0100 Subject: [PATCH 12/12] [UPD] Update README. --- stock_orderpoint_uom/README.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/stock_orderpoint_uom/README.rst b/stock_orderpoint_uom/README.rst index 4bb323ca3..61092330d 100644 --- a/stock_orderpoint_uom/README.rst +++ b/stock_orderpoint_uom/README.rst @@ -15,18 +15,24 @@ created, the quantity to be transferred will be expressed in meters, making it easier for the people responsible for the transfers to understand the requirement. +Configuration +============= + +To configure this module, you need to 'Inventory > Configuration > Settings' +and enable 'Some products may be sold/purchased in different unit of measures +(advanced)' option. Usage ===== -Go to 'Configuration / Reordering Rules' and indicate a Procurement UoM. +Go to 'Inventory > Inventory Control > Reordering Rules' and indicate a +Procurement UoM. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot :target: https://runbot.odoo-community.org/runbot/153/8.0 - Bug Tracker ===========