Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
5 Antworten
12000 Ansichten

Avatar
Verwerfen
Autor

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

Beste Antwort

It's okay for v8.

How can I add in Odoo 11? 

Avatar
Verwerfen
Autor Beste Antwort

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

Avatar
Verwerfen
Beste Antwort

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')"
/>     
Avatar
Verwerfen
Beste Antwort

<report

id = "invoice_report_temp"

string = "Proforma Invoice"

model = "account.invoice"

report_type = "QWEB-pdf"

name = "modulename.template name"

file = "module name.templatename"

/>

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
März 15
6059
3
Juni 22
4016
1
Aug. 25
3489
1
Okt. 24
1822
2
Juli 24
2049