[FIX] company contacts should have the credit limit of the company they belong to; spotted by Alexis de Lattre.

This commit is contained in:
Raphaël Valyi 2014-07-08 20:41:41 -03:00 committed by Antony Lesuisse
parent 76f6203888
commit b85ac1eb23
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ class res_partner(osv.Model, format_address):
partners that aren't `commercial entities` themselves, and will be
delegated to the parent `commercial entity`. The list is meant to be
extended by inheriting classes. """
return ['vat']
return ['vat', 'credit_limit']
def _commercial_sync_from_company(self, cr, uid, partner, context=None):
""" Handle sync of commercial fields when a new parent commercial entity is set,