changeset 814964711e53 in modules/account_fr_chorus:default
details:
https://hg.tryton.org/modules/account_fr_chorus?cmd=changeset;node=814964711e53
description:
Add method to post invoices by batch
issue10054
review333811002
diffstat:
account.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (18 lines):
diff -r dab88fdbf25e -r 814964711e53 account.py
--- a/account.py Sat Dec 19 17:08:43 2020 +0100
+++ b/account.py Sat Feb 27 15:23:46 2021 +0100
@@ -106,12 +106,10 @@
__name__ = 'account.invoice'
@classmethod
- @ModelView.button
- @Workflow.transition('posted')
- def post(cls, invoices):
+ def _post(cls, invoices):
pool = Pool()
InvoiceChorus = pool.get('account.invoice.chorus')
- super(Invoice, cls).post(invoices)
+ super()._post(invoices)
invoices_chorus = []
for invoice in invoices:
if invoice.type == 'out' and invoice.party.chorus: