changeset e8e0e8873222 in modules/commission:default
details: 
https://hg.tryton.org/modules/commission?cmd=changeset;node=e8e0e8873222
description:
        Allow to extend invoice's journal type

        issue5175
        review314451002
diffstat:

 invoice.py |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 2080fa50247b -r e8e0e8873222 invoice.py
--- a/invoice.py        Thu Sep 17 17:18:02 2020 +0200
+++ b/invoice.py        Mon Oct 12 13:02:30 2020 +0200
@@ -24,6 +24,10 @@
         help="The agent who receives a commission for the invoice.")
 
     @classmethod
+    def _journal_types(cls, invoice_type):
+        return super()._journal_types(invoice_type) + ['commission']
+
+    @classmethod
     @ModelView.button
     @Workflow.transition('posted')
     def post(cls, invoices):

Reply via email to