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
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
5240
Vues
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
sept. 24
|
1331 | ||
|
3
juil. 24
|
8174 | ||
|
0
mars 18
|
3467 | ||
|
0
juil. 17
|
7712 | ||
|
0
avr. 17
|
2979 |