콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
4143 화면
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>
아바타
취소
작성자

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>

베스트 답변

Try this:

<xpath expr="//title" position="replace">
<title><t t-esc="res_company.name"/></title>
<xpath>
아바타
취소
관련 게시물 답글 화면 활동
2
9월 24
1316
0
10월 20
2491
1
4월 20
3146
0
6월 15
4015
1
7월 24
1058