Skip to Content
Menú
This question has been flagged
1 Respondre
6002 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
2
de maig 24
6309
2
de jul. 17
7319
1
de gen. 16
3515
0
de set. 15
3926
0
d’ag. 15
4457