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.
Am building a module to generate a report. Please, how can I extend pos order line table by adding additional field to the table?
Secondly, how can i export product cost price from product template to the new field in pos order line table base on ordered product?
Thanks in advance
Below code will add a field in pos.order.line
<record id="pos_inherited" model="ir.ui.view">
<field name="name">POs view</field>
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@string='Products']/field[@name='lines']/tree[@string='Order lines']/field[@name='price_subtotal_incl']" position="after">
ur_field=fields.Char('My New Line field')
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: 4/8/16, 3:20 AM|
|Seen: 480 times|
|Last updated: 4/8/16, 6:35 AM|