Hello.I would like to move a field for a page to an other page.So i did a postion='replace' then a position='inside'.The replace works bu not the position inside. I don t understand why .Could you explain to me please?
The error code i receive is :
wk_websites_id doesn't exist. But i can do a replace on it so... it exists right?
Here is the xml code i did :
<record model="ir.ui.view" id="product_template_form_view_remove_website">
<field name="priority">100</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="mob_multishop.mob_multishop_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='wk_websites_id']" position="replace"/>
<xpath expr="//page[@name='sales']" position="inside">
<separator string="Product In Websites"/>
<group>
<field name="wk_websites_id" widget="many2many_tags"/>
</group>
</xpath>
</field>
</record>
And here the herited view
mob_multishop.mob_multishop_template_form_view :
<odoo>
<data>
<record id="mob_multishop_template_form_view" model="ir.ui.view">
<field name="name">product.template.form.view.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Websites">
<separator string="Product In Websites"/>
<group>
<field name="wk_websites_id" widget="many2many_tags"/>
</group>
</page>
</notebook>
</field>
</record>
</data>
</odoo>
Thanks a lot