- Mailing Lists
- Contributors
- Re: [Odoo CE 17.0] Fields related to custom fields don't save any values
Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
Contributors
Re: [Odoo CE 17.0] Fields related to custom fields don't save any values
Re: [Odoo CE 17.0] Fields related to custom fields don't save any values
Re: [Odoo CE 17.0] Fields related to custom fields don't save any values
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
by Alejandro Párraga Alcázar - 10:56 - 10 Dec 2024
Reference
-
[Odoo CE 17.0] Fields related to custom fields don't save any values
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.
by Alejandro Párraga Alcázar - 09:36 - 10 Dec 2024-
Re: [Odoo CE 17.0] Fields related to custom fields don't save any values
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
by Houssine BAKKALI - 04:11 - 19 Dec 2024 -
RE: [Odoo CE 17.0] Fields related to custom fields don't save any values
Dear,
You use many2one field. That are pointers to an record in a different model. See https://www.odoo.com/documentation/18.0/developer/reference/backend/orm.html#fields. In this field, odoo stores an ID of the related record in the different model. Here you define a link to the same model. I guess you better use basic fields than. So make product_measures_length = fields.Integer(“Largo”). Now you can store a length as 100 in this field. I guess a field name length is sufficient. In an other model, you can reference your field as product.measures.lenght. Now you need product.measures.product_measures_length…
With kind regards,
Van Hirtum Johan
Van: Redes Sociales JLBBERP [mailto:notifications@odoo-community.org]
Verzonden: donderdag 19 december 2024 10:02
Aan: Contributors
Onderwerp: Re: [Odoo CE 17.0] Fields related to custom fields don't save any valuesHello everyone,
Since my first message related to the problem seen in the title, I made some progress, but I'm still not able to store values on the custom fields.
But recently, thanks to another OCA addon I had installed in the odoo server, I noticed that the only thing I needed to store the values is just the custom model (which is called "product.measures"), so I don't need to create custom fields inside the custom model, because they are already created outside the custom model.
To sum up, I will reupload the link to my company's GitHub repository, which has been recently updated, so anyone can see the module I modified:
Any help is appreciated, because right now, I'm in a "stand-by" situation.
Best regards
El 13/12/2024 9:04 CET Redes Sociales JLBBERP <redes_sociales@jlbberp.com> escribió:
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.
Fout! Bestandsnaam niet opgegeven.
_______________________________________________
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?unsubscribeFout! Bestandsnaam niet opgegeven.
_______________________________________________
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
by johan - 12:41 - 19 Dec 2024 -
Re: [Odoo CE 17.0] Fields related to custom fields don't save any values
Hello everyone,Since my first message related to the problem seen in the title, I made some progress, but I'm still not able to store values on the custom fields.But recently, thanks to another OCA addon I had installed in the odoo server, I noticed that the only thing I needed to store the values is just the custom model (which is called "product.measures"), so I don't need to create custom fields inside the custom model, because they are already created outside the custom model.To sum up, I will reupload the link to my company's GitHub repository, which has been recently updated, so anyone can see the module I modified:Any help is appreciated, because right now, I'm in a "stand-by" situation.Best regardsEl 13/12/2024 9:04 CET Redes Sociales JLBBERP <redes_sociales@jlbberp.com> escribió: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
by Alejandro Párraga Alcázar - 10:01 - 19 Dec 2024 -
Re: [Odoo CE 17.0] Fields related to custom fields don't save any values
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
by Alejandro Párraga Alcázar - 09:06 - 13 Dec 2024 -
Re: [Odoo CE 17.0] Fields related to custom fields don't save any values
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,HoussineLe 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
by Houssine BAKKALI - 03:16 - 12 Dec 2024
-