Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] partner_invoicing_mode_at_shipping: Migration to 18.0 #1835

Open
wants to merge 31 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
287d418
[MIG] rename account_invoice_mode_at_shipping
TDu Sep 27, 2022
efc9bc8
[MIG] partner_invoicing_mode_at_shipping: Migration to 16.0
StefanRijnhart Nov 30, 2022
2bf79c9
[UPD] Update partner_invoicing_mode_at_shipping.pot
Apr 21, 2023
66b5c77
[UPD] README.rst
OCA-git-bot Apr 21, 2023
7a5a41c
partner_invoicing_mode_at_shipping 16.0.1.0.1
OCA-git-bot Apr 21, 2023
6eb6ac1
Added translation using Weblate (Spanish)
Ivorra78 Jul 29, 2023
83d32d2
Translated using Weblate (Spanish)
Ivorra78 Jul 29, 2023
14d4a9b
[UPD] README.rst
OCA-git-bot Sep 3, 2023
a3999fc
[IMP] partner_invoicing_mode_at_shipping: Add grouping option per pic…
rousseldenis Dec 18, 2023
a826970
Added translation using Weblate (Italian)
mymage Feb 26, 2024
5ee9f88
Translated using Weblate (Italian)
mymage Feb 27, 2024
af7851c
[IMP] partner_invoicing_mode_at_shipping: Compute 'one_invoice_per_pi…
rousseldenis Dec 18, 2023
3b0f6a1
[IMP] partner_invoicing_mode_at_shipping: Refactor tests and change t…
rousseldenis Dec 18, 2023
f0fcd7c
[IMP] partner_invoicing_mode_at_shipping: Add migration script for 'o…
rousseldenis Dec 20, 2023
9cbe4a2
[IMP] partner_invoicing_mode_at_shipping: Add 'one_invoice_per_shippi…
rousseldenis Dec 20, 2023
76bc877
[IMP] partner_invoicing_mode_at_shipping: Remove unused function
rousseldenis Dec 22, 2023
bc5633a
[FIX] partner_invoicing_mode_at_shipping: Add one_invoice_per_shippin…
rousseldenis Feb 8, 2024
6b467f0
[IMP] partner_invoicing_mode_at_shipping: Extract _invoicing_at_shipp…
tuantrantg Mar 28, 2024
bec4897
[UPD] Update partner_invoicing_mode_at_shipping.pot
Jun 27, 2024
ea177c1
[BOT] post-merge updates
OCA-git-bot Jun 27, 2024
f9d307a
Update translation files
weblate Jun 27, 2024
411384f
Translated using Weblate (Spanish)
anmarmo1 Jun 29, 2024
f40a038
Translated using Weblate (Italian)
mymage Jul 15, 2024
3c8af32
Added translation using Weblate (French)
samibc2c Nov 6, 2024
f4c0ef1
Translated using Weblate (French)
samibc2c Nov 6, 2024
d7634a2
[IMP] partner_invoicing_mode_at_shipping: pre-commit auto fixes
chaule97 Dec 31, 2024
584e09a
[MIG] partner_invoicing_mode_at_shipping: Migration to 17.0
NICO-SOLUTIONS Apr 8, 2024
06e39a7
[IMP] partner_invoicing_mode_at_shipping: pre-commit auto fixes
chaule97 Nov 7, 2024
fe0c6bc
[MIG] partner_invoicing_mode_at_shipping: Migration to 18.0
chaule97 Nov 7, 2024
4974b72
[UPD] partner_invoicing_mode_at_shipping: Update testcase
chaule97 Nov 7, 2024
da17712
[DON'T MERGE] Add test-requirements.txt
chaule97 Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions partner_invoicing_mode_at_shipping/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
==================================
Partner Invoicing Mode At Shipping
==================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:6f96589039ddad82b6acdcd148f04264085935d83c2fc147507bf3ab3ae41c1b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.0/partner_invoicing_mode_at_shipping
: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-18-0/account-invoicing-18-0-partner_invoicing_mode_at_shipping
: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=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to select a At shipping invoicing mode for a
customer. It is based on partner_invoicing_mode. When this mode is
selected the customer will be invoiced automatically on delivery of the
goods.

Another option is the 'One Invoice Per Shipping'. That one is not
compatible with the 'At shipping' invoicing mode. In that case, the
invoicing validation will occur at a different moment (monthly, ...).

**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_at_shipping%0Aversion:%2018.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 <[email protected]>

- Phuc (Tran Thanh) <[email protected]>

- Nils Coenen <[email protected]>

- Chau Le <[email protected]>

Other credits
-------------

The development and migration 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/18.0/partner_invoicing_mode_at_shipping>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions partner_invoicing_mode_at_shipping/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .hooks import pre_init_hook
20 changes: 20 additions & 0 deletions partner_invoicing_mode_at_shipping/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2020 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Partner Invoicing Mode At Shipping",
"version": "18.0.1.0.0",
"summary": "Create invoices automatically when goods are shipped.",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
"license": "AGPL-3",
"category": "Accounting & Finance",
"data": [
"data/queue_job_data.xml",
"views/res_partner.xml",
],
"depends": ["account", "partner_invoicing_mode", "queue_job", "stock"],
"external_dependencies": {
"python": ["openupgradelib"],
},
"pre_init_hook": "pre_init_hook",
}
15 changes: 15 additions & 0 deletions partner_invoicing_mode_at_shipping/data/queue_job_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Queue Job Channel -->
<record id="invoice_at_shipping" model="queue.job.channel">
<field name="name">invoice_at_shipping</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>

<!-- Job Functions -->
<record id="job_function_invoicing_at_shipping" model="queue.job.function">
<field name="model_id" ref="stock.model_stock_picking" />
<field name="method">_invoicing_at_shipping</field>
<field name="channel_id" ref="invoice_at_shipping" />
</record>
</odoo>
23 changes: 23 additions & 0 deletions partner_invoicing_mode_at_shipping/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2023 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade


def _add_one_invoice_per_shipping(env):
if not openupgrade.column_exists(env.cr, "sale_order", "one_invoice_per_shipping"):
field_spec = [
(
"one_invoice_per_shipping",
"sale.order",
"sale_order",
"boolean",
"boolean",
"partner_invoicing_mode_at_shipping",
False,
)
]
openupgrade.add_fields(env, field_spec)


def pre_init_hook(env):
_add_one_invoice_per_shipping(env)
97 changes: 97 additions & 0 deletions partner_invoicing_mode_at_shipping/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_invoicing_mode_at_shipping
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-06-29 10:47+0000\n"
"Last-Translator: Anna Martínez <[email protected]>\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_at_shipping
#: model:ir.model.fields.selection,name:partner_invoicing_mode_at_shipping.selection__res_partner__invoicing_mode__at_shipping
msgid "At Shipping"
msgstr "En envío"

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model.fields,help:partner_invoicing_mode_at_shipping.field_res_partner__one_invoice_per_shipping
#: model:ir.model.fields,help:partner_invoicing_mode_at_shipping.field_res_users__one_invoice_per_shipping
msgid ""
"Check this if you want to create one invoice per shipping using the partner "
"invoicing mode that should be different than 'At Shipping'."
msgstr ""

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model,name:partner_invoicing_mode_at_shipping.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_res_partner__invoicing_mode
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_res_users__invoicing_mode
msgid "Invoicing Mode"
msgstr "Modo de facturación"

#. module: partner_invoicing_mode_at_shipping
#. odoo-python
#: code:addons/partner_invoicing_mode_at_shipping/models/stock_picking.py:0
#, python-format
msgid "Nothing to invoice."
msgstr "Nada para Facturar."

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_res_partner__one_invoice_per_shipping
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_res_users__one_invoice_per_shipping
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_sale_order__one_invoice_per_shipping
msgid "One Invoice Per Shipping"
msgstr ""

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model,name:partner_invoicing_mode_at_shipping.model_sale_order
msgid "Sales Order"
msgstr "Pedido de venta"

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model,name:partner_invoicing_mode_at_shipping.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de existencias"

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model,name:partner_invoicing_mode_at_shipping.model_stock_picking
msgid "Transfer"
msgstr "Transferencia"

#. module: partner_invoicing_mode_at_shipping
#. odoo-python
#: code:addons/partner_invoicing_mode_at_shipping/models/sale_order.py:0
#, python-format
msgid ""
"Validate the invoices generated by shipping for the invoicing mode "
"%(invoicing_mode_name)s"
msgstr ""

#. module: partner_invoicing_mode_at_shipping
#. odoo-python
#: code:addons/partner_invoicing_mode_at_shipping/models/res_partner.py:0
#, python-format
msgid ""
"You cannot configure the partner %(partner)s with 'One Invoice Per Order' "
"and 'One Invoice Per Shipping'!"
msgstr ""

#. module: partner_invoicing_mode_at_shipping
#. odoo-python
#: code:addons/partner_invoicing_mode_at_shipping/models/res_partner.py:0
#, python-format
msgid ""
"You cannot configure the partner %(partner)s with Invoicing Mode 'At "
"Shipping' and 'One Invoice Per Shipping'!"
msgstr ""
106 changes: 106 additions & 0 deletions partner_invoicing_mode_at_shipping/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_invoicing_mode_at_shipping
#
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 <[email protected]>\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_at_shipping
#: model:ir.model.fields.selection,name:partner_invoicing_mode_at_shipping.selection__res_partner__invoicing_mode__at_shipping
msgid "At Shipping"
msgstr "A l'expédition"

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model.fields,help:partner_invoicing_mode_at_shipping.field_res_partner__one_invoice_per_shipping
#: model:ir.model.fields,help:partner_invoicing_mode_at_shipping.field_res_users__one_invoice_per_shipping
msgid ""
"Check this if you want to create one invoice per shipping using the partner "
"invoicing mode that should be different than 'At Shipping'."
msgstr ""
"Cochez si vous souhaitez créer une facture par expédition en utilisant le "
"mode de facturation du partenaire, qui doit être différent de 'A "
"l'expédition'."

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model,name:partner_invoicing_mode_at_shipping.model_res_partner
msgid "Contact"
msgstr "Contact"

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_res_partner__invoicing_mode
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_res_users__invoicing_mode
msgid "Invoicing Mode"
msgstr "Mode de facturation"

#. module: partner_invoicing_mode_at_shipping
#. odoo-python
#: code:addons/partner_invoicing_mode_at_shipping/models/stock_picking.py:0
#, python-format
msgid "Nothing to invoice."
msgstr "Rien à facturer."

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_res_partner__one_invoice_per_shipping
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_res_users__one_invoice_per_shipping
#: model:ir.model.fields,field_description:partner_invoicing_mode_at_shipping.field_sale_order__one_invoice_per_shipping
msgid "One Invoice Per Shipping"
msgstr "Une facture par expédition"

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model,name:partner_invoicing_mode_at_shipping.model_sale_order
msgid "Sales Order"
msgstr "Bon de commande"

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model,name:partner_invoicing_mode_at_shipping.model_stock_move
msgid "Stock Move"
msgstr "Mouvement de stock"

#. module: partner_invoicing_mode_at_shipping
#: model:ir.model,name:partner_invoicing_mode_at_shipping.model_stock_picking
msgid "Transfer"
msgstr "Transfert"

#. module: partner_invoicing_mode_at_shipping
#. odoo-python
#: code:addons/partner_invoicing_mode_at_shipping/models/sale_order.py:0
#, python-format
msgid ""
"Validate the invoices generated by shipping for the invoicing mode "
"%(invoicing_mode_name)s"
msgstr ""
"Valider les factures générées par l'expédition pour le mode de facturation "
"%(invoicing_mode_name)s"

#. module: partner_invoicing_mode_at_shipping
#. odoo-python
#: code:addons/partner_invoicing_mode_at_shipping/models/res_partner.py:0
#, python-format
msgid ""
"You cannot configure the partner %(partner)s with 'One Invoice Per Order' "
"and 'One Invoice Per Shipping'!"
msgstr ""
"Vous ne pouvez pas configurer le partenaire %(partner)s with 'Une facture "
"par commande' et 'Une facture par expédition' !"

#. module: partner_invoicing_mode_at_shipping
#. odoo-python
#: code:addons/partner_invoicing_mode_at_shipping/models/res_partner.py:0
#, python-format
msgid ""
"You cannot configure the partner %(partner)s with Invoicing Mode 'At "
"Shipping' and 'One Invoice Per Shipping'!"
msgstr ""
"Vous ne pouvez pas configurer le partenaire %(partner)s avec le mode de "
"facturation 'à l'expédition' et 'Une facture par expédition' !"
Loading
Loading