Fix xpath expression
This commit is contained in:
1 parent
dd884440c0
commit
72285604e4
2 files changed
+22
-20
No files matched your search
+1
-1
@@ -8,6 +8,6 @@ class Product(OSV):
|
||||
_name = 'product.product'
|
||||
|
||||
locations = fields.One2Many('stock.product.location', 'product',
|
||||
'Locations')
|
||||
'Default Locations')
|
||||
|
||||
Product()
|
||||
+21
-19
@@ -9,27 +9,29 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath expr="/form/notebook/page[@string="Stock"]/field[@="supplier_location"]"
|
||||
<xpath expr="/form/notebook/page[@string="General"]"
|
||||
position="after">
|
||||
<field name="locations" colspan="4">
|
||||
<tree string="Product Locations"
|
||||
sequence="sequence">
|
||||
<field name="warehouse"/>
|
||||
<field name="location"/>
|
||||
<field name="sequence"
|
||||
<page string="Default Locations">
|
||||
<field name="locations" colspan="4">
|
||||
<tree string="Product Locations"
|
||||
sequence="sequence">
|
||||
<field name="warehouse"/>
|
||||
<field name="location"/>
|
||||
<field name="sequence"
|
||||
tree_invisible="1"/>
|
||||
</tree>
|
||||
<form string="Product Location"
|
||||
cursor="warehouse">
|
||||
<label name="sequence"/>
|
||||
<field name="sequence"/>
|
||||
<newline/>
|
||||
<label name="warehouse"/>
|
||||
<field name="warehouse"/>
|
||||
<label name="location"/>
|
||||
<field name="location"/>
|
||||
</form>
|
||||
</field>
|
||||
</tree>
|
||||
<form string="Product Location"
|
||||
cursor="warehouse">
|
||||
<label name="sequence"/>
|
||||
<field name="sequence"/>
|
||||
<newline/>
|
||||
<label name="warehouse"/>
|
||||
<field name="warehouse"/>
|
||||
<label name="location"/>
|
||||
<field name="location"/>
|
||||
</form>
|
||||
</field>
|
||||
</page>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
|
||||
Reference in new issue
Block a user