Skip to content

Instantly share code, notes, and snippets.

View bigppro's full-sized avatar
💭
I may be slow to respond.

Pedro Bocio bigppro

💭
I may be slow to respond.
View GitHub Profile
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@bigppro
bigppro / send_email_using_template_code.py
Created October 4, 2021 16:08 — forked from sehrishnaz/send_email_using_template_code.py
Send Email on Button Click using Code
@api.one
def btn_send_email(self):
template_obj = self.env['email.template'].sudo().search([('name','=','Email Template Name')], limit=1)
if template_obj:
receipt_list = ['abc@gmail.com','xyz@yahoo.com']
email_cc = ['test@gmail.com']
body = template_obj.body_html
body=body.replace('--department--',self.department_id.name)