This question has been flagged
1 Reply
4469 Views

File "/home/odoo/odoo-prod/21odoo/src/odoo/odoo/tools/convert.py", line 612, in _tag_record

    raise Exception("Cannot update missing record %r" % xid)

odoo.tools.convert.ParseError: "Cannot update missing record 'hr_expense.product_product_fixed_cost'" while parsing /home/odoo/odoo-prod/21odoo/src/odoo/addons/sale_expense/data/sale_expense_data.xml:5, near

<record id="hr_expense.product_product_fixed_cost" model="product.product">

            <field name="invoice_policy">delivery</field>

            <field name="expense_policy">cost</field>

        </record>

Avatar
Discard
Best Answer

To resolve this, follow these steps:

1. Goto your database and search record using postgresql query:

SELECT * FROM ir_model_data where name like '%product_product_fixed_cost%'; 

It should give 2 results, if not then there is a problem.

2. delete founded records, here id=79 is example:

Delete from ir_model_data where id=79;

3. Update module 'hr_expense' from the browser.

That would work.

Now, if you again search same records with above SELECT query, this output is understandable.

Note: First try with copy of actual database.

Avatar
Discard