How to Make Scheduler to Execute an Action on Given Duration?

How to Make Scheduler to Execute an Action on Given Duration?

Subject : Scheduler i.e.cron-job by application(Automated Action). Related: In Application, Automated Scheduled action will run on given time duration and number of execution between the duration. Descriptions: We can make scheduler to execute any action on given duration and number of execution between the date time. Example: In below example, we are creating on schedule which is of hr.employee. That means scheduler will execute method […]

Read More

Decorators and Its Utility in Odoo?

Decorators and Its Utility in Odoo?

A decorator is a function that takes a function as input and returns a function. The anatomy of the decorator is: @decorator-expression Function-definition Decorator-expression is an expression that returns a callable thing. The callable thing has to take a single argument. Function definition is a function definition (it, therefore, must begin with def). In older version of odoo, we use a cursor, uid, context and ids […]

Read More

Decoding & Setting Up Image Display in Template

Decoding & Setting Up Image Display in Template

Subject : Display Images in Email (send using Templates). Related : Send Email using Templates via applications. Descriptions: We can send email using email template to the custom. That time suppose we have company logo then we would like to image display  logo in email. Sometimes image will not show in email or display in broken format. For that, we have to use python base64 […]

Read More