Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2991 Переглядів

hey guys i recently installed hr_expense , i can succfully create an unsubmitted expense but when i try to approve or refuse that expense , this error appears:


the operation cannot be completed, probably due to the following:

 - deletion: you may be trying to delete a record while other records still reference it

- creation/update: a mandatory field is not correctly set [object with reference: name - name]


i also try  to use this with a fresh installed odoo but still this error appears.


also i have this error in odoo log: 


2021-08-01 18:38:46,509 44083 ERROR main_asli odoo.sql_db: bad query: b'INSERT INTO "hr_expense" ("id", "currency_id", "product_uom_id", "payment_mode", "employee_id", "quantity", "date", "company_id", "account_id", "sale_order_id", "analytic_account_id", "sheet_id", "is_refused", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval(\'hr_expense_id_seq\'), 89, 1, \'own_account\', 1, \'1.00\', \'2021-08-01\', 1, NULL, NULL, NULL, 3, false, 1, 1, (now() at time zone \'UTC\'), (now() at time zone \'UTC\')) RETURNING id'

ERROR: null value in column "name" violates not-null constraint

DETAIL: Failing row contains (4, null, 2021-08-01, 1, null, 1, null, 1.00, null, null, 1, 89, null, null, null, own_account, null, 3, null, f, null, 1, 2021-08-01 18:38:46.434484, 1, 2021-08-01 18:38:46.434484, null).

need your assistance.

Аватар
Відмінити

Do you have any customization for expense?

Автор

no, but I defined some custom fields in product form, but I did delete them, same error

Автор

no i did not

Найкраща відповідь

did u missed to fill the name or ref field ?

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
вер. 22
7618
1
серп. 22
5237
3
бер. 21
2352
5
лют. 20
12561
2
лют. 19
3070