Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: [Odoo CE 17.0] Fields related to custom fields don't save any values

by
Open Architects Consulting, Houssine BAKKALI
- 19/12/2024 16:11:13
Hi Redes,

Could you try to set read-only attribute to False on the fields of product.measures ?


Le ven. 13 déc. 2024, 09:07, Redes Sociales JLBBERP <notifications@odoo-community.org> a écrit :
Hello Houssine,
 
Of course, I'm sending you the link to the custom code in GitHub:
 
 
The custom code is inside the "models" folder.
 
Best regards.
El 12/12/2024 15:17 CET Houssine BAKKALI <notifications@odoo-community.org> escribió:
 
 
Hi,
 
Could you show the custom code to allow us to have a better view of what you did ?
 
Don't hesitate to put your question on the odoo forum and share the link with us.
 
Regards, 
Houssine

Le mar. 10 déc. 2024, 10:58, Redes Sociales JLBBERP <notifications@odoo-community.org> a écrit :
Hello Jesus,
 
I don't fully understand what you mean by "add the name field in the module". Do you mean giving the module a name field like "_name="product.example""?
El 10/12/2024 10:32 CET Jesus Sokamby <notifications@odoo-community.org> escribió:
 
 
 
Hi, there,
I suggest you add the name field in the model and also the security/ir.model.access.csv file in the module.

Le mar. 10 déc. 2024 à 10:08, Francesco Ballerini <notifications@odoo-community.org> a écrit :
Hello, add parameter `store=True` on those related fields. Update module after it.
 
Regards
 
--Francesco Ballerini

Il giorno mar 10 dic 2024 alle ore 09:38 Redes Sociales JLBBERP <notifications@odoo-community.org> ha scritto:
Hello everyone,
 
I am writing this message because I need help with making fields related to custom fields store values into the database.
 
Some days ago, I made a custom model through Python called "product_measures", which is inside a model called "product_dimension". Said model not only has three Many2one fields, each one for the product's measures, but is also inside another model of "product_dimension" called "product_template", which has the same fields but with the related field section and different names. The problem is that whenever I write anything on the fields, it doesn't save anything. Also, I'm trying to make it so every value that is created and is a number is converted into a Float.
 
I'm sending the module in a zip file because I have been stuck with this problem for quite some time, and I would like to solve this problem as soon as possible.
 
Thanks in advance for anyone who answers.
 
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

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

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

 

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

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

 

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

Reference