diff options
| author | Meghna Jaswani <mja@odoo.com> | 2019-08-01 09:33:41 +0000 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2019-08-05 14:38:52 +0000 |
| commit | 9b49f0007896549e0dc71de7bd2de5d29ec08dc1 (patch) | |
| tree | 90cc8b6b8e6a749b67ad5dd74e31fb4681c3fbc0 /addons/l10n_multilang | |
| parent | 7593b887dff4fcd474ca72aead6825481b419d86 (diff) | |
[IMP] l10n_multilang: Added translate True on account.tax.report.line
Both the name and the tag_name need to be set as translatable.
As the tag_name is seen by the user for the configuration.
Unlike the financial reports that are linked to multiple countries,
the tax report is linked to just one country. This way it makes sense
to only make it translatable in multilang.
Task: 2042430
closes odoo/odoo#35436
Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons/l10n_multilang')
| -rw-r--r-- | addons/l10n_multilang/models/account.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/l10n_multilang/models/account.py b/addons/l10n_multilang/models/account.py index be7c6b36dab..0c861131692 100644 --- a/addons/l10n_multilang/models/account.py +++ b/addons/l10n_multilang/models/account.py @@ -71,6 +71,13 @@ class AccountAnalyticAccount(models.Model): name = fields.Char(translate=True) +class AccountTaxReportLine(models.Model): + _inherit = 'account.tax.report.line' + + name = fields.Char(translate=True) + tag_name = fields.Char(translate=True) + + class ResCountryState(models.Model): _inherit = 'res.country.state' |
