When I try to create a reversal from an other model, this module try to open an invoice with the active_id which is the id of the current model and not an account.move id
To Reproduce
Affected versions: 16.0
Steps to reproduce the behavior:
_Bug is identified with an OE module: helpdeskaccount
1.From a helpdesk.ticket, a button 'Refund' is added, which calls the wizard account.move.reversal
Result: Access Error: Due to security restrictions, you are not allowed to access 'Journal Entry' (account.move) records....
Trying to open an account.move with the id of the current helpdesk.ticket
Expected behavior
Only call the specific process when coming from account.move model
Module
l10n_es_aeat_sii_oca
Describe the bug
When I try to create a reversal from an other model, this module try to open an invoice with the active_id which is the id of the current model and not an account.move id
To Reproduce
Affected versions: 16.0
Steps to reproduce the behavior: _Bug is identified with an OE module: helpdeskaccount 1.From a helpdesk.ticket, a button 'Refund' is added, which calls the wizard account.move.reversal
Result: Access Error: Due to security restrictions, you are not allowed to access 'Journal Entry' (account.move) records.... Trying to open an account.move with the id of the current helpdesk.ticket
Expected behavior Only call the specific process when coming from account.move model