|
@ -66,21 +66,21 @@ class AccountingFileWizard(models.TransientModel): |
|
|
total_credit=0 |
|
|
total_credit=0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
donation=self.env['donation.donation'].search([]) |
|
|
|
|
|
for d in donation: |
|
|
|
|
|
d.date_compta=False |
|
|
|
|
|
membership=self.env['kalachakra.membership'].search([]) |
|
|
|
|
|
for m in membership: |
|
|
|
|
|
m.date_compta=False |
|
|
|
|
|
reg=self.env['event.registration'].search([]) |
|
|
|
|
|
for r in reg: |
|
|
|
|
|
r.date_compta=False |
|
|
|
|
|
r.date_compta_down_payment=False |
|
|
|
|
|
invoices=self.env['account.move'].search([]) |
|
|
|
|
|
for i in invoices: |
|
|
|
|
|
i.date_compta_out_refund=False |
|
|
|
|
|
i.date_compta=False |
|
|
|
|
|
return True |
|
|
|
|
|
|
|
|
# donation=self.env['donation.donation'].search([]) |
|
|
|
|
|
# for d in donation: |
|
|
|
|
|
# d.date_compta=False |
|
|
|
|
|
# membership=self.env['kalachakra.membership'].search([]) |
|
|
|
|
|
# for m in membership: |
|
|
|
|
|
# m.date_compta=False |
|
|
|
|
|
# reg=self.env['event.registration'].search([]) |
|
|
|
|
|
# for r in reg: |
|
|
|
|
|
# r.date_compta=False |
|
|
|
|
|
# r.date_compta_down_payment=False |
|
|
|
|
|
# invoices=self.env['account.move'].search([]) |
|
|
|
|
|
# for i in invoices: |
|
|
|
|
|
# i.date_compta_out_refund=False |
|
|
|
|
|
# i.date_compta=False |
|
|
|
|
|
# return True |
|
|
|
|
|
|
|
|
tmstp=secrets.token_hex(16) |
|
|
tmstp=secrets.token_hex(16) |
|
|
filename='/tmp/accounting_file_'+tmstp+'.csv' |
|
|
filename='/tmp/accounting_file_'+tmstp+'.csv' |
|
|