I have created two RML reports in event.registration model say A and B. Now I have to print one of these reports based on a condition from the 'Print' inside form and list view(If condition is true print A else print B). This can be done easily by using a button inside the form view and to check the condition, but I want it to be printed from the list view also. So it must be printed from the 'Print' button in the list view and I don't want to show both the report names there, only something like this 'Print Registration'. On clicking the 'Print Registration' I need to check the condition and print the desired report. How this can be done?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
5223
查看
In the list you can have records that match the two conditions at least that you put a domain in the action of the view to match only one condition. Also you could add a button to the record in the tree that can do the same of the button in the form and it's specific of the record
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
0
9月 24
|
1292 | ||
|
3
7月 24
|
8145 | ||
|
0
3月 18
|
3437 | ||
|
0
7月 17
|
7686 | ||
|
0
4月 17
|
2961 |