mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 13:02:02 +02:00
Initial commit: L10N_Europe packages
This commit is contained in:
commit
9803722600
2377 changed files with 380711 additions and 0 deletions
45
odoo-bringout-oca-ocb-l10n_din5008_purchase/README.md
Normal file
45
odoo-bringout-oca-ocb-l10n_din5008_purchase/README.md
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# DIN 5008 - Purchase
|
||||
|
||||
Odoo addon: l10n_din5008_purchase
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-l10n_din5008_purchase
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- l10n_din5008
|
||||
- purchase
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: DIN 5008 - Purchase
|
||||
- **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_purchase`.
|
||||
|
||||
## 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
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
# Architecture
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
U[Users] -->|HTTP| V[Views and QWeb Templates]
|
||||
V --> C[Controllers]
|
||||
V --> W[Wizards – Transient Models]
|
||||
C --> M[Models and ORM]
|
||||
W --> M
|
||||
M --> R[Reports]
|
||||
DX[Data XML] --> M
|
||||
S[Security – ACLs and Groups] -. enforces .-> M
|
||||
|
||||
subgraph L10n_din5008_purchase Module - l10n_din5008_purchase
|
||||
direction LR
|
||||
M:::layer
|
||||
W:::layer
|
||||
C:::layer
|
||||
V:::layer
|
||||
R:::layer
|
||||
S:::layer
|
||||
DX:::layer
|
||||
end
|
||||
|
||||
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
|
||||
```
|
||||
|
||||
Notes
|
||||
- Views include tree/form/kanban templates and report templates.
|
||||
- Controllers provide website/portal routes when present.
|
||||
- Wizards are UI flows implemented with `models.TransientModel`.
|
||||
- Data XML loads data/demo records; Security defines groups and access.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Configuration
|
||||
|
||||
Refer to Odoo settings for l10n_din5008_purchase. Configure related models, access rights, and options as needed.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Controllers
|
||||
|
||||
This module does not define custom HTTP controllers.
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- [l10n_din5008](../../odoo-bringout-oca-ocb-l10n_din5008)
|
||||
- [purchase](../../odoo-bringout-oca-ocb-purchase)
|
||||
4
odoo-bringout-oca-ocb-l10n_din5008_purchase/doc/FAQ.md
Normal file
4
odoo-bringout-oca-ocb-l10n_din5008_purchase/doc/FAQ.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# FAQ
|
||||
|
||||
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
|
||||
- Q: How to enable? A: Start server with --addon l10n_din5008_purchase or install in UI.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-l10n_din5008_purchase"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-ocb-l10n_din5008_purchase"
|
||||
```
|
||||
12
odoo-bringout-oca-ocb-l10n_din5008_purchase/doc/MODELS.md
Normal file
12
odoo-bringout-oca-ocb-l10n_din5008_purchase/doc/MODELS.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in l10n_din5008_purchase.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class purchase_order
|
||||
```
|
||||
|
||||
Notes
|
||||
- Classes show model technical names; fields omitted for brevity.
|
||||
- Items listed under _inherit are extensions of existing models.
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# Overview
|
||||
|
||||
Packaged Odoo addon: l10n_din5008_purchase. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon l10n_din5008_purchase
|
||||
- License: LGPL-3
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Reports
|
||||
|
||||
This module does not define custom reports.
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# Security
|
||||
|
||||
This module does not define custom security rules or access controls beyond Odoo defaults.
|
||||
|
||||
Default Odoo security applies:
|
||||
- Base user access through standard groups
|
||||
- Model access inherited from dependencies
|
||||
- No custom row-level security rules
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Troubleshooting
|
||||
|
||||
- Ensure Python and Odoo environment matches repo guidance.
|
||||
- Check database connectivity and logs if startup fails.
|
||||
- Validate that dependent addons listed in DEPENDENCIES.md are installed.
|
||||
7
odoo-bringout-oca-ocb-l10n_din5008_purchase/doc/USAGE.md
Normal file
7
odoo-bringout-oca-ocb-l10n_din5008_purchase/doc/USAGE.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Usage
|
||||
|
||||
Start Odoo including this addon (from repo root):
|
||||
|
||||
```bash
|
||||
python3 scripts/nix_odoo_web_server.py --db-name mydb --addon l10n_din5008_purchase
|
||||
```
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import models
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
{
|
||||
'name': 'DIN 5008 - Purchase',
|
||||
'category': 'Accounting/Localizations',
|
||||
'depends': [
|
||||
'l10n_din5008',
|
||||
'purchase',
|
||||
],
|
||||
'auto_install': True,
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * l10n_din5008_purchase
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-02-13 21:50+0000\n"
|
||||
"PO-Revision-Date: 2024-02-14 08:48+0100\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"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Cancelled Purchase Order"
|
||||
msgstr "Stornierte Bestellung"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Cancelled Purchase Order No."
|
||||
msgstr "Stornierte Bestellnr."
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Incoterm"
|
||||
msgstr "Incoterm"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_addresses
|
||||
msgid "L10N Din5008 Addresses"
|
||||
msgstr "L10N Din5008 Adressen"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_document_title
|
||||
msgid "L10N Din5008 Document Title"
|
||||
msgstr "L10N Din5008 Dokumenttitel"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_template_data
|
||||
msgid "L10N Din5008 Template Data"
|
||||
msgstr "L10N Din5008 Vorlagendaten"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Date"
|
||||
msgstr "Bestelldatum"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Deadline"
|
||||
msgstr "Bestellfrist"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Reference"
|
||||
msgstr "Bestellreferenz"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#: model:ir.model,name:l10n_din5008_purchase.model_purchase_order
|
||||
#, python-format
|
||||
msgid "Purchase Order"
|
||||
msgstr "Bestellung"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Order No."
|
||||
msgstr "Bestellnr."
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Representative"
|
||||
msgstr "Einkaufsbeauftragter"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Request for Quotation"
|
||||
msgstr "Angebotsanfrage"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Request for Quotation No."
|
||||
msgstr "Angebotsanfrage Nr."
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Shipping Address:"
|
||||
msgstr "Lieferadresse:"
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * l10n_din5008_purchase
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0+e\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-02-13 21:50+0000\n"
|
||||
"PO-Revision-Date: 2024-02-14 09:18+0100\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"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Cancelled Purchase Order"
|
||||
msgstr "Bon de commande annulé"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Cancelled Purchase Order No."
|
||||
msgstr "N° de bon de commande annulé"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Incoterm"
|
||||
msgstr "Incoterms"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_addresses
|
||||
msgid "L10N Din5008 Addresses"
|
||||
msgstr "Adresses L10N Din5008"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_document_title
|
||||
msgid "L10N Din5008 Document Title"
|
||||
msgstr "Titre du document L10N Din5008"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_template_data
|
||||
msgid "L10N Din5008 Template Data"
|
||||
msgstr "Données de modèle L10N Din5008"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Date"
|
||||
msgstr "Date de commande"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Deadline"
|
||||
msgstr "Échéance de commande"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Reference"
|
||||
msgstr "Référence de la commande"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#: model:ir.model,name:l10n_din5008_purchase.model_purchase_order
|
||||
#, python-format
|
||||
msgid "Purchase Order"
|
||||
msgstr "Bon de commande"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Order No."
|
||||
msgstr "N° de bon de commande"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Representative"
|
||||
msgstr "Responsable des achats"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Request for Quotation"
|
||||
msgstr "Demande de prix"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Request for Quotation No."
|
||||
msgstr "N° de demande de prix"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Shipping Address:"
|
||||
msgstr "Adresse de livraison :"
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * l10n_din5008_purchase
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0+e\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-02-13 21:50+0000\n"
|
||||
"PO-Revision-Date: 2024-02-14 09:19+0100\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"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Cancelled Purchase Order"
|
||||
msgstr "Ordine di acquisto annullato"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Cancelled Purchase Order No."
|
||||
msgstr "Ordine di acquisto annullato N."
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Incoterm"
|
||||
msgstr "Termine di resa"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_addresses
|
||||
msgid "L10N Din5008 Addresses"
|
||||
msgstr "Indirizzi L10N Din5008"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_document_title
|
||||
msgid "L10N Din5008 Document Title"
|
||||
msgstr "Titolo del documento L10N Din5008"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_template_data
|
||||
msgid "L10N Din5008 Template Data"
|
||||
msgstr "Dati modello L10N Din5008"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Date"
|
||||
msgstr "Data ordine"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Deadline"
|
||||
msgstr "Scadenza per ordine"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Reference"
|
||||
msgstr "Riferimento ordine"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#: model:ir.model,name:l10n_din5008_purchase.model_purchase_order
|
||||
#, python-format
|
||||
msgid "Purchase Order"
|
||||
msgstr "Ordine di acquisto"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Order No."
|
||||
msgstr "Ordine di acquisto N."
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Representative"
|
||||
msgstr "Referente acquisti"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Request for Quotation"
|
||||
msgstr "Richiesta di preventivo"
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Request for Quotation No."
|
||||
msgstr "Richiesta di preventivo N."
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Shipping Address:"
|
||||
msgstr "Indirizzo di spedizione:"
|
||||
|
|
@ -0,0 +1,117 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * l10n_din5008_purchase
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-02-13 21:50+0000\n"
|
||||
"PO-Revision-Date: 2024-02-13 21: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_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Cancelled Purchase Order"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Cancelled Purchase Order No."
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Incoterm"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_addresses
|
||||
msgid "L10N Din5008 Addresses"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_document_title
|
||||
msgid "L10N Din5008 Document Title"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#: model:ir.model.fields,field_description:l10n_din5008_purchase.field_purchase_order__l10n_din5008_template_data
|
||||
msgid "L10N Din5008 Template Data"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Deadline"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Order Reference"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#: model:ir.model,name:l10n_din5008_purchase.model_purchase_order
|
||||
#, python-format
|
||||
msgid "Purchase Order"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Order No."
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Purchase Representative"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Request for Quotation"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Request for Quotation No."
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_din5008_purchase
|
||||
#. odoo-python
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#: code:addons/l10n_din5008_purchase/models/purchase.py:0
|
||||
#, python-format
|
||||
msgid "Shipping Address:"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import purchase
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
from odoo import models, fields, _
|
||||
from odoo.tools import format_date
|
||||
|
||||
|
||||
class PurchaseOrder(models.Model):
|
||||
_inherit = 'purchase.order'
|
||||
|
||||
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', exportable=False)
|
||||
|
||||
def _compute_l10n_din5008_template_data(self):
|
||||
for record in self:
|
||||
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']:
|
||||
data.append((_("Purchase Order No."), record.name))
|
||||
elif record.state == 'cancel':
|
||||
data.append((_("Cancelled Purchase Order No."), record.name))
|
||||
|
||||
if record.user_id:
|
||||
data.append((_("Purchase Representative"), record.user_id.name))
|
||||
if record.partner_ref:
|
||||
data.append((_("Order Reference"), record.partner_ref))
|
||||
if record.date_approve:
|
||||
data.append((_("Order Date"), format_date(self.env, record.date_approve)))
|
||||
elif record.date_order:
|
||||
data.append((_("Order Deadline"), format_date(self.env, record.date_order)))
|
||||
if record.incoterm_id:
|
||||
data.append((_("Incoterm"), record.incoterm_id.code))
|
||||
|
||||
|
||||
|
||||
def _compute_l10n_din5008_document_title(self):
|
||||
for record in self:
|
||||
if record.state in ['draft', 'sent', 'to approve']:
|
||||
record.l10n_din5008_document_title = _("Request for Quotation")
|
||||
elif record.state in ['purchase', 'done']:
|
||||
record.l10n_din5008_document_title = _("Purchase Order")
|
||||
elif record.state == 'cancel':
|
||||
record.l10n_din5008_document_title = _("Cancelled Purchase Order")
|
||||
|
||||
def _compute_l10n_din5008_addresses(self):
|
||||
for record in self:
|
||||
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:
|
||||
data.append((_("Shipping Address:"), record.picking_type_id.warehouse_id.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',
|
||||
}]
|
||||
43
odoo-bringout-oca-ocb-l10n_din5008_purchase/pyproject.toml
Normal file
43
odoo-bringout-oca-ocb-l10n_din5008_purchase/pyproject.toml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-ocb-l10n_din5008_purchase"
|
||||
version = "16.0.0"
|
||||
description = "DIN 5008 - Purchase - 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-purchase>=16.0.0",
|
||||
"requests>=2.25.1"
|
||||
]
|
||||
readme = "README.md"
|
||||
requires-python = ">= 3.11"
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"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.12",
|
||||
"Topic :: Office/Business",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
homepage = "https://github.com/bringout/0"
|
||||
repository = "https://github.com/bringout/0"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.metadata]
|
||||
allow-direct-references = true
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["l10n_din5008_purchase"]
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.1",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue