diff options
| author | Ravi Gohil <rgo@odoo.com> | 2020-03-24 06:28:24 +0000 |
|---|---|---|
| committer | Ravi Gohil <rgo@odoo.com> | 2020-03-24 06:59:35 +0000 |
| commit | b4f0e758eb5bd38e04b3ed7637082f2f786f70af (patch) | |
| tree | 94ad9dc99898aad966ee760769accd981fed55ce /addons/l10n_in/models | |
| parent | d2bd6d69d647777fffe51c22cbb324e6d27a950f (diff) | |
[IMP] l10n_xx: hide country specific fields from company/settings view
There are few fields added on settings and on company form view
by various l10n modules which are meant for particular country's
user and are of no use to others. Such fields should be hidden
from unrelated users. With this commit, it will be the case.
closes odoo/odoo#35755
Task: 2049977
Closes: #35755
Related: odoo/enterprise#5158
Related: odoo/enterprise#5158
Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons/l10n_in/models')
| -rw-r--r-- | addons/l10n_in/models/res_config_settings.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/l10n_in/models/res_config_settings.py b/addons/l10n_in/models/res_config_settings.py index eb813ff1960..11a58d953fa 100644 --- a/addons/l10n_in/models/res_config_settings.py +++ b/addons/l10n_in/models/res_config_settings.py @@ -7,9 +7,4 @@ from odoo import api, fields, models class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' - show_module_l10n_in = fields.Boolean(compute='_compute_show_module_l10n_in') group_l10n_in_reseller = fields.Boolean(implied_group='l10n_in.group_l10n_in_reseller', string="Manage Reseller(E-Commerce)") - - @api.depends('company_id') - def _compute_show_module_l10n_in(self): - self.show_module_l10n_in = self.company_id.country_id.code == 'IN' |
