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

MRP Cost #19

Open
gr22 opened this issue Sep 16, 2018 · 0 comments
Open

MRP Cost #19

gr22 opened this issue Sep 16, 2018 · 0 comments

Comments

@gr22
Copy link

gr22 commented Sep 16, 2018

I see that the module updates the ''price_unit'' field of stock_move. I would say it will be more correct to update the "cost" field in stock_quant. I have customized MRP updating "cost" during post_inventory and so my stock valuation is correct for manufactured products (instead of 0) and as soon as they are consumed Odoo updates the cost price of the product automatically.


for quant in move.quant_ids:
                    cost =...  # our calculation here
                    quant.write({'cost':cost})
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