Skip to content
Extraits de code Groupes Projets
Valider 0f5d3888 rédigé par Hugo Trentesaux's avatar Hugo Trentesaux
Parcourir les fichiers

constrain partner domain to cooperatives

parent 273b9b6e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -7,6 +7,8 @@ from odoo import fields, models ...@@ -7,6 +7,8 @@ from odoo import fields, models
class Lead(models.Model): class Lead(models.Model):
_inherit = "crm.lead" _inherit = "crm.lead"
partner_id = fields.Many2one(domain=[("is_cooperative", "=", True)])
mucs_type = fields.Selection( mucs_type = fields.Selection(
selection=[ selection=[
('proposition', 'Proposition'), ('proposition', 'Proposition'),
......
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