Does anyone here knows how to add a field in move_lines(one2many to stock.move) under stock.picking.in? I xpath stock.picking and stock.picking in but it does not display. Anyone Please help.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Here is my xml... stock.move already have price_unit and I want to display it in move_lines
<record id="view_move_picking_form2" model="ir.ui.view">
<field name="name">stock.picking.form2</field>
<field name="model">stock.picking</field>
<field eval="100" name="priority" />
<field name="inherit" ref="stock.view_picking_form" />
<field name="arch" type="xml">
<xpath expr="//page/field[@name='move_lines']" position="replace">
<field name="move_lines">
<tree string="Stock Moves">
<field name="product_id" />
<field name="product_qty"
on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
sum="Amount" />
<field name="price_unit" />
<field name="product_uom" string="Unit of Measure" groups="product.group_uom" />
<field name="date" />
<field name="prodlot_id" />
<field name="location_id" groups="stock.group_locations" />
<field name="location_dest_id" groups="stock.group_locations" />
<field name="state" />
</tree>
</field>
</xpath>
</field>
</record>
<record id="view_move_picking_in_form2" model="ir.ui.view">
<field name="name">stock.picking.in.form2</field>
<field name="model">stock.picking.in</field>
<field eval="100" name="priority" />
<field name="inherit" ref="stock.view_picking_in_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='move_lines']" position="replace">
<field name="move_lines">
<tree string="Stock Moves">
<field name="product_id" />
<field name="product_qty"
on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
sum="Amount" />
<field name="product_uom" string="Unit of Measure" groups="product.group_uom" />
<field name="price_unit" />
<field name="date" />
<field name="prodlot_id" />
<field name="location_id" groups="stock.group_locations" />
<field name="location_dest_id" groups="stock.group_locations" />
<field name="state" />
</tree>
</field>
</xpath>
</field>
</record>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
share your xml and python code here