Closed mdemaison closed 2 years ago
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
Hi, juste a littre warn, after odoo11 to 12 migration i got a bug with name_get() method in account_analyticaccount : KeyError: 'nom' (name in french), i remove the trad tags () in the method like this :
if analytic.code: name = '[%(code)s] %(name)s' % { 'code': analytic.code, 'name': name, } if analytic.partner_id: name = '%(name)s - %(partner)s' % { 'name': name, 'partner': analytic.partner_id.commercial_partner_id.name, }
instead of:if analytic.code: name = _('[%(code)s] %(name)s') % { 'code': analytic.code, 'name': name, } if analytic.partner_id: name = _('%(name)s - %(partner)s') % { 'name': name, 'partner': analytic.partner_id.commercial_partner_id.name, }
and it's working. i'm right or it's my database that is not well migrated? thanks