This question has been flagged
2502 Views

Hi, I'm creating a custom module, which will need to create a stock.move from itself, I know I can inherit the 'stock.move' object


But there are several steps on the original object that I don't need, I just need to transfer 'product_id' 'product_qty' from 'location_id' to 'location_dest_id'


How can I achieve this on Odoov8, I mean in the simplest way possible, I just need to do the transfer from a custom view, with these parameters only, is there some example I should look for?


I've seen this answer on SO: \Custom\ Move\\\

\But\ it\'s\ not\ 100\%\ clear\,\ this\ user\ had\ some\ other\ needs\.\\

Avatar
Discard

Hi, you can call create of any model's object from your method by passing required fields. If you have faced any specific problem please do specify.

Author

Hi, You can check this question: https://www.odoo.com/es_ES/forum/ayuda-1/question/account-move-is-not-being-created-odoo-v8-127051 - It is also a question of mine, regarding this very same subject