|
@ -122,7 +122,7 @@ class operation_request(models.Model): |
|
|
|
|
|
|
|
|
def get_total_share_dic(self, partner): |
|
|
def get_total_share_dic(self, partner): |
|
|
total_share_dic = {} |
|
|
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: |
|
|
for share_product in share_products: |
|
|
total_share_dic[share_product.id] = 0 |
|
|
total_share_dic[share_product.id] = 0 |
|
@ -215,10 +215,12 @@ class operation_request(models.Model): |
|
|
False) |
|
|
False) |
|
|
|
|
|
|
|
|
def send_share_trans_mail(self, sub_register_line): |
|
|
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 = self.get_share_trans_mail_template() |
|
|
cert_email_template.send_mail(rec.partner_id_to.id, False) |
|
|
cert_email_template.send_mail(rec.partner_id_to.id, False) |
|
|
|
|
|
|
|
|
def send_share_update_mail(self, sub_register_line): |
|
|
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 = self.get_share_update_mail_template() |
|
|
cert_email_template.send_mail(rec.partner_id.id, False) |
|
|
cert_email_template.send_mail(rec.partner_id.id, False) |
|
|
|
|
|
|
|
|