Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3446 มุมมอง

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 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มิ.ย. 18
8577
2
ธ.ค. 19
2869
0
พ.ย. 18
3208
2
พ.ย. 23
7416
Can't create view (model not found) แก้ไขแล้ว
2
พ.ค. 23
7640