> > I do not understand. What are you calling "commissions"? > The fields 'commissions' in the 'account.invoice.line' model. On one side we have in the commission module, in the invoice.py file; there is the 'def cancel' function of the invoice model. There, the commissions associated with an invoice/invoice_line are removed if not setted the 'from_commissions' field or created the the cancel commissions if the 'from_commissions' is set. And on the other in the same model, there is the 'def _credit' function that sets the agent of the new credit invoice, so this will create the new credit commissions when the credit invoice will be posted. If you create the credit invoice throw the wizard and set it to 'with_refund', Tryton will leave the commission inconsistent, so create new credit commissions when create the credit invoice, but in the "original" invoice or remove the existent commissions or create a cancel commissions twice.
|2021-10-11 12:50:30||bernatnan||set||recipients: + ced|
|2021-10-11 12:50:30||bernatnan||link||issue10845 messages|
Showing 10 items. Show all history (warning: this could be VERY long)