From e2a44d68ae6abc82fe6b0361de8452aafdcdfa05 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Wed, 20 Sep 2017 09:57:02 +0200 Subject: [PATCH] Add help text issue6729 review38581002 --- configuration.py | 1 + party.py | 1 + sale.py | 1 + 3 files changed, 3 insertions(+) diff --git a/configuration.py b/configuration.py index 63ce486771..5703f823a8 100644 --- a/configuration.py +++ b/configuration.py @@ -14,6 +14,7 @@ class Configuration(CompanyMultiValueMixin): __name__ = 'sale.configuration' sale_price_list = fields.MultiValue(fields.Many2One( 'product.price_list', "Sale Price List", + help="The default price list for new parties.", domain=[ ('company', '=', Eval('context', {}).get('company', -1)), ], diff --git a/party.py b/party.py index 0d427076b4..d7f935cea1 100644 --- a/party.py +++ b/party.py @@ -16,6 +16,7 @@ class Party(CompanyMultiValueMixin): __name__ = 'party.party' sale_price_list = fields.MultiValue(fields.Many2One( 'product.price_list', "Sale Price List", + help="The default price list for new sales.", domain=[ ('company', '=', Eval('context', {}).get('company', -1)), ], diff --git a/sale.py b/sale.py index b580cd3ffe..e30eaaf654 100644 --- a/sale.py +++ b/sale.py @@ -11,6 +11,7 @@ class Sale: __metaclass__ = PoolMeta __name__ = 'sale.sale' price_list = fields.Many2One('product.price_list', 'Price List', + help="Use to compute the unit price of lines.", domain=[('company', '=', Eval('company'))], states={ 'readonly': Or(Not(Equal(Eval('state'), 'draft')),