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 @@
|
@@ -157,7 +156,7 @@
-
+
&.din_page {
&.header {
.company_header {
diff --git a/addons/l10n_de/static/src/scss/report_din5008.scss b/addons/l10n_din5008/static/src/scss/report_din5008.scss
similarity index 100%
rename from addons/l10n_de/static/src/scss/report_din5008.scss
rename to addons/l10n_din5008/static/src/scss/report_din5008.scss
diff --git a/addons/l10n_de_purchase/__init__.py b/addons/l10n_din5008_purchase/__init__.py
similarity index 100%
rename from addons/l10n_de_purchase/__init__.py
rename to addons/l10n_din5008_purchase/__init__.py
diff --git a/addons/l10n_de_purchase/__manifest__.py b/addons/l10n_din5008_purchase/__manifest__.py
similarity index 80%
rename from addons/l10n_de_purchase/__manifest__.py
rename to addons/l10n_din5008_purchase/__manifest__.py
index 063364c84ae..4f560e34b08 100644
--- a/addons/l10n_de_purchase/__manifest__.py
+++ b/addons/l10n_din5008_purchase/__manifest__.py
@@ -2,10 +2,10 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
- 'name': 'Germany - Purchase',
+ 'name': 'DIN 5008 - Purchase',
'category': 'Accounting/Localizations',
'depends': [
- 'l10n_de',
+ 'l10n_din5008',
'purchase',
],
'auto_install': True,
diff --git a/addons/l10n_de_purchase/models/__init__.py b/addons/l10n_din5008_purchase/models/__init__.py
similarity index 100%
rename from addons/l10n_de_purchase/models/__init__.py
rename to addons/l10n_din5008_purchase/models/__init__.py
diff --git a/addons/l10n_de_purchase/models/purchase.py b/addons/l10n_din5008_purchase/models/purchase.py
similarity index 66%
rename from addons/l10n_de_purchase/models/purchase.py
rename to addons/l10n_din5008_purchase/models/purchase.py
index 9ccc75c03a5..db7041932ee 100644
--- a/addons/l10n_de_purchase/models/purchase.py
+++ b/addons/l10n_din5008_purchase/models/purchase.py
@@ -5,13 +5,13 @@ from odoo.tools import format_date
class PurchaseOrder(models.Model):
_inherit = 'purchase.order'
- 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_de_addresses = fields.Binary(compute='_compute_l10n_de_addresses')
+ l10n_din5008_template_data = fields.Binary(compute='_compute_l10n_din5008_template_data')
+ l10n_din5008_document_title = fields.Char(compute='_compute_l10n_din5008_document_title')
+ l10n_din5008_addresses = fields.Binary(compute='_compute_l10n_din5008_addresses')
- 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.state == 'draft':
data.append((_("Request for Quotation No."), record.name))
elif record.state in ['sent', 'to approve', 'purchase', 'done']:
@@ -30,18 +30,18 @@ class PurchaseOrder(models.Model):
- def _compute_l10n_de_document_title(self):
+ def _compute_l10n_din5008_document_title(self):
for record in self:
if record.state == 'draft':
- record.l10n_de_document_title = _("Request for Quotation")
+ record.l10n_din5008_document_title = _("Request for Quotation")
elif record.state in ['sent', 'to approve', 'purchase', 'done']:
- record.l10n_de_document_title = _("Purchase Order")
+ record.l10n_din5008_document_title = _("Purchase Order")
elif record.state == 'cancel':
- record.l10n_de_document_title = _("Cancelled Purchase Order")
+ record.l10n_din5008_document_title = _("Cancelled Purchase Order")
- def _compute_l10n_de_addresses(self):
+ def _compute_l10n_din5008_addresses(self):
for record in self:
- record.l10n_de_addresses = data = []
+ record.l10n_din5008_addresses = data = []
if record.dest_address_id:
data.append((_("Shipping Address:"), record.dest_address_id))
elif 'picking_type_id' in record._fields and record.picking_type_id.warehouse_id:
diff --git a/addons/l10n_de_repair/__init__.py b/addons/l10n_din5008_repair/__init__.py
similarity index 100%
rename from addons/l10n_de_repair/__init__.py
rename to addons/l10n_din5008_repair/__init__.py
diff --git a/addons/l10n_de_repair/__manifest__.py b/addons/l10n_din5008_repair/__manifest__.py
similarity index 80%
rename from addons/l10n_de_repair/__manifest__.py
rename to addons/l10n_din5008_repair/__manifest__.py
index 6f48776d71a..d3bb31c313a 100644
--- a/addons/l10n_de_repair/__manifest__.py
+++ b/addons/l10n_din5008_repair/__manifest__.py
@@ -2,10 +2,10 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
- 'name': 'Germany - Repair',
+ 'name': 'DIN 5008 - Repair',
'category': 'Accounting/Localizations',
'depends': [
- 'l10n_de',
+ 'l10n_din5008',
'repair',
],
'auto_install': True,
diff --git a/addons/l10n_de_repair/models/__init__.py b/addons/l10n_din5008_repair/models/__init__.py
similarity index 100%
rename from addons/l10n_de_repair/models/__init__.py
rename to addons/l10n_din5008_repair/models/__init__.py
diff --git a/addons/l10n_de_repair/models/repair.py b/addons/l10n_din5008_repair/models/repair.py
similarity index 58%
rename from addons/l10n_de_repair/models/repair.py
rename to addons/l10n_din5008_repair/models/repair.py
index 5f007603de9..b2d50d5b770 100644
--- a/addons/l10n_de_repair/models/repair.py
+++ b/addons/l10n_din5008_repair/models/repair.py
@@ -5,12 +5,12 @@ from odoo.tools import format_date
class RepairOrder(models.Model):
_inherit = 'repair.order'
- 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.product_id:
data.append((_("Product to Repair"), record.product_id.name))
if record.lot_id:
@@ -19,9 +19,9 @@ class RepairOrder(models.Model):
data.append((_("Warranty"), format_date(self.env, record.guarantee_limit)))
data.append((_("Printing Date"), format_date(self.env, fields.Date.today())))
- def _compute_l10n_de_document_title(self):
+ def _compute_l10n_din5008_document_title(self):
for record in self:
if record.state == 'draft':
- record.l10n_de_document_title = _("Repair Order")
+ record.l10n_din5008_document_title = _("Repair Order")
else:
- record.l10n_de_document_title = _("Repair Quotation")
+ record.l10n_din5008_document_title = _("Repair Quotation")
diff --git a/addons/l10n_de_sale/__init__.py b/addons/l10n_din5008_sale/__init__.py
similarity index 100%
rename from addons/l10n_de_sale/__init__.py
rename to addons/l10n_din5008_sale/__init__.py
diff --git a/addons/l10n_de_sale/__manifest__.py b/addons/l10n_din5008_sale/__manifest__.py
similarity index 81%
rename from addons/l10n_de_sale/__manifest__.py
rename to addons/l10n_din5008_sale/__manifest__.py
index 7f09bf56b6d..0ed6a353caf 100644
--- a/addons/l10n_de_sale/__manifest__.py
+++ b/addons/l10n_din5008_sale/__manifest__.py
@@ -2,10 +2,10 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
- 'name': 'Germany - Sale',
+ 'name': 'DIN 5008 - Sale',
'category': 'Accounting/Localizations',
'depends': [
- 'l10n_de',
+ 'l10n_din5008',
'sale',
],
'auto_install': True,
diff --git a/addons/l10n_de_sale/models/__init__.py b/addons/l10n_din5008_sale/models/__init__.py
similarity index 100%
rename from addons/l10n_de_sale/models/__init__.py
rename to addons/l10n_din5008_sale/models/__init__.py
diff --git a/addons/l10n_de_sale/models/sale.py b/addons/l10n_din5008_sale/models/sale.py
similarity index 69%
rename from addons/l10n_de_sale/models/sale.py
rename to addons/l10n_din5008_sale/models/sale.py
index ad104a97ac2..06e72094d3f 100644
--- a/addons/l10n_de_sale/models/sale.py
+++ b/addons/l10n_din5008_sale/models/sale.py
@@ -5,13 +5,13 @@ from odoo.tools import format_date
class SaleOrder(models.Model):
_inherit = 'sale.order'
- 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_de_addresses = fields.Binary(compute='_compute_l10n_de_addresses')
+ l10n_din5008_template_data = fields.Binary(compute='_compute_l10n_din5008_template_data')
+ l10n_din5008_document_title = fields.Char(compute='_compute_l10n_din5008_document_title')
+ l10n_din5008_addresses = fields.Binary(compute='_compute_l10n_din5008_addresses')
- 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.state in ('draft', 'sent'):
if record.name:
data.append((_("Quotation No."), record.name))
@@ -29,16 +29,16 @@ class SaleOrder(models.Model):
if record.user_id:
data.append((_("Salesperson"), record.user_id.name))
- def _compute_l10n_de_document_title(self):
+ def _compute_l10n_din5008_document_title(self):
for record in self:
if record.state in ('draft', 'sent'):
- record.l10n_de_document_title = _('Quotation')
+ record.l10n_din5008_document_title = _('Quotation')
else:
- record.l10n_de_document_title = _('Sales Order')
+ record.l10n_din5008_document_title = _('Sales Order')
- def _compute_l10n_de_addresses(self):
+ def _compute_l10n_din5008_addresses(self):
for record in self:
- record.l10n_de_addresses = data = []
+ record.l10n_din5008_addresses = data = []
if record.partner_shipping_id == record.partner_invoice_id:
data.append((_("Invoicing and Shipping Address:"), record.partner_shipping_id))
else:
diff --git a/addons/l10n_de_stock/__init__.py b/addons/l10n_din5008_stock/__init__.py
similarity index 100%
rename from addons/l10n_de_stock/__init__.py
rename to addons/l10n_din5008_stock/__init__.py
diff --git a/addons/l10n_de_stock/__manifest__.py b/addons/l10n_din5008_stock/__manifest__.py
similarity index 81%
rename from addons/l10n_de_stock/__manifest__.py
rename to addons/l10n_din5008_stock/__manifest__.py
index fa8af040a5d..4fc8dc1bda3 100644
--- a/addons/l10n_de_stock/__manifest__.py
+++ b/addons/l10n_din5008_stock/__manifest__.py
@@ -2,10 +2,10 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
- 'name': 'Germany - Stock',
+ 'name': 'DIN 5008 - Stock',
'category': 'Accounting/Localizations',
'depends': [
- 'l10n_de',
+ 'l10n_din5008',
'stock',
],
'auto_install': True,
diff --git a/addons/l10n_de_stock/models/__init__.py b/addons/l10n_din5008_stock/models/__init__.py
similarity index 100%
rename from addons/l10n_de_stock/models/__init__.py
rename to addons/l10n_din5008_stock/models/__init__.py
diff --git a/addons/l10n_de_stock/models/stock.py b/addons/l10n_din5008_stock/models/stock.py
similarity index 71%
rename from addons/l10n_de_stock/models/stock.py
rename to addons/l10n_din5008_stock/models/stock.py
index 281d05f6d1f..54fd028b623 100644
--- a/addons/l10n_de_stock/models/stock.py
+++ b/addons/l10n_din5008_stock/models/stock.py
@@ -5,11 +5,11 @@ from odoo.tools import format_date
class StockPicking(models.Model):
_inherit = 'stock.picking'
- l10n_de_template_data = fields.Binary(compute='_compute_l10n_de_template_data')
+ l10n_din5008_template_data = fields.Binary(compute='_compute_l10n_din5008_template_data')
- 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.origin:
data.append((_("Order"), record.origin))
if record.state == 'done':
|