Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5984 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
2
may 24
6282
2
jul 17
7278
1
ene 16
3492
0
sept 15
3877
0
ago 15
4427