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
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
2047
Vues
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
juil. 21
|
3501 | ||
|
1
oct. 22
|
4557 | ||
|
0
mai 22
|
2653 | ||
|
0
juil. 24
|
1992 | ||
|
1
nov. 20
|
4308 |
What is your actual scenario? Maybe there will be a workaround in Odoo.