Odoo Help

2
1 Answer
5
Avatar

Akhil P Sivan

--Akhil P Sivan--

4429
| 5 4 7
Kochi, India
--Akhil P Sivan--

Odoo Developer

email-id : akhilpsivan01@gmail.com

Akhil P Sivan
10/27/15, 1:55 AM

Hi,

You may try like this:

class account_analytic_account(models.Model):
_inherit = "account.analytic.account"

@api.model
def _cron_periodic_create_invoice(self):
self._periodic_create_invoice()

@api.multi
def _periodic_create_invoice(self):
# Do something here ...

Hope this helps

1 Comment
RahalSys, Salim Rahal
10/4/18, 5:11 AM

using @api.model works

Ask a Question
Keep Informed
2 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now