[ADD] l10n_din5008: isolate din 5008 from l10n_de
DIN 5008 is not specific to Germany. It also applies to Switzerland, Austria (& Lichtenstein). The goal is to make DIN independent from l10n_de, for Switzerland and Austria. closes odoo/odoo#76227 Task: 2613993 Related: odoo/upgrade#2932 Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
@@ -32,6 +32,7 @@ Austrian charts of accounts (Einheitskontenrahmen 2010).
|
||||
"account",
|
||||
"base_iban",
|
||||
"base_vat",
|
||||
"l10n_din5008",
|
||||
],
|
||||
"data": [
|
||||
'data/res.country.state.csv',
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import chart_template
|
||||
@@ -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
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import models
|
||||
from . import models
|
||||
|
||||
@@ -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',
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="report_layout_din5008" model="report.layout">
|
||||
<field name="view_id" ref="l10n_de.external_layout_din5008"/>
|
||||
<field name="image">/l10n_de/static/img/preview_din.png</field>
|
||||
<field name="pdf">/l10n_de/static/pdf/preview_din.pdf</field>
|
||||
<field name="name">DIN 5008</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 53 KiB |
Binary file not shown.
@@ -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:"
|
||||
@@ -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 ""
|
||||
@@ -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"
|
||||
@@ -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 ""
|
||||
@@ -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:"
|
||||
@@ -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 ""
|
||||
@@ -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"
|
||||
@@ -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 ""
|
||||
@@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import models
|
||||
@@ -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',
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="report_layout_din5008" model="report.layout">
|
||||
<field name="view_id" ref="l10n_din5008.external_layout_din5008"/>
|
||||
<field name="image"></field>
|
||||
<field name="pdf"></field>
|
||||
<field name="name">DIN 5008</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -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
|
||||
+12
-12
@@ -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')
|
||||
+6
-6
@@ -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'
|
||||
+7
-8
@@ -78,8 +78,8 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="information_block">
|
||||
<t t-if="'l10n_de_template_data' in company" t-set="template_data" t-value="company.l10n_de_template_data"/>
|
||||
<t t-if="o and 'l10n_de_template_data' in o" t-set="template_data" t-value="o.l10n_de_template_data"/>
|
||||
<t t-if="'l10n_din5008_template_data' in company" t-set="template_data" t-value="company.l10n_din5008_template_data"/>
|
||||
<t t-if="o and 'l10n_din5008_template_data' in o" t-set="template_data" t-value="o.l10n_din5008_template_data"/>
|
||||
<table>
|
||||
<t t-foreach="template_data" t-as="row">
|
||||
<tr><td><t t-esc="row[0]"/></td><td><t t-esc="row[1]"/></td></tr>
|
||||
@@ -88,8 +88,8 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr t-if="o and 'l10n_de_addresses' in o">
|
||||
<t t-foreach="o.l10n_de_addresses" t-as="doc_address">
|
||||
<tr t-if="o and 'l10n_din5008_addresses' in o">
|
||||
<t t-foreach="o.l10n_din5008_addresses" t-as="doc_address">
|
||||
<td>
|
||||
<div class="shipping_address">
|
||||
<strong><t t-esc="doc_address[0]"/></strong>
|
||||
@@ -100,8 +100,8 @@
|
||||
</tr>
|
||||
</table>
|
||||
<h2>
|
||||
<span t-if="not o"><t t-esc="company.l10n_de_document_title"/></span>
|
||||
<span t-elif="'l10n_de_document_title' in o"><t t-esc="o.l10n_de_document_title"/></span>
|
||||
<span t-if="not o"><t t-esc="company.l10n_din5008_document_title"/></span>
|
||||
<span t-elif="'l10n_din5008_document_title' in o"><t t-esc="o.l10n_din5008_document_title"/></span>
|
||||
<span t-else="" t-field="o.name"/>
|
||||
</h2>
|
||||
<t t-out="0"/>
|
||||
@@ -136,7 +136,6 @@
|
||||
<ul class="list-inline">
|
||||
<li t-if="company.vat"><t t-esc="company.account_fiscal_country_id.vat_label or 'Tax ID'"/>: <span t-field="company.vat"/></li>
|
||||
<li>HRB Nr: <span t-field="company.company_registry"/></li>
|
||||
<div t-field="company.report_footer"/>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
@@ -157,7 +156,7 @@
|
||||
|
||||
<template id="din5008_css" inherit_id="web.styles_company_report">
|
||||
<xpath expr="//t[@t-elif]" position="before">
|
||||
<t t-elif="layout == 'l10n_de.external_layout_din5008'">
|
||||
<t t-elif="layout == 'l10n_din5008.external_layout_din5008'">
|
||||
&.din_page {
|
||||
&.header {
|
||||
.company_header {
|
||||
+2
-2
@@ -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,
|
||||
+11
-11
@@ -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:
|
||||
@@ -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,
|
||||
+7
-7
@@ -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")
|
||||
@@ -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,
|
||||
@@ -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:
|
||||
@@ -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,
|
||||
@@ -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':
|
||||
Reference in New Issue
Block a user