Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
2408 Näkymät

Hi we are vahing some problems with the module project, it is a bug that we cant create a new project from the list view

We tried it on a new install with no succes, it is easy to replicate.

-Install project and studio

-Open project and select the views and add the list view.

-Try to create a new project from the list view and the error is whis


The operation cannot be completed: 

- Create/update: a mandatory field is not set. 

- Delete: another model requires the record being deleted. If possible, archive it instead. 

Model: Project (project.project), Field: Name (name)

2022-11-12 20:42:58,875 4737 ERROR apps odoo.sql_db: bad query: INSERT INTO "project_project" ("id", "active", "alias_id", "allow_recurring_tasks", "allow_subtasks", "allow_task_dependencies", "allow_timesheets", "analytic_account_id", "color", "company_id", "create_date", "create_uid", "is_fsm", "label_tasks", "last_update_status", "price_rate", "privacy_visibility", "rating_active", "rating_status", "rating_status_period", "rfi_price_rate", "sequence", "stage_id", "timesheet_product_id", "user_id", "write_date", "write_uid") VALUES (nextval('project_project_id_seq'), true, 86, true, true, true, true, 64, 0, 1, '2022-11-12 20:42:58.846446', 2, false, 'Tasks', 'on_track', 0.0, 'portal', false, 'stage', 'monthly', 0.0, 10, 1, 97, 2, '2022-11-12 20:42:58.846446', 2) RETURNING id

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

DETAIL: Failing row contains (44, null, 86, null, null, null, t, 10, null, null, null, 1, 64, Tasks, 0, 2, portal, null, null, t, t, t, null, f, stage, monthly, 1, null, on_track, 2, 2022-11-12 20:42:58.846446, 2, 2022-11-12 20:42:58.846446, t, f, null, null, null, null, 97, null, null, null, null, null, 0, null, 0).



2022-11-12 20:42:58,880 4737 WARNING apps odoo.http: The operation cannot be completed:

- Create/update: a mandatory field is not set.

- Delete: another model requires the record being deleted. If possible, archive it instead.



Model: Project (project.project), Field: Name (name)

 

Avatar
Hylkää
Tekijä Paras vastaus

The mandatory field that are needed te be save are set on screen, is there some modifications needed to do on the project module?
You could try it, it is replicable, you need studio and project, add the view list with project and try to create a new project on the list view. 

Avatar
Hylkää
Paras vastaus

Hello, 
There are some mandatory field value are not set that's why you're facing this issue.

Kindly, review the project screen. 
Thanks

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
tammik. 25
2475
3
marrask. 24
2070
1
jouluk. 22
3512
1
heinäk. 22
97
1
toukok. 24
1237