diff --git a/addons/account/partner.py b/addons/account/partner.py index 2d57effc4f8..cd1126970ed 100644 --- a/addons/account/partner.py +++ b/addons/account/partner.py @@ -79,43 +79,45 @@ class res_partner(osv.osv): 'debit_limit': fields.float('Debit Limit'), 'credit_limit': fields.float('Credit Limit'), 'property_account_payable': fields.property( - 'account.account', - type='many2one', - relation='account.account', - string="Account Payable", - method=True, - view_load=True, - group_name="Accounting Properties", - domain="[('type', '=', 'payable')]", - help="This account will be used, instead of the default one, as the payable account for the current partner"), + 'account.account', + type='many2one', + relation='account.account', + string="Account Payable", + method=True, + view_load=True, + group_name="Accounting Properties", + domain="[('type', '=', 'payable')]", + help="This account will be used, instead of the default one, as the payable account for the current partner", + required=True), 'property_account_receivable': fields.property( - 'account.account', - type='many2one', - relation='account.account', - string="Account Receivable", - method=True, - view_load=True, - group_name="Accounting Properties", - domain="[('type', '=', 'receivable')]", - help="This account will be used, instead of the default one, as the receivable account for the current partner"), + 'account.account', + type='many2one', + relation='account.account', + string="Account Receivable", + method=True, + view_load=True, + group_name="Accounting Properties", + domain="[('type', '=', 'receivable')]", + help="This account will be used, instead of the default one, as the receivable account for the current partner", + required=True), 'property_account_tax': fields.property( - 'account.tax', - type='many2one', - relation='account.tax', - string="Default Tax", - method=True, - view_load=True, - group_name="Accounting Properties", - help="This tax will be used, instead of the default one."), + 'account.tax', + type='many2one', + relation='account.tax', + string="Default Tax", + method=True, + view_load=True, + group_name="Accounting Properties", + help="This tax will be used, instead of the default one."), 'property_payment_term': fields.property( - 'account.payment.term', - type='many2one', - relation='account.payment.term', - string ='Payment Term', - method=True, - view_load=True, - group_name="Accounting Properties", - help="This payment term will be used, instead of the default one, for the current partner"), + 'account.payment.term', + type='many2one', + relation='account.payment.term', + string ='Payment Term', + method=True, + view_load=True, + group_name="Accounting Properties", + help="This payment term will be used, instead of the default one, for the current partner"), 'ref_companies': fields.one2many('res.company', 'partner_id', 'Companies that refers to partner'), }