コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4480 ビュー

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>



アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 25
1388
1
9月 24
2065
2
8月 24
1393
1
7月 24
1828
0
1月 25
1235