Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

RE: Odoo Community 17 issues

by
johan
- 02/07/2024 14:13:52

Dear,

 

When you archived the partners, they stay in your res.partner table as a record. When there is a field with a ‘unique’ constraint, you cannot create another record with the same field value. When this field is not a relational field ( = not a link to another table ), the easiest way is to simply go in the database with pgadmin and change the field in the archived record in for example ‘value_old’. That’s fast and do the trick. Of course, maybe your field don’t need to be ‘unique’. Than you can build a small module and remove the constraint from the field.

 

Kind regards,

 

Van Hirtum Johan

 

Van: Dan Vasques [mailto:notifications@odoo-community.org]
Verzonden: dinsdag 2 juli 2024 13:57
Aan: Contributors
Onderwerp: R
E: Odoo Community 17 issues

 

Hi everyone,

I´ve archived the companies but when I try to add a new one, it keeps refusing. It comes up with the notification that it has to have a unique name.
I believe that it has something to do with the previous ones that were deleted, as they have the same name.
So, is there a way to really delete the archived ones?

Thanks in advance for the assistance!

Dan Vasques

 

De: Tom Blauwendraat <notifications@odoo-community.org>
Enviada: 2 de julho de 2024 09:09
Para: Contributors <contributors@odoo-community.org>
Assunto: Re: Odoo Community 17 issues

 

Hi Dan,

this is normal; deletion of records is tricky if there are already references to it. Archiving would be the best option here.

This is the same in Odoo Enterprise, btw (Enterprise runs on the same core modules)

-Tom

On 7/2/24 09:57, Dan Vasques wrote:

Good morning,

I hope you are doing great.

 

We are starting to work with the Odoo Community platform and we have some situations, such as not being able to delete companies that we created in the system.

Validation 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

 

Another situation is that one of our employees, when clearing the browser cache, was deleted from the system and was unable to log in again, not even through a new invitation.

 

I would love to hear from you if there are any solutions for the correct configuration and operation of the Odoo Community 17 system?

I hope I hear from you soon.

Thanks in advance!

Best regards,

 

 

 

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference