From abcfa38f2cfe6fea16a5138638894e6fc8aa5822 Mon Sep 17 00:00:00 2001 From: Haresh Shyara Date: Mon, 26 Nov 2018 09:42:11 +0000 Subject: [PATCH] [IMP] stock: rename 'Make to Order (MTO)' into 'Replenish on Order (MTO)' --- addons/stock/data/stock_data.xml | 2 +- addons/stock/models/product.py | 2 +- odoo/addons/test_main_flows/static/src/js/tour.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/stock/data/stock_data.xml b/addons/stock/data/stock_data.xml index be5f560d1a1..52ea5baf809 100644 --- a/addons/stock/data/stock_data.xml +++ b/addons/stock/data/stock_data.xml @@ -66,7 +66,7 @@ - Make To Order + Replenish on Order (MTO) 5 diff --git a/addons/stock/models/product.py b/addons/stock/models/product.py index 7963894db71..2f16867a42c 100644 --- a/addons/stock/models/product.py +++ b/addons/stock/models/product.py @@ -443,7 +443,7 @@ class ProductTemplate(models.Model): route_ids = fields.Many2many( 'stock.location.route', 'stock_route_product', 'product_id', 'route_id', 'Routes', domain=[('product_selectable', '=', True)], - help="Depending on the modules installed, this will allow you to define the route of the product: whether it will be bought, manufactured, MTO, etc.") + help="Depending on the modules installed, this will allow you to define the route of the product: whether it will be bought, manufactured, replenished on order, etc.") nbr_reordering_rules = fields.Integer('Reordering Rules', compute='_compute_nbr_reordering_rules') # TDE FIXME: really used ? reordering_min_qty = fields.Float(compute='_compute_nbr_reordering_rules') diff --git a/odoo/addons/test_main_flows/static/src/js/tour.js b/odoo/addons/test_main_flows/static/src/js/tour.js index d79036346b2..4d29ed4e608 100644 --- a/odoo/addons/test_main_flows/static/src/js/tour.js +++ b/odoo/addons/test_main_flows/static/src/js/tour.js @@ -58,8 +58,8 @@ tour.register('main_flow_tour', { content: _t('Uncheck Buy'), position: 'right', }, { - trigger: '.o_field_widget[name=route_ids] .custom-checkbox > label:contains("Make To Order")', - content: _t('Uncheck Make To Order'), + trigger: '.o_field_widget[name=route_ids] .custom-checkbox > label:contains("Replenish on Order (MTO)")', + content: _t('Uncheck Replenish on Order (MTO)'), position: 'right', }, { trigger: '.o_notebook a:contains("General Information")', @@ -114,8 +114,8 @@ tour.register('main_flow_tour', { content: _t('Go to inventory tab'), position: 'top', }, { - trigger: '.o_field_widget[name=route_ids] .custom-checkbox > label:contains("Make To Order")', - content: _t('Check Make To Order'), + trigger: '.o_field_widget[name=route_ids] .custom-checkbox > label:contains("Replenish on Order (MTO)")', + content: _t('Check Replenish on Order (MTO)'), position: 'right', }, { trigger: '.o_notebook a:contains("Purchase")',