mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-25 01:22:03 +02:00
Initial commit: OCA Financial packages (186 packages)
This commit is contained in:
commit
3e0e8473fb
8757 changed files with 947473 additions and 0 deletions
|
|
@ -0,0 +1,45 @@
|
|||
# Partner Invoicing Mode Monthly
|
||||
|
||||
Odoo addon: partner_invoicing_mode_monthly
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-account-invoicing-partner_invoicing_mode_monthly
|
||||
```
|
||||
|
||||
## Dependencies
|
||||
|
||||
This addon depends on:
|
||||
- partner_invoicing_mode
|
||||
- sale_stock
|
||||
|
||||
## Manifest Information
|
||||
|
||||
- **Name**: Partner Invoicing Mode Monthly
|
||||
- **Version**: 16.0.2.0.0
|
||||
- **Category**: Accounting & Finance
|
||||
- **License**: AGPL-3
|
||||
- **Installable**: False
|
||||
|
||||
## Source
|
||||
|
||||
Based on [OCA/account-invoicing](https://github.com/OCA/account-invoicing) branch 16.0, addon `partner_invoicing_mode_monthly`.
|
||||
|
||||
## 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
|
||||
- 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 Partner_invoicing_mode_monthly Module - partner_invoicing_mode_monthly
|
||||
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 partner_invoicing_mode_monthly. 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:
|
||||
|
||||
- [partner_invoicing_mode](../../odoo-bringout-oca-account-invoicing-partner_invoicing_mode)
|
||||
- [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 partner_invoicing_mode_monthly or install in UI.
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-account-invoicing-partner_invoicing_mode_monthly"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-account-invoicing-partner_invoicing_mode_monthly"
|
||||
```
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in partner_invoicing_mode_monthly.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class res_company
|
||||
class res_config_settings
|
||||
class res_partner
|
||||
class sale_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: partner_invoicing_mode_monthly. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon partner_invoicing_mode_monthly
|
||||
- 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 partner_invoicing_mode_monthly
|
||||
```
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
==============================
|
||||
Partner Invoicing Mode Monthly
|
||||
==============================
|
||||
|
||||
..
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:87f13abfceac758858d34159ff8fb9f632dfef6dec67cc436dbd51a00f866221
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |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%2Faccount--invoicing-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/account-invoicing/tree/16.0/partner_invoicing_mode_monthly
|
||||
:alt: OCA/account-invoicing
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-partner_invoicing_mode_monthly
|
||||
: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/account-invoicing&target_branch=16.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module allows to select a monthly invoicing mode for a customer.
|
||||
It is based on `partner_invoicing_mode`.
|
||||
When this mode is selected for a customer, the customer will be automatically
|
||||
invoiced
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20partner_invoicing_mode_monthly%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
|
||||
~~~~~~~
|
||||
|
||||
* Camptocamp
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* `Camptocamp <https://www.camptocamp.com>`_:
|
||||
|
||||
* Thierry Ducrest <thierry.ducrest@camptocamp.com>
|
||||
|
||||
* Phuc (Tran Thanh) <phuc@trobz.com>
|
||||
|
||||
Other credits
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
The development of this module has been financially supported by:
|
||||
|
||||
* Camptocamp
|
||||
|
||||
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/account-invoicing <https://github.com/OCA/account-invoicing/tree/16.0/partner_invoicing_mode_monthly>`_ 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,20 @@
|
|||
# Copyright 2020 Camptocamp
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
{
|
||||
"name": "Partner Invoicing Mode Monthly",
|
||||
"version": "16.0.2.0.0",
|
||||
"summary": "Create invoices automatically on a monthly basis.",
|
||||
"author": "Camptocamp, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/account-invoicing",
|
||||
"license": "AGPL-3",
|
||||
"category": "Accounting & Finance",
|
||||
"depends": [
|
||||
"partner_invoicing_mode",
|
||||
"sale_stock",
|
||||
],
|
||||
"data": [
|
||||
"data/ir_cron.xml",
|
||||
"data/queue_job_data.xml",
|
||||
"views/res_config_settings_views.xml",
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo noupdate="1">
|
||||
<record id="ir_cron_generate_monthly_invoice" model="ir.cron">
|
||||
<field name="name">Generate Monthly Invoices</field>
|
||||
<field eval="True" name="active" />
|
||||
<field name="user_id" ref="base.user_root" />
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">days</field>
|
||||
<field name="numbercall">-1</field>
|
||||
<field eval="False" name="doall" />
|
||||
<field name="model_id" ref="model_sale_order" />
|
||||
<field name="code">model.cron_generate_monthly_invoices()</field>
|
||||
<field
|
||||
name="nextcall"
|
||||
eval="(DateTime.now().replace(hour=1,minute=0).strftime('%Y-%m-%d %H:%M:%S'))"
|
||||
/>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- Queue Job Channel -->
|
||||
<record id="invoice_monthly" model="queue.job.channel">
|
||||
<field name="name">invoice_monthly</field>
|
||||
<field name="parent_id" ref="queue_job.channel_root" />
|
||||
</record>
|
||||
|
||||
<!-- Queue Job Function -->
|
||||
<record id="job_function_generate_invoices_by_partner" model="queue.job.function">
|
||||
<field name="model_id" ref="sale.model_sale_order" />
|
||||
<field name="method">_generate_invoices_by_partner</field>
|
||||
<field name="channel_id" ref="invoice_monthly" />
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_invoicing_mode_monthly
|
||||
#
|
||||
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: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "<span class=\"o_form_label\">Monthly Invoicing Options</span>"
|
||||
msgstr "<span class=\"o_form_label\">Opcije mjesečnih računa</span>"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Tvrtke"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Postavke"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr "Kontakt"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid ""
|
||||
"Day of the month to execute the invoicing. For a number higherthan the "
|
||||
"number of days in a month, the invoicing will beexecuted on the last day of "
|
||||
"the month."
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.actions.server,name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice_ir_actions_server
|
||||
#: model:ir.cron,cron_name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice
|
||||
msgid "Generate Monthly Invoices"
|
||||
msgstr "Generiraj mjesečne račune"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid "Invoicing Day"
|
||||
msgstr "Dan za izdavanje"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_partner__invoicing_mode
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_users__invoicing_mode
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing Mode"
|
||||
msgstr "Način izdavanja"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing day"
|
||||
msgstr "Dan izdavanja"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Last executed on"
|
||||
msgstr "Zadnje izvršeno"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution (monthly)"
|
||||
msgstr "Zadnje izvršavanje (mjesečno)"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution of monthly invoicing."
|
||||
msgstr "Zadnje izvršavanje mjesečnog izdavanja računa."
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields.selection,name:partner_invoicing_mode_monthly.selection__res_partner__invoicing_mode__monthly
|
||||
msgid "Monthly"
|
||||
msgstr "Mjesečno"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Prodajni nalog"
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_invoicing_mode_monthly
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2024-05-12 18:36+0000\n"
|
||||
"Last-Translator: Sergio Ariel Ameghino <ariel.ameghino@gmail.com>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: es\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: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "<span class=\"o_form_label\">Monthly Invoicing Options</span>"
|
||||
msgstr "<span class=\"o_form_label\">Opciones de facturación mensual</span>"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Compañías"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Ajustes de Configuración"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr "Contacto"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid ""
|
||||
"Day of the month to execute the invoicing. For a number higherthan the "
|
||||
"number of days in a month, the invoicing will beexecuted on the last day of "
|
||||
"the month."
|
||||
msgstr ""
|
||||
"Día del mes para ejecutar la facturación. Si el número es mayor al numero de "
|
||||
"días del mes, la facturación será ejecutada el último día del mes."
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.actions.server,name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice_ir_actions_server
|
||||
#: model:ir.cron,cron_name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice
|
||||
msgid "Generate Monthly Invoices"
|
||||
msgstr "Generar facturas mensuales"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid "Invoicing Day"
|
||||
msgstr "Día de facturación"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_partner__invoicing_mode
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_users__invoicing_mode
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing Mode"
|
||||
msgstr "Modo de facturación"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing day"
|
||||
msgstr "Día de facturación"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Last executed on"
|
||||
msgstr "Última ejecución el"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution (monthly)"
|
||||
msgstr "Última ejecución (mensual)"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution of monthly invoicing."
|
||||
msgstr "Última ejecución de la facturación mensual."
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields.selection,name:partner_invoicing_mode_monthly.selection__res_partner__invoicing_mode__monthly
|
||||
msgid "Monthly"
|
||||
msgstr "Mensualmente"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Órdenes de venta"
|
||||
|
||||
#~ msgid "Last execution"
|
||||
#~ msgstr "Última ejecución"
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_invoicing_mode_monthly
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2024-11-06 14:06+0000\n"
|
||||
"Last-Translator: samibc2c <sami.bouzidi@camptocamp.com>\n"
|
||||
"Language-Team: none\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 5.6.2\n"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "<span class=\"o_form_label\">Monthly Invoicing Options</span>"
|
||||
msgstr "<span class=\"o_form_label\">Options de facturation mensuelle</span>"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Sociétés"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr "Contact"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid ""
|
||||
"Day of the month to execute the invoicing. For a number higherthan the "
|
||||
"number of days in a month, the invoicing will beexecuted on the last day of "
|
||||
"the month."
|
||||
msgstr ""
|
||||
"Jour du mois où la facturation doit être exécutée. Pour un nombre supérieur "
|
||||
"au nombre de jours dans un mois, la facturation sera exécutée le dernier "
|
||||
"jour du mois."
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.actions.server,name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice_ir_actions_server
|
||||
#: model:ir.cron,cron_name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice
|
||||
msgid "Generate Monthly Invoices"
|
||||
msgstr "Générer les factures mensuelles"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid "Invoicing Day"
|
||||
msgstr "Jour de facturation"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_partner__invoicing_mode
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_users__invoicing_mode
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing Mode"
|
||||
msgstr "Mode de facturation"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing day"
|
||||
msgstr "Jour de facturation"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Last executed on"
|
||||
msgstr "Dernière exécution le"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution (monthly)"
|
||||
msgstr "Dernière exécution (mensuelle)"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution of monthly invoicing."
|
||||
msgstr "Dernière exécution de la facturation mensuelle."
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields.selection,name:partner_invoicing_mode_monthly.selection__res_partner__invoicing_mode__monthly
|
||||
msgid "Monthly"
|
||||
msgstr "Mensuel"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Bons de commande"
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_invoicing_mode_monthly
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2024-06-17 11:23+0000\n"
|
||||
"Last-Translator: Bole <bole@dajmi5.com>\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 4.17\n"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "<span class=\"o_form_label\">Monthly Invoicing Options</span>"
|
||||
msgstr "<span class=\"o_form_label\">Opcije mjesečnih računa</span>"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Tvrtke"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Postavke"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr "Kontakt"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid ""
|
||||
"Day of the month to execute the invoicing. For a number higherthan the "
|
||||
"number of days in a month, the invoicing will beexecuted on the last day of "
|
||||
"the month."
|
||||
msgstr ""
|
||||
"Dan u mjesecu za izdavanje računa. Za broj veći od broja dana u mjesecu, "
|
||||
"izdavanje računa će se izvršiti zadnji dan u mjesecu."
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.actions.server,name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice_ir_actions_server
|
||||
#: model:ir.cron,cron_name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice
|
||||
msgid "Generate Monthly Invoices"
|
||||
msgstr "Generiraj mjesečne račune"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid "Invoicing Day"
|
||||
msgstr "Dan za izdavanje"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_partner__invoicing_mode
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_users__invoicing_mode
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing Mode"
|
||||
msgstr "Način izdavanja"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing day"
|
||||
msgstr "Dan izdavanja"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Last executed on"
|
||||
msgstr "Zadnje izvršeno"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution (monthly)"
|
||||
msgstr "Zadnje izvršavanje (mjesečno)"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution of monthly invoicing."
|
||||
msgstr "Zadnje izvršavanje mjesečnog izdavanja računa."
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields.selection,name:partner_invoicing_mode_monthly.selection__res_partner__invoicing_mode__monthly
|
||||
msgid "Monthly"
|
||||
msgstr "Mjesečno"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Prodajni nalog"
|
||||
|
|
@ -0,0 +1,103 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_invoicing_mode_monthly
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2024-05-02 11:44+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: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "<span class=\"o_form_label\">Monthly Invoicing Options</span>"
|
||||
msgstr "<span class=\"o_form_label\">Opzione fatturazione mensile</span>"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr "Aziende"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr "Impostazioni configurazione"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr "Contatto"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid ""
|
||||
"Day of the month to execute the invoicing. For a number higherthan the "
|
||||
"number of days in a month, the invoicing will beexecuted on the last day of "
|
||||
"the month."
|
||||
msgstr ""
|
||||
"Giorno del mese in cui effettuare la fatturazione. Per un numero superiore "
|
||||
"al numero di giorni nel mese, la fatturazione verrà eseguita nell'ultimo "
|
||||
"giorno del mese."
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.actions.server,name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice_ir_actions_server
|
||||
#: model:ir.cron,cron_name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice
|
||||
msgid "Generate Monthly Invoices"
|
||||
msgstr "Genera fatture mensili"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid "Invoicing Day"
|
||||
msgstr "Giorno fatturazione"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_partner__invoicing_mode
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_users__invoicing_mode
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing Mode"
|
||||
msgstr "Modo fatturazione"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing day"
|
||||
msgstr "Giorno fatturazione"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Last executed on"
|
||||
msgstr "Ultima esecuzione il"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution (monthly)"
|
||||
msgstr "Ultima esecuzione (mensile)"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution of monthly invoicing."
|
||||
msgstr "Ultima esecuzione della fatturazione mensile."
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields.selection,name:partner_invoicing_mode_monthly.selection__res_partner__invoicing_mode__monthly
|
||||
msgid "Monthly"
|
||||
msgstr "Mensile"
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr "Ordine di vendita"
|
||||
|
||||
#~ msgid "Last execution"
|
||||
#~ msgstr "Ultima esecuzione"
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_invoicing_mode_monthly
|
||||
#
|
||||
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: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "<span class=\"o_form_label\">Monthly Invoicing Options</span>"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_company
|
||||
msgid "Companies"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_config_settings
|
||||
msgid "Config Settings"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_res_partner
|
||||
msgid "Contact"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid ""
|
||||
"Day of the month to execute the invoicing. For a number higherthan the "
|
||||
"number of days in a month, the invoicing will beexecuted on the last day of "
|
||||
"the month."
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.actions.server,name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice_ir_actions_server
|
||||
#: model:ir.cron,cron_name:partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice
|
||||
msgid "Generate Monthly Invoices"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_day_todo
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__res_invoicing_mode_monthly_day_todo
|
||||
msgid "Invoicing Day"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_partner__invoicing_mode
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_users__invoicing_mode
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing Mode"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Invoicing day"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model_terms:ir.ui.view,arch_db:partner_invoicing_mode_monthly.res_config_settings_view_form
|
||||
msgid "Last executed on"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,field_description:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution (monthly)"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_company__invoicing_mode_monthly_last_execution
|
||||
#: model:ir.model.fields,help:partner_invoicing_mode_monthly.field_res_config_settings__invoicing_mode_monthly_last_execution
|
||||
msgid "Last execution of monthly invoicing."
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model.fields.selection,name:partner_invoicing_mode_monthly.selection__res_partner__invoicing_mode__monthly
|
||||
msgid "Monthly"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_invoicing_mode_monthly
|
||||
#: model:ir.model,name:partner_invoicing_mode_monthly.model_sale_order
|
||||
msgid "Sales Order"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
from . import res_company
|
||||
from . import res_config_settings
|
||||
from . import res_partner
|
||||
from . import sale_order
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright 2020 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = "res.company"
|
||||
|
||||
invoicing_mode_monthly_day_todo = fields.Integer(
|
||||
"Invoicing Day",
|
||||
default="31",
|
||||
help="Day of the month to execute the invoicing. For a number higher"
|
||||
"than the number of days in a month, the invoicing will be"
|
||||
"executed on the last day of the month.",
|
||||
)
|
||||
invoicing_mode_monthly_last_execution = fields.Datetime(
|
||||
string="Last execution (monthly)",
|
||||
help="Last execution of monthly invoicing.",
|
||||
readonly=True,
|
||||
)
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# Copyright 2020 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
res_invoicing_mode_monthly_day_todo = fields.Integer(
|
||||
related="company_id.invoicing_mode_monthly_day_todo", readonly=False
|
||||
)
|
||||
invoicing_mode_monthly_last_execution = fields.Datetime(
|
||||
related="company_id.invoicing_mode_monthly_last_execution", readonly=True
|
||||
)
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
# Copyright 2020 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = "res.partner"
|
||||
|
||||
invoicing_mode = fields.Selection(
|
||||
selection_add=[("monthly", "Monthly")],
|
||||
ondelete={"monthly": "set default"},
|
||||
)
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
# Copyright 2020 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
from odoo import api, models
|
||||
from odoo.osv.expression import OR
|
||||
|
||||
|
||||
class SaleOrder(models.Model):
|
||||
_inherit = "sale.order"
|
||||
|
||||
@api.model
|
||||
def cron_generate_monthly_invoices(self):
|
||||
"""Cron called daily to check if monthly invoicing needs to be done."""
|
||||
company_ids = self._company_monthly_invoicing_today()
|
||||
if company_ids:
|
||||
self.generate_monthly_invoices(company_ids)
|
||||
|
||||
@api.model
|
||||
def generate_monthly_invoices(self, companies=None):
|
||||
# TODO: Kept former function for backward compatibility. To remove
|
||||
# in further version.
|
||||
return self.generate_invoices(
|
||||
companies,
|
||||
invoicing_mode="monthly",
|
||||
last_execution_field="invoicing_mode_monthly_last_execution",
|
||||
)
|
||||
|
||||
@api.model
|
||||
def _company_monthly_invoicing_today(self):
|
||||
"""Get company ids for which today is monthly invoicing day."""
|
||||
today = datetime.now()
|
||||
first_day_this_month = today.replace(
|
||||
day=1, hour=0, minute=0, second=0, microsecond=0
|
||||
)
|
||||
first_day_last_month = first_day_this_month - relativedelta(months=1)
|
||||
last_day_of_this_month = (today + relativedelta(day=31)).day
|
||||
# Last month still not executed, it needs to be done
|
||||
domain_last_month = [
|
||||
("invoicing_mode_monthly_last_execution", "<", first_day_last_month),
|
||||
]
|
||||
# Invoicing day is today or in the past and invoicing not yet done
|
||||
domain_this_month = [
|
||||
"|",
|
||||
("invoicing_mode_monthly_last_execution", "<", first_day_this_month),
|
||||
("invoicing_mode_monthly_last_execution", "=", False),
|
||||
("invoicing_mode_monthly_day_todo", "<=", today.day),
|
||||
]
|
||||
# Make sure non exisiting days are done at the end of the month
|
||||
domain_last_day_of_month = [
|
||||
"|",
|
||||
("invoicing_mode_monthly_last_execution", "<", first_day_this_month),
|
||||
("invoicing_mode_monthly_last_execution", "=", False),
|
||||
("invoicing_mode_monthly_day_todo", ">", today.day),
|
||||
]
|
||||
if today.day == last_day_of_this_month:
|
||||
domain = OR(
|
||||
[domain_last_month, domain_this_month, domain_last_day_of_month]
|
||||
)
|
||||
else:
|
||||
domain = OR([domain_last_month, domain_this_month])
|
||||
|
||||
return self.env["res.company"].search(domain)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
* `Camptocamp <https://www.camptocamp.com>`_:
|
||||
|
||||
* Thierry Ducrest <thierry.ducrest@camptocamp.com>
|
||||
|
||||
* Phuc (Tran Thanh) <phuc@trobz.com>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
The development of this module has been financially supported by:
|
||||
|
||||
* Camptocamp
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
This module allows to select a monthly invoicing mode for a customer.
|
||||
It is based on `partner_invoicing_mode`.
|
||||
When this mode is selected for a customer, the customer will be automatically
|
||||
invoiced
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
|
|
@ -0,0 +1,439 @@
|
|||
<!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>Partner Invoicing Mode Monthly</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="partner-invoicing-mode-monthly">
|
||||
<h1 class="title">Partner Invoicing Mode Monthly</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:87f13abfceac758858d34159ff8fb9f632dfef6dec67cc436dbd51a00f866221
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<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/account-invoicing/tree/16.0/partner_invoicing_mode_monthly"><img alt="OCA/account-invoicing" src="https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-partner_invoicing_mode_monthly"><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/account-invoicing&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 module allows to select a monthly invoicing mode for a customer.
|
||||
It is based on <cite>partner_invoicing_mode</cite>.
|
||||
When this mode is selected for a customer, the customer will be automatically
|
||||
invoiced</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#other-credits" id="toc-entry-5">Other credits</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20partner_invoicing_mode_monthly%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-2">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Camptocamp</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
|
||||
<ul>
|
||||
<li><p class="first"><a class="reference external" href="https://www.camptocamp.com">Camptocamp</a>:</p>
|
||||
<blockquote>
|
||||
<ul class="simple">
|
||||
<li>Thierry Ducrest <<a class="reference external" href="mailto:thierry.ducrest@camptocamp.com">thierry.ducrest@camptocamp.com</a>></li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
</li>
|
||||
<li><p class="first">Phuc (Tran Thanh) <<a class="reference external" href="mailto:phuc@trobz.com">phuc@trobz.com</a>></p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="other-credits">
|
||||
<h2><a class="toc-backref" href="#toc-entry-5">Other credits</a></h2>
|
||||
<p>The development of this module has been financially supported by:</p>
|
||||
<ul class="simple">
|
||||
<li>Camptocamp</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/account-invoicing/tree/16.0/partner_invoicing_mode_monthly">OCA/account-invoicing</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,2 @@
|
|||
from . import test_invoice_mode_monthly
|
||||
from . import test_invoice_mode_monthly_is_it_today
|
||||
|
|
@ -0,0 +1,119 @@
|
|||
# Copyright 2020 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
from unittest import mock
|
||||
|
||||
from odoo.tests.common import TransactionCase
|
||||
from odoo.tools import mute_logger
|
||||
|
||||
from odoo.addons.partner_invoicing_mode.tests.common import CommonPartnerInvoicingMode
|
||||
from odoo.addons.partner_invoicing_mode_monthly.models.sale_order import SaleOrder
|
||||
|
||||
|
||||
class TestInvoiceModeMonthly(CommonPartnerInvoicingMode, TransactionCase):
|
||||
|
||||
_invoicing_mode = "monthly"
|
||||
|
||||
def deliver_invoice(self, sale_order):
|
||||
sale_order.action_confirm()
|
||||
for picking in sale_order.picking_ids:
|
||||
for move in picking.move_ids:
|
||||
move.quantity_done = move.product_uom_qty
|
||||
picking.action_assign()
|
||||
picking.with_context(test_queue_job_no_delay=True).button_validate()
|
||||
|
||||
def test_invoice_mode_monthly(self):
|
||||
self.so1.payment_term_id = self.pt1.id
|
||||
self.deliver_invoice(self.so1)
|
||||
self.assertFalse(self.so1.invoice_ids)
|
||||
with mute_logger("odoo.addons.queue_job.delay"):
|
||||
self.SaleOrder.with_context(
|
||||
test_queue_job_no_delay=True
|
||||
).generate_monthly_invoices()
|
||||
self.assertTrue(self.so1.invoice_ids)
|
||||
# No errors are raised when called without anything to invoice
|
||||
with mute_logger("odoo.addons.queue_job.delay"):
|
||||
self.SaleOrder.with_context(
|
||||
test_queue_job_no_delay=True
|
||||
).generate_monthly_invoices()
|
||||
|
||||
def test_invoice_mode_monthly_cron(self):
|
||||
cron = self.env.ref(
|
||||
"partner_invoicing_mode_monthly.ir_cron_generate_monthly_invoice"
|
||||
)
|
||||
self.so1.payment_term_id = self.pt1.id
|
||||
self.deliver_invoice(self.so1)
|
||||
self.assertFalse(self.so1.invoice_ids)
|
||||
with mute_logger("odoo.addons.queue_job.delay"), mock.patch.object(
|
||||
SaleOrder,
|
||||
"_company_monthly_invoicing_today",
|
||||
return_value=self.so1.company_id,
|
||||
):
|
||||
cron.with_context(test_queue_job_no_delay=True).ir_actions_server_id.run()
|
||||
self.assertTrue(self.so1.invoice_ids)
|
||||
|
||||
def test_saleorder_with_different_mode_term(self):
|
||||
"""Check multiple sale order one partner diverse terms."""
|
||||
self.so1.payment_term_id = self.pt1.id
|
||||
self.deliver_invoice(self.so1)
|
||||
self.so2.payment_term_id = self.pt2.id
|
||||
self.deliver_invoice(self.so2)
|
||||
with mute_logger("odoo.addons.queue_job.delay"):
|
||||
self.SaleOrder.with_context(
|
||||
test_queue_job_no_delay=True
|
||||
).generate_monthly_invoices(self.company)
|
||||
self.assertEqual(len(self.so1.invoice_ids), 1)
|
||||
self.assertEqual(len(self.so2.invoice_ids), 1)
|
||||
# Two invoices because the term are different
|
||||
self.assertNotEqual(self.so1.invoice_ids, self.so2.invoice_ids)
|
||||
self.assertEqual(self.so1.invoice_ids.state, "posted")
|
||||
|
||||
def test_saleorder_grouped_in_invoice(self):
|
||||
"""Check multiple sale order grouped in one invoice"""
|
||||
self.deliver_invoice(self.so1)
|
||||
self.deliver_invoice(self.so2)
|
||||
with mute_logger("odoo.addons.queue_job.delay"):
|
||||
self.SaleOrder.with_context(
|
||||
test_queue_job_no_delay=True
|
||||
).generate_monthly_invoices(self.company)
|
||||
self.assertEqual(len(self.so1.invoice_ids), 1)
|
||||
self.assertEqual(len(self.so2.invoice_ids), 1)
|
||||
# Same invoice for both order
|
||||
self.assertEqual(self.so1.invoice_ids, self.so2.invoice_ids)
|
||||
self.assertEqual(self.so1.invoice_ids.state, "posted")
|
||||
|
||||
def test_split_invoice_by_sale_order(self):
|
||||
"""For same customer invoice 2 sales order separately."""
|
||||
self.partner.invoicing_mode = "monthly"
|
||||
self.so1.one_invoice_per_order = True
|
||||
self.so2.one_invoice_per_order = True
|
||||
self.deliver_invoice(self.so1)
|
||||
self.deliver_invoice(self.so2)
|
||||
with mute_logger("odoo.addons.queue_job.delay"):
|
||||
self.SaleOrder.with_context(
|
||||
test_queue_job_no_delay=True
|
||||
).generate_monthly_invoices(self.company)
|
||||
self.assertEqual(len(self.so1.invoice_ids), 1)
|
||||
self.assertEqual(len(self.so2.invoice_ids), 1)
|
||||
# Two invoices as they must be split
|
||||
self.assertNotEqual(self.so1.invoice_ids, self.so2.invoice_ids)
|
||||
self.assertEqual(self.so1.invoice_ids.state, "posted")
|
||||
self.assertEqual(self.so2.invoice_ids.state, "posted")
|
||||
|
||||
def test_invoice_for_multiple_customer(self):
|
||||
"""Check two sale order for different customers."""
|
||||
self.partner.invoicing_mode = "monthly"
|
||||
self.so2.partner_id = self.partner2
|
||||
self.so2.partner_invoice_id = self.partner2
|
||||
self.so2.partner_shipping_id = self.partner2
|
||||
self.deliver_invoice(self.so1)
|
||||
self.deliver_invoice(self.so2)
|
||||
with mute_logger("odoo.addons.queue_job.delay"):
|
||||
self.SaleOrder.with_context(
|
||||
test_queue_job_no_delay=True
|
||||
).generate_monthly_invoices(self.company)
|
||||
self.assertEqual(len(self.so1.invoice_ids), 1)
|
||||
self.assertEqual(len(self.so2.invoice_ids), 1)
|
||||
self.assertNotEqual(self.so1.invoice_ids, self.so2.invoice_ids)
|
||||
self.assertEqual(self.so1.invoice_ids.state, "posted")
|
||||
self.assertEqual(self.so2.invoice_ids.state, "posted")
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
# Copyright 2020 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
from freezegun import freeze_time
|
||||
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestInvoiceModeMonthly(TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.company = cls.env.company
|
||||
cls.SaleOrder = cls.env["sale.order"]
|
||||
|
||||
def test_late_invoicing_for_last_month(self):
|
||||
"""Check that last month invoicing will be done if missed."""
|
||||
company = self.env.company
|
||||
company.invoicing_mode_monthly_day_todo = 31
|
||||
company.invoicing_mode_monthly_last_execution = "2020-05-31"
|
||||
self.assertTrue(self.env.company)
|
||||
with freeze_time("2020-07-03"):
|
||||
res = self.SaleOrder._company_monthly_invoicing_today()
|
||||
self.assertTrue(res)
|
||||
company.invoicing_mode_monthly_last_execution = "2020-06-30"
|
||||
with freeze_time("2020-07-03"):
|
||||
res = self.SaleOrder._company_monthly_invoicing_today()
|
||||
self.assertFalse(res)
|
||||
|
||||
def test_selected_day_not_exist_in_month(self):
|
||||
"""Check on last day of the month invoicing is done.
|
||||
|
||||
The day of invoicing selected could not exist in the current
|
||||
month, but invoicing should still be executed on the last
|
||||
day of the month.
|
||||
"""
|
||||
company = self.env.company
|
||||
company.invoicing_mode_monthly_day_todo = 31
|
||||
company.invoicing_mode_monthly_last_execution = "2020-05-29"
|
||||
self.assertTrue(self.env.company)
|
||||
with freeze_time("2020-06-29"):
|
||||
res = self.SaleOrder._company_monthly_invoicing_today()
|
||||
self.assertFalse(res)
|
||||
with freeze_time("2020-06-30"):
|
||||
res = self.SaleOrder._company_monthly_invoicing_today()
|
||||
self.assertTrue(res)
|
||||
|
||||
def test_no_invoicing_done_yet(self):
|
||||
"""Check when is the first monthly invoicing done.
|
||||
|
||||
When monthly invoicing has never been done, it will not be run
|
||||
for the previous month.
|
||||
"""
|
||||
company = self.env.company
|
||||
company.invoicing_mode_monthly_day_todo = 15
|
||||
company.invoicing_mode_monthly_last_execution = None
|
||||
self.assertTrue(self.env.company)
|
||||
with freeze_time("2020-06-11"):
|
||||
res = self.SaleOrder._company_monthly_invoicing_today()
|
||||
self.assertFalse(res)
|
||||
with freeze_time("2020-06-30"):
|
||||
res = self.SaleOrder._company_monthly_invoicing_today()
|
||||
self.assertTrue(res)
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="inherit_id" ref="account.res_config_settings_view_form" />
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="arch" type="xml">
|
||||
<div id="invoicing_settings" position="after">
|
||||
<h2>Invoicing Mode</h2>
|
||||
<div
|
||||
class="row mt16 o_settings_container"
|
||||
id="monthly_invoicing_settings"
|
||||
>
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div class="o_setting_left_pane" />
|
||||
<div class="o_setting_right_pane">
|
||||
<span class="o_form_label">Monthly Invoicing Options</span>
|
||||
<div class="content-group">
|
||||
<div class="row mt16">
|
||||
<label
|
||||
string="Invoicing day"
|
||||
for="res_invoicing_mode_monthly_day_todo"
|
||||
class="col-lg-4 o_light_label"
|
||||
/>
|
||||
<field name="res_invoicing_mode_monthly_day_todo" />
|
||||
</div>
|
||||
<div class="row mt16">
|
||||
<label
|
||||
string="Last executed on"
|
||||
for="invoicing_mode_monthly_last_execution"
|
||||
class="col-lg-4 o_light_label"
|
||||
/>
|
||||
<field
|
||||
name="invoicing_mode_monthly_last_execution"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
[project]
|
||||
name = "odoo-bringout-oca-account-invoicing-partner_invoicing_mode_monthly"
|
||||
version = "16.0.0"
|
||||
description = "Partner Invoicing Mode Monthly - Create invoices automatically on a monthly basis."
|
||||
authors = [
|
||||
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
|
||||
]
|
||||
dependencies = [
|
||||
"odoo-bringout-oca-account-invoicing-partner_invoicing_mode>=16.0.0",
|
||||
"odoo-bringout-oca-account-invoicing-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 = ["partner_invoicing_mode_monthly"]
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=8.4.1",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue