Skip to content
Snippets Groups Projects
Commit 62ac2abf authored by Juliana's avatar Juliana
Browse files

[ADD]Add field origin for producer

parent d176397b
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,11 @@ class ResPartner(models.Model):
mail_contact_pmo = fields.Char("Mail du contact PMO")
date_log = fields.Datetime("Date de connexion")
ref_producer = fields.Char("Référence du producteur")
origine = fields.Selection([
("pv", "pv"),
("eo", "éo"),
("hyd", "hyd"),
], string="Origine")
# ------------------------------------------------------
# SQL Constraints
# ------------------------------------------------------
......
......@@ -52,6 +52,7 @@
<field name="type" position="before">
<field name="is_producer" />
<field name="ref_producer" attrs="{'invisible': [('is_producer', '!=', True)]}"/>
<field name="origine" attrs="{'invisible': [('is_producer', '!=', True)]}"/>
<field name="is_consumer" />
<field name="is_pmo" />
<field
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment