Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2038 Представления

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
3490
1
окт. 22
4549
0
мая 22
2635
0
июл. 24
1975
1
нояб. 20
4254