Skip to content
Snippets Groups Projects
Commit ac3359e9 authored by jordan's avatar jordan
Browse files

[fix] change meta type in "FAD" for "Facture adhésion"

parent 3aac9684
No related branches found
No related tags found
No related merge requests found
# © 2021 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import base64
from odoo import models, api
......@@ -77,22 +76,21 @@ class ScopAlfrescoAdhesionPartner(models.Model):
folder_coop = self.partner_id.create_cmis_folder()
else:
folder_coop = self.partner_id.partner_cmis_folder
# Create & store invoice
# Create & store Facture d'adhésion
invoice_file = self.env.ref('account.account_invoices'). \
render_qweb_pdf(res.id)[0]
# TODO: add correct type
self.push_alfresco_file(
file=invoice_file,
name="Facture d'Adhésion",
partner=self,
type='DAD',
type='FAD',
folder=folder_coop)
# Create & store official doc
# Create & store Courrier adhésion
report_adhesion = self.env.ref(
'cgscop_adhesion.cgscop_adhesion_report'). \
render_qweb_pdf(self.id)[0]
#TODO: add correct type
self.push_alfresco_file(
file=report_adhesion,
name="Courrier d'Adhésion.pdf",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment