Skip to Content
Menu
This question has been flagged
1 Reply
4646 Views

Hi there,

During the customisation of our Odoo-System several custom fields have been created including a field for our vendor's minimum quantity surcharge (x_MinimumQuantitySurcharge) on the res.partner model.

Everything worked fine until we wanted to add some extra modules. During the installation a "key error" was issued which referred to the x_MinimumQuantitySurcharge field. As I took a look into the field's directory (Settings/Technical/Database Structure/Fields) I recognised, that a field with the same name (x_MinimumQuantitySurcharge) has been automatically created on the res.users model with the Field Type set as "Base Field".


It is neither possible to delete the field on the res.users model nor to edit it (since it is a base field) and within the postgres database, no column or table with the fields name on the res.users or any other model could be found.

Is there any other possibilty to remove the field from Odoo since it constantly produces errors and if so, how?




Avatar
Discard
Best Answer

Hello Gustav,
I see the same behavior in odoo V15 5 years later ...
I opened a helpdesk ticket at odoo S.A. and got the following answer, where the referred ID is the field ID of MY field in question. So the ID need to be the ID of the field you have to correct.

Answer from odoo helpdesk:
"I will be submitting feedback so this feature gets corrected.

As a workaround you can run the following server action:

 env.cr.execute('''UPDATE ir_model_fields SET state = 'manual' WHERE id = 14725''')

 to change the state of the fields, be careful to assign correctly the IDs as this can lead to database errors, you should only do it for the respective Studio fields.

You can see the ID of the field on the metadata."

Here are the provided screenshots:


Avatar
Discard
Related Posts Replies Views Activity
0
Mar 15
6514
1
Aug 24
990
1
Nov 23
3351
1
Sep 23
4313
3
Nov 24
9348