I am upgrading a module that allows stock Picking From Customer/Supplier Invoice. This is a module downloaded for odoo11-community and i am performing an upgrade to be used in odoo15-enterprise. Undfortunately, but i keep getting the error below:
Traceback (most recent call last):
File "C:\Program Files\odoo-14\server\odoo\http.py", line 643, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files\odoo-14\server\odoo\http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing file:/c:/program files/odoo-14/server/odoo/addons/invoice_stock_move/views/invoice_stock_move_view.xml:4
Error while validating view:
Element '<xpath expr="//field[@name='date_due']">' cannot be located in parent view
View error context:
{'file': 'c:\\program '
'files\\odoo-14\\server\\odoo\\addons\\invoice_stock_move\\views\\invoice_stock_move_view.xml',
'line': 2,
'name': 'Move Name',
'view': ir.ui.view(1053,),
'view.model': 'account.move',
'view.parent': ir.ui.view(545,),
'xmlid': 'customer_invoice_stock_move_view'}
HERE IS MY VIEW FILE
<odoo> <data> <record id="customer_invoice_stock_move_view" model="ir.ui.view"> <field name="name">Move Namefield> <field name="model">account.movefield> <field name="inherit_id" ref="account.view_move_form"/> <field name="arch" type="xml"> <xpath expr="//header" position="inside"> <button name="action_stock_transfer" string="Transfer" type="object" class="oe_highlight" attrs="{'invisible':[('origin', '!=', False)]}"/> xpath> <xpath expr="//field[@name='date_due']" position="after"> <field name="picking_transfer_id"/> <field name="invoice_picking_id" invisible="1"/> xpath> <xpath expr="//field[@name='number']" position="before"> <div class="oe_button_box" name="button_box"> <button type="object" name="action_view_picking" states="open,paid" class="oe_stat_button" attrs="{'invisible':[('origin', '!=', False)]}" icon="fa-truck"> <field name="picking_count" string="Shipment" widget="statinfo"/> button> div> xpath> field> record> <record id="supplier_invoice_stock_move_view" model="ir.ui.view"> <field name="name">Move Namefield> <field name="model">account.movefield> <field name="inherit_id" ref="account.view_move_form"/> <field name="arch" type="xml"> <xpath expr="//header" position="inside"> <button name="action_stock_receive" string="Receive" class="oe_highlight" type="object" attrs="{'invisible':[('origin', '!=', False)]}"/> xpath> <xpath expr="//field[@name='date_due']" position="after"> <field name="picking_type_id"/> <field name="invoice_picking_id" invisible="1"/> xpath> <xpath expr="//field[@name='number']" position="before"> <div class="oe_button_box" name="button_box"> <button type="object" name="action_view_picking" class="oe_stat_button" attrs="{'invisible':[('origin', '!=', False)]}" icon="fa-truck"> <field name="picking_count" string="Shipment" widget="statinfo"/> button> div> xpath> field> record> data> odoo>
Can someone please point me in the right direction.