Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4754 มุมมอง

Hi,

on clicking a button from my own module i have opened(redirected) purchase order create screen, after creating PO i have to update that current PO id in my module table. is there any possibilities to get po id ?.

Through this python function im redirecting to PO from mymodule

def action_generatePO(self, cr, uid, ids, context=None): return { 'type': 'ir.actions.act_window', 'name': 'Purchase Order', 'view_mode': 'form', 'view_type': 'form', 'view_id':False, 'res_model': 'purchase.order', 'target':'new', 'context': context, }

Regards, Praveen

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

http://pastebin.com/YuGi3N9m

Here I upload a solution

อวตาร
ละทิ้ง
ผู้เขียน

Hi Francesco, I have to get purchase id only in my function, so in the place of "YOUR_PURCHASE_ID" after getting PO id only i can able to declare. please tell any solutions to get PO id.

A purchase can come from a search or other system. I don't know your problem. I answer only to your question.