Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2063 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лип. 21
3523
1
жовт. 22
4574
0
трав. 22
2669
0
лип. 24
2004
1
лист. 20
4337