19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:21 +01:00
parent 7dc55599c6
commit 7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions

View file

@ -10,36 +10,15 @@ pip install odoo-bringout-oca-ocb-l10n_din5008_stock
## Dependencies
This addon depends on:
- l10n_din5008
- stock
## Manifest Information
- **Name**: DIN 5008 - Stock
- **Version**: N/A
- **Category**: Accounting/Localizations
- **License**: LGPL-3
- **Installable**: False
## Source
Based on [OCA/OCB](https://github.com/OCA/OCB) branch 16.0, addon `l10n_din5008_stock`.
- Repository: https://github.com/OCA/OCB
- Branch: 19.0
- Path: addons/l10n_din5008_stock
## License
This package maintains the original LGPL-3 license from the upstream Odoo project.
## Documentation
- Overview: doc/OVERVIEW.md
- Architecture: doc/ARCHITECTURE.md
- Models: doc/MODELS.md
- Controllers: doc/CONTROLLERS.md
- Wizards: doc/WIZARDS.md
- Install: doc/INSTALL.md
- Usage: doc/USAGE.md
- Configuration: doc/CONFIGURATION.md
- Dependencies: doc/DEPENDENCIES.md
- Troubleshooting: doc/TROUBLESHOOTING.md
- FAQ: doc/FAQ.md
This package preserves the original LGPL-3 license.

View file

@ -1 +0,0 @@
from . import models

View file

@ -8,6 +8,11 @@
'l10n_din5008',
'stock',
],
'data': [
'report/din5008_stock_templates.xml',
'report/din5008_stock_picking_layout.xml',
],
'auto_install': True,
'author': 'Odoo S.A.',
'license': 'LGPL-3',
}

View file

@ -4,46 +4,39 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 17.3alpha1+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-13 21:52+0000\n"
"PO-Revision-Date: 2024-02-14 08:49+0100\n"
"POT-Creation-Date: 2025-12-30 19:06+0000\n"
"PO-Revision-Date: 2024-04-25 09:13+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: de\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.4.2\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Customer Address:"
msgstr "Kundenadresse:"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Beneficiary:</span>"
msgstr "<span class=\"fw-bold\">Leistungsempfänger:</span>"
#. module: l10n_din5008_stock
#: model:ir.model.fields,field_description:l10n_din5008_stock.field_stock_picking__l10n_din5008_addresses
msgid "L10N Din5008 Addresses"
msgstr "L10N Din5008 Adressen"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Customer Address:</span>"
msgstr "<span class=\"fw-bold\">Adresse des Kunden:</span>"
#. module: l10n_din5008_stock
#: model:ir.model,name:l10n_din5008_stock.model_stock_picking
msgid "Transfer"
msgstr "Transfer"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Vendor Address:</span>"
msgstr "<span class=\"fw-bold\">Adresse des Lieferanten:</span>"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Vendor Address:"
msgstr "Adresse des Lieferanten:"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Warehouse Address:</span>"
msgstr "<span class=\"fw-bold\">Adresse des Lagerhauses:</span>"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Warehouse Address:"
msgstr "Adresse des Lagerhauses:"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "Tax ID"
msgstr "USt-IdNr."

View file

@ -4,46 +4,39 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Project-Id-Version: Odoo Server 17.3alpha1+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-13 21:52+0000\n"
"PO-Revision-Date: 2024-02-14 09:23+0100\n"
"POT-Creation-Date: 2025-12-30 19:06+0000\n"
"PO-Revision-Date: 2024-04-25 09:13+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\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.4.2\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Customer Address:"
msgstr "Adresse du client :"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Beneficiary:</span>"
msgstr "<span class=\"fw-bold\">Beneficiary:</span>"
#. module: l10n_din5008_stock
#: model:ir.model.fields,field_description:l10n_din5008_stock.field_stock_picking__l10n_din5008_addresses
msgid "L10N Din5008 Addresses"
msgstr "Adresses L10N Din5008"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Customer Address:</span>"
msgstr "<span class=\"fw-bold\">Customer Address:</span>"
#. module: l10n_din5008_stock
#: model:ir.model,name:l10n_din5008_stock.model_stock_picking
msgid "Transfer"
msgstr "Transfert"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Vendor Address:</span>"
msgstr "<span class=\"fw-bold\">Vendor Address:</span>"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Vendor Address:"
msgstr "Adresse du fournisseur :"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Warehouse Address:</span>"
msgstr "<span class=\"fw-bold\">Vendor Address:</span>"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Warehouse Address:"
msgstr "Adresse de l'entrepôt :"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "Tax ID"
msgstr "N° de TVA"

View file

@ -4,46 +4,39 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Project-Id-Version: Odoo Server 17.3alpha1+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-13 21:52+0000\n"
"PO-Revision-Date: 2024-02-14 09:23+0100\n"
"POT-Creation-Date: 2025-12-30 19:06+0000\n"
"PO-Revision-Date: 2024-04-25 09:14+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: it\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.4.2\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Customer Address:"
msgstr "Indirizzo cliente:"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Beneficiary:</span>"
msgstr "<span class=\"fw-bold\">Beneficiary:</span>"
#. module: l10n_din5008_stock
#: model:ir.model.fields,field_description:l10n_din5008_stock.field_stock_picking__l10n_din5008_addresses
msgid "L10N Din5008 Addresses"
msgstr "Indirizzi L10N Din5008"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Customer Address:</span>"
msgstr "<span class=\"fw-bold\">Customer Address:</span>"
#. module: l10n_din5008_stock
#: model:ir.model,name:l10n_din5008_stock.model_stock_picking
msgid "Transfer"
msgstr "Trasferimento"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Vendor Address:</span>"
msgstr "<span class=\"fw-bold\">Vendor Address:</span>"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Vendor Address:"
msgstr "Indirizzo fornitore:"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Warehouse Address:</span>"
msgstr "<span class=\"fw-bold\">Warehouse Address:</span>"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Warehouse Address:"
msgstr "Indirizzo magazzino:"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "Tax ID"
msgstr "Partita IVA"

View file

@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 19.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-13 21:52+0000\n"
"PO-Revision-Date: 2024-02-13 21:52+0000\n"
"POT-Creation-Date: 2025-12-30 19:06+0000\n"
"PO-Revision-Date: 2025-12-30 19:06+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -16,32 +16,26 @@ msgstr ""
"Plural-Forms: \n"
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Customer Address:"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Beneficiary:</span>"
msgstr ""
#. module: l10n_din5008_stock
#: model:ir.model.fields,field_description:l10n_din5008_stock.field_stock_picking__l10n_din5008_addresses
msgid "L10N Din5008 Addresses"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Customer Address:</span>"
msgstr ""
#. module: l10n_din5008_stock
#: model:ir.model,name:l10n_din5008_stock.model_stock_picking
msgid "Transfer"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Vendor Address:</span>"
msgstr ""
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Vendor Address:"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "<span class=\"fw-bold\">Warehouse Address:</span>"
msgstr ""
#. module: l10n_din5008_stock
#. odoo-python
#: code:addons/l10n_din5008_stock/models/stock.py:0
#, python-format
msgid "Warehouse Address:"
#: model_terms:ir.ui.view,arch_db:l10n_din5008_stock.report_delivery_document
msgid "Tax ID"
msgstr ""

View file

@ -1,26 +0,0 @@
from odoo import models, fields, _
from odoo.tools import format_date
class StockPicking(models.Model):
_inherit = 'stock.picking'
l10n_din5008_addresses = fields.Binary(compute='_compute_l10n_din5008_addresses', exportable=False)
def _compute_l10n_din5008_addresses(self):
for record in self:
record.l10n_din5008_addresses = data = []
if record.partner_id:
if record.picking_type_id.code == 'incoming':
data.append((_('Vendor Address:'), record.partner_id))
if record.picking_type_id.code == 'internal':
data.append((_('Warehouse Address:'), record.partner_id))
if record.picking_type_id.code == 'outgoing' and record.move_ids_without_package and record.move_ids_without_package[0].partner_id \
and record.move_ids_without_package[0].partner_id.id != record.partner_id.id:
data.append((_('Customer Address:'), record.partner_id))
def check_field_access_rights(self, operation, field_names):
field_names = super().check_field_access_rights(operation, field_names)
return [field_name for field_name in field_names if field_name not in {
'l10n_din5008_addresses',
}]

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<template id="external_layout_din5008_deliveryslip" inherit_id="l10n_din5008.external_layout_din5008">
<xpath expr="//div[@id='din5008_report_main_address']" position="before">
<t t-if="o and o._name == 'stock.picking' and (o.should_print_delivery_address() or o.partner_id)">
<t t-set="address">
<t t-set="main_address" t-value="o.move_ids[0].partner_id if o.should_print_delivery_address() else o.partner_id"/>
<t t-if="o.should_print_delivery_address()">
<address class="mb-0" t-field="o.move_ids[0].partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}'/>
</t>
<t t-else="">
<address class="mb-0" t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}'/>
</t>
</t>
</t>
</xpath>
</template>
</data>
</odoo>

View file

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_delivery_document" inherit_id="stock.report_delivery_document">
<xpath expr="//t[@t-set='address']" position="after">
<t t-set="din5008_address_block">
<tr t-if="o and o._name=='stock.picking' and o.partner_id">
<td class="shipping_address">
<t t-if="o.picking_type_id.code == 'incoming'">
<span class="fw-bold">Vendor Address:</span>
<address t-esc="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}'/>
</t>
<t t-if="o.picking_type_id.code == 'internal'">
<span class="fw-bold">Warehouse Address:</span>
<address t-esc="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}'/>
</t>
<t t-if="o.picking_type_id.code == 'outgoing'">
<t t-set="main_address_box" t-value="o.move_ids[0].partner_id if o.should_print_delivery_address() else o.partner_id"/>
<t t-if="main_address_box.id != o.partner_id.commercial_partner_id.id">
<span class="fw-bold">Beneficiary:</span>
<address class="mb-0" t-esc="o.partner_id.commercial_partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}'/>
<div t-if="o.partner_id.vat">
<t t-if="o.partner_id.company_id.account_fiscal_country_id.vat_label" t-out="o.company_id.account_fiscal_country_id.vat_label" id="inv_tax_id_label"/>
<t t-else="">Tax ID</t>: <span t-field="o.partner_id.vat"/>
</div>
</t>
<t t-if="main_address_box.id != o.partner_id.id">
<span class="fw-bold">Customer Address:</span>
<address t-esc="o.partner_id.commercial_partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}'/>
</t>
</t>
</td>
</tr>
</t>
</xpath>
</template>
</odoo>

View file

@ -1,13 +1,15 @@
[project]
name = "odoo-bringout-oca-ocb-l10n_din5008_stock"
version = "16.0.0"
description = "DIN 5008 - Stock - Odoo addon"
description = "DIN 5008 - Stock -
Odoo addon
"
authors = [
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
]
dependencies = [
"odoo-bringout-oca-ocb-l10n_din5008>=16.0.0",
"odoo-bringout-oca-ocb-stock>=16.0.0",
"odoo-bringout-oca-ocb-l10n_din5008>=19.0.0",
"odoo-bringout-oca-ocb-stock>=19.0.0",
"requests>=2.25.1"
]
readme = "README.md"
@ -17,7 +19,7 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business",
]