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))"
/>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- Project
- MRP
This question has been flagged
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>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
मई 16
|
3009 | ||
|
1
मार्च 15
|
5610 | ||
|
2
अग॰ 19
|
3118 | ||
|
0
सित॰ 17
|
3267 | ||
|
2
मार्च 25
|
4762 |
Please use a meaningful title.