diff --git a/__init__.py b/__init__.py index 4218e821ce1c2f518be6fa514fcd39fa7cd1e07a..93aa2c1f84b46bf5c841c4b4526a02d30c6fe128 100644 --- a/__init__.py +++ b/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import models diff --git a/__manifest__.py b/__manifest__.py index 30e5a6a4a2d6568f6a4b05d783ab3071a75c123f..be73e6888a19ce2b3f04641475681c8c31b103d7 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # © 2018 Le Filament (<https://www.le-filament.com>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). @@ -20,7 +18,5 @@ 'wizard/wizard_siren.xml', 'views/res_partner.xml', ], - 'qweb': [ - 'static/src/xml/*.xml', - ], + 'qweb': [], } diff --git a/models/__init__.py b/models/__init__.py index 2d6da8513c0b29ec3e53ff75884c0777097b4279..c6cc3b329891fd73ef05a76005f6d232d28c17d9 100644 --- a/models/__init__.py +++ b/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import res_partner diff --git a/models/res_partner.py b/models/res_partner.py index 34768b2782ec6665f34775aae8f3191a6ce6eb87..94a8c859597595d70099e769254916c2ea68240f 100644 --- a/models/res_partner.py +++ b/models/res_partner.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # © 2018 Le Filament (<http://www.le-filament.com>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/views/res_partner.xml b/views/res_partner.xml index 18de112b33d084e0062122b7a1d1512e03b79929..86fc2904aefead89655b3585c206bcca4e6e98b0 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -1,6 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- Copyright 2018 Le Filament (<https://www.le-filament.com>) - License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> <odoo> <data> <!-- Client Form View --> diff --git a/wizard/__init__.py b/wizard/__init__.py index 5fc4b17bdbe673ce60430ac2bc64e1d4a75e9ffe..1cb9160473fc9fac5cdac3fc92736cdfa3b32da3 100644 --- a/wizard/__init__.py +++ b/wizard/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import wizard_siren diff --git a/wizard/wizard_siren.py b/wizard/wizard_siren.py index da4e03beccf1edd2c328c60974230035051dfb23..a0438aca4f42033091fd27658f78af2ef6485619 100644 --- a/wizard/wizard_siren.py +++ b/wizard/wizard_siren.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # © 2018 Le Filament (<https://www.le-filament.com>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). @@ -51,6 +49,9 @@ class SirenWizard(models.TransientModel): 'effectif': data.get('trancheeffectifsunitelegale', 0), 'ess': (True if data.get('economiesocialesolidaireunitelegale') else False), + 'etat_etablissement': data.get( + 'etatadministratifetablissement', + False), } def get_company_lines(self): @@ -97,6 +98,7 @@ class SirenWizardCompanies(models.TransientModel): effectif = fields.Char("Effectif") ess = fields.Boolean("ESS", default=False) categorie = fields.Char("Catégorie") + etat_etablissement = fields.Char("Etat établissement") # Action @api.multi diff --git a/wizard/wizard_siren.xml b/wizard/wizard_siren.xml index a41598181505a753f27463d6edb613bdede598bf..aa2e0d8032416ea6fc6e83c622dab3a425ad09c8 100644 --- a/wizard/wizard_siren.xml +++ b/wizard/wizard_siren.xml @@ -14,11 +14,12 @@ <button class="btn btn-sm btn-primary" name="get_company_lines" string="Rechercher" type="object"/> </h4> <field name="company_lines" readonly="True"> - <tree> + <tree decoration-it="etat_etablissement == 'Fermé'" decoration-danger="etat_etablissement == 'Fermé'" > <field name="name" /> <field name="street" /> <field name="zip" /> <field name="city" /> + <field name="etat_etablissement" /> <button class="btn btn-primary" name="update_partner" string="Sélectionner" type="object" confirm="Valider l'entreprise sélectionnée ?"/> </tree> </field> @@ -50,6 +51,7 @@ <field name="lib_ape" /> </group> <group string="Infos Entreprise"> + <field name="etat_etablissement" /> <field name="categorie" /> <field name="date_creation" /> <field name="effectif" />