i want to make the quotation invalid in cancel state
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
775
查看
Inherit the pdf report template and add the above snippet of code to get invalid header in cancel state
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_saleorder_document_inherited" inherit_id="sale.report_saleorder_document">
<!-- Replace the stamp image with a red header text -->
<xpath expr="//div[@t-if='doc.client_order_ref']" position="before">
<div t-if="doc.state == 'cancel'" class="row mb-4">
<div class="col-12">
<div style="background-color: #FF0000; color: white; text-align: center; padding: 10px; font-size: 24px; font-weight: bold; border-radius: 5px;">
INVALID QUOTATION
</div>
</div>
</div>
</xpath>
</template>
</odoo>
Regards,
Nikhil
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
7月 25
|
209 | ||
|
1
6月 25
|
422 | ||
|
2
6月 25
|
500 | ||
|
2
5月 25
|
702 | ||
|
0
8月 25
|
11 |