Skip to content
Snippets Groups Projects

Release v14.0.1.1.1

Merged Daniil Digtyar Vasilieva requested to merge dev into 14.0
2 files
+ 18
10
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -281,16 +281,17 @@ class WebsiteSubscriptionCCEE(emyc_wsc.WebsiteSubscription):
values["share_product_id"] = company.voluntary_share_id.id
subscription_id = sub_req_obj.sudo().create(values)
if partner.email != kwargs.get('email') or partner.phone != kwargs.get('phone'):
subscription_id.message_post(**{
'subject': 'We found partner discrepancy in the form',
'body': '''The contact information received from the form <b>was diferent</b> from the one saved in the partner:
<ul>
<li>Email: {} </li>
<li>Phone: {} </li>
</ul>'''.format(kwargs.get('email'), kwargs.get('phone'), kwargs.get('iban')),
})
if partner:
if partner.email != kwargs.get('email') or partner.phone != kwargs.get('phone'):
subscription_id.message_post(**{
'subject': 'We found partner discrepancy in the form',
'body': '''The contact information received from the form <b>was diferent</b> from the one saved in the partner:
<ul>
<li>Email: {} </li>
<li>Phone: {} </li>
</ul>'''.format(kwargs.get('email'), kwargs.get('phone'), kwargs.get('iban')),
})
if subscription_id:
for field_value in post_file:
attachment_value = {
Loading