Skip to content
Extraits de code Groupes Projets
Valider fc35b48f rédigé par Juliana's avatar Juliana
Parcourir les fichiers

[FIX]Display Contracts depending role

parent 5b7417b5
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -218,7 +218,10 @@ class OperationsService(Component):
domain_pmo = [("acc_operation_id", "=", _id)]
role = self._get_role(operation)
if role.get("isConsumer") or role.get("isProductor"):
domain += [("type", "=", "vente_achat")]
domain += [
("type", "!=", "convention"),
("type", "!=", False),
]
# if role.get("isProductor"):
# domain += [("type", "=", "vente")]
if role.get("isPmo"):
......
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