[IMP] account_chart_update: black, isort

This commit is contained in:
ernestotejeda
2020-01-08 15:52:03 -05:00
committed by Reyes4711
parent 7412f48c44
commit 63d5714a79
4 changed files with 712 additions and 608 deletions

View File

@@ -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()