İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4515 Görünümler

I've been stucked with the server action. I've managed to display it but unable to print a pdf report. Any idea how to do this? this is my code.

<record id="action_order_label_work_order" model="ir.actions.server">
/> <field name="name">Order Label</field>
<field name="model_id" ref="mrp.model_mrp_workorder" />
<field name="binding_model_id" ref="mrp.model_mrp_workorder" />
<field name="state">code</field>
<field name="code">

</field>
</record>



Avatar
Vazgeç
En İyi Yanıt

Hello Moto Dzae,

I think server action couldn't return action implicitly like button type object. so you have to assign an action.

like:
action = self.env.ref('account.account_invoices').report_action(self)

Hope it will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 25
1436
1
Eyl 24
2106
2
Ağu 24
1403
1
Tem 24
1883
0
Oca 25
1256