mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] addon l10n_fr_siret : fix search args in _get_partner_change
This commit is contained in:
@@ -28,16 +28,17 @@ class res_company(orm.Model):
|
||||
|
||||
def _get_partner_change(self, cr, uid, ids, context=None):
|
||||
return self.pool.get('res.partner').search(
|
||||
cr, uid, [('partner_id', 'in', ids)], context=context)
|
||||
cr, uid, [('id', 'in', ids)], context=context)
|
||||
|
||||
_columns = {
|
||||
'siret': fields.related(
|
||||
'partner_id', 'siret', type='char', store={
|
||||
'partner_id', 'siret', type='char', string='SIRET', store={
|
||||
'res.partner': (_get_partner_change, ['siren', 'nic'], 20),
|
||||
'res.company': (lambda self, cr, uid, ids, c={}:
|
||||
ids, ['partner_id'], 20), }),
|
||||
'company_registry': fields.related(
|
||||
'partner_id', 'company_registry', type='char', store={
|
||||
'partner_id', 'company_registry', type='char',
|
||||
string='Company Registry', store={
|
||||
'res.partner': (_get_partner_change, ['company_registry'], 20),
|
||||
'res.company': (lambda self, cr, uid, ids, c={}:
|
||||
ids, ['partner_id'], 20), })
|
||||
|
||||
Reference in New Issue
Block a user