From 64cf0df5e0ca515d52bc7f002c65dd24890de62d Mon Sep 17 00:00:00 2001 From: Arnold Moyaux Date: Mon, 13 May 2019 09:37:40 +0000 Subject: [PATCH] [IMP] stock: label for partner and mts_else_mto Task 1967745 --- addons/stock/models/stock_picking.py | 2 +- addons/stock/models/stock_rule.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index 7a19fe47d2f..0d8ac551c58 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -256,7 +256,7 @@ class Picking(models.Model): readonly=True) partner_id = fields.Many2one( - 'res.partner', 'Partner', + 'res.partner', 'Contact', states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}) company_id = fields.Many2one( 'res.company', 'Company', diff --git a/addons/stock/models/stock_rule.py b/addons/stock/models/stock_rule.py index 32df9ca7a69..b013607f7e2 100644 --- a/addons/stock/models/stock_rule.py +++ b/addons/stock/models/stock_rule.py @@ -45,8 +45,7 @@ class StockRule(models.Model): procure_method = fields.Selection([ ('make_to_stock', 'Take From Stock'), ('make_to_order', 'Trigger Another Rule'), - ('mts_else_mto', 'Take From Stock, if unavailable, Trigger Another Rule')], string='Move Supply Method', - default='make_to_stock', required=True, + ('mts_else_mto', 'Take From Stock, if unavailable, Trigger Another Rule')], string='Supply Method', default='make_to_stock', required=True, help="Take From Stock: the products will be taken from the available stock of the source location.\n" "Trigger Another Rule: the system will try to find a stock rule to bring the products in the source location. The available stock will be ignored.\n" "Take From Stock, if Unavailable, Trigger Another Rule: the products will be taken from the available stock of the source location."