تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2053 أدوات العرض

I need help in code, How do I create Purchase Order copy(Sub Purchase Order) after clicking Receive Products Button on Purchase App. I'm new in Odoo so my coding skill is not that good

الصورة الرمزية
إهمال

What is your actual scenario? Maybe there will be a workaround in Odoo.

أفضل إجابة

Hi,

You can use self.copy in the button action of the Receive Products.

Try this example

def action_view_picking(self):
purchase_copy = self.copy()
return self._get_action_view_picking(self.picking_ids)

Regards

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 21
3506
1
أكتوبر 22
4559
0
مايو 22
2658
0
يوليو 24
1999
1
نوفمبر 20
4317