Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6862 Vizualizări
How to inherit this report and set the landscape orientation in my module?
<report
string="Purchase Order"
id="action_report_purchase_order"
model="purchase.order"
report_type="qweb-pdf"
name="purchase.report_purchaseorder"
file="purchase.report_purchaseorder"
print_report_name="
(object.state in ('draft', 'sent') and 'Request for Quotation - %s' % (object.name) or
'Purchase Order - %s' % (object.name))"
/>
Imagine profil
Abandonează

Please use a meaningful title.

Cel mai bun răspuns

Hello

make new paperformat with the orientation option "Landscape", like below option.

<record id="paperformat_landscape" model="report.paperformat">

            <field name="orientation">Landscape</field>

 </record>

=> for update the paperformat to report, inherit the report action.

<record id="purchase.action_report_purchase_order" model="ir.actions.report">

            <field name="paperformat_id" ref="your_module.paperformat_landscape"/>

 </record>

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 16
3091
1
mar. 15
5683
2
aug. 19
3195
0
sept. 17
3318
2
mar. 25
4825