Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4510 Lượt xem

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>



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 25
1431
1
thg 9 24
2099
2
thg 8 24
1398
1
thg 7 24
1877
0
thg 1 25
1251