NeoVe
NeoVe

Reputation: 3897

OpenErp New Module

I can't find anywhere, what is actually a "group name" on OpenErp.

I'm trying to make a new app based on the warehouse management openerp application, but everytime I try to install it, it says

Constraint Error

The name of the group must be unique !

Anyone can shed some light on what this group could be?

Already searched in files for "group" and I've changed some group_ names I found on the original objects by this module, but no success.

Edit:

What I'm trying to achieve with this is to have a copy of the "stock" module in order to edit and test without touching the original stock one.

These are minor changes, like for example field names, delete or adding some fields, etc...

Already changed all the group names and made a fresh new database.

For example I'd like to delete the "Accounting" tab of the product section in stock, but I guess it is related to the product.product object model, could I delete this tab without affecting all the product.product inherited objects in OpenErp?

account_tab_openerp

Upvotes: 2

Views: 733

Answers (2)

Don Kirkby
Don Kirkby

Reputation: 56590

I suspect your module is trying to create a record in the res_groups table with a name that matches one of the records already in that table. That violates a unique constraint and fails the installation.

Look at your module's data XML files, and search for "res.groups". Look at the category_id and name fields, then check your database for other records in res_groups with the same values.

Upvotes: 2

Neel
Neel

Reputation: 21243

As per error, you are trying to create group which is already exist. Please check the group name you want to create. Modify it and try to add your module again.

You can check group name in database also.

Upvotes: 2

Related Questions