2015-02-03 1 views
0

기존 RML 보고서를 수정하는 모듈을 만들었습니다. 더 이상 아무것도하지 않지만 RML 파일을 수정합니다 (파이썬 변경 없음).OpenERP7에서 RML 보고서의 간단한 문자열을 변환하는 방법은 무엇입니까?

모듈을 설치 한 후 새 보고서를 인쇄 할 수있었습니다. 그러나 .pot 파일을 변환하여 내보내려고하면 파일이 비어 있습니다. 이유는 모르겠지만 마침내 번역 파일을 수동으로 처리해야했습니다.

이제 용어는 한 단어를 제외하고는 큰 의미로 번역되었습니다. 다음 문장 :

#. module: customized_reports_03 
#: report:account.invoice.custom:0 
msgid "Please, indicate the invoice number on the concept of income" 
msgstr "Por favor, indique el número de factura en el concepto del ingreso" 

내가 번역을로드하고 모든 업데이트 :

<para style="terp_default_8">[[ (o.comment and format(o.comment)) or "Please, indicate the invoice number on the concept of income" ]]</para> 

나는 정확하게 작업하고있는 다른 용어로, 내 번역 파일 (es.po)에 추가 몇 번이나이 문장은 번역되지 않습니다.

왜? 운영자가 원인 일 수 있습니다. 또는?

답변

1

마지막으로 [[]] 사이에 쓰는 문자열이 번역 파일에서 인식되지 않는다는 것을 깨달았습니다. 이를 관리하려면 문자열이 이중 대괄호 밖에있는 코드를 통해 동일한 동작을 수행하는 방법을 찾아야합니다.

<para style="terp_default_8">[[ (o.comment and format(o.comment)) or removeParentNode('para') ]]</para> 
<para style="terp_default_8">Please, indicate the invoice number on the concept of income[[ not o.comment and '.' or removeParentNode('para') ]]</para> 
: 내 경우

는, 문제는 이런 식으로 해결

관련 문제