From 998a72d3b048ab7897c9cc0edb191e6090e59f57 Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Fri, 3 May 2024 07:37:14 +0200 Subject: [PATCH] Invoice with Pos-Text (Menu-Entry) --- ext/custom-addons/dp_custom/models/account.py | 5 +++++ ext/custom-addons/dp_custom/views/dp_custom_views.xml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/ext/custom-addons/dp_custom/models/account.py b/ext/custom-addons/dp_custom/models/account.py index bc6bb375..1c4cf59f 100644 --- a/ext/custom-addons/dp_custom/models/account.py +++ b/ext/custom-addons/dp_custom/models/account.py @@ -161,6 +161,11 @@ class AccountInvoice(models.Model): self.ensure_one() return self.env.ref('dp_reports_account.account_invoices_short').report_action(self) + @api.multi + def print_invoice_extra(self): + self.ensure_one() + return self.env.ref('dp_reports_account.account_invoices_extra').report_action(self) + @api.multi def print_intrastat_invoice(self): self.ensure_one() diff --git a/ext/custom-addons/dp_custom/views/dp_custom_views.xml b/ext/custom-addons/dp_custom/views/dp_custom_views.xml index e23b3527..2ae331cc 100644 --- a/ext/custom-addons/dp_custom/views/dp_custom_views.xml +++ b/ext/custom-addons/dp_custom/views/dp_custom_views.xml @@ -11,6 +11,16 @@ report + + Rechnung Pos-Text + ir.actions.server + + + code + action = record.print_invoice_extra() + report + + Rechnung mit Zolltarifnummer ir.actions.server