How to add a field on a report only if a box is checked? |
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
Hi Team,
In some cases, your client would like to see an information on the SO only if a box is checked.
Here is the solution:
1) Add a checkbox field on the model sale.order: x_appear
2) On the report Qweb view related to this model, you should add a "t-if" on the field you want to see or not on the report (with a xpath, of course)
Here is an example for the Margin (and other fields my clients wanted to see (report below the code):
Total Cost:
|
|
Margin:
|
|
Margin%:
| %
|

관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
10월 21
|
3861 | ||
PDF reports
해결 완료
|
|
5
7월 25
|
2251 | |
Wrong PDF Format
해결 완료
|
|
2
3월 24
|
2772 | |
|
2
5월 23
|
3172 | ||
|
0
11월 22
|
2990 |