跳至內容
選單
此問題已被標幟
1 回覆
6009 瀏覽次數

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
6317
2
7月 17
7329
1
1月 16
3522
0
9月 15
3934
0
8月 15
4461