Browse Source

[IMP] base_country_state_translatable: black, isort, prettier

14.0
dsolanki 4 years ago
parent
commit
1bd542798d
  1. 12
      base_country_state_translatable/__manifest__.py
  2. 2
      base_country_state_translatable/models/res_country.py
  3. 1
      setup/base_country_state_translatable/odoo/addons/base_country_state_translatable
  4. 6
      setup/base_country_state_translatable/setup.py

12
base_country_state_translatable/__manifest__.py

@ -3,12 +3,12 @@
{
"name": "Translate Country States",
"version": "12.0.1.0.0",
"depends": ['base'],
"website": 'https://github.com/OCA/partner-contact',
"version": "14.0.1.0.0",
"depends": ["base"],
"website": "https://github.com/OCA/partner-contact",
"summary": "Translate Country States",
'author': 'initOS GmbH, Odoo Community Association (OCA)',
"author": "initOS GmbH, Odoo Community Association (OCA)",
"category": "Localisation",
'license': 'AGPL-3',
'installable': True,
"license": "AGPL-3",
"installable": True,
}

2
base_country_state_translatable/models/res_country.py

@ -5,6 +5,6 @@ from odoo import fields, models
class CountryState(models.Model):
_inherit = 'res.country.state'
_inherit = "res.country.state"
name = fields.Char(translate=True)

1
setup/base_country_state_translatable/odoo/addons/base_country_state_translatable

@ -0,0 +1 @@
../../../../base_country_state_translatable

6
setup/base_country_state_translatable/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save