mirror of
https://github.com/bringout/oca-workflow-process.git
synced 2026-04-23 03:12:01 +02:00
Initial commit: OCA Workflow Process packages (456 packages)
This commit is contained in:
commit
d366e42934
18799 changed files with 1284507 additions and 0 deletions
|
|
@ -0,0 +1,46 @@
|
|||
# Sale invoice Policy
|
||||
|
||||
Odoo addon: sale_invoice_policy
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-sale-workflow-sale_invoice_policy
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- sale_stock
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: Sale invoice Policy
|
||||
- **Version**: 16.0.2.0.0
|
||||
- **Category**: Sales Management
|
||||
- **License**: AGPL-3
|
||||
- **Installable**: False
|
||||
|
||||
## Source
|
||||
|
||||
Based on [OCA/sale-workflow](https://github.com/OCA/sale-workflow) branch 16.0, addon `sale_invoice_policy`.
|
||||
|
||||
## License
|
||||
|
||||
This package maintains the original AGPL-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
|
||||
- Reports: doc/REPORTS.md
|
||||
- Security: doc/SECURITY.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 Sale_invoice_policy Module - sale_invoice_policy
|
||||
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 sale_invoice_policy. 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,5 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- [sale_stock](../../odoo-bringout-oca-ocb-sale_stock)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# FAQ
|
||||
|
||||
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
|
||||
- Q: How to enable? A: Start server with --addon sale_invoice_policy or install in UI.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-sale-workflow-sale_invoice_policy"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-sale-workflow-sale_invoice_policy"
|
||||
```
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in sale_invoice_policy.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class res_config_settings
|
||||
class sale_order
|
||||
class sale_order_line
|
||||
```
|
||||
|
||||
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: sale_invoice_policy. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon sale_invoice_policy
|
||||
- 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.
|
||||
|
|
@ -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 sale_invoice_policy
|
||||
```
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-sale-workflow-sale_invoice_policy"
|
||||
version = "16.0.0"
|
||||
description = "Sale invoice Policy -
|
||||
Sales Management: let the user choose the invoice policy on the
|
||||
order"
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-sale-workflow-sale_stock>=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 = ["sale_invoice_policy"]
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.1",
|
||||
]
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
===================
|
||||
Sale invoice Policy
|
||||
===================
|
||||
|
||||
..
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:c97ec053f6a06fcb824861d16be9e31cc8a53549f47a0f38b6f54f534d09138b
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
||||
:target: https://odoo-community.org/page/development-status
|
||||
:alt: Beta
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/sale-workflow/tree/16.0/sale_invoice_policy
|
||||
:alt: OCA/sale-workflow
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_invoice_policy
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=16.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This modules helps to get Invoicing Policy on Sale Order Level without
|
||||
breaking behaviour (as it is defined from >= v10 on product level).
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
* Create Sale Order
|
||||
* Select Invoicing Policy on Sale Order or let it void
|
||||
* Either the policy selected on Sale Order would be used, either if not
|
||||
filled in, the policy would be chosen from product configuration
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_invoice_policy%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
|
||||
* ACSONE SA/NV
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Cédric Pigeon <cedric.pigeon@acsone.eu>
|
||||
* François Honoré <francois.honore@acsone.eu>
|
||||
* Denis Roussel <denis.roussel@acsone.eu>
|
||||
* Alexei Rivera <arivera@archeti.com>
|
||||
* Luis J. Salvatierra <luis.salvatierra@factorlibre.com>
|
||||
* Alejandro Ji Cheung <alejandro.jicheung@factorlibre.com>
|
||||
* Ioan Galan <ioan@studio73.es>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/16.0/sale_invoice_policy>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import models
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
{
|
||||
"name": "Sale invoice Policy",
|
||||
"summary": """
|
||||
Sales Management: let the user choose the invoice policy on the
|
||||
order""",
|
||||
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/sale-workflow",
|
||||
"category": "Sales Management",
|
||||
"version": "16.0.2.0.0",
|
||||
"license": "AGPL-3",
|
||||
"depends": ["sale_stock"],
|
||||
"data": [
|
||||
"views/res_config_settings_view.xml",
|
||||
"views/sale_view.xml",
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_invoice_policy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \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: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Postavke"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__delivery
|
||||
msgid "Delivered quantities"
|
||||
msgstr "Isporučene količine"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid "Invoice Policy"
|
||||
msgstr "Politika izdavanja računa"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy_required
|
||||
msgid "Invoice Policy Required"
|
||||
msgstr "Obavezna politika izdavanja računa"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Invoice Policy required in Sale Orders"
|
||||
msgstr "Politika izdavanja računa obavezna u prodajnim nalozima"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid ""
|
||||
"Ordered Quantity: Invoice based on the quantity the customer ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries)."
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__order
|
||||
msgid "Ordered quantities"
|
||||
msgstr "Naručene količine"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Sale Invoice Policy"
|
||||
msgstr "Politika izdavanja računa"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "Sale Invoice Policy Required"
|
||||
msgstr "Obavezna politika izdavanja računa"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Prodajni nalog"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order_line
|
||||
msgid "Sales Order Line"
|
||||
msgstr "Stavka prodajnog naloga"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "This makes Invoice Policy required on Sale Orders"
|
||||
msgstr "Ovo čini politiku izdavanja računa obaveznom na prodajnim nalozima"
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_invoice_policy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2020-02-26 18:13+0000\n"
|
||||
"Last-Translator: georginaf <georgina.fornes@qubiq.es>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: ca\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Configuració"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__delivery
|
||||
msgid "Delivered quantities"
|
||||
msgstr "Quantitats entregades"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid "Invoice Policy"
|
||||
msgstr "Política de Facturació"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy_required
|
||||
msgid "Invoice Policy Required"
|
||||
msgstr "Política de Facturació"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Invoice Policy required in Sale Orders"
|
||||
msgstr "Política de Facturació"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid ""
|
||||
"Ordered Quantity: Invoice based on the quantity the customer ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor delivered "
|
||||
"(time or deliveries)."
|
||||
msgstr ""
|
||||
"Quantitat demanada: Factura basada en la quantitat demanada pel client.\n"
|
||||
"Quantitat entregada: Factura basada en funció de la quantitat entregada pel "
|
||||
"proveïdor ( temps o entregues)."
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__order
|
||||
msgid "Ordered quantities"
|
||||
msgstr "Quantitats Demanades"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Sale Invoice Policy"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "Sale Invoice Policy Required"
|
||||
msgstr "Política de Facturació"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order_line
|
||||
msgid "Sales Order Line"
|
||||
msgstr "Línia de comanda de venda"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "This makes Invoice Policy required on Sale Orders"
|
||||
msgstr "La política de facturació és necessària a les comandes de venda"
|
||||
|
||||
#~ msgid "Default Invoicing Policy"
|
||||
#~ msgstr "Política de Facturació"
|
||||
|
||||
#~ msgid "Default Sale Invoice Policy"
|
||||
#~ msgstr "Política de Facturació"
|
||||
|
||||
#~ msgid "Default Sale Order Invoice Policy"
|
||||
#~ msgstr "Política de Facturació"
|
||||
|
||||
#~ msgid "Invoicing Policy"
|
||||
#~ msgstr "Política de Facturació"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ordered Quantity: Invoice quantities ordered by the customer.\n"
|
||||
#~ "Delivered Quantity: Invoice quantities delivered to the customer."
|
||||
#~ msgstr ""
|
||||
#~ "Quantitat demanada: Factura basada en la quantitat demanada pel client.\n"
|
||||
#~ "Quantitat entregada: Facturada en funció de la quantitat entregada pel "
|
||||
#~ "proveïdor ( temps o entregues)."
|
||||
|
||||
#~ msgid "Product Template"
|
||||
#~ msgstr "Plantilla del Producte"
|
||||
|
||||
#~ msgid "Sale Order"
|
||||
#~ msgstr "Comanda de Venda"
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_invoice_policy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-03-22 14:12+0000\n"
|
||||
"PO-Revision-Date: 2023-03-22 14:12+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Opciones de configuración"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__delivery
|
||||
msgid "Delivered quantities"
|
||||
msgstr "Cantidades entregadas"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid "Invoice Policy"
|
||||
msgstr "Política de facturación"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy_required
|
||||
msgid "Invoice Policy Required"
|
||||
msgstr "Política de facturación requerida"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Invoice Policy required in Sale Orders"
|
||||
msgstr "Política de facturación requerida en pedidos de venta"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid ""
|
||||
"Ordered Quantity: Invoice based on the quantity the customer ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor delivered "
|
||||
"(time or deliveries)."
|
||||
msgstr ""
|
||||
"Cantidad pedida: facturada en función de la cantidad pedida por el cliente.\n"
|
||||
"Cantidad entregada: facturada en función de la cantidad entregada por el "
|
||||
"proveedor (tiempo o entregas)."
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__order
|
||||
msgid "Ordered quantities"
|
||||
msgstr "Cantidades pedidas"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Sale Invoice Policy"
|
||||
msgstr "Política de facturación para ventas"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "Sale Invoice Policy Required"
|
||||
msgstr "Política de facturación requerida para ventas"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Pedido de venta"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order_line
|
||||
msgid "Sales Order Line"
|
||||
msgstr "Línea de pedido de venta"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "This makes Invoice Policy required on Sale Orders"
|
||||
msgstr "Hace que la política de facturación sea requerida en pedidos de venta"
|
||||
|
||||
#~ msgid "Default Invoicing Policy"
|
||||
#~ msgstr "Política de facturación por defecto"
|
||||
|
||||
#~ msgid "Default Sale Invoice Policy"
|
||||
#~ msgstr "Política de facturación por defecto para ventas"
|
||||
|
||||
#~ msgid "Default Sale Order Invoice Policy"
|
||||
#~ msgstr "Política de facturación por defecto en pedidos de venta"
|
||||
|
||||
#~ msgid "Invoicing Policy"
|
||||
#~ msgstr "Política de facturación"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ordered Quantity: Invoice quantities ordered by the customer.\n"
|
||||
#~ "Delivered Quantity: Invoice quantities delivered to the customer."
|
||||
#~ msgstr ""
|
||||
#~ "Cantidad pedida: facturar cantidades pedidas por el cliente.\n"
|
||||
#~ "Cantidad entregada: facturar cantidades entregadas al cliente."
|
||||
|
||||
#~ msgid "Product"
|
||||
#~ msgstr "Producto"
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_invoice_policy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 15.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-06-01 21:48+0000\n"
|
||||
"Last-Translator: Jesús Alan Ramos Rodríguez <alan.ramos@jarsa.com.mx>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: es_MX\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.3.2\n"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Configuración"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__delivery
|
||||
msgid "Delivered quantities"
|
||||
msgstr "Cantidades entregadas"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid "Invoice Policy"
|
||||
msgstr "Política de Facturación"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy_required
|
||||
msgid "Invoice Policy Required"
|
||||
msgstr "Política de facturación requerida"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Invoice Policy required in Sale Orders"
|
||||
msgstr "Política de facturas requerida en órdenes de venta"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid ""
|
||||
"Ordered Quantity: Invoice based on the quantity the customer ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor delivered "
|
||||
"(time or deliveries)."
|
||||
msgstr ""
|
||||
"Cantidad pedida: Factura basada en la cantidad solicitada por el cliente.\n"
|
||||
"Cantidad entregada: Facturada en base a la cantidad entregada por el "
|
||||
"proveedor (tiempo o entregas)."
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__order
|
||||
msgid "Ordered quantities"
|
||||
msgstr "Cantidades ordenadas"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Sale Invoice Policy"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "Sale Invoice Policy Required"
|
||||
msgstr "Política de facturación en ventas requerido"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Pedido de Ventas"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order_line
|
||||
msgid "Sales Order Line"
|
||||
msgstr "Línea de Pedido de Venta"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "This makes Invoice Policy required on Sale Orders"
|
||||
msgstr ""
|
||||
"Esto hace que la política de facturas sea obligatoria en los pedidos de venta"
|
||||
|
||||
#~ msgid "Default Invoicing Policy"
|
||||
#~ msgstr "Política de Facturación por Defecto"
|
||||
|
||||
#~ msgid "Default Sale Invoice Policy"
|
||||
#~ msgstr "Política de Facturación de Ventas por Defecto"
|
||||
|
||||
#~ msgid "Default Sale Order Invoice Policy"
|
||||
#~ msgstr "Política de factura de pedido de venta predeterminada"
|
||||
|
||||
#~ msgid "Invoicing Policy"
|
||||
#~ msgstr "Política de facturación"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ordered Quantity: Invoice quantities ordered by the customer.\n"
|
||||
#~ "Delivered Quantity: Invoice quantities delivered to the customer."
|
||||
#~ msgstr ""
|
||||
#~ "Cantidad ordenada: cantidades de factura ordenadas por el cliente.\n"
|
||||
#~ "Cantidad entregada: cantidades de facturas entregadas al cliente."
|
||||
|
||||
#~ msgid "Product Template"
|
||||
#~ msgstr "Plantilla de producto"
|
||||
|
|
@ -0,0 +1,112 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_invoice_policy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0+e\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-09-11 13:12+0000\n"
|
||||
"PO-Revision-Date: 2020-10-20 11:08+0000\n"
|
||||
"Last-Translator: Quentin Dupont <perso@quentindupont.fr>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Paramètres de configuration"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__delivery
|
||||
msgid "Delivered quantities"
|
||||
msgstr "Quantités Livrées"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid "Invoice Policy"
|
||||
msgstr "Politique de facturation"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy_required
|
||||
msgid "Invoice Policy Required"
|
||||
msgstr "Politique de facturation requise"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Invoice Policy required in Sale Orders"
|
||||
msgstr "Politique de facturation requise dans les commandes de vente"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid ""
|
||||
"Ordered Quantity: Invoice based on the quantity the customer ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor delivered "
|
||||
"(time or deliveries)."
|
||||
msgstr ""
|
||||
"Quantités commandées : facturation basée sur les quantités commandées par le "
|
||||
"client.\n"
|
||||
"Quantités livrées : facturation basée sur les quantités que le fournisseur a "
|
||||
"livré (temps passé dans le cas de prestations)."
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__order
|
||||
msgid "Ordered quantities"
|
||||
msgstr "Quantités Commandées"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Sale Invoice Policy"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "Sale Invoice Policy Required"
|
||||
msgstr "Politique de facturation des ventes requise"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order_line
|
||||
msgid "Sales Order Line"
|
||||
msgstr "Ligne de bon de commande"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "This makes Invoice Policy required on Sale Orders"
|
||||
msgstr "La politique de facturation est requise sur les bons de commandes"
|
||||
|
||||
#~ msgid "Default Invoicing Policy"
|
||||
#~ msgstr "Politique de facturation par défaut"
|
||||
|
||||
#~ msgid "Default Sale Invoice Policy"
|
||||
#~ msgstr "Politique de facturation des ventes par défaut"
|
||||
|
||||
#~ msgid "Default Sale Order Invoice Policy"
|
||||
#~ msgstr "Politique de facturation par défaut des ventes"
|
||||
|
||||
#~ msgid "Invoicing Policy"
|
||||
#~ msgstr "Politique de facturation"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ordered Quantity: Invoice quantities ordered by the customer.\n"
|
||||
#~ "Delivered Quantity: Invoice quantities delivered to the customer."
|
||||
#~ msgstr ""
|
||||
#~ "Quantités commandées : facturation basée sur les quantités commandées par "
|
||||
#~ "le client.\n"
|
||||
#~ "Quantités livrées : facturation basée sur les quantités que le "
|
||||
#~ "fournisseur a livré (temps passé dans le cas de prestations)."
|
||||
|
||||
#~ msgid "Product Template"
|
||||
#~ msgstr "Modèle de produit"
|
||||
|
||||
#~ msgid "Sale Order"
|
||||
#~ msgstr "Bon de commande"
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_invoice_policy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2025-02-26 18:06+0000\n"
|
||||
"Last-Translator: uvid-gordana <gordana@uvid.hr>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: hr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
|
||||
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
"X-Generator: Weblate 5.6.2\n"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Postavke"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__delivery
|
||||
msgid "Delivered quantities"
|
||||
msgstr "Isporučene količine"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid "Invoice Policy"
|
||||
msgstr "Politika izdavanja računa"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy_required
|
||||
msgid "Invoice Policy Required"
|
||||
msgstr "Obavezna politika izdavanja računa"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Invoice Policy required in Sale Orders"
|
||||
msgstr "Politika izdavanja računa obavezna u prodajnim nalozima"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid ""
|
||||
"Ordered Quantity: Invoice based on the quantity the customer ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries)."
|
||||
msgstr ""
|
||||
"Naručena količina: Račun se izdaje na temelju količine koju je kupac naručio."
|
||||
"\n"
|
||||
"Isporučena količina: Račun se izdaje na temelju količine koju je dobavljač "
|
||||
"isporučio (vrijeme ili isporuke)."
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__order
|
||||
msgid "Ordered quantities"
|
||||
msgstr "Naručene količine"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Sale Invoice Policy"
|
||||
msgstr "Politika izdavanja računa"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "Sale Invoice Policy Required"
|
||||
msgstr "Obavezna politika izdavanja računa"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Prodajni nalog"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order_line
|
||||
msgid "Sales Order Line"
|
||||
msgstr "Stavka prodajnog naloga"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "This makes Invoice Policy required on Sale Orders"
|
||||
msgstr "Ovo čini politiku izdavanja računa obaveznom na prodajnim nalozima"
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_invoice_policy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2023-12-13 12:34+0000\n"
|
||||
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.17\n"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Impostazioni configurazione"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__delivery
|
||||
msgid "Delivered quantities"
|
||||
msgstr "Quantità consegnate"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid "Invoice Policy"
|
||||
msgstr "Politica fatturazione"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy_required
|
||||
msgid "Invoice Policy Required"
|
||||
msgstr "Richiesta politica fatturazione"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Invoice Policy required in Sale Orders"
|
||||
msgstr "Politica fatturazione richiesta negli ordini di vendita"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid ""
|
||||
"Ordered Quantity: Invoice based on the quantity the customer ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor delivered "
|
||||
"(time or deliveries)."
|
||||
msgstr ""
|
||||
"Quantità ordinate: fattura basata sulle quantità ordinate dal cliente.\n"
|
||||
"Quantità consegnate: fattura basata sulle quantità consegnate da fornitore "
|
||||
"(tempo o consegne)."
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__order
|
||||
msgid "Ordered quantities"
|
||||
msgstr "Quantità ordinate"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Sale Invoice Policy"
|
||||
msgstr "Plitica fatturazione vendite"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "Sale Invoice Policy Required"
|
||||
msgstr "Richiesta politica fatturazione vendite"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Ordine di vendita"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order_line
|
||||
msgid "Sales Order Line"
|
||||
msgstr "Riga ordine di vendita"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "This makes Invoice Policy required on Sale Orders"
|
||||
msgstr ""
|
||||
"Questo rende obbligatoria la politica di fatturazione negli ordini di vendita"
|
||||
|
||||
#~ msgid "Default Invoicing Policy"
|
||||
#~ msgstr "Politica fatturazione predefinita"
|
||||
|
||||
#~ msgid "Default Sale Invoice Policy"
|
||||
#~ msgstr "Politica fatturazione vendite predefinita"
|
||||
|
||||
#~ msgid "Default Sale Order Invoice Policy"
|
||||
#~ msgstr "Politica fatturazione ordini di vendita predefinita"
|
||||
|
||||
#~ msgid "Invoicing Policy"
|
||||
#~ msgstr "Politica fatturazione"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ordered Quantity: Invoice quantities ordered by the customer.\n"
|
||||
#~ "Delivered Quantity: Invoice quantities delivered to the customer."
|
||||
#~ msgstr ""
|
||||
#~ "Quantità ordinata: fattura quantità ordinate dal cliente.\n"
|
||||
#~ "Quantità consegnata: fattura quantità consegnate al cliente."
|
||||
|
||||
#~ msgid "Product"
|
||||
#~ msgstr "Prodotto"
|
||||
|
|
@ -0,0 +1,111 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_invoice_policy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2020-09-04 01:00+0000\n"
|
||||
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: pt\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Parâmetros de Configuração"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__delivery
|
||||
msgid "Delivered quantities"
|
||||
msgstr "Quantidades entregues"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid "Invoice Policy"
|
||||
msgstr "Política de Faturação"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy_required
|
||||
msgid "Invoice Policy Required"
|
||||
msgstr "Política de Faturação Requerida"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Invoice Policy required in Sale Orders"
|
||||
msgstr "Política de Faturação requerida em Encomendas de Venda"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid ""
|
||||
"Ordered Quantity: Invoice based on the quantity the customer ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor delivered "
|
||||
"(time or deliveries)."
|
||||
msgstr ""
|
||||
"Quantidade Encomendada: Faturar com base na quantidade que o cliente "
|
||||
"encomendou.\n"
|
||||
"Quantidade Entregue: Faturar tendo em conta a quantidade que o cliente "
|
||||
"recebeu (tempo ou materiais)."
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__order
|
||||
msgid "Ordered quantities"
|
||||
msgstr "Quantidades encomendadas"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Sale Invoice Policy"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "Sale Invoice Policy Required"
|
||||
msgstr "Política de Faturação de Vendas Requerida"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order_line
|
||||
msgid "Sales Order Line"
|
||||
msgstr "Linha de Encomenda de Venda"
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "This makes Invoice Policy required on Sale Orders"
|
||||
msgstr ""
|
||||
"Isto faz com que a Política de Faturação seja requerida em Encomendas de "
|
||||
"Venda"
|
||||
|
||||
#~ msgid "Default Invoicing Policy"
|
||||
#~ msgstr "Política de Faturação Predefinida"
|
||||
|
||||
#~ msgid "Default Sale Invoice Policy"
|
||||
#~ msgstr "Política de Faturação de Vendas Predefinida"
|
||||
|
||||
#~ msgid "Default Sale Order Invoice Policy"
|
||||
#~ msgstr "Política Predefinida de Faturação de Encomendas de Vendas"
|
||||
|
||||
#~ msgid "Invoicing Policy"
|
||||
#~ msgstr "Política de Faturação"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ordered Quantity: Invoice quantities ordered by the customer.\n"
|
||||
#~ "Delivered Quantity: Invoice quantities delivered to the customer."
|
||||
#~ msgstr ""
|
||||
#~ "Quantidade Encomendada: Faturar quantidades encomendadas pelo cliente.\n"
|
||||
#~ "Quantidade Entregue: Faturar quantidades entregues ao cliente."
|
||||
|
||||
#~ msgid "Product Template"
|
||||
#~ msgstr "Modelo de Produto"
|
||||
|
||||
#~ msgid "Sale Order"
|
||||
#~ msgstr "Encomenda de Venda"
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * sale_invoice_policy
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \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: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__delivery
|
||||
msgid "Delivered quantities"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid "Invoice Policy"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_sale_order__invoice_policy_required
|
||||
msgid "Invoice Policy Required"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Invoice Policy required in Sale Orders"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_sale_order__invoice_policy
|
||||
msgid ""
|
||||
"Ordered Quantity: Invoice based on the quantity the customer ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries)."
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields.selection,name:sale_invoice_policy.selection__sale_order__invoice_policy__order
|
||||
msgid "Ordered quantities"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model_terms:ir.ui.view,arch_db:sale_invoice_policy.view_sales_config
|
||||
msgid "Sale Invoice Policy"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,field_description:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "Sale Invoice Policy Required"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model,name:sale_invoice_policy.model_sale_order_line
|
||||
msgid "Sales Order Line"
|
||||
msgstr ""
|
||||
|
||||
#. module: sale_invoice_policy
|
||||
#: model:ir.model.fields,help:sale_invoice_policy.field_res_config_settings__sale_invoice_policy_required
|
||||
msgid "This makes Invoice Policy required on Sale Orders"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
from . import res_config_settings
|
||||
from . import sale_order
|
||||
from . import sale_order_line
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright 2018 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
sale_invoice_policy_required = fields.Boolean(
|
||||
help="This makes Invoice Policy required on Sale Orders"
|
||||
)
|
||||
|
||||
@api.model
|
||||
def get_values(self):
|
||||
res = super().get_values()
|
||||
res.update(
|
||||
sale_invoice_policy_required=self.env["ir.default"].get(
|
||||
"res.config.settings", "sale_invoice_policy_required"
|
||||
)
|
||||
)
|
||||
return res
|
||||
|
||||
def set_values(self):
|
||||
super().set_values()
|
||||
ir_default_obj = self.env["ir.default"]
|
||||
if self.env["res.users"].has_group("base.group_erp_manager"):
|
||||
ir_default_obj = ir_default_obj.sudo()
|
||||
ir_default_obj.set(
|
||||
"res.config.settings",
|
||||
"sale_invoice_policy_required",
|
||||
self.sale_invoice_policy_required,
|
||||
)
|
||||
return True
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class SaleOrder(models.Model):
|
||||
|
||||
_inherit = "sale.order"
|
||||
|
||||
invoice_policy = fields.Selection(
|
||||
[("order", "Ordered quantities"), ("delivery", "Delivered quantities")],
|
||||
readonly=True,
|
||||
states={"draft": [("readonly", False)], "sent": [("readonly", False)]},
|
||||
help="Ordered Quantity: Invoice based on the quantity the customer "
|
||||
"ordered.\n"
|
||||
"Delivered Quantity: Invoiced based on the quantity the vendor "
|
||||
"delivered (time or deliveries).",
|
||||
)
|
||||
invoice_policy_required = fields.Boolean(
|
||||
compute="_compute_invoice_policy_required",
|
||||
default=lambda self: self.env["ir.default"].get(
|
||||
"res.config.settings", "sale_invoice_policy_required"
|
||||
),
|
||||
)
|
||||
|
||||
@api.model
|
||||
def default_get(self, fields_list):
|
||||
res = super().default_get(fields_list)
|
||||
default_invoice_policy = (
|
||||
self.env["res.config.settings"]
|
||||
.sudo()
|
||||
.default_get(["default_invoice_policy"])
|
||||
.get("default_invoice_policy", False)
|
||||
)
|
||||
if "invoice_policy" not in res:
|
||||
res.update({"invoice_policy": default_invoice_policy})
|
||||
return res
|
||||
|
||||
@api.depends("partner_id")
|
||||
def _compute_invoice_policy_required(self):
|
||||
invoice_policy_required = (
|
||||
self.env["res.config.settings"]
|
||||
.sudo()
|
||||
.default_get(["sale_invoice_policy_required"])
|
||||
.get("sale_invoice_policy_required", False)
|
||||
)
|
||||
for sale in self:
|
||||
sale.invoice_policy_required = invoice_policy_required
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class SaleOrderLine(models.Model):
|
||||
_inherit = "sale.order.line"
|
||||
|
||||
@api.depends(
|
||||
"qty_invoiced",
|
||||
"qty_delivered",
|
||||
"product_uom_qty",
|
||||
"state",
|
||||
"order_id.invoice_policy",
|
||||
)
|
||||
def _compute_qty_to_invoice(self):
|
||||
other_lines = self.filtered(
|
||||
lambda l: l.product_id.type == "service"
|
||||
or not l.order_id.invoice_policy
|
||||
or not l.order_id.invoice_policy_required
|
||||
)
|
||||
super(SaleOrderLine, other_lines)._compute_qty_to_invoice()
|
||||
for line in self - other_lines:
|
||||
invoice_policy = line.order_id.invoice_policy
|
||||
if invoice_policy == "order":
|
||||
line.qty_to_invoice = line.product_uom_qty - line.qty_invoiced
|
||||
else:
|
||||
line.qty_to_invoice = line.qty_delivered - line.qty_invoiced
|
||||
return True
|
||||
|
||||
@api.depends(
|
||||
"state",
|
||||
"price_reduce",
|
||||
"product_id",
|
||||
"untaxed_amount_invoiced",
|
||||
"qty_delivered",
|
||||
"product_uom_qty",
|
||||
"order_id.invoice_policy",
|
||||
)
|
||||
def _compute_untaxed_amount_to_invoice(self):
|
||||
other_lines = self.filtered(
|
||||
lambda line: line.product_id.type == "service"
|
||||
or not line.order_id.invoice_policy
|
||||
or line.order_id.invoice_policy == line.product_id.invoice_policy
|
||||
or line.state not in ["sale", "done"]
|
||||
or not line.order_id.invoice_policy_required
|
||||
)
|
||||
super(SaleOrderLine, other_lines)._compute_untaxed_amount_to_invoice()
|
||||
for line in self - other_lines:
|
||||
invoice_policy = line.order_id.invoice_policy
|
||||
amount_to_invoice = 0.0
|
||||
price_subtotal = 0.0
|
||||
uom_qty_to_consider = (
|
||||
line.qty_delivered
|
||||
if invoice_policy == "delivery"
|
||||
else line.product_uom_qty
|
||||
)
|
||||
price_reduce = line.price_unit * (1 - (line.discount or 0.0) / 100.0)
|
||||
price_subtotal = price_reduce * uom_qty_to_consider
|
||||
if len(line.tax_id.filtered(lambda tax: tax.price_include)) > 0:
|
||||
price_subtotal = line.tax_id.compute_all(
|
||||
price_reduce,
|
||||
currency=line.currency_id,
|
||||
quantity=uom_qty_to_consider,
|
||||
product=line.product_id,
|
||||
partner=line.order_id.partner_shipping_id,
|
||||
)["total_excluded"]
|
||||
inv_lines = line._get_invoice_lines()
|
||||
if any(inv_lines.mapped(lambda l: l.discount != line.discount)):
|
||||
amount = 0
|
||||
for inv_line in inv_lines:
|
||||
if (
|
||||
len(inv_line.tax_ids.filtered(lambda tax: tax.price_include))
|
||||
> 0
|
||||
):
|
||||
amount += inv_line.tax_ids.compute_all(
|
||||
inv_line.currency_id._convert(
|
||||
inv_line.price_unit,
|
||||
line.currency_id,
|
||||
line.company_id,
|
||||
inv_line.date or fields.Date.today(),
|
||||
round=False,
|
||||
)
|
||||
* inv_line.quantity
|
||||
)["total_excluded"]
|
||||
else:
|
||||
amount += (
|
||||
inv_line.currency_id._convert(
|
||||
inv_line.price_unit,
|
||||
line.currency_id,
|
||||
line.company_id,
|
||||
inv_line.date or fields.Date.today(),
|
||||
round=False,
|
||||
)
|
||||
* inv_line.quantity
|
||||
)
|
||||
amount_to_invoice = max(price_subtotal - amount, 0)
|
||||
else:
|
||||
amount_to_invoice = price_subtotal - line.untaxed_amount_invoiced
|
||||
line.untaxed_amount_to_invoice = amount_to_invoice
|
||||
return True
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
* Cédric Pigeon <cedric.pigeon@acsone.eu>
|
||||
* François Honoré <francois.honore@acsone.eu>
|
||||
* Denis Roussel <denis.roussel@acsone.eu>
|
||||
* Alexei Rivera <arivera@archeti.com>
|
||||
* Luis J. Salvatierra <luis.salvatierra@factorlibre.com>
|
||||
* Alejandro Ji Cheung <alejandro.jicheung@factorlibre.com>
|
||||
* Ioan Galan <ioan@studio73.es>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
This modules helps to get Invoicing Policy on Sale Order Level without
|
||||
breaking behaviour (as it is defined from >= v10 on product level).
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
* Create Sale Order
|
||||
* Select Invoicing Policy on Sale Order or let it void
|
||||
* Either the policy selected on Sale Order would be used, either if not
|
||||
filled in, the policy would be chosen from product configuration
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
|
|
@ -0,0 +1,437 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
||||
<title>Sale invoice Policy</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="sale-invoice-policy">
|
||||
<h1 class="title">Sale invoice Policy</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:c97ec053f6a06fcb824861d16be9e31cc8a53549f47a0f38b6f54f534d09138b
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/sale-workflow/tree/16.0/sale_invoice_policy"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_invoice_policy"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This modules helps to get Invoicing Policy on Sale Order Level without
|
||||
breaking behaviour (as it is defined from >= v10 on product level).</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
|
||||
<ul class="simple">
|
||||
<li>Create Sale Order</li>
|
||||
<li>Select Invoicing Policy on Sale Order or let it void</li>
|
||||
<li>Either the policy selected on Sale Order would be used, either if not
|
||||
filled in, the policy would be chosen from product configuration</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_invoice_policy%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>ACSONE SA/NV</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Cédric Pigeon <<a class="reference external" href="mailto:cedric.pigeon@acsone.eu">cedric.pigeon@acsone.eu</a>></li>
|
||||
<li>François Honoré <<a class="reference external" href="mailto:francois.honore@acsone.eu">francois.honore@acsone.eu</a>></li>
|
||||
<li>Denis Roussel <<a class="reference external" href="mailto:denis.roussel@acsone.eu">denis.roussel@acsone.eu</a>></li>
|
||||
<li>Alexei Rivera <<a class="reference external" href="mailto:arivera@archeti.com">arivera@archeti.com</a>></li>
|
||||
<li>Luis J. Salvatierra <<a class="reference external" href="mailto:luis.salvatierra@factorlibre.com">luis.salvatierra@factorlibre.com</a>></li>
|
||||
<li>Alejandro Ji Cheung <<a class="reference external" href="mailto:alejandro.jicheung@factorlibre.com">alejandro.jicheung@factorlibre.com</a>></li>
|
||||
<li>Ioan Galan <<a class="reference external" href="mailto:ioan@studio73.es">ioan@studio73.es</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/16.0/sale_invoice_policy">OCA/sale-workflow</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import test_sale_invoice_policy
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
# © 2017 Acsone SA/NV (http://www.acsone.eu)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
import odoo.tests.common as common
|
||||
|
||||
|
||||
class TestSaleOrderInvoicePolicy(common.TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.product_obj = cls.env["product.product"]
|
||||
cls.sale_obj = cls.env["sale.order"]
|
||||
cls.partner = cls.env.ref("base.res_partner_2")
|
||||
cls.product = cls.product_obj.create(
|
||||
{"name": "Test", "detailed_type": "consu", "list_price": 20.0}
|
||||
)
|
||||
cls.product2 = cls.product_obj.create(
|
||||
{"name": "Test 2", "detailed_type": "consu", "list_price": 45.0}
|
||||
)
|
||||
cls.product3 = cls.product_obj.create(
|
||||
{
|
||||
"name": "Test 3 (service)",
|
||||
"detailed_type": "service",
|
||||
"list_price": 850.5,
|
||||
}
|
||||
)
|
||||
|
||||
def test_sale_order_invoice_order(self):
|
||||
"""Test invoicing based on ordered quantities"""
|
||||
settings = self.env["res.config.settings"].create({})
|
||||
settings.sale_invoice_policy_required = True
|
||||
settings.execute()
|
||||
so = self.env["sale.order"].create(
|
||||
{
|
||||
"partner_id": self.env.ref("base.res_partner_2").id,
|
||||
"order_line": [
|
||||
(0, 0, {"product_id": self.product.id, "product_uom_qty": 2.0}),
|
||||
(0, 0, {"product_id": self.product2.id, "product_uom_qty": 3.0}),
|
||||
],
|
||||
"invoice_policy": "order",
|
||||
}
|
||||
)
|
||||
self.assertTrue(so.invoice_policy_required)
|
||||
self.assertTrue(so.invoice_policy == "order")
|
||||
|
||||
so.action_confirm()
|
||||
|
||||
self.assertEqual(len(so.picking_ids), 1)
|
||||
|
||||
picking = so.picking_ids
|
||||
picking.action_assign()
|
||||
self.assertEqual(picking.state, "assigned")
|
||||
so_line = so.order_line[0]
|
||||
self.assertEqual(so_line.qty_to_invoice, 2)
|
||||
self.assertEqual(so_line.invoice_status, "to invoice")
|
||||
self.assertEqual(so_line.product_id.invoice_policy, "order")
|
||||
|
||||
so_line = so.order_line[1]
|
||||
self.assertEqual(so_line.qty_to_invoice, 3)
|
||||
self.assertEqual(so_line.invoice_status, "to invoice")
|
||||
self.assertEqual(so_line.product_id.invoice_policy, "order")
|
||||
|
||||
def test_sale_order_invoice_deliver(self):
|
||||
"""Test invoicing based on delivered quantities"""
|
||||
settings = self.env["res.config.settings"].create({})
|
||||
settings.sale_invoice_policy_required = True
|
||||
settings.execute()
|
||||
so = self.env["sale.order"].create(
|
||||
{
|
||||
"partner_id": self.env.ref("base.res_partner_2").id,
|
||||
"invoice_policy": "delivery",
|
||||
"order_line": [
|
||||
(0, 0, {"product_id": self.product.id, "product_uom_qty": 2.0}),
|
||||
(0, 0, {"product_id": self.product2.id, "product_uom_qty": 3.0}),
|
||||
],
|
||||
}
|
||||
)
|
||||
self.assertTrue(so.invoice_policy_required)
|
||||
self.assertTrue(so.invoice_policy == "delivery")
|
||||
|
||||
so.action_confirm()
|
||||
|
||||
self.assertEqual(len(so.picking_ids), 1)
|
||||
|
||||
picking = so.picking_ids
|
||||
picking.action_assign()
|
||||
self.assertEqual(picking.state, "assigned")
|
||||
|
||||
so_line = so.order_line[0]
|
||||
self.assertEqual(so_line.qty_to_invoice, 0)
|
||||
self.assertEqual(so_line.invoice_status, "no")
|
||||
|
||||
so_line = so.order_line[1]
|
||||
self.assertEqual(so_line.qty_to_invoice, 0)
|
||||
self.assertEqual(so_line.invoice_status, "no")
|
||||
|
||||
for mv in picking.move_line_ids:
|
||||
mv.qty_done = mv.reserved_uom_qty
|
||||
picking.button_validate()
|
||||
self.assertEqual(picking.state, "done")
|
||||
|
||||
so_line = so.order_line[0]
|
||||
self.assertEqual(so_line.qty_to_invoice, 2)
|
||||
self.assertEqual(so_line.invoice_status, "to invoice")
|
||||
|
||||
so_line = so.order_line[1]
|
||||
self.assertEqual(so_line.qty_to_invoice, 3)
|
||||
self.assertEqual(so_line.invoice_status, "to invoice")
|
||||
|
||||
def test_settings(self):
|
||||
# delivery policy is the default
|
||||
settings = self.env["res.config.settings"].create({})
|
||||
settings.default_invoice_policy = "delivery"
|
||||
settings.sale_invoice_policy_required = True
|
||||
settings.execute()
|
||||
so = self.env["sale.order"].create(
|
||||
{"partner_id": self.env.ref("base.res_partner_2").id}
|
||||
)
|
||||
self.assertEqual(so.invoice_policy, "delivery")
|
||||
self.assertTrue(so.invoice_policy_required)
|
||||
# order policy is the default
|
||||
settings.default_invoice_policy = "order"
|
||||
settings.execute()
|
||||
so = self.env["sale.order"].create(
|
||||
{"partner_id": self.env.ref("base.res_partner_2").id}
|
||||
)
|
||||
self.assertEqual(so.invoice_policy, "order")
|
||||
self.assertTrue(so.invoice_policy_required)
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="view_sales_config" model="ir.ui.view">
|
||||
<field name="name">sale settings</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="sale.res_config_settings_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@id='sales_settings_invoicing_policy']" position="after">
|
||||
<div
|
||||
class="col-12 col-lg-6 o_setting_box"
|
||||
id="sale_invoice_policy_setting"
|
||||
>
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="sale_invoice_policy_required" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label
|
||||
string="Sale Invoice Policy"
|
||||
for="sale_invoice_policy_required"
|
||||
/>
|
||||
<div class="text-muted" id="sale_invoice_policy_required">
|
||||
Invoice Policy required in Sale Orders
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="sale_order_view_form_inherit_abi_product" model="ir.ui.view">
|
||||
<field name="name">sale.order.form (abi_sale_invoice_policy)</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form" />
|
||||
<field name="priority">50</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="payment_term_id" position="after">
|
||||
<field name="invoice_policy_required" invisible="1" />
|
||||
<field
|
||||
name="invoice_policy"
|
||||
attrs="{'required': [('invoice_policy_required', '=', True)]}"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue