This question has been flagged
1 Reply
771 Views

Hi,

I get this error when I try to update my custom module. When i delete it first and than reinstall the module the error does not appear. Any ideas how I can fix this? Can the data sequence in my manifest be the problem or any other ideas? 

This is the error



This is my manifest

{
'name': "Vupa_custom_fields",
'depends': ['base', 'sale',],
'category': 'Sales/CRM',
'summary': 'Custom fields',
'sequence': 42,
'installable': True,
'application': False,
'license': 'LGPL-3',
'data': [
'views/res_partner.xml',
'views/sale_order.xml',
'data/klantnummer_sequence.xml',
'report/report.xml',
'report/noodverlichting.xml' 
]
}


This is my view



Avatar
Discard
Best Answer

Hi,

Instead of creating 4 different record, you can try like this

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


    <field name="name">Uitvoeradres</field>


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


    <field name="inherit_id" ref="sale_subscription.sale_subscription_order_view_form" />


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


    <xpath expr="//field [@name='partner_id']" position="after">


        <field name="uitvoeradres" placeholder="Uitvoeradres"/>


        <field name="contractnummer" placeholder="Contractnummer"/>


        <field name="verwittig"/>


        <field name="attest"/>


    </xpath>


    </field>


</record>


Regards

Avatar
Discard