How to CALL a function on another model and execute its action?

by

Juan

- 04/13/2016 13:18:07

Hello,

Im developing a module that will internally create one Inventory Adjustment. What I need to achieve is when my module starts (DRAFT state), it will create the Inventory Adjustment and when the user confirms (CONFIRM state) the entry, this module needs to call the stock.inventory ACTION_DONE, so the inventory is processed.

I noted that that ACTION calls the lines it sees inside the view, so not sure how the process works as I want to to it like automatically, so the user dont have to go to the Inventory Adjustment and confirm again.