Skip to content

Commit 651d7e1

Browse files
committedOct 30, 2019
[REF] pre-commit l10n_br_base
Signed-off-by: Luis Felipe Mileo <mileo@kmee.com.br>
1 parent b9072cd commit 651d7e1

File tree

4 files changed

+29
-43
lines changed

4 files changed

+29
-43
lines changed
 

‎.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ enable=anomalous-backslash-in-string,
8484
[REPORTS]
8585
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
8686
output-format=colorized
87-
reports=no
87+
reports=no

‎.pylintrc-mandatory

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ enable=anomalous-backslash-in-string,
6262
[REPORTS]
6363
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
6464
output-format=colorized
65-
reports=no
65+
reports=no

‎l10n_br_base/__manifest__.py

+21-26
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,27 @@
1010
"website": "http://odoo-brasil.org",
1111
"version": "12.0.1.0.0",
1212
"depends": ["base", "base_setup", "base_address_city", "base_address_extended"],
13-
'data': [
14-
'security/ir.model.access.csv',
15-
'data/res.city.csv',
16-
'data/res.country.state.csv',
17-
'data/res.bank.csv',
18-
'views/webclient_templates.xml',
19-
'views/res_partner_address_view.xml',
20-
'views/res_config_settings_view.xml',
21-
'data/res_country_data.xml',
22-
'views/res_city_view.xml',
23-
'views/res_bank_view.xml',
24-
'views/res_partner_bank_view.xml',
25-
'views/res_country_view.xml',
26-
'views/res_partner_view.xml',
27-
'views/res_company_view.xml'
13+
"data": [
14+
"security/ir.model.access.csv",
15+
"data/res.city.csv",
16+
"data/res.country.state.csv",
17+
"data/res.bank.csv",
18+
"views/webclient_templates.xml",
19+
"views/res_partner_address_view.xml",
20+
"views/res_config_settings_view.xml",
21+
"data/res_country_data.xml",
22+
"views/res_city_view.xml",
23+
"views/res_bank_view.xml",
24+
"views/res_partner_bank_view.xml",
25+
"views/res_country_view.xml",
26+
"views/res_partner_view.xml",
27+
"views/res_company_view.xml",
2828
],
29-
'demo': [
30-
'demo/l10n_br_base_demo.xml',
31-
'demo/res_partner_demo.xml',
32-
'demo/res_company_demo.xml'
29+
"demo": [
30+
"demo/l10n_br_base_demo.xml",
31+
"demo/res_partner_demo.xml",
32+
"demo/res_company_demo.xml",
3333
],
34-
'installable': True,
35-
'external_dependencies': {
36-
'python': [
37-
'num2words',
38-
'erpbrasil.base',
39-
],
40-
}
34+
"installable": True,
35+
"external_dependencies": {"python": ["num2words", "erpbrasil.base"]},
4136
}

‎l10n_br_base/models/res_country.py

+6-15
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
# Copyright (C) 2009 Renato Lima - Akretion
22
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
33

4-
from odoo import models, fields
4+
from odoo import fields, models
55

66

77
class Country(models.Model):
8-
_inherit = 'res.country'
8+
_inherit = "res.country"
99

10-
bc_code = fields.Char(
11-
string='BC Code',
12-
size=5)
10+
bc_code = fields.Char(string="BC Code", size=5)
1311

14-
ibge_code = fields.Char(
15-
string='IBGE Code',
16-
size=5)
12+
ibge_code = fields.Char(string="IBGE Code", size=5)
1713

18-
siscomex_code = fields.Char(
19-
string='Siscomex Code',
20-
size=4)
14+
siscomex_code = fields.Char(string="Siscomex Code", size=4)
2115

22-
nationality_code = fields.Char(
23-
string='Nationality Code',
24-
size=2,
25-
)
16+
nationality_code = fields.Char(string="Nationality Code", size=2)

0 commit comments

Comments
 (0)
Please sign in to comment.