跳至内容
菜单
此问题已终结
1 回复
5780 查看

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>

形象
丢弃
最佳答案

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.

形象
丢弃
相关帖文 回复 查看 活动
2
5月 24
6067
2
7月 17
7072
1
1月 16
3325
0
9月 15
3731
0
8月 15
4252