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:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
4637
Views
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
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 | |
---|---|---|---|---|
|
0
Sep 24
|
201 | ||
|
3
Jul 24
|
6973 | ||
|
0
Mar 18
|
2654 | ||
|
0
Jul 17
|
6538 | ||
|
0
Apr 17
|
1951 |