[tryton-commits] changeset in trytond:4.4 Add missing Date header on email sent
changeset b0eed47a2fbe in trytond:4.4 details: https://hg.tryton.org/trytond?cmd=changeset;node=b0eed47a2fbe description: Add missing Date header on email sent issue8596 review272091002 (grafted from fc47f7e21925305bbb2d6783e74949ee83186469) diffstat: trytond/sendmail.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (20 lines): diff -r 33219fbea66e -r b0eed47a2fbe trytond/sendmail.py --- a/trytond/sendmail.py Fri Aug 23 18:31:05 2019 +0200 +++ b/trytond/sendmail.py Fri Aug 30 09:08:32 2019 +0200 @@ -4,6 +4,7 @@ import smtplib import urllib from email.message import Message +from email.utils import formatdate from .config import config, parse_uri from .transaction import Transaction @@ -29,6 +30,8 @@ quit = True else: quit = False +if 'Date' not in msg: +msg['Date'] = formatdate() try: senderrs = server.sendmail(from_addr, to_addrs, msg.as_string()) except smtplib.SMTPException:
[tryton-commits] changeset in trytond:4.6 Add missing Date header on email sent
changeset 8584fb74574b in trytond:4.6 details: https://hg.tryton.org/trytond?cmd=changeset;node=8584fb74574b description: Add missing Date header on email sent issue8596 review272091002 (grafted from fc47f7e21925305bbb2d6783e74949ee83186469) diffstat: trytond/sendmail.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (20 lines): diff -r 37ad6c458392 -r 8584fb74574b trytond/sendmail.py --- a/trytond/sendmail.py Fri Aug 23 18:31:05 2019 +0200 +++ b/trytond/sendmail.py Fri Aug 30 09:08:32 2019 +0200 @@ -4,6 +4,7 @@ import smtplib import urllib from email.message import Message +from email.utils import formatdate from urlparse import parse_qs from .config import config, parse_uri @@ -30,6 +31,8 @@ quit = True else: quit = False +if 'Date' not in msg: +msg['Date'] = formatdate() try: senderrs = server.sendmail(from_addr, to_addrs, msg.as_string()) except smtplib.SMTPException:
[tryton-commits] changeset in trytond:4.8 Add missing Date header on email sent
changeset 28c254f94552 in trytond:4.8 details: https://hg.tryton.org/trytond?cmd=changeset;node=28c254f94552 description: Add missing Date header on email sent issue8596 review272091002 (grafted from fc47f7e21925305bbb2d6783e74949ee83186469) diffstat: trytond/sendmail.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (20 lines): diff -r 4ea8dd226032 -r 28c254f94552 trytond/sendmail.py --- a/trytond/sendmail.py Fri Aug 23 18:31:05 2019 +0200 +++ b/trytond/sendmail.py Fri Aug 30 09:08:32 2019 +0200 @@ -4,6 +4,7 @@ import smtplib import urllib from email.message import Message +from email.utils import formatdate from urlparse import parse_qs from .config import config, parse_uri @@ -30,6 +31,8 @@ quit = True else: quit = False +if 'Date' not in msg: +msg['Date'] = formatdate() try: senderrs = server.sendmail(from_addr, to_addrs, msg.as_string()) except smtplib.SMTPException:
[tryton-commits] changeset in trytond:5.2 Add missing Date header on email sent
changeset 87bd1a818284 in trytond:5.2 details: https://hg.tryton.org/trytond?cmd=changeset;node=87bd1a818284 description: Add missing Date header on email sent issue8596 review272091002 (grafted from fc47f7e21925305bbb2d6783e74949ee83186469) diffstat: trytond/sendmail.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (20 lines): diff -r 7e7fe6e2b598 -r 87bd1a818284 trytond/sendmail.py --- a/trytond/sendmail.py Fri Aug 23 18:31:05 2019 +0200 +++ b/trytond/sendmail.py Fri Aug 30 09:08:32 2019 +0200 @@ -3,6 +3,7 @@ import logging import smtplib from email.message import Message +from email.utils import formatdate from urllib.parse import parse_qs, unquote_plus from .config import config, parse_uri @@ -31,6 +32,8 @@ quit = True else: quit = False +if 'Date' not in msg: +msg['Date'] = formatdate() try: senderrs = server.sendmail(from_addr, to_addrs, msg.as_string()) except smtplib.SMTPException:
[tryton-commits] changeset in trytond:5.0 Add missing Date header on email sent
changeset f0835831dae6 in trytond:5.0 details: https://hg.tryton.org/trytond?cmd=changeset;node=f0835831dae6 description: Add missing Date header on email sent issue8596 review272091002 (grafted from fc47f7e21925305bbb2d6783e74949ee83186469) diffstat: trytond/sendmail.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (20 lines): diff -r fe9af17f69d3 -r f0835831dae6 trytond/sendmail.py --- a/trytond/sendmail.py Fri Aug 23 18:31:05 2019 +0200 +++ b/trytond/sendmail.py Fri Aug 30 09:08:32 2019 +0200 @@ -3,6 +3,7 @@ import logging import smtplib from email.message import Message +from email.utils import formatdate from urllib.parse import parse_qs, unquote_plus from .config import config, parse_uri @@ -29,6 +30,8 @@ quit = True else: quit = False +if 'Date' not in msg: +msg['Date'] = formatdate() try: senderrs = server.sendmail(from_addr, to_addrs, msg.as_string()) except smtplib.SMTPException:
[tryton-commits] changeset in trytond:default Add missing Date header on email sent
changeset fc47f7e21925 in trytond:default details: https://hg.tryton.org/trytond?cmd=changeset;node=fc47f7e21925 description: Add missing Date header on email sent issue8596 review272091002 diffstat: trytond/sendmail.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (20 lines): diff -r 9117be7f4ee6 -r fc47f7e21925 trytond/sendmail.py --- a/trytond/sendmail.py Wed Aug 28 22:31:22 2019 +0200 +++ b/trytond/sendmail.py Fri Aug 30 09:08:32 2019 +0200 @@ -3,6 +3,7 @@ import logging import smtplib from email.message import Message +from email.utils import formatdate from urllib.parse import parse_qs, unquote_plus from .config import config, parse_uri @@ -31,6 +32,8 @@ quit = True else: quit = False +if 'Date' not in msg: +msg['Date'] = formatdate() try: senderrs = server.sendmail(from_addr, to_addrs, msg.as_string()) except Exception:
[tryton-commits] changeset in modules/purchase:default Add customer code for supp...
changeset d2b6ee33a0f8 in modules/purchase:default details: https://hg.tryton.org/modules/purchase?cmd=changeset;node=d2b6ee33a0f8 description: Add customer code for suppliers at party Added a field customer_code into a new tab Supplier at Party model. Also, added the customer_code at the purchase report. issue5812 review34361002 diffstat: CHANGELOG |2 + __init__.py |2 + party.py| 27 - party.xml |5 + purchase.fodt | 262 +++ tests/scenario_purchase.rst |1 + view/party_form.xml | 11 + 7 files changed, 188 insertions(+), 122 deletions(-) diffs (496 lines): diff -r 95953e542382 -r d2b6ee33a0f8 CHANGELOG --- a/CHANGELOG Tue Aug 20 09:30:24 2019 +0200 +++ b/CHANGELOG Wed Aug 21 22:51:36 2019 +0200 @@ -1,3 +1,5 @@ +* Add customer code for supplier on party + Version 5.2.0 - 2019-05-06 * Bug fixes (see mercurial logs for details) * Remove purchase fields from stock move diff -r 95953e542382 -r d2b6ee33a0f8 __init__.py --- a/__init__.py Tue Aug 20 09:30:24 2019 +0200 +++ b/__init__.py Wed Aug 21 22:51:36 2019 +0200 @@ -34,6 +34,8 @@ Invoice, InvoiceLine, Location, +party.Party, +party.CustomerCode, module='purchase', type_='model') Pool.register( PurchaseReport, diff -r 95953e542382 -r d2b6ee33a0f8 party.py --- a/party.py Tue Aug 20 09:30:24 2019 +0200 +++ b/party.py Wed Aug 21 22:51:36 2019 +0200 @@ -1,11 +1,36 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from trytond.i18n import gettext +from trytond.model import fields, ModelSQL from trytond.pool import PoolMeta, Pool +from trytond.modules.company.model import ( +CompanyMultiValueMixin, CompanyValueMixin) from trytond.modules.party.exceptions import EraseError -__all__ = ['PartyReplace', 'PartyErase'] + +class Party(CompanyMultiValueMixin, metaclass=PoolMeta): +__name__ = 'party.party' +customer_code = fields.MultiValue(fields.Char('Customer Code', +help="The code the party as supplier has assigned to the company" +" as customer.")) +customer_codes = fields.One2Many( +'party.party.customer_code', 'party', "Customer Codes") + +@classmethod +def multivalue_model(cls, field): +pool = Pool() +if field == 'customer_code': +return pool.get('party.party.customer_code') +return super().multivalue_model(field) + + +class CustomerCode(ModelSQL, CompanyValueMixin): +"Party Customer Code" +__name__ = 'party.party.customer_code' +party = fields.Many2One( +'party.party', "Party", ondelete='CASCADE', select=True) +customer_code = fields.Char('Customer Code') class PartyReplace(metaclass=PoolMeta): diff -r 95953e542382 -r d2b6ee33a0f8 party.xml --- a/party.xml Tue Aug 20 09:30:24 2019 +0200 +++ b/party.xml Wed Aug 21 22:51:36 2019 +0200 @@ -3,6 +3,11 @@ this repository contains the full copyright notices and license terms. --> + +party.party + +party_form + Purchases purchase.purchase diff -r 95953e542382 -r d2b6ee33a0f8 purchase.fodt --- a/purchase.fodt Tue Aug 20 09:30:24 2019 +0200 +++ b/purchase.fodt Wed Aug 21 22:51:36 2019 +0200 @@ -1,24 +1,24 @@ http://www.w3.org/1999/xlink; xmlns:dc="http://purl.org/dc/elements/1.1/; xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML; xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office; xmlns:ooow="http://openoffice.org/2004/writer; xmlns:oooc="http://openoffice.org/2004/calc; xmlns:dom="http://www.w3.org/2001/xml-events; xmlns:xforms="http://www.w3.org/2002/xforms; xmlns:xsd="http://www.w3.org/2001/XMLSchema; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns:rpt="http://openoffice.org/2005/report; xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml; xmlns:grddl="http://www.w3.org/2003/g/data-view#; xmlns:officeooo="http://openoffice.org/2009/office; xmlns:tableooo="http://openoffice.org/2009/table; xmlns:drawooo="http://openoffice.org/2010/draw; xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0"
[tryton-commits] changeset in www.tryton.org:default Change phone number of gcoop...
changeset 4fb1ee0a89d2 in www.tryton.org:default details: https://hg.tryton.org/www.tryton.org?cmd=changeset;node=4fb1ee0a89d2 description: Change phone number of gcoop provider issue8424 review249491002 diffstat: templates/service_providers/gcoop.html | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (11 lines): diff -r 351dabd9e448 -r 4fb1ee0a89d2 templates/service_providers/gcoop.html --- a/templates/service_providers/gcoop.htmlMon Jun 10 16:50:36 2019 +0200 +++ b/templates/service_providers/gcoop.htmlThu Jun 13 22:22:28 2019 +0200 @@ -1,6 +1,6 @@ {% set website = 'http://gcoop.coop/' %} {% set email = 'i...@gcoop.coop' %} -{% set phone = '+541147710055' %} +{% set phone = '+541152547755' %} {% extends "service_providers/layout.html" %} {% block description %} A group of professionals with extensive experience in the world of free
[tryton-commits] changeset in modules/account:4.8 Fix typo in states key name
changeset cfc5083a977c in modules/account:4.8 details: https://hg.tryton.org/modules/account?cmd=changeset;node=cfc5083a977c description: Fix typo in states key name issue8262 review263321002 (grafted from 8ee11c5c94b4087a1108b09a3fc1431036a2f930) diffstat: account.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 7672c5c78ea4 -r cfc5083a977c account.py --- a/account.pyTue Apr 02 21:53:04 2019 +0200 +++ b/account.pyFri Apr 12 13:06:31 2019 +0200 @@ -613,7 +613,7 @@ ('id', '!=', Eval('currency', -1)), ], states={ -'reaodnly': _states['readonly'], +'readonly': _states['readonly'], 'invisible': (Eval('kind').in_( ['payable', 'revenue', 'receivable', 'expense']) | ~Eval('deferral', False)),
[tryton-commits] changeset in modules/account:5.0 Fix typo in states key name
changeset 92f640885d23 in modules/account:5.0 details: https://hg.tryton.org/modules/account?cmd=changeset;node=92f640885d23 description: Fix typo in states key name issue8262 review263321002 (grafted from 8ee11c5c94b4087a1108b09a3fc1431036a2f930) diffstat: account.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r f47fbbeaf96e -r 92f640885d23 account.py --- a/account.pyTue Apr 02 21:52:32 2019 +0200 +++ b/account.pyFri Apr 12 13:06:31 2019 +0200 @@ -582,7 +582,7 @@ ('id', '!=', Eval('currency', -1)), ], states={ -'reaodnly': _states['readonly'], +'readonly': _states['readonly'], 'invisible': (Eval('kind').in_( ['payable', 'revenue', 'receivable', 'expense']) | ~Eval('deferral', False)),
[tryton-commits] changeset in modules/account:default Fix typo in states key name
changeset 8ee11c5c94b4 in modules/account:default details: https://hg.tryton.org/modules/account?cmd=changeset;node=8ee11c5c94b4 description: Fix typo in states key name issue8262 review263321002 diffstat: account.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 38b1f1273247 -r 8ee11c5c94b4 account.py --- a/account.pyThu Apr 11 15:20:02 2019 +0200 +++ b/account.pyFri Apr 12 13:06:31 2019 +0200 @@ -716,7 +716,7 @@ ('id', '!=', Eval('currency', -1)), ], states={ -'reaodnly': _states['readonly'], +'readonly': _states['readonly'], 'invisible': ~Eval('deferral', False), }, depends=['currency', 'deferral'])