diff --git a/addons/l10n_at/__manifest__.py b/addons/l10n_at/__manifest__.py index da2e4835df8..70331daf3dd 100644 --- a/addons/l10n_at/__manifest__.py +++ b/addons/l10n_at/__manifest__.py @@ -32,6 +32,7 @@ Austrian charts of accounts (Einheitskontenrahmen 2010). "account", "base_iban", "base_vat", + "l10n_din5008", ], "data": [ 'data/res.country.state.csv', diff --git a/addons/l10n_at/models/__init__.py b/addons/l10n_at/models/__init__.py new file mode 100644 index 00000000000..5514ac3be98 --- /dev/null +++ b/addons/l10n_at/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import chart_template diff --git a/addons/l10n_at/models/chart_template.py b/addons/l10n_at/models/chart_template.py new file mode 100644 index 00000000000..eb0710a1346 --- /dev/null +++ b/addons/l10n_at/models/chart_template.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +from odoo import models + + +class AccountChartTemplate(models.Model): + _inherit = 'account.chart.template' + + # Write paperformat and report template used on company + def _load(self, sale_tax_rate, purchase_tax_rate, company): + res = super(AccountChartTemplate, self)._load(sale_tax_rate, purchase_tax_rate, company) + if self == self.env.ref('l10n_at.l10n_at_chart_template'): + company.write({ + 'external_report_layout_id': self.env.ref('l10n_din5008.external_layout_din5008').id, + 'paperformat_id': self.env.ref('l10n_din5008.paperformat_euro_din').id + }) + return res diff --git a/addons/l10n_ch/__manifest__.py b/addons/l10n_ch/__manifest__.py index 37015240838..0d9b256e0f9 100644 --- a/addons/l10n_ch/__manifest__.py +++ b/addons/l10n_ch/__manifest__.py @@ -33,7 +33,7 @@ Here is how it works: 'version': '11.0', 'category': 'Accounting/Localizations/Account Charts', - 'depends': ['account', 'l10n_multilang', 'base_iban'], + 'depends': ['account', 'l10n_multilang', 'base_iban', 'l10n_din5008'], 'data': [ 'data/l10n_ch_chart_data.xml', diff --git a/addons/l10n_ch/models/__init__.py b/addons/l10n_ch/models/__init__.py index b4ae72a5547..9ee1b1e289a 100644 --- a/addons/l10n_ch/models/__init__.py +++ b/addons/l10n_ch/models/__init__.py @@ -9,3 +9,4 @@ from . import res_bank from . import res_company from . import account_bank_statement from . import ir_actions_report +from . import chart_template diff --git a/addons/l10n_ch/models/chart_template.py b/addons/l10n_ch/models/chart_template.py new file mode 100644 index 00000000000..d01eef79395 --- /dev/null +++ b/addons/l10n_ch/models/chart_template.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +from odoo import models + + +class AccountChartTemplate(models.Model): + _inherit = 'account.chart.template' + + # Write paperformat and report template used on company + def _load(self, sale_tax_rate, purchase_tax_rate, company): + res = super(AccountChartTemplate, self)._load(sale_tax_rate, purchase_tax_rate, company) + if self == self.env.ref('l10n_ch.l10nch_chart_template'): + company.write({ + 'external_report_layout_id': self.env.ref('l10n_din5008.external_layout_din5008').id, + 'paperformat_id': self.env.ref('l10n_din5008.paperformat_euro_din').id + }) + return res diff --git a/addons/l10n_de/__init__.py b/addons/l10n_de/__init__.py index e9917144f69..dc5e6b693d1 100644 --- a/addons/l10n_de/__init__.py +++ b/addons/l10n_de/__init__.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -from . import models \ No newline at end of file +from . import models diff --git a/addons/l10n_de/__manifest__.py b/addons/l10n_de/__manifest__.py index 0c98ed4e4d1..6f72db6d1b2 100644 --- a/addons/l10n_de/__manifest__.py +++ b/addons/l10n_de/__manifest__.py @@ -16,19 +16,13 @@ German accounting chart and localization. 'account', 'base_iban', 'base_vat', + 'l10n_din5008', ], 'data': [ 'data/account_account_tags_data.xml', 'data/menuitem_data.xml', 'views/account_view.xml', 'views/res_company_views.xml', - 'report/din5008_report.xml', - 'data/report_layout.xml', ], - 'assets': { - 'web.report_assets_common': [ - 'l10n_de/static/src/**/*', - ], - }, 'license': 'LGPL-3', } diff --git a/addons/l10n_de/data/report_layout.xml b/addons/l10n_de/data/report_layout.xml deleted file mode 100644 index ed0069c99cf..00000000000 --- a/addons/l10n_de/data/report_layout.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - /l10n_de/static/img/preview_din.png - /l10n_de/static/pdf/preview_din.pdf - DIN 5008 - - - \ No newline at end of file diff --git a/addons/l10n_de/models/__init__.py b/addons/l10n_de/models/__init__.py index a2bb92d497e..591f797530f 100644 --- a/addons/l10n_de/models/__init__.py +++ b/addons/l10n_de/models/__init__.py @@ -2,8 +2,6 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import datev -from . import base_document_layout from . import chart_template from . import ir_actions_report -from . import account_move from . import res_company diff --git a/addons/l10n_de/models/chart_template.py b/addons/l10n_de/models/chart_template.py index 48b07460a60..23d7040768b 100644 --- a/addons/l10n_de/models/chart_template.py +++ b/addons/l10n_de/models/chart_template.py @@ -17,7 +17,12 @@ class AccountChartTemplate(models.Model): # Write paperformat and report template used on company def _load(self, sale_tax_rate, purchase_tax_rate, company): res = super(AccountChartTemplate, self)._load(sale_tax_rate, purchase_tax_rate, company) - if company.account_fiscal_country_id.code == 'DE': - company.write({'external_report_layout_id': self.env.ref('l10n_de.external_layout_din5008').id, - 'paperformat_id': self.env.ref('l10n_de.paperformat_euro_din').id}) + if self in [ + self.env.ref('l10n_de_skr03.l10n_de_chart_template', raise_if_not_found=False), + self.env.ref('l10n_de_skr04.l10n_chart_de_skr04', raise_if_not_found=False) + ]: + company.write({ + 'external_report_layout_id': self.env.ref('l10n_din5008.external_layout_din5008').id, + 'paperformat_id': self.env.ref('l10n_din5008.paperformat_euro_din').id + }) return res diff --git a/addons/l10n_de/static/img/preview_din.png b/addons/l10n_de/static/img/preview_din.png deleted file mode 100644 index 0c271a51513..00000000000 Binary files a/addons/l10n_de/static/img/preview_din.png and /dev/null differ diff --git a/addons/l10n_de/static/pdf/preview_din.pdf b/addons/l10n_de/static/pdf/preview_din.pdf deleted file mode 100644 index 63d05f58d99..00000000000 Binary files a/addons/l10n_de/static/pdf/preview_din.pdf and /dev/null differ diff --git a/addons/l10n_de_purchase/i18n/de.po b/addons/l10n_de_purchase/i18n/de.po deleted file mode 100644 index 82559de9290..00000000000 --- a/addons/l10n_de_purchase/i18n/de.po +++ /dev/null @@ -1,115 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_de_purchase -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-06-30 07:07+0000\n" -"PO-Revision-Date: 2021-07-29 12:12+0200\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.3\n" -"Last-Translator: \n" -"Language: de\n" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Cancelled Purchase Order" -msgstr "Stornierte Bestellung" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Cancelled Purchase Order No." -msgstr "Stornierte Bestellnr." - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__display_name -msgid "Display Name" -msgstr "Anzeigename" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__id -msgid "ID" -msgstr "ID" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Incoterm" -msgstr "Incoterm" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__l10n_de_addresses -msgid "L10N De Addresses" -msgstr "" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__l10n_de_document_title -msgid "L10N De Document Title" -msgstr "" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__l10n_de_template_data -msgid "L10N De Template Data" -msgstr "" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order____last_update -msgid "Last Modified on" -msgstr "Zuletzt bearbeitet am" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Order Date" -msgstr "Bestelldatum" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Order Reference" -msgstr "Bestellreferenz" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#: model:ir.model,name:l10n_de_purchase.model_purchase_order -#, python-format -msgid "Purchase Order" -msgstr "Bestellung" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Purchase Order No." -msgstr "Bestellnummer" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Purchase Representative" -msgstr "Bestellbeauftragte(r)" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Request for Quotation" -msgstr "Angebotsanfrage" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Request for Quotation No." -msgstr "Angebotsanfragenr." - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Shipping Address:" -msgstr "Lieferadresse:" diff --git a/addons/l10n_de_purchase/i18n/l10n_de_purchase.pot b/addons/l10n_de_purchase/i18n/l10n_de_purchase.pot deleted file mode 100644 index f6859aff1c0..00000000000 --- a/addons/l10n_de_purchase/i18n/l10n_de_purchase.pot +++ /dev/null @@ -1,114 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_de_purchase -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-22 09:49+0000\n" -"PO-Revision-Date: 2021-07-22 09:49+0000\n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Cancelled Purchase Order" -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Cancelled Purchase Order No." -msgstr "" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__display_name -msgid "Display Name" -msgstr "" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__id -msgid "ID" -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Incoterm" -msgstr "" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__l10n_de_addresses -msgid "L10N De Addresses" -msgstr "" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__l10n_de_document_title -msgid "L10N De Document Title" -msgstr "" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order__l10n_de_template_data -msgid "L10N De Template Data" -msgstr "" - -#. module: l10n_de_purchase -#: model:ir.model.fields,field_description:l10n_de_purchase.field_purchase_order____last_update -msgid "Last Modified on" -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Order Date" -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Order Reference" -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#: model:ir.model,name:l10n_de_purchase.model_purchase_order -#, python-format -msgid "Purchase Order" -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Purchase Order No." -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Purchase Representative" -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Request for Quotation" -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Request for Quotation No." -msgstr "" - -#. module: l10n_de_purchase -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#: code:addons/l10n_de_purchase/models/purchase.py:0 -#, python-format -msgid "Shipping Address:" -msgstr "" diff --git a/addons/l10n_de_repair/i18n/de.po b/addons/l10n_de_repair/i18n/de.po deleted file mode 100644 index 518428bd79e..00000000000 --- a/addons/l10n_de_repair/i18n/de.po +++ /dev/null @@ -1,80 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_de_repair -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-06-30 07:08+0000\n" -"PO-Revision-Date: 2021-07-15 11:47+0200\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 3.0\n" -"Last-Translator: \n" -"Language: de\n" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order__display_name -msgid "Display Name" -msgstr "Anzeigename" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order__id -msgid "ID" -msgstr "ID" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order__l10n_de_document_title -msgid "L10N De Document Title" -msgstr "L10N De Document Title" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order__l10n_de_template_data -msgid "L10N De Template Data" -msgstr "L10N De Template Data" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order____last_update -msgid "Last Modified on" -msgstr "Zuletzt bearbeitet am" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Lot/Serial Number" -msgstr "Los-/Seriennummer" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Printing Date" -msgstr "Druckdatum" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Product to Repair" -msgstr "Produkt zur Reparatur" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#: model:ir.model,name:l10n_de_repair.model_repair_order -#, python-format -msgid "Repair Order" -msgstr "Reparaturauftrag" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Repair Quotation" -msgstr "Reparaturangebot" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Warranty" -msgstr "Garantie" diff --git a/addons/l10n_de_repair/i18n/l10n_de_repair.pot b/addons/l10n_de_repair/i18n/l10n_de_repair.pot deleted file mode 100644 index 1b788770007..00000000000 --- a/addons/l10n_de_repair/i18n/l10n_de_repair.pot +++ /dev/null @@ -1,78 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_de_repair -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-22 09:50+0000\n" -"PO-Revision-Date: 2021-07-22 09:50+0000\n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order__display_name -msgid "Display Name" -msgstr "" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order__id -msgid "ID" -msgstr "" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order__l10n_de_document_title -msgid "L10N De Document Title" -msgstr "" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order__l10n_de_template_data -msgid "L10N De Template Data" -msgstr "" - -#. module: l10n_de_repair -#: model:ir.model.fields,field_description:l10n_de_repair.field_repair_order____last_update -msgid "Last Modified on" -msgstr "" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Lot/Serial Number" -msgstr "" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Printing Date" -msgstr "" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Product to Repair" -msgstr "" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#: model:ir.model,name:l10n_de_repair.model_repair_order -#, python-format -msgid "Repair Order" -msgstr "" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Repair Quotation" -msgstr "" - -#. module: l10n_de_repair -#: code:addons/l10n_de_repair/models/repair.py:0 -#, python-format -msgid "Warranty" -msgstr "" diff --git a/addons/l10n_de_sale/i18n/de.po b/addons/l10n_de_sale/i18n/de.po deleted file mode 100644 index 18086cd13f9..00000000000 --- a/addons/l10n_de_sale/i18n/de.po +++ /dev/null @@ -1,121 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_de_sale -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-06-30 07:09+0000\n" -"PO-Revision-Date: 2021-07-29 13:08+0200\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 2.3\n" -"Last-Translator: \n" -"Language: de\n" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Customer Reference" -msgstr "Kundenreferenz" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__display_name -msgid "Display Name" -msgstr "Anzeigename" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Expiration" -msgstr "Ablaufdatum" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__id -msgid "ID" -msgstr "ID" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Invoicing Address:" -msgstr "Rechnungsadresse:" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Invoicing and Shipping Address:" -msgstr "Rechnungs- und Lieferadresse:" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__l10n_de_addresses -msgid "L10N De Addresses" -msgstr "" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__l10n_de_document_title -msgid "L10N De Document Title" -msgstr "" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__l10n_de_template_data -msgid "L10N De Template Data" -msgstr "" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order____last_update -msgid "Last Modified on" -msgstr "Zuletzt bearbeitet am" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Order Date" -msgstr "Auftragsdatum" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Order No." -msgstr "Auftragsnummer" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Quotation" -msgstr "Angebot" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Quotation Date" -msgstr "Angebotsdatum" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Quotation No." -msgstr "Angebotsnummer" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#: model:ir.model,name:l10n_de_sale.model_sale_order -#, python-format -msgid "Sales Order" -msgstr "Verkaufsauftrag" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Salesperson" -msgstr "Verkäufer" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Shipping Address:" -msgstr "Lieferadresse:" diff --git a/addons/l10n_de_sale/i18n/l10n_de_sale.pot b/addons/l10n_de_sale/i18n/l10n_de_sale.pot deleted file mode 100644 index 0c350ecd935..00000000000 --- a/addons/l10n_de_sale/i18n/l10n_de_sale.pot +++ /dev/null @@ -1,119 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_de_sale -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-22 09:41+0000\n" -"PO-Revision-Date: 2021-07-22 09:41+0000\n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Customer Reference" -msgstr "" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__display_name -msgid "Display Name" -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Expiration" -msgstr "" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__id -msgid "ID" -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Invoicing Address:" -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Invoicing and Shipping Address:" -msgstr "" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__l10n_de_addresses -msgid "L10N De Addresses" -msgstr "" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__l10n_de_document_title -msgid "L10N De Document Title" -msgstr "" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order__l10n_de_template_data -msgid "L10N De Template Data" -msgstr "" - -#. module: l10n_de_sale -#: model:ir.model.fields,field_description:l10n_de_sale.field_sale_order____last_update -msgid "Last Modified on" -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Order Date" -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Order No." -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Quotation" -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Quotation Date" -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Quotation No." -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#: model:ir.model,name:l10n_de_sale.model_sale_order -#, python-format -msgid "Sales Order" -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Salesperson" -msgstr "" - -#. module: l10n_de_sale -#: code:addons/l10n_de_sale/models/sale.py:0 -#, python-format -msgid "Shipping Address:" -msgstr "" diff --git a/addons/l10n_de_stock/i18n/de.po b/addons/l10n_de_stock/i18n/de.po deleted file mode 100644 index 009e02020fa..00000000000 --- a/addons/l10n_de_stock/i18n/de.po +++ /dev/null @@ -1,49 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_de_stock -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-06-30 07:09+0000\n" -"PO-Revision-Date: 2021-07-15 11:38+0200\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 3.0\n" -"Last-Translator: \n" -"Language: de\n" - -#. module: l10n_de_stock -#: code:addons/l10n_de_stock/models/stock.py:0 -#, python-format -msgid "Date" -msgstr "Datum" - -#. module: l10n_de_stock -#: model:ir.model.fields,field_description:l10n_de_stock.field_stock_inventory__display_name -msgid "Display Name" -msgstr "Anzeigename" - -#. module: l10n_de_stock -#: model:ir.model.fields,field_description:l10n_de_stock.field_stock_inventory__id -msgid "ID" -msgstr "ID" - -#. module: l10n_de_stock -#: model:ir.model,name:l10n_de_stock.model_stock_inventory -msgid "Inventory" -msgstr "Lager" - -#. module: l10n_de_stock -#: model:ir.model.fields,field_description:l10n_de_stock.field_stock_inventory__l10n_de_template_data -msgid "L10N De Template Data" -msgstr "L10N De Template Data" - -#. module: l10n_de_stock -#: model:ir.model.fields,field_description:l10n_de_stock.field_stock_inventory____last_update -msgid "Last Modified on" -msgstr "Zuletzt bearbeitet am" diff --git a/addons/l10n_de_stock/i18n/l10n_de_stock.pot b/addons/l10n_de_stock/i18n/l10n_de_stock.pot deleted file mode 100644 index 87cf92fdb6d..00000000000 --- a/addons/l10n_de_stock/i18n/l10n_de_stock.pot +++ /dev/null @@ -1,47 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * l10n_de_stock -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-22 09:50+0000\n" -"PO-Revision-Date: 2021-07-22 09:50+0000\n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: l10n_de_stock -#: code:addons/l10n_de_stock/models/stock.py:0 -#, python-format -msgid "Date" -msgstr "" - -#. module: l10n_de_stock -#: model:ir.model.fields,field_description:l10n_de_stock.field_stock_inventory__display_name -msgid "Display Name" -msgstr "" - -#. module: l10n_de_stock -#: model:ir.model.fields,field_description:l10n_de_stock.field_stock_inventory__id -msgid "ID" -msgstr "" - -#. module: l10n_de_stock -#: model:ir.model,name:l10n_de_stock.model_stock_inventory -msgid "Inventory" -msgstr "" - -#. module: l10n_de_stock -#: model:ir.model.fields,field_description:l10n_de_stock.field_stock_inventory__l10n_de_template_data -msgid "L10N De Template Data" -msgstr "" - -#. module: l10n_de_stock -#: model:ir.model.fields,field_description:l10n_de_stock.field_stock_inventory____last_update -msgid "Last Modified on" -msgstr "" diff --git a/addons/l10n_din5008/__init__.py b/addons/l10n_din5008/__init__.py new file mode 100644 index 00000000000..dc5e6b693d1 --- /dev/null +++ b/addons/l10n_din5008/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import models diff --git a/addons/l10n_din5008/__manifest__.py b/addons/l10n_din5008/__manifest__.py new file mode 100644 index 00000000000..b6529e1ee9b --- /dev/null +++ b/addons/l10n_din5008/__manifest__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +{ + 'name': 'DIN 5008', + 'version': '1.0', + 'category': 'Accounting/Localizations', + 'description': "This is the base module that defines the DIN 5008 standard in Odoo.", + 'author': 'Odoo SA', + 'depends': ['account'], + 'data': [ + 'report/din5008_report.xml', + 'data/report_layout.xml', + ], + 'assets': { + 'web.report_assets_common': [ + 'l10n_din5008/static/src/**/*', + ], + }, + 'license': 'LGPL-3', +} diff --git a/addons/l10n_din5008/data/report_layout.xml b/addons/l10n_din5008/data/report_layout.xml new file mode 100644 index 00000000000..5be870b868e --- /dev/null +++ b/addons/l10n_din5008/data/report_layout.xml @@ -0,0 +1,11 @@ + + + + + + + + DIN 5008 + + + diff --git a/addons/l10n_din5008/models/__init__.py b/addons/l10n_din5008/models/__init__.py new file mode 100644 index 00000000000..698f201289e --- /dev/null +++ b/addons/l10n_din5008/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import base_document_layout +from . import account_move diff --git a/addons/l10n_de/models/account_move.py b/addons/l10n_din5008/models/account_move.py similarity index 55% rename from addons/l10n_de/models/account_move.py rename to addons/l10n_din5008/models/account_move.py index 71ec4a0acb2..39e1afcfa8f 100644 --- a/addons/l10n_de/models/account_move.py +++ b/addons/l10n_din5008/models/account_move.py @@ -5,12 +5,12 @@ from odoo.tools import format_date class AccountMove(models.Model): _inherit = 'account.move' - l10n_de_template_data = fields.Binary(compute='_compute_l10n_de_template_data') - l10n_de_document_title = fields.Char(compute='_compute_l10n_de_document_title') + l10n_din5008_template_data = fields.Binary(compute='_compute_l10n_din5008_template_data') + l10n_din5008_document_title = fields.Char(compute='_compute_l10n_din5008_document_title') - def _compute_l10n_de_template_data(self): + def _compute_l10n_din5008_template_data(self): for record in self: - record.l10n_de_template_data = data = [] + record.l10n_din5008_template_data = data = [] if record.name: data.append((_("Invoice No."), record.name)) if record.invoice_date: @@ -22,19 +22,19 @@ class AccountMove(models.Model): if record.ref: data.append((_("Reference"), record.ref)) - def _compute_l10n_de_document_title(self): + def _compute_l10n_din5008_document_title(self): for record in self: - record.l10n_de_document_title = '' + record.l10n_din5008_document_title = '' if record.move_type == 'out_invoice': if record.state == 'posted': - record.l10n_de_document_title = _('Invoice') + record.l10n_din5008_document_title = _('Invoice') elif record.state == 'draft': - record.l10n_de_document_title = _('Draft Invoice') + record.l10n_din5008_document_title = _('Draft Invoice') elif record.state == 'cancel': - record.l10n_de_document_title = _('Cancelled Invoice') + record.l10n_din5008_document_title = _('Cancelled Invoice') elif record.move_type == 'out_refund': - record.l10n_de_document_title = _('Credit Note') + record.l10n_din5008_document_title = _('Credit Note') elif record.move_type == 'in_refund': - record.l10n_de_document_title = _('Vendor Credit Note') + record.l10n_din5008_document_title = _('Vendor Credit Note') elif record.move_type == 'in_invoice': - record.l10n_de_document_title = _('Vendor Bill') + record.l10n_din5008_document_title = _('Vendor Bill') diff --git a/addons/l10n_de/models/base_document_layout.py b/addons/l10n_din5008/models/base_document_layout.py similarity index 72% rename from addons/l10n_de/models/base_document_layout.py rename to addons/l10n_din5008/models/base_document_layout.py index 4b229bcb6b4..18577ad3383 100644 --- a/addons/l10n_de/models/base_document_layout.py +++ b/addons/l10n_din5008/models/base_document_layout.py @@ -12,16 +12,16 @@ class BaseDocumentLayout(models.TransientModel): company_registry = fields.Char(related='company_id.company_registry', readonly=True) bank_ids = fields.One2many(related='company_id.partner_id.bank_ids', readonly=True) account_fiscal_country_id = fields.Many2one(related='company_id.account_fiscal_country_id', readonly=True) - l10n_de_template_data = fields.Binary(compute='_compute_l10n_de_template_data') - l10n_de_document_title = fields.Char(compute='_compute_l10n_de_document_title') + l10n_din5008_template_data = fields.Binary(compute='_compute_l10n_din5008_template_data') + l10n_din5008_document_title = fields.Char(compute='_compute_l10n_din5008_document_title') - def _compute_l10n_de_template_data(self): - self.l10n_de_template_data = [ + def _compute_l10n_din5008_template_data(self): + self.l10n_din5008_template_data = [ (_("Invoice No."), 'INV/2021/12345'), (_("Invoice Date"), format_date(self.env, fields.Date.today())), (_("Due Date"), format_date(self.env, fields.Date.add(fields.Date.today(), days=7))), (_("Reference"), 'SO/2021/45678'), ] - def _compute_l10n_de_document_title(self): - self.l10n_de_document_title = 'Invoice' + def _compute_l10n_din5008_document_title(self): + self.l10n_din5008_document_title = 'Invoice' diff --git a/addons/l10n_de/report/din5008_report.xml b/addons/l10n_din5008/report/din5008_report.xml similarity index 93% rename from addons/l10n_de/report/din5008_report.xml rename to addons/l10n_din5008/report/din5008_report.xml index 561d1a2b19f..ba5d824d7f1 100644 --- a/addons/l10n_de/report/din5008_report.xml +++ b/addons/l10n_din5008/report/din5008_report.xml @@ -78,8 +78,8 @@
- - + + @@ -88,8 +88,8 @@ - - + +
@@ -100,8 +100,8 @@

- - + +

@@ -136,7 +136,6 @@
  • :
  • HRB Nr:
  • -
@@ -157,7 +156,7 @@