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

I've accidentally created a new company via the Project Module by adding a new column in a view sorted by companies.


What is the correct way to completely remove a [newly-created] company? The error I get when attempting to delete is:


The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead.

Model: Project (project.project), Constraint: project_project_company_id_fkey


Also, does anyone know how to disable the creation of new columns in Kanban view (in Studio)? This would safeguard against new companies being created accidentally in the future.


Many thanks for your suggestions!


Konrad

形象
丢弃
编写者 最佳答案

[SOLVED]

In this case, the process required to remove the company which had automatically been added was:

1. Delete the [default] Tasks in the [default] Project created by Odoo for the new company.

2. Delete the [default] Project.

3. Delete the company.

Contrary to what has been stated by Odoo support ("Once a company is created, we will not be able to delete it as dependencies are created in the system.") (sic!), the company was then deleted without errors.

What still remains an open question is how to disable the option to add new columns in a given Kanban view...

K. Br.

形象
丢弃

I am getting the same exact error (Model: Project (project.project), Constraint: project_project_company_id_fkey) but there are no Projects or Tasks in the Projects (project.project) model...at least not in the UI that I can see.... :(

Just kidding -- the project and tasks were archived. Now I"m getting a new error. "The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Picking Type (stock.picking.type), Constraint: stock_picking_type_company_id_fkey"
Sigh...These links/dependencies that Odoo makes you decipher and manually delete yourself instead of doing it automatically for you is such an annoying part of this platform

相关帖文 回复 查看 活动
1
6月 23
5398
0
3月 20
3204
0
3月 15
5375
1
3月 15
3464
0
3月 25
1267