Commit Graph
33 Commits
Author SHA1 Message Date
Cédric Krier f6a8c06bf7 Format email addresses with encoding in message header
issue11517
review421211005
(grafted from 413604c1829855e8882417abc1af56e1bca08deb)

--HG--
branch : 6.0
2022-06-04 00:26:32 +02:00
Adrià Tarroja Caubet cc47a7e9c0 Do not migrate log if it has resource
issue10855
review364201002
(grafted from 789a2cf4007744330cfe70cfe81a9eb2d9750e96)

--HG--
branch : 6.0
2021-10-13 18:27:52 +02:00
Cédric Krier 892bda66b5 Do not migrate log without trigger
The notification and resource columns are required so they can not be updated
with NULL value when there is no trigger linked.

issue10622
review369341002
(grafted from 1b99cee3a0fd48ef324a0e56369aa1735270c494)

--HG--
branch : 6.0
2021-08-12 18:36:32 +02:00
Cédric Krier 71a1741d6b Add language to contact mechanism
issue10223
review349611002
2021-04-11 18:37:41 +02:00
Cédric Krier 92f9c8932a Allow distinct FROM addresses for envelope and header
issue9948
review324741004
2021-02-03 23:26:07 +01:00
Cédric Krier 74a262429d Send client email via server
issue9449
review292001002
2020-09-17 17:18:02 +02:00
Cédric Krier 5286e18428 Add resource relate on notification log
We store on the log the record as resource but also the notification to get
the email subject.

issue9457
review307901002
2020-08-11 22:00:26 +02:00
Sergi Almacellas Abellana 6708f10eb1 Do not call get_email when no recipients
issue9485
review303961002
2020-07-27 16:16:17 +02:00
Sergi Almacellas Abellana fbde26b3c1 Add optional subject to notifications
issue9321
review290011002
2020-07-04 20:07:54 +02:00
David Harper 50078c76a3 Correct spelling of notification
issue9267
review307521002
2020-05-08 17:45:42 +02:00
Cédric Krier 81814eea17 Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:52 +01:00
Sergi Almacellas Abellana 851407c1e4 Add commission agent as a recipient
issue9031
review262911002
2020-02-22 15:11:06 +01:00
Cédric Krier 49183d6d21 Order notification logs by creation date descending 2019-11-22 09:36:11 +01:00
Sergi Almacellas Abellana 4e9250a6e4 Use party language for employees notifications
issue8693
review250011002
2019-10-03 10:10:20 +02:00
Cédric Krier acbc522ee0 Allow to delete trigger
For that, we add missing on delete CASCADE on log.

issue8383
review261541002
2019-06-12 19:01:13 +02:00
Cédric Krier f9a7f98a64 Add employee as recipients
issue7677
review47691002
2018-10-04 09:08:23 +02:00
Cédric Krier 90603b7878 Fix contact_mechanism_get usage
The contact_mechanism_get returns a contact mechanism instance and not the
value. Also the contact mechanism should be used as name if filled.

issue7623
review49531002
2018-08-20 22:41:56 +02:00
Cédric Krier 336974e90f Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:48 +02:00
Cédric Krier da40c56b92 Call contact_mechanism_get with the party instance
contact_mechanism_get is an instance method and not a class method.

issue7498
review47491002
2018-06-11 23:14:22 +02:00
Nicolas Évrard edf9f9b2bf Add fallback users for the recipients
issue7029
review39051002
2018-03-10 17:37:01 +01:00
Cédric Krier 3d101183a8 Add contact mechanism usage
issue7093
review43931002
2018-02-19 19:16:17 +01:00
Cédric Krier 0fd9140181 Do not set hidden recipients in message header
issue7041
review39091002
2018-02-04 23:34:31 +01:00
Cédric Krier 330ff6a52f Encode attachment in base64
issue6992
review39931002
2017-12-13 18:08:13 +01:00
Sergi Almacellas Abellana 4cbee8d447 Do not return a generator for each address on multiple recipients
issue6991
review37881002
2017-12-11 16:43:01 +01:00
Cédric Krier a785861eab Use mimetype guessed from report name for attachment
issue6930
review41681002
2017-11-18 12:24:58 +01:00
Cédric Krier 2c85e5c166 Use language instance instead of code for get_email 2017-08-28 23:53:27 +02:00
Cédric Krier c13814d998 Use get_email from trytond.report
issue6671
review40571002
2017-08-28 23:15:47 +02:00
Sergi Almacellas Abellana f5f0d5e34a Use txt extension instead of plain
issue6676
review43351002
2017-08-24 15:43:46 +02:00
Cédric Krier c052cbf1e6 Rename notification.log into notification.email.log
issue6667
review40561002
2017-08-02 22:56:57 +02:00
Cédric Krier 2d7090df28 Add attachments to email
issue6675
review40581002
2017-08-02 22:53:56 +02:00
Cédric Krier 65e9641271 Add Auto-Submitted header
Recommended by RFC 3834.

issue6673
review35211002
2017-08-02 22:52:12 +02:00
Cédric Krier 7da87d513d Add From to email header
issue6632
review40511002
2017-07-12 20:02:18 +02:00
Cédric Krier af9651c90c Initial commit
issue5835
review26611002
2017-06-24 10:51:20 +02:00