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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1117
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jul 21
|
2396 | ||
|
1
Oct 22
|
3656 | ||
|
0
May 22
|
1194 | ||
|
0
Jul 24
|
864 | ||
|
1
Nov 20
|
2701 |
What is your actual scenario? Maybe there will be a workaround in Odoo.