mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_chart_update: black, isort
This commit is contained in:
committed by
Luis J. Salvatierra
parent
14ff14c635
commit
2e7396b485
@@ -5,15 +5,15 @@ from odoo import models
|
||||
|
||||
|
||||
class IrModelFields(models.Model):
|
||||
_inherit = 'ir.model.fields'
|
||||
_inherit = "ir.model.fields"
|
||||
|
||||
def name_get(self):
|
||||
"""Return special label when showing fields in chart update wizard."""
|
||||
if self.env.context.get('account_chart_update'):
|
||||
if self.env.context.get("account_chart_update"):
|
||||
res = []
|
||||
for record in self:
|
||||
res.append((record.id, "%s (%s)" % (
|
||||
record.field_description, record.name,
|
||||
)))
|
||||
res.append(
|
||||
(record.id, "{} ({})".format(record.field_description, record.name))
|
||||
)
|
||||
return res
|
||||
return super(IrModelFields, self).name_get()
|
||||
|
||||
Reference in New Issue
Block a user