Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do the equivalent of pressing the "Transfer" button on a picking via OERPlib? #17

Open
pjmcdermott opened this issue Sep 30, 2015 · 0 comments

Comments

@pjmcdermott
Copy link

I have successfully created sales orders and confirmed them via OERPlib. I now have a set of picking operations and want to do the equivalent of pressing the "Transfer" button using a script.

On a sales order I can press "Confirm Sale" via oerp.execute('sale.order', 'action_button_confirm', [sales_order_id]).

But for a picking it appears to be more involved, as the transfer button pulls up a "Products to Move" screen, which allows for adjustment of the products and quantities moved.

I've tried reading the source code, and I am looking at openerp/addons/stock/wizard/stock_transfer_details.py and the do_detailed_transfer() method. But I am reaching the limit of my abilities to understand the Odoo code, beyond ascertaining that the tables stock_transfer_details, stock_transfer_details_items and possibly stock_picking are involved.

Can anyone help with the exact set of database entries I would need to do to created a correct transfer? I have a list of actually transferred products and quantities for the shipment, so the ability to modify the transfer from that proposed would be useful.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant