I want odoo to auto click "Transfer" after Posting invoice.
Testing on Odoo 13 community.
https://imgur.com/a/EcQ7ftg .( 2 image.) before post.jpeg & after post.jpeg
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want odoo to auto click "Transfer" after Posting invoice.
Testing on Odoo 13 community.
https://imgur.com/a/EcQ7ftg .( 2 image.) before post.jpeg & after post.jpeg
Hi,
You can override/super the function of the Post button and call this function. So once you click the post button this button action will also get executed.
For overriding a function, see:
def function_name(self):
res = super(Classname, self).function_name()
# call your button here
return res
Thanks
Hello HMMW,
Create one py file in your custom module and write the following code.
from odoo import models, fields, api, _
class AccountMove(models.Model):
_inherit = 'account.move'
def action_post(self):
res = super(AccountMove, self).action_post()
#call your mothod here.
self.your_mehhod_name(function_argument)
return res
def your_method_name(self, function_argument):
#your code
Don't forget to add your py file in __init__.py, then restart odoo service.
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Hope these tips will help you: http://learnopenerp.blogspot.com/