diff --git a/addons/account/views/account_portal_templates.xml b/addons/account/views/account_portal_templates.xml
index 3bf6aa8dd7f..a83d9e05f83 100644
--- a/addons/account/views/account_portal_templates.xml
+++ b/addons/account/views/account_portal_templates.xml
@@ -162,7 +162,7 @@
-
+
diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml
index be284b823dd..f220b6d9059 100644
--- a/addons/account/views/report_invoice.xml
+++ b/addons/account/views/report_invoice.xml
@@ -77,7 +77,7 @@
-
+
diff --git a/addons/delivery/tests/test_delivery_cost.py b/addons/delivery/tests/test_delivery_cost.py
index d027906ef6a..67ff55339ba 100644
--- a/addons/delivery/tests/test_delivery_cost.py
+++ b/addons/delivery/tests/test_delivery_cost.py
@@ -18,11 +18,11 @@ class TestDeliveryCost(common.TransactionCase):
self.partner_18 = self.env.ref('base.res_partner_18')
self.pricelist = self.env.ref('product.list0')
self.product_4 = self.env.ref('product.product_product_4')
- self.product_uom_unit = self.env.ref('product.product_uom_unit')
+ self.product_uom_unit = self.env.ref('uom.product_uom_unit')
self.normal_delivery = self.env.ref('delivery.normal_delivery_carrier')
self.partner_4 = self.env.ref('base.res_partner_4')
self.partner_address_13 = self.env.ref('base.res_partner_address_13')
- self.product_uom_hour = self.env.ref('product.product_uom_hour')
+ self.product_uom_hour = self.env.ref('uom.product_uom_hour')
self.account_data = self.env.ref('account.data_account_type_revenue')
self.account_tag_operating = self.env.ref('account.account_tag_operating')
self.product_2 = self.env.ref('product.product_product_2')
diff --git a/addons/delivery/tests/test_delivery_stock_move.py b/addons/delivery/tests/test_delivery_stock_move.py
index 9ff51082fa9..60e170da701 100644
--- a/addons/delivery/tests/test_delivery_stock_move.py
+++ b/addons/delivery/tests/test_delivery_stock_move.py
@@ -17,7 +17,7 @@ class StockMoveInvoice(AccountingTestCase):
self.pricelist_id = self.env.ref('product.list0')
self.product_11 = self.env.ref('product.product_product_11')
self.product_icecream = self.env.ref('stock.product_icecream')
- self.product_uom_kgm = self.env.ref('product.product_uom_kgm')
+ self.product_uom_kgm = self.env.ref('uom.product_uom_kgm')
self.normal_delivery = self.env.ref('delivery.normal_delivery_carrier')
def test_01_delivery_stock_move(self):
diff --git a/addons/event_sale/data/event_demo.xml b/addons/event_sale/data/event_demo.xml
index 96514592b44..54b88827055 100644
--- a/addons/event_sale/data/event_demo.xml
+++ b/addons/event_sale/data/event_demo.xml
@@ -7,8 +7,8 @@
service
2500.0
1000.0
-
-
+
+
@@ -19,8 +19,8 @@
service
2500.0
1000.0
-
-
+
+
@@ -31,8 +31,8 @@
service
2500.0
1000.0
-
-
+
+
@@ -47,8 +47,8 @@
service
2500.0
1000.0
-
-
+
+
diff --git a/addons/event_sale/data/event_sale_data.xml b/addons/event_sale/data/event_sale_data.xml
index 106f1cb0299..18b05a2de83 100644
--- a/addons/event_sale/data/event_sale_data.xml
+++ b/addons/event_sale/data/event_sale_data.xml
@@ -5,8 +5,8 @@
10.0
30.0
-
-
+
+
Event Registration
service
diff --git a/addons/event_sale/tests/test_event_sale.py b/addons/event_sale/tests/test_event_sale.py
index 62a33f57749..d73a1cfcb7e 100644
--- a/addons/event_sale/tests/test_event_sale.py
+++ b/addons/event_sale/tests/test_event_sale.py
@@ -36,7 +36,7 @@ class EventSaleTest(common.TransactionCase):
self.env['sale.order.line'].create({
'product_id': product.id,
'price_unit': 190.50,
- 'product_uom': self.env.ref('product.product_uom_unit').id,
+ 'product_uom': self.env.ref('uom.product_uom_unit').id,
'product_uom_qty': 8.0,
'order_id': self.sale_order.id,
'name': 'sales order line',
diff --git a/addons/hr_expense/data/hr_expense_demo.xml b/addons/hr_expense/data/hr_expense_demo.xml
index 85f8d875a4e..bb8c605f1aa 100644
--- a/addons/hr_expense/data/hr_expense_demo.xml
+++ b/addons/hr_expense/data/hr_expense_demo.xml
@@ -26,9 +26,9 @@
service
Car Travel Expenses
CarTRA
-
-
-
+
+
+
@@ -44,7 +44,15 @@
-
+
+ 400.0
+ 400.0
+ service
+ Hotel Accommodation
+ HA0
+
+
+
@@ -54,7 +62,7 @@
-
+
@@ -63,7 +71,7 @@
-
+
diff --git a/addons/hr_expense/security/ir.model.access.csv b/addons/hr_expense/security/ir.model.access.csv
index 0eea145a6d4..c046e4ad52d 100644
--- a/addons/hr_expense/security/ir.model.access.csv
+++ b/addons/hr_expense/security/ir.model.access.csv
@@ -6,7 +6,7 @@ access_hr_expense_sheet_user,hr.expense.sheet.user,model_hr_expense_sheet,hr_exp
access_hr_expense_sheet_employee,hr.expense.sheet.employee,model_hr_expense_sheet,base.group_user,1,1,1,1
access_product_product_hr_expense_user,product.product.hr.expense.user,product.model_product_product,hr_expense.group_hr_expense_user,1,1,1,1
access_product_template_hr_expense_user,product.template.hr.expense.user,product.model_product_template,hr_expense.group_hr_expense_user,1,1,1,1
-access_product_uom_hr_expense_user,product.uom.hr.expense.user,product.model_product_uom,hr_expense.group_hr_expense_user,1,1,1,1
+access_product_uom_hr_expense_user,product.uom.hr.expense.user,uom.model_product_uom,hr_expense.group_hr_expense_user,1,1,1,1
access_account_journal_user,account.journal.user,account.model_account_journal,hr_expense.group_hr_expense_user,1,1,1,1
access_account_journal_employee,account.journal.employee,account.model_account_journal,base.group_user,1,0,0,0
access_account_invoice_user,account.invoice.user,account.model_account_invoice,hr_expense.group_hr_expense_user,1,1,1,1
diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml
index 77d5b13f69a..6d27b2b9cdb 100644
--- a/addons/hr_expense/views/hr_expense_views.xml
+++ b/addons/hr_expense/views/hr_expense_views.xml
@@ -56,7 +56,7 @@
-
+
@@ -288,7 +288,7 @@
-
+
diff --git a/addons/hr_timesheet/security/ir.model.access.csv b/addons/hr_timesheet/security/ir.model.access.csv
index 661b02a5a3c..bdf5cbe520d 100644
--- a/addons/hr_timesheet/security/ir.model.access.csv
+++ b/addons/hr_timesheet/security/ir.model.access.csv
@@ -4,6 +4,6 @@ access_account_analytic_line_portal,access_timesheets_portal,analytic.model_acco
access_account_analytic_user,analytic.account.analytic.timesheet.user,analytic.model_account_analytic_account,hr_timesheet.group_hr_timesheet_user,1,1,0,0
access_product_product_user,product.product.timesheet.user,product.model_product_product,hr_timesheet.group_hr_timesheet_user,1,1,1,0
access_product_template_timesheet_user,product.template.timesheet.user,product.model_product_template,hr_timesheet.group_hr_timesheet_user,1,1,1,0
-access_product_uom_hr_timesheet,product.uom.timesheet.user,product.model_product_uom,hr_timesheet.group_hr_timesheet_user,1,0,0,0
+access_product_uom_hr_timesheet,product.uom.timesheet.user,uom.model_product_uom,hr_timesheet.group_hr_timesheet_user,1,0,0,0
access_project_project,project.project.timesheet.user,model_project_project,hr_timesheet.group_hr_timesheet_user,1,0,0,0
access_project_task,project.task.timesheet.user,model_project_task,hr_timesheet.group_hr_timesheet_user,1,1,0,0
diff --git a/addons/l10n_in/views/report_invoice.xml b/addons/l10n_in/views/report_invoice.xml
index f5cae06634c..3441689d3d5 100644
--- a/addons/l10n_in/views/report_invoice.xml
+++ b/addons/l10n_in/views/report_invoice.xml
@@ -52,7 +52,7 @@
-
+
diff --git a/addons/l10n_in_sale/views/report_invoice_view.xml b/addons/l10n_in_sale/views/report_invoice_view.xml
index f3be1383da1..fc7de168ad4 100644
--- a/addons/l10n_in_sale/views/report_invoice_view.xml
+++ b/addons/l10n_in_sale/views/report_invoice_view.xml
@@ -37,7 +37,7 @@
HSN/SAC Code:
-
+
diff --git a/addons/mrp/data/mrp_demo.xml b/addons/mrp/data/mrp_demo.xml
index fcfd0748d4d..5c0761169eb 100644
--- a/addons/mrp/data/mrp_demo.xml
+++ b/addons/mrp/data/mrp_demo.xml
@@ -13,8 +13,8 @@
0.1
-
-
+
+
service
Assembly Service Cost
@@ -27,8 +27,8 @@
1100.0
1250.0
product
-
-
+
+
On demand hard-disk having capacity based on requirement.
HDD-DEM
@@ -141,14 +141,14 @@
-
+
10
1
-
+
5
@@ -159,7 +159,7 @@
-
+
1
@@ -167,7 +167,7 @@
1
-
+
5
@@ -175,7 +175,7 @@
1
-
+
5
@@ -183,7 +183,7 @@
1
-
+
5
@@ -191,7 +191,7 @@
1
-
+
5
@@ -199,7 +199,7 @@
1
-
+
5
@@ -207,7 +207,7 @@
1
-
+
5
@@ -215,7 +215,7 @@
1
-
+
5
@@ -226,8 +226,8 @@
600.0
147.0
consu
-
-
+
+
Self Build kit.
E-COM92
@@ -238,7 +238,7 @@
-
+
2
phantom
@@ -246,7 +246,7 @@
1
-
+
5
@@ -254,21 +254,21 @@
1
-
+
5
-
+
3
-
+
@@ -278,8 +278,8 @@
2500
2250
product
-
-
+
+
Solid wood table.
FURN001
@@ -289,8 +289,8 @@
2000
2000
product
-
-
+
+
Solid wood is a durable natural material.
FURN002
serial
@@ -301,8 +301,8 @@
50
50
product
-
-
+
+
18″ x 2½″ Square Leg
FURN003
lot
@@ -313,8 +313,8 @@
12.5
12.5
product
-
-
+
+
Stainless steel screw full (dia - 5mm, Length - 10mm)
FURN004
@@ -324,8 +324,8 @@
10
10
product
-
-
+
+
Stainless steel screw
FURN005
@@ -336,7 +336,7 @@
-
+
3
@@ -344,7 +344,7 @@
1
-
+
1
@@ -353,7 +353,7 @@
4
-
+
2
@@ -362,7 +362,7 @@
4
-
+
3
@@ -371,7 +371,7 @@
10
-
+
4
@@ -379,7 +379,7 @@
-
+
1
@@ -393,8 +393,8 @@
2000.0
2250.0
product
-
-
+
+
19v,5.5 x 2.5 mm Pin Type Adapter (Power Cord Included)
E-COM93
@@ -406,8 +406,8 @@
800
850
product
-
-
+
+
New Original Laptop Keyboard Part No 9GT99
E-COM94
@@ -441,7 +441,7 @@
-
+
50
@@ -450,7 +450,7 @@
-
+
40
@@ -464,7 +464,7 @@
-
+
50
@@ -477,7 +477,7 @@
-
+
50
@@ -486,41 +486,41 @@
-
+
1
1
-
+
1
1
-
+
2
-
+
2
1
-
+
1
1
-
+
2
@@ -530,7 +530,7 @@
-
+
5
diff --git a/addons/mrp/report/mrp_bom_cost_report_templates.xml b/addons/mrp/report/mrp_bom_cost_report_templates.xml
index 85d3b442a93..7e24d146281 100644
--- a/addons/mrp/report/mrp_bom_cost_report_templates.xml
+++ b/addons/mrp/report/mrp_bom_cost_report_templates.xml
@@ -36,7 +36,7 @@
-
+
diff --git a/addons/mrp/report/mrp_bom_structure_report_templates.xml b/addons/mrp/report/mrp_bom_structure_report_templates.xml
index 549d75662cd..b9432776e88 100644
--- a/addons/mrp/report/mrp_bom_structure_report_templates.xml
+++ b/addons/mrp/report/mrp_bom_structure_report_templates.xml
@@ -23,7 +23,7 @@
-
+
@@ -36,7 +36,7 @@
-
+
diff --git a/addons/mrp/report/mrp_production_templates.xml b/addons/mrp/report/mrp_production_templates.xml
index d17a8b18fb7..698abe2c5aa 100644
--- a/addons/mrp/report/mrp_production_templates.xml
+++ b/addons/mrp/report/mrp_production_templates.xml
@@ -23,7 +23,7 @@
Quantity:
-
+
@@ -75,7 +75,7 @@
-
+
diff --git a/addons/mrp/security/ir.model.access.csv b/addons/mrp/security/ir.model.access.csv
index 9d5a89fca90..da0c8235e69 100644
--- a/addons/mrp/security/ir.model.access.csv
+++ b/addons/mrp/security/ir.model.access.csv
@@ -22,7 +22,7 @@ access_mrp_production_stock_worker,mrp.production stock_worker,model_mrp_product
access_product_product_user,product.product user,product.model_product_product,mrp.group_mrp_user,1,0,0,0
access_product_template_user,product.template user,product.model_product_template,mrp.group_mrp_user,1,0,0,0
access_product_price_history_mrp_manager,product.price.history.mrp.manager,product.model_product_price_history,mrp.group_mrp_manager,1,1,1,1
-access_product_uom_user,product.uom user,product.model_product_uom,mrp.group_mrp_user,1,0,0,0
+access_product_uom_user,product.uom user,uom.model_product_uom,mrp.group_mrp_user,1,0,0,0
access_product_supplierinfo_user,product.supplierinfo user,product.model_product_supplierinfo,mrp.group_mrp_user,1,1,1,1
access_res_partner,res.partner,base.model_res_partner,mrp.group_mrp_user,1,0,0,0
access_mrp_workorder_mrp_user,mrp.workorder.user,model_mrp_workorder,mrp.group_mrp_user,1,1,1,1
@@ -31,7 +31,7 @@ access_resource_calendar_leaves_user,mrp.resource.calendar.leaves.user,resource.
access_resource_calendar_leaves_manager,mrp.resource.calendar.leaves.manager,resource.model_resource_calendar_leaves,mrp.group_mrp_manager,1,0,0,0
access_resource_calendar_attendance_mrp_user,mrp.resource.calendar.attendance.mrp.user,resource.model_resource_calendar_attendance,mrp.group_mrp_user,1,1,1,1
access_resource_calendar_attendance_manager,mrp.resource.calendar.attendance.manager,resource.model_resource_calendar_attendance,mrp.group_mrp_manager,1,1,1,1
-access_product_puom_categ,product.uom.categ,product.model_product_uom_categ,mrp.group_mrp_user,1,0,0,0
+access_product_puom_categ,product.uom.categ,uom.model_product_uom_categ,mrp.group_mrp_user,1,0,0,0
access_resource_resource,resource.resource,resource.model_resource_resource,mrp.group_mrp_user,1,0,0,0
access_resource_resource_manager,resource.resource.manager,resource.model_resource_resource,mrp.group_mrp_manager,1,1,1,1
access_product_supplierinfo_manager,product.supplierinfo user,product.model_product_supplierinfo,mrp.group_mrp_manager,1,0,0,0
@@ -42,8 +42,8 @@ access_stock_warehouse_orderpoint_user,stock.warehouse.orderpoint,stock.model_st
access_stock_picking_mrp_manager,stock.picking mrp_manager,stock.model_stock_picking,mrp.group_mrp_manager,1,0,0,0
access_mrp_bom_stockuser,mrp.bom,model_mrp_bom,stock.group_stock_user,1,0,0,0
access_mrp_bom_line_stockuser,mrp.bom.line,model_mrp_bom_line,stock.group_stock_user,1,0,0,0
-access_product_uom_categ_mrp_manager,product.uom.categ mrp_manager,product.model_product_uom_categ,mrp.group_mrp_manager,1,1,1,1
-access_product_uom_mrp_manager,product.uom mrp_manager,product.model_product_uom,mrp.group_mrp_manager,1,1,1,1
+access_product_uom_categ_mrp_manager,product.uom.categ mrp_manager,uom.model_product_uom_categ,mrp.group_mrp_manager,1,1,1,1
+access_product_uom_mrp_manager,product.uom mrp_manager,uom.model_product_uom,mrp.group_mrp_manager,1,1,1,1
access_product_category_mrp_manager,product.category mrp_manager,product.model_product_category,mrp.group_mrp_manager,1,1,1,1
access_product_template_mrp_manager,product.template mrp_manager,product.model_product_template,mrp.group_mrp_manager,1,1,1,1
access_product_product_mrp_manager,product.product mrp_manager,product.model_product_product,mrp.group_mrp_manager,1,1,1,1
diff --git a/addons/mrp/tests/test_order.py b/addons/mrp/tests/test_order.py
index 56b87b7e61d..6c56fa22275 100644
--- a/addons/mrp/tests/test_order.py
+++ b/addons/mrp/tests/test_order.py
@@ -353,7 +353,7 @@ class TestMrpOrder(TestMrpCommon):
""" Check the consumed quants of the produced quants when intermediate calls to `post_inventory` during a MO."""
# create a bom for `custom_laptop` with components that aren't tracked
- unit = self.ref("product.product_uom_unit")
+ unit = self.ref("uom.product_uom_unit")
custom_laptop = self.env.ref("product.product_product_27")
custom_laptop.tracking = 'none'
product_charger = self.env['product.product'].create({
diff --git a/addons/mrp/tests/test_workorder_operation.py b/addons/mrp/tests/test_workorder_operation.py
index 79121e0468e..2e62315d83c 100644
--- a/addons/mrp/tests/test_workorder_operation.py
+++ b/addons/mrp/tests/test_workorder_operation.py
@@ -234,7 +234,7 @@ class TestWorkOrderProcess(common.TransactionCase):
def test_01_without_workorder(self):
""" Testing consume quants and produced quants without workorder """
- unit = self.ref("product.product_uom_unit")
+ unit = self.ref("uom.product_uom_unit")
custom_laptop = self.env.ref("product.product_product_27")
custom_laptop.tracking = 'lot'
@@ -389,10 +389,10 @@ class TestWorkOrderProcess(common.TransactionCase):
""" Testing bill of material with different unit of measure."""
route_manufacture = self.warehouse.manufacture_pull_id.route_id.id
route_mto = self.warehouse.mto_pull_id.route_id.id
- unit = self.ref("product.product_uom_unit")
- dozen = self.ref("product.product_uom_dozen")
- kg = self.ref("product.product_uom_kgm")
- gm = self.ref("product.product_uom_gram")
+ unit = self.ref("uom.product_uom_unit")
+ dozen = self.ref("uom.product_uom_dozen")
+ kg = self.ref("uom.product_uom_kgm")
+ gm = self.ref("uom.product_uom_gram")
# Create Product A, B, C
product_A = self.env['product.product'].create({
'name': 'Product A',
@@ -511,7 +511,7 @@ class TestWorkOrderProcess(common.TransactionCase):
""" Test that the correct serial number is suggested on consecutive work orders. """
laptop = self.env.ref("product.product_product_25")
graphics_card = self.env.ref("product.product_product_24")
- unit = self.env.ref("product.product_uom_unit")
+ unit = self.env.ref("uom.product_uom_unit")
three_step_routing = self.env.ref("mrp.mrp_routing_1")
laptop.tracking = 'serial'
diff --git a/addons/mrp/views/mrp_bom_views.xml b/addons/mrp/views/mrp_bom_views.xml
index de547036a6e..5412aebf313 100644
--- a/addons/mrp/views/mrp_bom_views.xml
+++ b/addons/mrp/views/mrp_bom_views.xml
@@ -22,7 +22,7 @@
-
+
@@ -57,7 +57,7 @@
-
+
@@ -94,7 +94,7 @@
-
+
@@ -180,7 +180,7 @@
-
+
@@ -201,7 +201,7 @@
-
+
diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml
index c22daf42829..31b8daa3f27 100644
--- a/addons/mrp/views/mrp_production_views.xml
+++ b/addons/mrp/views/mrp_production_views.xml
@@ -12,7 +12,7 @@
-
+
@@ -85,7 +85,7 @@
-
+
@@ -117,7 +117,7 @@
-
+
@@ -136,7 +136,7 @@
-
+
diff --git a/addons/mrp/views/mrp_unbuild_views.xml b/addons/mrp/views/mrp_unbuild_views.xml
index fde57b54aac..222ae59dfe0 100644
--- a/addons/mrp/views/mrp_unbuild_views.xml
+++ b/addons/mrp/views/mrp_unbuild_views.xml
@@ -123,7 +123,7 @@
-
+
@@ -154,7 +154,7 @@
-
+
diff --git a/addons/mrp/wizard/mrp_product_produce_views.xml b/addons/mrp/wizard/mrp_product_produce_views.xml
index 661ceed00db..fb9518918e8 100644
--- a/addons/mrp/wizard/mrp_product_produce_views.xml
+++ b/addons/mrp/wizard/mrp_product_produce_views.xml
@@ -14,7 +14,7 @@
-
+
@@ -27,7 +27,7 @@
-
+
diff --git a/addons/mrp_byproduct/tests/test_mrp_byproduct.py b/addons/mrp_byproduct/tests/test_mrp_byproduct.py
index 2b20b116fe8..7f930a79346 100644
--- a/addons/mrp_byproduct/tests/test_mrp_byproduct.py
+++ b/addons/mrp_byproduct/tests/test_mrp_byproduct.py
@@ -12,7 +12,7 @@ class TestMrpByProduct(common.TransactionCase):
self.warehouse = self.env.ref('stock.warehouse0')
route_manufacture = self.warehouse.manufacture_pull_id.route_id.id
route_mto = self.warehouse.mto_pull_id.route_id.id
- self.uom_unit_id = self.ref('product.product_uom_unit')
+ self.uom_unit_id = self.ref('uom.product_uom_unit')
def create_product(name, route_ids=[]):
return self.env['product.product'].create({
'name': name,
diff --git a/addons/mrp_byproduct/views/mrp_bom_views.xml b/addons/mrp_byproduct/views/mrp_bom_views.xml
index dc6993751f2..0d0d0ac77f9 100644
--- a/addons/mrp_byproduct/views/mrp_bom_views.xml
+++ b/addons/mrp_byproduct/views/mrp_bom_views.xml
@@ -12,12 +12,12 @@
-
+
diff --git a/addons/point_of_sale/data/point_of_sale_data.xml b/addons/point_of_sale/data/point_of_sale_data.xml
index 13059b39a0c..bd1632b9acd 100644
--- a/addons/point_of_sale/data/point_of_sale_data.xml
+++ b/addons/point_of_sale/data/point_of_sale_data.xml
@@ -40,8 +40,8 @@
13.0
18.0
consu
-
-
+
+
MISC
@@ -54,7 +54,7 @@
20
-
+
True
diff --git a/addons/point_of_sale/data/point_of_sale_demo.xml b/addons/point_of_sale/data/point_of_sale_demo.xml
index 1c18cb8e74c..701b4ce2e13 100644
--- a/addons/point_of_sale/data/point_of_sale_demo.xml
+++ b/addons/point_of_sale/data/point_of_sale_demo.xml
@@ -43,8 +43,8 @@
2100002000003
False
-
-
+
+
@@ -53,8 +53,8 @@
Orange Butterfly
True
-
-
+
+
@@ -65,8 +65,8 @@
2301000000006
True
-
-
+
+
@@ -75,8 +75,8 @@
Stringers
True
-
-
+
+
@@ -85,8 +85,8 @@
Red grapefruit
True
-
-
+
+
@@ -96,8 +96,8 @@
Granny Smith apples
True
-
-
+
+
@@ -106,8 +106,8 @@
Jonagold apples
True
-
-
+
+
@@ -116,8 +116,8 @@
Golden Apples Perlim
True
-
-
+
+
@@ -127,8 +127,8 @@
Conference pears
True
-
-
+
+
@@ -139,8 +139,8 @@
True
2300001000008
-
-
+
+
@@ -151,8 +151,8 @@
Black Grapes
True
-
-
+
+
@@ -162,8 +162,8 @@
Potatoes
True
-
-
+
+
@@ -173,8 +173,8 @@
Extra Flandria chicory
True
-
-
+
+
@@ -183,8 +183,8 @@
Carrots
True
-
-
+
+
@@ -194,8 +194,8 @@
In Cluster Tomatoes
True
-
-
+
+
@@ -206,8 +206,8 @@
True
2100001000004
-
-
+
+
@@ -217,8 +217,8 @@
Red Pepper
True
-
-
+
+
@@ -227,8 +227,8 @@
Green Peppers
True
-
-
+
+
@@ -237,8 +237,8 @@
Yellow Peppers
True
-
-
+
+
@@ -247,8 +247,8 @@
Leeks
True
-
-
+
+
@@ -257,8 +257,8 @@
Zucchini
True
-
-
+
+
diff --git a/addons/point_of_sale/security/ir.model.access.csv b/addons/point_of_sale/security/ir.model.access.csv
index cf767d1962f..15a855c44f7 100644
--- a/addons/point_of_sale/security/ir.model.access.csv
+++ b/addons/point_of_sale/security/ir.model.access.csv
@@ -22,7 +22,7 @@ access_product_product_supplierinfo_user,product.supplierinfo user,product.model
access_product_product_packaging_user,product.packaging user,product.model_product_packaging,group_pos_user,1,0,0,0
access_stock_warehouse_manager,stock.warehouse manager,stock.model_stock_warehouse,group_pos_manager,1,0,0,0
access_stock_location_manager,stock.location manager,stock.model_stock_location,group_pos_manager,1,0,0,0
-access_product_uom_manager,product.uom manager,product.model_product_uom,group_pos_manager,1,1,1,1
+access_product_uom_manager,product.uom manager,uom.model_product_uom,group_pos_manager,1,1,1,1
access_product_category_manager,product.category manager,product.model_product_category,group_pos_manager,1,1,1,1
access_product_pricelist_manager,product.pricelist manager,product.model_product_pricelist,group_pos_manager,1,1,1,1
access_product_pricelist_user,product.pricelist user,product.model_product_pricelist,group_pos_user,1,0,0,0
diff --git a/addons/point_of_sale/views/product_view.xml b/addons/point_of_sale/views/product_view.xml
index 8c9349f2fd8..c3901616c5b 100644
--- a/addons/point_of_sale/views/product_view.xml
+++ b/addons/point_of_sale/views/product_view.xml
@@ -85,7 +85,7 @@
product.uom.categ.form.inherit
product.uom.categ
-
+
diff --git a/addons/product/__manifest__.py b/addons/product/__manifest__.py
index 4f4595ddf7a..92637cd5a07 100644
--- a/addons/product/__manifest__.py
+++ b/addons/product/__manifest__.py
@@ -5,7 +5,7 @@
'name': 'Products & Pricelists',
'version': '1.2',
'category': 'Sales',
- 'depends': ['base', 'decimal_precision', 'mail'],
+ 'depends': ['base', 'decimal_precision', 'mail', 'uom'],
'description': """
This is the base module for managing products and pricelists in Odoo.
========================================================================
@@ -33,7 +33,6 @@ Print product labels with barcode.
'wizard/product_price_list_views.xml',
'views/res_config_settings_views.xml',
'views/product_attribute_views.xml',
- 'views/product_uom_views.xml',
'views/product_views.xml',
'views/product_template_views.xml',
'views/product_pricelist_views.xml',
diff --git a/addons/product/data/product_data.xml b/addons/product/data/product_data.xml
index 59f5cfb406f..68e64b39e89 100644
--- a/addons/product/data/product_data.xml
+++ b/addons/product/data/product_data.xml
@@ -13,25 +13,6 @@
Expenses
-
-
- Unit
-
-
- Weight
-
-
- Working Time
-
-
- Length / Distance
-
-
- Volume
-
-
@@ -53,125 +34,6 @@
-
-
-
- Unit(s)
-
-
-
-
-
- Dozen(s)
-
- bigger
-
-
-
- kg
-
-
-
-
-
- g
-
- smaller
-
-
- Hour(s)
-
-
- smaller
-
-
- Day(s)
-
-
-
-
-
-
- t
-
- bigger
-
-
-
- m
-
-
-
-
- km
-
- bigger
-
-
-
- cm
-
- smaller
-
-
- Liter(s)
-
- 1.0
-
-
-
-
- lb(s)
-
- 2.20462
- smaller
-
-
- oz(s)
-
- 35.274
- smaller
-
-
- inch(es)
-
- 39.3701
- smaller
-
-
-
- mile(s)
-
-
- bigger
-
-
- fl oz
-
- 33.814
- smaller
-
-
- qt
-
- 1.05669
- smaller
-
-
- gal(s)
-
-
- bigger
-
-
-
+
+
+ Unit
+
+
+ Weight
+
+
+ Working Time
+
+
+ Length / Distance
+
+
+ Volume
+
+
+
+
+ Unit(s)
+
+
+
+
+
+ Dozen(s)
+
+ bigger
+
+
+
+ kg
+
+
+
+
+
+ g
+
+ smaller
+
+
+ Hour(s)
+
+
+ smaller
+
+
+ Day(s)
+
+
+
+
+
+
+ t
+
+ bigger
+
+
+
+ m
+
+
+
+
+ km
+
+ bigger
+
+
+
+ cm
+
+ smaller
+
+
+ Liter(s)
+
+ 1.0
+
+
+
+
+ lb(s)
+
+ 2.20462
+ smaller
+
+
+ oz(s)
+
+ 35.274
+ smaller
+
+
+ inch(es)
+
+ 39.3701
+ smaller
+
+
+
+ mile(s)
+
+
+ bigger
+
+
+ fl oz
+
+ 33.814
+ smaller
+
+
+ qt
+
+ 1.05669
+ smaller
+
+
+ gal(s)
+
+
+ bigger
+
+
+
diff --git a/addons/uom/models/__init__.py b/addons/uom/models/__init__.py
new file mode 100644
index 00000000000..238537db2e6
--- /dev/null
+++ b/addons/uom/models/__init__.py
@@ -0,0 +1,5 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+# flake8: noqa: F401
+from . import uom_uom
\ No newline at end of file
diff --git a/addons/product/models/product_uom.py b/addons/uom/models/uom_uom.py
similarity index 100%
rename from addons/product/models/product_uom.py
rename to addons/uom/models/uom_uom.py
diff --git a/addons/uom/security/ir.model.access.csv b/addons/uom/security/ir.model.access.csv
new file mode 100644
index 00000000000..9fb9379cbfd
--- /dev/null
+++ b/addons/uom/security/ir.model.access.csv
@@ -0,0 +1,3 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_product_uom_categ_user,product.uom.categ.user,model_product_uom_categ,base.group_user,1,0,0,0
+access_product_uom_user,product.uom.user,model_product_uom,base.group_user,1,0,0,0
diff --git a/addons/uom/security/uom_security.xml b/addons/uom/security/uom_security.xml
new file mode 100644
index 00000000000..ebfe3e1178d
--- /dev/null
+++ b/addons/uom/security/uom_security.xml
@@ -0,0 +1,9 @@
+
+
+
+
+ Manage Multiple Units of Measure
+
+
+
+
diff --git a/addons/uom/tests/__init__.py b/addons/uom/tests/__init__.py
new file mode 100644
index 00000000000..088d25a1855
--- /dev/null
+++ b/addons/uom/tests/__init__.py
@@ -0,0 +1,4 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from . import test_uom
diff --git a/addons/product/tests/test_uom.py b/addons/uom/tests/test_uom.py
similarity index 82%
rename from addons/product/tests/test_uom.py
rename to addons/uom/tests/test_uom.py
index 03fb0cbae56..9d583cf399f 100644
--- a/addons/product/tests/test_uom.py
+++ b/addons/uom/tests/test_uom.py
@@ -8,12 +8,12 @@ class TestUom(TransactionCase):
def setUp(self):
super(TestUom, self).setUp()
- self.uom_gram = self.env.ref('product.product_uom_gram')
- self.uom_kgm = self.env.ref('product.product_uom_kgm')
- self.uom_ton = self.env.ref('product.product_uom_ton')
- self.uom_unit = self.env.ref('product.product_uom_unit')
- self.uom_dozen = self.env.ref('product.product_uom_dozen')
- self.categ_unit_id = self.ref('product.product_uom_categ_unit')
+ self.uom_gram = self.env.ref('uom.product_uom_gram')
+ self.uom_kgm = self.env.ref('uom.product_uom_kgm')
+ self.uom_ton = self.env.ref('uom.product_uom_ton')
+ self.uom_unit = self.env.ref('uom.product_uom_unit')
+ self.uom_dozen = self.env.ref('uom.product_uom_dozen')
+ self.categ_unit_id = self.ref('uom.product_uom_categ_unit')
def test_10_conversion(self):
qty = self.uom_gram._compute_quantity(1020000, self.uom_ton)
diff --git a/addons/product/views/product_uom_views.xml b/addons/uom/views/uom_uom_views.xml
similarity index 100%
rename from addons/product/views/product_uom_views.xml
rename to addons/uom/views/uom_uom_views.xml
diff --git a/addons/website_quote/data/website_quote_demo.xml b/addons/website_quote/data/website_quote_demo.xml
index 6f738821e9e..b4cf1cd5042 100644
--- a/addons/website_quote/data/website_quote_demo.xml
+++ b/addons/website_quote/data/website_quote_demo.xml
@@ -6,8 +6,8 @@
50000.0
750000.0
service
-
-
+
+
Learn directly from our team and network of Odoo experts. Choose from the available training sessions for a better functional understanding of Odoo
@@ -22,8 +22,8 @@
50000.0
0.0
service
-
-
+
+
Learn directly from our team and network of Odoo experts. Choose from the available training sessions for a better technical understanding of Odoo
@@ -38,8 +38,8 @@
50000.0
750000.0
service
-
-
+
+
Learn directly from our team and network of Odoo experts. Choose from the available training sessions for a better functional understanding of Odoo
@@ -140,7 +140,7 @@
Functional Training
1
-
+
12950.00
10.00
@@ -185,7 +185,7 @@
Technical Training
1
-
+
00.00
@@ -313,7 +313,7 @@
Advanced CRM Functional
1
-
+
9000.00
10
diff --git a/addons/website_quote/views/sale_order_views.xml b/addons/website_quote/views/sale_order_views.xml
index 5baae5ee8ff..ba9df11b65d 100644
--- a/addons/website_quote/views/sale_order_views.xml
+++ b/addons/website_quote/views/sale_order_views.xml
@@ -20,7 +20,7 @@
-
+
diff --git a/addons/website_quote/views/sale_quote_views.xml b/addons/website_quote/views/sale_quote_views.xml
index 98b1a1c8c33..5750dc207c3 100644
--- a/addons/website_quote/views/sale_quote_views.xml
+++ b/addons/website_quote/views/sale_quote_views.xml
@@ -71,7 +71,7 @@
-
+
@@ -85,7 +85,7 @@
-
+
diff --git a/addons/website_sale/data/demo.xml b/addons/website_sale/data/demo.xml
index ae9effea820..80401d1095c 100644
--- a/addons/website_sale/data/demo.xml
+++ b/addons/website_sale/data/demo.xml
@@ -794,7 +794,7 @@ Weight: 31 grams
iPad Mini
1
-
+
599.0
@@ -815,7 +815,7 @@ Weight: 31 grams
iPad Retina Display
1
-
+
900
@@ -836,7 +836,7 @@ Weight: 31 grams
iPad Retina Display
1
-
+
750
@@ -857,7 +857,7 @@ Weight: 31 grams
iMac
1
-
+
1199.0
@@ -878,7 +878,7 @@ Weight: 31 grams
iPad Retina Display
3
-
+
349.0
@@ -899,7 +899,7 @@ Weight: 31 grams
iMac
1
-
+
1599.00
@@ -920,7 +920,7 @@ Weight: 31 grams
iMac
1
-
+
1349.00
@@ -941,7 +941,7 @@ Weight: 31 grams
iMac
1
-
+
1799.00
@@ -960,7 +960,7 @@ Weight: 31 grams
Laptop E5023
1
-
+
2950.00
@@ -969,7 +969,7 @@ Weight: 31 grams
Mouse, Wireless
1
-
+
12.50
@@ -989,7 +989,7 @@ Weight: 31 grams
iPod
2
-
+
16.50
@@ -1009,7 +1009,7 @@ Weight: 31 grams
Apple Wireless Keyboard
1
-
+
47.0
@@ -1031,7 +1031,7 @@ Weight: 31 grams
iMac
1
-
+
1799.0
@@ -1067,7 +1067,7 @@ Weight: 31 grams
Computer Case
1
-
+
25.0
diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml
index 7fc07f0a706..cae42a8416d 100644
--- a/addons/website_sale/views/templates.xml
+++ b/addons/website_sale/views/templates.xml
@@ -1414,7 +1414,7 @@
-
+
diff --git a/addons/website_sale_options/data/product_demo.xml b/addons/website_sale_options/data/product_demo.xml
index 2fc1ca747fc..28cbd339691 100644
--- a/addons/website_sale_options/data/product_demo.xml
+++ b/addons/website_sale_options/data/product_demo.xml
@@ -23,8 +23,8 @@
100
service
-
-
+
+
Warranty, issued to the purchaser of an article by its manufacturer, promising to repair or replace it if necessary within a specified period of time.
W0001