Skip to content

Commit

Permalink
[14.0][IMP] custom_p: Context in view.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berezi authored and anajuaristi committed Jan 8, 2025
1 parent 7a26287 commit 32041e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_p/views/sale_order_line_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
<attribute name="optional">hide</attribute>
</field>
<field name="name" position="before">
<field name="product_id" />
<field name="order_partner_id" invisible="1" />
<field
name="product_id"
context="{'partner_id': order_partner_id, 'quantity': product_uom_qty, 'uom':product_uom, 'default_lst_price': price_unit, 'default_description_sale': name}"
/>
<field name="company_id" invisible="1" />
<field name="product_uom_category_id" invisible="1" />
<field name="lot_id" />
Expand Down

0 comments on commit 32041e3

Please sign in to comment.