Hi, I want to create/register invoice payment by coding on clicking by custom module button not from the "Register Payment" button on Invoice form view or from list view.How can it done by coding?
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
4065
Vues
Hello,
You can achieve this by calling the function for validate in register payment and passing the required arguments in action for your created button.
example for calling function of another model self.env['sale.order'].function_name()
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é | |
---|---|---|---|---|
|
6
févr. 24
|
11883 | ||
|
1
juil. 25
|
283 | ||
|
2
juil. 25
|
482 | ||
|
1
juil. 25
|
1532 | ||
|
3
avr. 25
|
1616 |