diff --git a/dev/scripts/interfaces/sst01_portal_create_partner.py b/dev/scripts/interfaces/sst01_portal_create_partner.py index bb0667ae..fac93c5c 100755 --- a/dev/scripts/interfaces/sst01_portal_create_partner.py +++ b/dev/scripts/interfaces/sst01_portal_create_partner.py @@ -23,7 +23,7 @@ values = { "phone": "+43 564564", "mobile": "+43 677 564564", "endkunde": True, - "portal_id": "111111", + "portal_id": "333333", "company": "Bier AG", "info_uid": "habe keine", "info_kundennr": "K1234", diff --git a/ext/custom-addons/dp_report_template/__init__.py b/ext/custom-addons/dp_report_template/__init__.py new file mode 100644 index 00000000..cde864ba --- /dev/null +++ b/ext/custom-addons/dp_report_template/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/ext/custom-addons/dp_report_template/__manifest__.py b/ext/custom-addons/dp_report_template/__manifest__.py new file mode 100644 index 00000000..2a1a8046 --- /dev/null +++ b/ext/custom-addons/dp_report_template/__manifest__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +# noinspection PyStatementEffect +{ + 'name': 'datepol Report-Anpassungen', + 'category': 'Custom', + 'version': '1.0', + 'summary': """Individuelle Report Anpassungen""", + 'description': """Individuelle Report Anpassungen""", + 'author': 'datenpol gmbh', + 'website': 'http://www.datenpol.at/', + 'depends': [ + 'dp_reports', + 'sale' + ], + 'data': [ + 'reports/sale.xml', + ], + # only loaded in demonstration mode + 'demo': [], + 'installable': True, + 'auto_install': False, +} diff --git a/ext/custom-addons/dp_report_template/i18n/de.po b/ext/custom-addons/dp_report_template/i18n/de.po new file mode 100644 index 00000000..6762beec --- /dev/null +++ b/ext/custom-addons/dp_report_template/i18n/de.po @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * dp_report +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-12 09:17+0000\n" +"PO-Revision-Date: 2016-10-13 11:58+0000\n" +"Last-Translator: datenpol\n" +"Language-Team: German (http://www.transifex.com/odoo/odoo-9/language/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + + diff --git a/ext/custom-addons/dp_report_template/models/__init__.py b/ext/custom-addons/dp_report_template/models/__init__.py new file mode 100644 index 00000000..619a5fb0 --- /dev/null +++ b/ext/custom-addons/dp_report_template/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import report_helper diff --git a/ext/custom-addons/dp_report_template/models/report_helper.py b/ext/custom-addons/dp_report_template/models/report_helper.py new file mode 100644 index 00000000..2d274b2f --- /dev/null +++ b/ext/custom-addons/dp_report_template/models/report_helper.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- + +from odoo import api, models + + +class SaleOrder(models.AbstractModel): + _name = 'report.dp_report_template.report_saleorder' + _inherit = 'report.abstract_report' + _template = 'dp_report_template.report_saleorder' + + @api.model + def get_report_values(self, docids, data=None): + model = 'sale.order' + docs = self.env[model].browse(docids) + return { + 'doc_ids': docids, + 'doc_model': model, + 'docs': docs, + 'data': data, + 'field_set_in_lines': self._field_set_in_lines, + 'formatLang': self._formatLang, + } diff --git a/ext/custom-addons/dp_report_template/reports/sale.xml b/ext/custom-addons/dp_report_template/reports/sale.xml new file mode 100644 index 00000000..ea4bcb8a --- /dev/null +++ b/ext/custom-addons/dp_report_template/reports/sale.xml @@ -0,0 +1,242 @@ + + + + + + + + + + + + + diff --git a/ext/custom-addons/dp_report_template/security/ir.model.access.csv b/ext/custom-addons/dp_report_template/security/ir.model.access.csv new file mode 100644 index 00000000..0343f29f --- /dev/null +++ b/ext/custom-addons/dp_report_template/security/ir.model.access.csv @@ -0,0 +1 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"