تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1755 أدوات العرض

Hi,

I'd like to change the label of the group by category which refers to no value. In my model, I added a Char field called product:

# Model Class
product = fields.Char("Product")

# XML view
filter name="group_by_product" string="Product" domain="[]" context="{'group_by': 'product'}"

It works well, except that I have some records that have no product attached to them and the category shown in the view is described by "false". It is not very user-friendly and I'd like to manually set a value like "No product"

How can I change that ? I've thought about using the group_expand attributes, but I don't have the empty values in the list of default values. 

I'm using Odoo Community 17

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 21
2735
0
أبريل 16
4275
1
مايو 15
3951
2
مارس 15
4810
0
يناير 25
2434