Skip to content
Extraits de code Groupes Projets
Valider b6b7b8f7 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[mig] migration v12 + add closed institution

parent 0c24872a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models from . import models
......
# -*- coding: utf-8 -*-
# © 2018 Le Filament (<https://www.le-filament.com>) # © 2018 Le Filament (<https://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
...@@ -20,7 +18,5 @@ ...@@ -20,7 +18,5 @@
'wizard/wizard_siren.xml', 'wizard/wizard_siren.xml',
'views/res_partner.xml', 'views/res_partner.xml',
], ],
'qweb': [ 'qweb': [],
'static/src/xml/*.xml',
],
} }
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import res_partner from . import res_partner
# -*- coding: utf-8 -*-
# © 2018 Le Filament (<http://www.le-filament.com>) # © 2018 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
......
<?xml version="1.0" encoding="utf-8"?> <?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> <odoo>
<data> <data>
<!-- Client Form View --> <!-- Client Form View -->
......
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import wizard_siren from . import wizard_siren
# -*- coding: utf-8 -*-
# © 2018 Le Filament (<https://www.le-filament.com>) # © 2018 Le Filament (<https://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
...@@ -51,6 +49,9 @@ class SirenWizard(models.TransientModel): ...@@ -51,6 +49,9 @@ class SirenWizard(models.TransientModel):
'effectif': data.get('trancheeffectifsunitelegale', 0), 'effectif': data.get('trancheeffectifsunitelegale', 0),
'ess': (True if data.get('economiesocialesolidaireunitelegale') 'ess': (True if data.get('economiesocialesolidaireunitelegale')
else False), else False),
'etat_etablissement': data.get(
'etatadministratifetablissement',
False),
} }
def get_company_lines(self): def get_company_lines(self):
...@@ -97,6 +98,7 @@ class SirenWizardCompanies(models.TransientModel): ...@@ -97,6 +98,7 @@ class SirenWizardCompanies(models.TransientModel):
effectif = fields.Char("Effectif") effectif = fields.Char("Effectif")
ess = fields.Boolean("ESS", default=False) ess = fields.Boolean("ESS", default=False)
categorie = fields.Char("Catégorie") categorie = fields.Char("Catégorie")
etat_etablissement = fields.Char("Etat établissement")
# Action # Action
@api.multi @api.multi
......
...@@ -14,11 +14,12 @@ ...@@ -14,11 +14,12 @@
<button class="btn btn-sm btn-primary" name="get_company_lines" string="Rechercher" type="object"/> <button class="btn btn-sm btn-primary" name="get_company_lines" string="Rechercher" type="object"/>
</h4> </h4>
<field name="company_lines" readonly="True"> <field name="company_lines" readonly="True">
<tree> <tree decoration-it="etat_etablissement == 'Fermé'" decoration-danger="etat_etablissement == 'Fermé'" >
<field name="name" /> <field name="name" />
<field name="street" /> <field name="street" />
<field name="zip" /> <field name="zip" />
<field name="city" /> <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 ?"/> <button class="btn btn-primary" name="update_partner" string="Sélectionner" type="object" confirm="Valider l'entreprise sélectionnée ?"/>
</tree> </tree>
</field> </field>
...@@ -50,6 +51,7 @@ ...@@ -50,6 +51,7 @@
<field name="lib_ape" /> <field name="lib_ape" />
</group> </group>
<group string="Infos Entreprise"> <group string="Infos Entreprise">
<field name="etat_etablissement" />
<field name="categorie" /> <field name="categorie" />
<field name="date_creation" /> <field name="date_creation" />
<field name="effectif" /> <field name="effectif" />
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter