Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to Add a new sub menu in Print Button ?

By
Amit
on 4/12/16, 3:18 AM 511 views

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????????

Amit
on 4/12/16, 3:57 AM
0
Amit
On 4/12/16, 4:06 AM

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

0
Bui The Do
On 4/12/16, 3:55 AM

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')"
/>     
0
sarkar
On 4/12/16, 3:53 AM

<report

id = "invoice_report_temp"

string = "Proforma Invoice"

model = "account.invoice"

report_type = "QWEB-pdf"

name = "modulename.template name"

file = "module name.templatename"

/>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/12/16, 3:18 AM
Seen: 511 times
Last updated: 4/12/16, 4:06 AM