unable to use company fields in template xml ${res.company.name} not working showing as it as text
<?xml version="1.0" encoding="utf-8" ?>
<openerp>
<template id="index" inherit_id="point_of_sale.index">
<xpath expr="//title" position="replace">
<title>${res.company.name}</title>
</xpath>
</template>
</openerp>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
4
Trả lời
4078
Lượt xem
Try this:
<xpath expr="//title" position="replace">
<title><t t-esc="res_company.name"/></title>
<xpath>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
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 9 24
|
1295 | ||
|
0
thg 10 20
|
2457 | ||
|
1
thg 4 20
|
3122 | ||
|
0
thg 6 15
|
3973 | ||
|
1
thg 7 24
|
1014 |
thanx and what for if i want to shot a new field created in res.company like 'res.company.pTitle'
What have you tried? It is res_company, not res.company.
yes done thanx one more help if you can will be very thankful to you
i want to show image from model res.company.plogo which is binary custom field
how can we do that like scr="res.company.plogo" or any other solution to get image from model res.company.plogo and show here down
<?xml version="1.0" encoding="UTF-8" ?>
<templates id="template" xml:space="preserve">
<t t-extend="Chrome">
<t t-jquery=".pos-logo" t-operation="replace">
<img src="" style="padding: 5px; margin: 0px; height: 40px; width: 100px;" />
</t>
</t>
</templates>