Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3725 Visualizzazioni

When you define a report, you have to associate it to a model. When the report is saved, the ir.attachment record will hold the model and a record id which, typically, is the active record from which you called the report. Great.


...But, what about reports called from wizards? Wizards have temporary id's so... if the report has a model associated, the attachment record will be associated to that model and the wizard's temporary id! This will cause the attachment to be related to a random record!


How can I tell Odoo/OpenERP that I want the attachment record to be related to a specific id (for instance, a value coming from one of the wizard's fields)?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 24
2947
2
apr 24
2784
4
ott 20
5718
3
ago 16
9422
2
mar 15
9420