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

16.0 new document type

parent 38d7e3ab
Branches 16.0
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -21,6 +21,7 @@ class AccContract(models.Model): ...@@ -21,6 +21,7 @@ class AccContract(models.Model):
("convention", "Convention Enedis"), ("convention", "Convention Enedis"),
("pmo", "Adhésion à la PMO"), ("pmo", "Adhésion à la PMO"),
("facture", "Facture importée"), ("facture", "Facture importée"),
("facture_elocoop", "Facture du service Elocoop"),
("all", "Contrat pour tous"), ("all", "Contrat pour tous"),
("other", "Divers"), ("other", "Divers"),
], ],
......
...@@ -23,6 +23,12 @@ ...@@ -23,6 +23,12 @@
string="PMO" string="PMO"
attrs="{'invisible': [('type', 'not in', ('convention', 'pmo'))]}" attrs="{'invisible': [('type', 'not in', ('convention', 'pmo'))]}"
/> />
<field
name="buyer_id"
domain="partner_id_domain"
string="Client"
attrs="{'invisible': [('type', 'not in', ('facture_elocoop'))]}"
/>
<field <field
name="seller_id" name="seller_id"
domain="partner_id_domain" domain="partner_id_domain"
......
...@@ -46,6 +46,12 @@ ...@@ -46,6 +46,12 @@
string="Producteur" string="Producteur"
attrs="{'invisible': [('type', 'not in', ('facture', 'vente_achat'))]}" attrs="{'invisible': [('type', 'not in', ('facture', 'vente_achat'))]}"
/> />
<field
name="buyer_id"
domain="partner_id_domain"
string="Client"
attrs="{'invisible': [('type', 'not in', ('facture_elocoop'))]}"
/>
<field <field
name="buyer_id" name="buyer_id"
domain="partner_id_domain" domain="partner_id_domain"
......
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