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

[update] id views

parent 6db2b5c4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -311,10 +311,12 @@ class ScopCotisation(models.Model):
return invoice_view
def cotiz_view(self):
tree_id = self.env.ref('account.invoice_tree_with_onboarding').id
from_id = self.env.ref('account.invoice_form').id
tree_id = self.env.ref(
'cgscop_cotisation.invoice_tree_scop_inherited').id
from_id = self.env.ref(
'cgscop_cotisation.invoice_form_scop_inherited').id
search_id = (self.env.ref(
'cgscop_cotisation.view_account_invoice_cotiz_search').id,
'cgscop_cotisation.invoice_search_scop_inherited').id,
'view_account_invoice_cotiz_search')
return {
'name': "Appels de cotisation " + str(self.year),
......@@ -337,10 +339,12 @@ class ScopCotisation(models.Model):
}
def bordereaux_view(self):
tree_id = self.env.ref('account.invoice_tree_with_onboarding').id
from_id = self.env.ref('account.invoice_form').id
tree_id = self.env.ref(
'cgscop_cotisation.invoice_tree_scop_inherited').id
from_id = self.env.ref(
'cgscop_cotisation.invoice_form_scop_inherited').id
search_id = (self.env.ref(
'cgscop_cotisation.view_account_invoice_cotiz_search').id,
'cgscop_cotisation.invoice_search_scop_inherited').id,
'view_account_invoice_cotiz_search')
return {
'name': "Bordereaux de cotisation " + str(self.year),
......
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