<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/coupon/data, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[FIX] sale_coupon: translate email subject and template</title>
<updated>2021-03-25T07:51:38+00:00</updated>
<author>
<name>nie</name>
<email>nie@odoo.com</email>
</author>
<published>2021-03-18T15:14:59+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=981eab82dbb15783bef7e010ffbc21735710dd0a'/>
<id>981eab82dbb15783bef7e010ffbc21735710dd0a</id>
<content type='text'>
Steps:
- Install Sales
- Go to Settings / Translations / Languages
- Install Dutch
- Go to Settings / Users &amp; Companies / Users
- Change demo's language to Dutch
- Go to Sales / Configuration / Settings
- Activate Coupons &amp; Promotions
- Go to Sales / Products / Coupon Programs
- Create a new Coupon Program
- Click Generate Coupon
  - Generation Type: Number of Selected Customers
  - Matching rule: Name contains demo
- Generate
- Go to Settings / Technical / Email / Emails
- Open the email you just sent

Bug:
Parts of the email are not translated

Explanation:
The `lang` field is used to determine the template's language. Coupon
emails where missing one.
Also, the subject of the email wasn't translated.

opw:2467640

closes odoo/odoo#68316

X-original-commit: 6fbca2745a36ade4d8e8bdd2f015fd831b872d67
Signed-off-by: backspac &lt;backspac@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Steps:
- Install Sales
- Go to Settings / Translations / Languages
- Install Dutch
- Go to Settings / Users &amp; Companies / Users
- Change demo's language to Dutch
- Go to Sales / Configuration / Settings
- Activate Coupons &amp; Promotions
- Go to Sales / Products / Coupon Programs
- Create a new Coupon Program
- Click Generate Coupon
  - Generation Type: Number of Selected Customers
  - Matching rule: Name contains demo
- Generate
- Go to Settings / Technical / Email / Emails
- Open the email you just sent

Bug:
Parts of the email are not translated

Explanation:
The `lang` field is used to determine the template's language. Coupon
emails where missing one.
Also, the subject of the email wasn't translated.

opw:2467640

closes odoo/odoo#68316

X-original-commit: 6fbca2745a36ade4d8e8bdd2f015fd831b872d67
Signed-off-by: backspac &lt;backspac@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] sale_coupon: send mail template to partner of SO</title>
<updated>2020-05-19T16:44:39+00:00</updated>
<author>
<name>Baptiste Vergote</name>
<email>bve@odoo.com</email>
</author>
<published>2020-05-18T12:17:17+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=e3be55d3f6d3ee8145e182fd54185115f6699bb6'/>
<id>e3be55d3f6d3ee8145e182fd54185115f6699bb6</id>
<content type='text'>
... instead of public user

Once sending the template email Coupon: Send by Email.
Odoo was sending to the partner linked to the sale.coupon

However in the case of the program having the parameters:
apply on next order &amp; apply automatically.
The partner_id.id is the public user.

This commit is modifying the value of the template to send
the email to the partner of the SO instead of the partner
of the current coupon.

opw-2255674

closes odoo/odoo#51570

X-original-commit: f7e0c2d1568b222d510d3a10fba1116fabfff604
Signed-off-by: Nicolas Martinelli (nim) &lt;nim@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... instead of public user

Once sending the template email Coupon: Send by Email.
Odoo was sending to the partner linked to the sale.coupon

However in the case of the program having the parameters:
apply on next order &amp; apply automatically.
The partner_id.id is the public user.

This commit is modifying the value of the template to send
the email to the partner of the SO instead of the partner
of the current coupon.

opw-2255674

closes odoo/odoo#51570

X-original-commit: f7e0c2d1568b222d510d3a10fba1116fabfff604
Signed-off-by: Nicolas Martinelli (nim) &lt;nim@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[REF] *_sale_coupon: create coupon module</title>
<updated>2020-05-08T14:27:29+00:00</updated>
<author>
<name>Joseph Caburnay</name>
<email>jcb@odoo.com</email>
</author>
<published>2019-10-10T11:45:35+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=afad149eb8a542b39e9508a458d7aeb43aeb60ed'/>
<id>afad149eb8a542b39e9508a458d7aeb43aeb60ed</id>
<content type='text'>
This refactoring extracts parts of `sale_coupon` module to create a more
generic module called `coupon`. This new module can be extended in
different sales modules to implement functionalities specific to modules
that extend it.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This refactoring extracts parts of `sale_coupon` module to create a more
generic module called `coupon`. This new module can be extended in
different sales modules to implement functionalities specific to modules
that extend it.</pre>
</div>
</content>
</entry>
<entry>
<title>[REF] sale_coupon: rename/move files to prepare coupon module</title>
<updated>2020-05-08T14:25:54+00:00</updated>
<author>
<name>Joseph Caburnay</name>
<email>jcb@odoo.com</email>
</author>
<published>2019-10-10T08:23:00+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=ef05ca2812c3407dddd20921604661726c859d74'/>
<id>ef05ca2812c3407dddd20921604661726c859d74</id>
<content type='text'>
An initial step to prepare the creation of coupon module. The main goal
is to just move the logic from sale_coupon to coupon. To come up with
less diff as possible, this rename/move step is beneficial for this
purpose.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An initial step to prepare the creation of coupon module. The main goal
is to just move the logic from sale_coupon to coupon. To come up with
less diff as possible, this rename/move step is beneficial for this
purpose.</pre>
</div>
</content>
</entry>
</feed>
