Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
i created my own module , which will add one2many field to product.product ,this one2many will have 'size' column .
now i created other one2many field in stock.move which has the same column 'size' , i want to subtract the stock.move.size with product.product.size (stock.move.size - product.product.size)
so from the stock.move form how can i update the value of 'size' which is on the product.product
Any help will be appreciated .
You have a couple of options. One is to create a button that call a method to update the product.product's size field based on the current stock.move's data, or you can do it on the stock.move's write.
One quetion that pops into my head is, you'll be creating tens, hundreds, or thousands if not more, stock.move for that particular product, aren't you going to just make it very large negative number? I have a hunch you mean to do something else, maybe if you can state what you intend to do, a better help can be offered.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/20/14, 1:16 AM|
|Seen: 424 times|
|Last updated: 3/16/15, 8:10 AM|