Even I am also having the same problem (Henry Chea) of "Could not able to select the newly created radio button option = Odoo mates" in the above video. If we select the new one, its going back to the "Company / Individual" old options again
i add new value 'Aop' but nothing hapen when i select on aop i want same form like company when i select aop if i company_type = fields.Selection( selection_add=[('company','Aop')]) it shows two selection value individual and aop and i want 3 value individual ,company , aop help me i tried alot could not get it if i add selection_add=[('aop','Aop')]) it shows three value but not clickable aop
First of all that is very good video. Sir i have question i want res.partner field address it will show in my custom module. For example in my custom module there must be a plus icon when i click on that icon it show me vertical div of different field names and that when we click on any field name it must append on parent view please guide me how can i achieve that Thanks
@@OdooMates I generated a module with odoo-bin scaffold then made a models.py in models folder here is the code in models.py ```# -*- coding: utf-8 -*- from odoo import models, fields, api class bsicontacts(models.Model): _inherit = 'res.partner' company_type = fields.Selection(selection_add=[('vendor', 'Vendor')])```
Yet we haven't published a video on it. If it is urgent for you, you can check how the records are arranged in the portal and also the list view for products in eCommerce
thanks alot
welcome :)
great, what if I want to edit the existing selection .. is it possible?
you mean to change existing selection label ?
@@OdooMates Yeah ex i want to replace it with my own
@@huzaifaelnaeem2636 you can try rewriting it using the selection_add with same key and different labels
@@OdooMates awesome it's work thanks alot ❤️
@@huzaifaelnaeem2636 glad it helped
Even I am also having the same problem (Henry Chea) of "Could not able to select the newly created radio button option = Odoo mates" in the above video. If we select the new one, its going back to the "Company / Individual" old options again
i add new value 'Aop' but nothing hapen when i select on aop i want same form like company when i select aop if i company_type = fields.Selection(
selection_add=[('company','Aop')]) it shows two selection value individual and aop and i want 3 value individual ,company , aop help me i tried alot could not get it
if i add selection_add=[('aop','Aop')]) it shows three value but not clickable aop
what if I want to remove from selection list instead of add?
i think you have to rewrite the field, by removing the value
please how can i add translate True in selection field
you mean how to translate values of selection field ?
How to replace a new option in existing select field in Odoo
Using selection add, try with same key and different string
First of all that is very good video. Sir i have question i want res.partner field address it will show in my custom module. For example in my custom module there must be a plus icon when i click on that icon it show me vertical div of different field names and that when we click on any field name it must append on parent view please guide me how can i achieve that Thanks
Q1. How to exclude or replace a field in selection type field?
You have to replace the existing field in custom modules, by removing the unwanted selection from it.
How to rename the existing filed or romve it
need to change the label of the field ? can be done using the xml by xpath and changing the string attribute or by replacing the field from python
great...
Thanks
how to change states order ?
for adding a new state ?
Hello after creating the extra field, I can't select it. It keeps moving back to individual
Moving back means ? Newly added field can't see in the views ?
@@OdooMates When I select the field like in the video Odoo mates, it doest stay selected. Instead i will auto select back to individual
Can you show the code
@@OdooMates I generated a module with odoo-bin scaffold then made a models.py in models folder here is the code in models.py ```# -*- coding: utf-8 -*-
from odoo import models, fields, api
class bsicontacts(models.Model):
_inherit = 'res.partner'
company_type = fields.Selection(selection_add=[('vendor', 'Vendor')])```
@@OdooMates Here's what it looks like imgur.com/a/mc9M3UG
Hello all, how to call tree list data on website
Yet we haven't published a video on it. If it is urgent for you, you can check how the records are arranged in the portal and also the list view for products in eCommerce
@@OdooMates Thanks