summaryrefslogtreecommitdiff
path: root/addons/account_check_printing/models
diff options
context:
space:
mode:
authorRavi Gohil <rgo@odoo.com>2020-03-24 06:23:07 +0000
committerRavi Gohil <rgo@odoo.com>2020-03-24 06:51:22 +0000
commitd2bd6d69d647777fffe51c22cbb324e6d27a950f (patch)
treeb93922ddda29752723c2f0c20cc3b43e0ebfafa2 /addons/account_check_printing/models
parentfd9b2590261e6caf4a8952d17db6e1ca06778140 (diff)
[IMP] account{_check_printing}: Added 'Country Code' field
Many localization modules adds field 'l10n_xx_country_code' on Company/Settings views with the purpose of using it to hide that particular localization's fields from other country's users. So, it is better to add a common field in account module so that other localization can use that field instead of adding a new one where ever it is required. Also, one such field was already added from account_check_printing module, so we removed it from there as it is not needed anymore. Task: 2049977 Closes: #35755 Related: odoo/enterprise#5158
Diffstat (limited to 'addons/account_check_printing/models')
-rw-r--r--addons/account_check_printing/models/res_config_settings.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/account_check_printing/models/res_config_settings.py b/addons/account_check_printing/models/res_config_settings.py
index 159498ac67e..2e7b9e2ea7f 100644
--- a/addons/account_check_printing/models/res_config_settings.py
+++ b/addons/account_check_printing/models/res_config_settings.py
@@ -7,7 +7,6 @@ from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
- country_code = fields.Char(string="Company Country code", related='company_id.country_id.code', readonly=True)
account_check_printing_layout = fields.Selection(related='company_id.account_check_printing_layout', string="Check Layout", readonly=False,
help="Select the format corresponding to the check paper you will be printing your checks on.\n"
"In order to disable the printing feature, select 'None'.")