Skip to Content
Menu
This question has been flagged
1 Reply
947 Views

Good morning can anyone help mùe im new in odoo devMy first xml code ( i have searched same issue i get )

xml version="1.0" encoding="utf-8" ?>

id="wamia_product_template_only_form_view" model="ir.ui.view">
name="name">wamia.product.template
name="model">product.template
name="inherit_id" ref="product.product_template_only_form_view"/>
name="arch" type="xml"/>
expr="//field[@name='categ_id']" position="after">
name="calories"/>



Avatar
Discard
Best Answer

Hi,

Can you try re-write your code like below

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="wamia_product_template_only_form_view" model="ir.ui.view">
<field name="name">wamia.product.template</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='categ_id']" position="after">
<field name="field_name" string="string"/>
</xpath>
</field>
</record>
</odoo>

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
3117
1
Dec 24
344
4
Nov 24
1362
1
Sep 24
1132
1
Sep 24
1198