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.
We are on Odoo 8. In Warehouse->Inventory Control->Inventory Adjustements
The view is stock.view_inventory_form at this place.
Is it possible to display prices and values for each inventory line there?
My solution (with current cost price, not history):
_inherit = 'stock.inventory.line'
self.value = self.price * self.product_qty
price = fields.Float(string='Cost price',related='product_id.standard_price',radonly=True,company_dependent=True)
value = fields.Float(string='Value',compute='_get_value')
unfortunately company_dependent=True - see issue https://github.com/odoo/odoo/issues/9450
In the view :
<record id="view_inventory_form_inherit_pt" model="ir.ui.view">
<field name="inherit_id" ref="stock.view_inventory_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='theoretical_qty']" position="after">
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 1/17/16, 1:55 PM|
|Seen: 663 times|
|Last updated: 1/18/16, 8:15 AM|