diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/l10n_de_stock | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/l10n_de_stock')
| -rw-r--r-- | addons/l10n_de_stock/__init__.py | 1 | ||||
| -rw-r--r-- | addons/l10n_de_stock/__manifest__.py | 13 | ||||
| -rw-r--r-- | addons/l10n_de_stock/i18n/de.po | 49 | ||||
| -rw-r--r-- | addons/l10n_de_stock/i18n/l10n_de_stock.pot | 47 | ||||
| -rw-r--r-- | addons/l10n_de_stock/models/__init__.py | 1 | ||||
| -rw-r--r-- | addons/l10n_de_stock/models/stock.py | 14 |
6 files changed, 125 insertions, 0 deletions
diff --git a/addons/l10n_de_stock/__init__.py b/addons/l10n_de_stock/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/addons/l10n_de_stock/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/addons/l10n_de_stock/__manifest__.py b/addons/l10n_de_stock/__manifest__.py new file mode 100644 index 00000000..fa8af040 --- /dev/null +++ b/addons/l10n_de_stock/__manifest__.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +{ + 'name': 'Germany - Stock', + 'category': 'Accounting/Localizations', + 'depends': [ + 'l10n_de', + 'stock', + ], + 'auto_install': True, + 'license': 'LGPL-3', +} diff --git a/addons/l10n_de_stock/i18n/de.po b/addons/l10n_de_stock/i18n/de.po new file mode 100644 index 00000000..009e0202 --- /dev/null +++ b/addons/l10n_de_stock/i18n/de.po @@ -0,0 +1,49 @@ +# 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 new file mode 100644 index 00000000..87cf92fd --- /dev/null +++ b/addons/l10n_de_stock/i18n/l10n_de_stock.pot @@ -0,0 +1,47 @@ +# 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_de_stock/models/__init__.py b/addons/l10n_de_stock/models/__init__.py new file mode 100644 index 00000000..12bab770 --- /dev/null +++ b/addons/l10n_de_stock/models/__init__.py @@ -0,0 +1 @@ +from . import stock diff --git a/addons/l10n_de_stock/models/stock.py b/addons/l10n_de_stock/models/stock.py new file mode 100644 index 00000000..f2ab3e24 --- /dev/null +++ b/addons/l10n_de_stock/models/stock.py @@ -0,0 +1,14 @@ +from odoo import models, fields, api, _ +from odoo.tools import format_date + + +class StockInventory(models.Model): + _inherit = 'stock.inventory' + + l10n_de_template_data = fields.Binary(compute='_compute_l10n_de_template_data') + + def _compute_l10n_de_template_data(self): + for record in self: + record.l10n_de_template_data = data = [] + if record.date: + data.append((_("Date"), format_date(self.env, record.date))) |
