Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
9510 Widoki

Add the Ship field as a drop down list field of the Ship object to the order lines next to quantity

i tried this code but it gives an error

** ParseError: "ValidateError

Field(s) `arch` failed against a constraint: Invalid view definition

Error details:

Field `origin` does not exist

**

<record model="ir.ui.view" id="ship_orderline">

<field name="model">sale.order.line</field>

<field name="name">sale.tree.orderline</field>

<field name="inherit_id" ref="sale.view_order_form"/>

<field name="arch" type="xml">

<xpath expr="//field[@name='order_line']/tree/field[@name='product_uom_qty']" position="before">

<field name="ship"/>

</xpath>

</field>

</record>

Awatar
Odrzuć
Najlepsza odpowiedź

Hi ,

try it this one 

<xpath expr="//notebook/page/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='product_uom_qty']" position="before">

<field name="ship"/>

</xpath>

Awatar
Odrzuć
Najlepsza odpowiedź

Hi sreejith,

Here all things seems perfect. if you don't added 'sale' module in depends then add it.

Awatar
Odrzuć
Najlepsza odpowiedź

Your model should be 'sale.order' not a 'sale.order.line' and make sure view id should bu unique

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 25
1376
0
lis 24
1562
0
cze 24
1602
1
cze 24
2118
0
paź 23
2149