Browse Source

[FIX] emc: share transaction: product type and send functions

pull/67/head
Manuel Claeys Bouuaert 5 years ago
parent
commit
cf0f634a5d
  1. 4
      easy_my_coop/models/operation_request.py

4
easy_my_coop/models/operation_request.py

@ -122,7 +122,7 @@ class operation_request(models.Model):
def get_total_share_dic(self, partner):
total_share_dic = {}
share_products = self.env['product.template'].search([('is_share', '=', True)])
share_products = self.env['product.product'].search([('is_share', '=', True)])
for share_product in share_products:
total_share_dic[share_product.id] = 0
@ -215,10 +215,12 @@ class operation_request(models.Model):
False)
def send_share_trans_mail(self, sub_register_line):
for rec in self:
cert_email_template = self.get_share_trans_mail_template()
cert_email_template.send_mail(rec.partner_id_to.id, False)
def send_share_update_mail(self, sub_register_line):
for rec in self:
cert_email_template = self.get_share_update_mail_template()
cert_email_template.send_mail(rec.partner_id.id, False)

Loading…
Cancel
Save