I've seen this in buttons and other operations, surrounding an xml_id like this:
%(other_
What does it do?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I've seen this in buttons and other operations, surrounding an xml_id like this:
%(other_
What does it do?
To expand on Jeremy's answer:
The reason you want to do this is that the ID is not always portable between databases and should not be relied on to locate a record, but is the way some buttons are identified in Odoo XML files once they are inside the database.
If you see this:
<button name="396" string="Convert to Opportunity" type="action" help="Convert to Opportunity" class="oe_highlight"/>
You can locate it the button using:
name="396"
... but it is safer to locate it with:
name="%(crm.action_crm_lead2opportunity_partner)d"
Hello
When the xml template will be parsed by Odoo and inserted in the database (in table ir.ui.view); the %(xmlid)d will be replaced by the real id from this record.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 8 24
|
2939 | ||
Not seen XML ID in a new record
Đã xử lý
|
|
2
thg 6 24
|
1945 | |
Using xml_id for attrs
Đã xử lý
|
|
5
thg 12 22
|
15003 | |
|
3
thg 4 18
|
53 | ||
|
0
thg 1 18
|
3313 |