콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
5 답글
12047 화면

아바타
취소
작성자

Mr. Sarkar can you please tell me that if i want to add a sub menu in hr.employee view form .Then where should i write the modified code ?? form view or inherted view or anywhere else????????

베스트 답변

It's okay for v8.

How can I add in Odoo 11? 

아바타
취소
작성자 베스트 답변

somebody please tell me where should i write the code. I am using odoo 8.0 in localhost on my system.

아바타
취소
베스트 답변

You see here: https://www.odoo.com/documentation/8.0/reference/reports.html

The reports belong to a model will gather into the print submenu of that model

Example:

<report
    id="account_invoices_1"
    model="account.invoice"
    string="Invoices 1"
    report_type="qweb-pdf"
    name="account.report_invoice_1"
    file="account.report_invoice_1"
    attachment_use="True"
    attachment="(object.state in ('open','paid')) and
        ('INV'+(object.number or '').replace('/','')+'.pdf')"
/>

<report
    id="account_invoices_2"
    model="account.invoice"
    string="Invoices_2"
    report_type="qweb-pdf"
    name="account.report_invoice_2"
    file="account.report_invoice_2"
    attachment_use="True"
    attachment="(object.state in ('open','paid')) and
        ('INV'+(object.number or '').replace('/','')+'.pdf')"
/>     
아바타
취소
베스트 답변

<report

id = "invoice_report_temp"

string = "Proforma Invoice"

model = "account.invoice"

report_type = "QWEB-pdf"

name = "modulename.template name"

file = "module name.templatename"

/>

아바타
취소
관련 게시물 답글 화면 활동
0
3월 15
6107
3
6월 22
4085
1
8월 25
3531
1
10월 24
2076
2
7월 24
2108