Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1574 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 21
2611
0
เม.ย. 16
4108
1
พ.ค. 15
3841
2
มี.ค. 15
4666
0
ม.ค. 25
2090