changeset 63eeea434bf8 in modules/account_eu:default
details:
https://hg.tryton.org/modules/account_eu?cmd=changeset;node=63eeea434bf8
description:
Add party to EC Sale List
issue7558
review54281002
diffstat:
CHANGELOG | 2 ++
account.py | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diffs (36 lines):
diff -r 82622b97b973 -r 63eeea434bf8 CHANGELOG
--- a/CHANGELOG Fri Apr 12 21:16:26 2019 +0200
+++ b/CHANGELOG Sun Apr 14 14:20:51 2019 +0200
@@ -1,3 +1,5 @@
+* Add party to EC Sale List
+
Version 5.0.0 - 2018-10-01
* Bug fixes (see mercurial logs for details)
* Remove support for Python 2.7
diff -r 82622b97b973 -r 63eeea434bf8 account.py
--- a/account.py Fri Apr 12 21:16:26 2019 +0200
+++ b/account.py Sun Apr 14 14:20:51 2019 +0200
@@ -38,6 +38,7 @@
company_tax_identifier = fields.Many2One(
'party.identifier', "Company Tax Identifier")
+ party = fields.Many2One('party.party', "Party")
party_tax_identifier = fields.Many2One(
'party.identifier', "Party Tax Identifier")
code = fields.Char("Code")
@@ -85,6 +86,7 @@
Literal(0).as_('write_uid'),
Max(invoice_tax.write_date).as_('write_date'),
invoice.tax_identifier.as_('company_tax_identifier'),
+ invoice.party.as_('party'),
invoice.party_tax_identifier.as_('party_tax_identifier'),
tax.ec_sales_list_code.as_('code'),
Sum(invoice_tax.base).as_('amount'),
@@ -92,6 +94,7 @@
where=where,
group_by=[
invoice.tax_identifier,
+ invoice.party,
invoice.party_tax_identifier,
tax.ec_sales_list_code,
invoice.currency,