Skip to content
Extraits de code Groupes Projets
Valider 88bc0c28 rédigé par jordan's avatar jordan
Parcourir les fichiers

[add] add multi_compnay_menu

parent 7a841ffb
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -44,3 +44,17 @@ class CotisationsConfigSettings(models.TransientModel):
def _onchange_is_contribution_cg(self):
if not self.is_contribution:
self.is_contribution_cg = False
def execute(self):
"""
Rewrite execute() function to add current company to the list
of available company in ir_ui_menu
"""
res = super(CotisationsConfigSettings, self).execute()
menu_cotiz_cg = self.env.ref(
'cgscop_cotisation_cg.menu_scop_cotisation_calcul')
bool_condition = self.is_contribution_cg
self.add_company_to_menu(menu_cotiz_cg, bool_condition)
return res
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