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] purchase_stock_picking_return_invoicing: Migration to version 18.0 #1904

Open
wants to merge 40 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
40 commits
Select commit Hold shift + click to select a range
267d80d
purchase_stock_picking_return_invoicing
JordiBForgeFlow Feb 16, 2017
4e8cc76
OCA Transbot updated translations from Transifex
oca-transbot Mar 25, 2017
12a5597
[9.0][FIX] purchase_stock_picking_return_invoicing
MiquelRForgeFlow Jun 30, 2017
f6e76af
[10.0][MIG] purchase_stock_picking_return_invoicing: Migration to 10.0
MiquelRForgeFlow Jul 25, 2017
dbc1f6c
[IMP] purchase_stock_picking_return_invoicing: Cleanup
pedrobaeza Dec 18, 2017
ced12c6
OCA Transbot updated translations from Transifex
oca-transbot Apr 14, 2018
001cd2c
[IMP] purchase_stock_picking_returm_invoicing: Improve perf for qty_r…
pedrobaeza Jun 27, 2018
564ebb4
[MIG] purchase_stock_picking_return_invoicing: Migration to 11.0
pedrobaeza Jun 27, 2018
930fbf7
Translated using Weblate (German)
rschnapka Oct 11, 2018
c7d399b
[UPD] Update purchase_stock_picking_return_invoicing.pot
oca-travis Oct 11, 2018
95f9172
Update translation files
oca-transbot Nov 25, 2018
669428f
[FIX] purchase_stock_picking_return_invoicing: Remove extra buggy com…
pedrobaeza Jan 3, 2019
e5fb618
[11.0][add][purchase_stock_picking_return_invoicing_force_invoiced]
JordiBForgeFlow Jul 4, 2019
af52e37
[12.0][MIG] purchase_stock_picking_return_invoicing
AdriaGForgeFlow Jul 9, 2019
3f8983e
[UPD] Update purchase_stock_picking_return_invoicing.pot
oca-travis Jul 19, 2019
b793291
Translated using Weblate (German)
marylla Aug 23, 2019
738cb3b
Translated using Weblate (Portuguese (Brazil))
Sep 3, 2019
b27b21d
[IMP][12.0] purchase_stock_picking_return_invoicing: ease multi refund
chienandalu Oct 31, 2019
8c7543c
Translated using Weblate (Portuguese (Brazil))
Nov 24, 2019
c094097
[13.0][IMP] purchase_stock_picking_return_invoicing: black, isort
kittiu Feb 6, 2020
b905be3
[13.0][MIG] purchase_stock_picking_return_invoicing
kittiu Feb 10, 2020
0b13167
Translated using Weblate (Spanish)
anasuarez1 Mar 10, 2021
57cad02
[MIG] purchase_stock_picking_return_invoicing: Migration to 14.0
mariadforgeflow Aug 25, 2021
3c10c2a
[FIX] purchase_stock_picking_return_invoicing: Hide button on proper …
pedrobaeza Oct 13, 2021
16e248d
[FIX] purchase_stock_picking_return_invoicing: Invalid invisible attr…
pedrobaeza Nov 29, 2021
cc6be16
Translated using Weblate (Portuguese (Brazil))
Feb 1, 2022
395d425
[MIG] purchase_stock_picking_return_invoicing: Migration to 15.0
Jun 4, 2022
d6f232d
Translated using Weblate (Italian)
francesco-ooops Jan 2, 2023
5edcfce
[MIG] purchase_stock_picking_return_invoicing: Migration to 16.0
Yadier-Tecnativa May 7, 2023
bd33fd6
Update translation files
weblate May 15, 2023
403dbba
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jul 1, 2023
bc7f43c
Translated using Weblate (Spanish)
Ivorra78 Jul 29, 2023
f43efe7
Update translation files
weblate Oct 9, 2023
bf6c625
[IMP] purchase_stock_picking_return_invoicing: test performance impro…
josep-tecnativa Oct 13, 2023
5e521b3
Translated using Weblate (Portuguese (Brazil))
adrianojprado Dec 27, 2023
8b86a04
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
a70f823
[FIX] purchase_stock_picking_return_invoicing: Add digits="Product Un…
victoralmau Jul 9, 2024
c9b7e8c
Translated using Weblate (Italian)
mymage Feb 21, 2024
07d8afd
[IMP] purchase_stock_picking_return_invoicing: pre-commit auto fixes
carlos-lopez-tecnativa Feb 7, 2025
caebebd
[MIG] purchase_stock_picking_return_invoicing: Migration to version 18.0
carlos-lopez-tecnativa Feb 7, 2025
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
168 changes: 168 additions & 0 deletions purchase_stock_picking_return_invoicing/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
=======================================
Purchase Stock Picking Return Invoicing
=======================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |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/purchase_stock_picking_return_invoicing
: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-purchase_stock_picking_return_invoicing
: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 extends the functionality of purchase orders to better
manage supplier returns and refunds.

In the purchase order you are able to display, for each line:

- Billed Quantity and Refunded Quantity, as separate fields.
- Received Quantity and Returned Refundable Quantity, as separate
fields.

You have the option to create a vendor bill or a refund. In the bill or
refund the correct quantity will be proposed, based on those fields.

**Table of contents**

.. contents::
:local:

Usage
=====

Case 1: When you return to a supplier some products, and you have not
yet received the bill from the supplier

1. Go to *Purchases > Purchase > Purchase Orders > Create*.
2. Choose a supplier and add a product whose *Control Purchase Bills*
is *On received quantities*, and input some quantity to purchase.
3. Confirm the purchase order.
4. Go to *Shipment > Validate > Apply* so as to receive the quantities
ordered.
5. Press the button *Return*.
6. In the wizard *Reverse Transfer* set *Quantity* to the quantity to
be returned. Press *Return* to complete the wizard. **IMPORTANT**:
You have to mark "To refund (Update SO/PO)" check before pressing
the button.
7. On the return picking press *Validate > Apply*.
8. Go back to the purchase order. You will notice that the field
*Returned Qty* is now the quantity that was returned.
9. Press the button *Create Bill* to create the vendor bill.
10. The proposed vendor bill will be proposed for the difference between
the received and the returned quantity.

Case 2: When you return to a supplier some products, and you have
already received a bill from the supplier.

1. Go to *Purchases > Purchase > Purchase Orders > Create*.
2. Choose a supplier and add a product whose *Control Purchase Bills*
is *On received quantities*, and input some quantity to purchase.
3. Confirm the purchase order.
4. Go to *Shipment > Validate > Apply* so as to receive the quantities
ordered.
5. Go back to the purchase order. Press the button *Create Bill* to
create the vendor bill.
6. The proposed vendor bill will be proposed for the quantity received.
The *Billing Status* is now 'Fully Billed'
7. Go to the original incoming shipment
8. Press the button *Return*.
9. In the wizard *Reverse Transfer* set *Quantity* to the quantity to
be returned. Press *Return* to complete the wizard. **IMPORTANT**:
You have to mark "To refund (Update SO/PO)" check before pressing
the button.
10. On the return picking press *Validate > Apply*.
11. Go back to the purchase order. It will have *Billing Status* as
'Waiting Bills'. You will notice that the field *Returned Qty* is
now the quantity that was returned.
12. Press the button *Refunds* to create the vendor refund bill.
13. The proposed vendor refund bill will be proposed for the quantity
that is to be refunded.
14. If you back to the purchase order, you will notice that *Billing
Status* is now 'Fully Billed', even when the quantity ordered does
not match with the quantity invoiced, because you did return some
products.

Remark: If you accept that you will not claim for a refund for the
quantity returned to the supplier, just leave without checking the mark
"To refund (Update SO/PO)" on the return dialog.

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:%20purchase_stock_picking_return_invoicing%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
-------

* ForgeFlow
* Tecnativa

Contributors
------------

- Forgeflow <https://www.forgeflow.com>:

- Jordi Ballester Alomar <[email protected]>
- Juany Davila <[email protected]>

- Tecnativa <https://www.tecnativa.com>

- Pedro M. Baeza

- Ecosoft <https://ecosoft.co.th>

- Kitti Upariphutthiphong

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.

.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px
:target: https://github.com/pedrobaeza
:alt: pedrobaeza
.. |maintainer-MiquelRForgeFlow| image:: https://github.com/MiquelRForgeFlow.png?size=40px
:target: https://github.com/MiquelRForgeFlow
:alt: MiquelRForgeFlow

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-pedrobaeza| |maintainer-MiquelRForgeFlow|

This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/18.0/purchase_stock_picking_return_invoicing>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions purchase_stock_picking_return_invoicing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions purchase_stock_picking_return_invoicing/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Purchase Stock Picking Return Invoicing",
"summary": "Add an option to refund returned pickings",
"version": "18.0.1.0.0",
"category": "Purchases",
"website": "https://github.com/OCA/account-invoicing",
"author": "ForgeFlow, Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"development_status": "Mature",
"depends": ["purchase_stock"],
"data": ["views/account_invoice_view.xml", "views/purchase_view.xml"],
"maintainers": ["pedrobaeza", "MiquelRForgeFlow"],
}
82 changes: 82 additions & 0 deletions purchase_stock_picking_return_invoicing/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_stock_picking_return_invoicing
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-24 18:04+0000\n"
"PO-Revision-Date: 2017-03-24 18:04+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model.fields,field_description:purchase_stock_picking_return_invoicing.field_purchase_order__invoice_refund_count
msgid "# of Invoice Refunds"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model_terms:ir.ui.view,arch_db:purchase_stock_picking_return_invoicing.purchase_order_view_form_inherit
msgid "Create Refund"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model,name:purchase_stock_picking_return_invoicing.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model,name:purchase_stock_picking_return_invoicing.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model,name:purchase_stock_picking_return_invoicing.model_purchase_order_line
msgid "Purchase Order Line"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model.fields,field_description:purchase_stock_picking_return_invoicing.field_purchase_order_line__qty_refunded
msgid "Refunded Qty"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model_terms:ir.ui.view,arch_db:purchase_stock_picking_return_invoicing.purchase_order_view_form_inherit
msgid "Refunds"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model.fields,field_description:purchase_stock_picking_return_invoicing.field_purchase_order_line__qty_returned
msgid "Returned* Qty"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model_terms:ir.ui.view,arch_db:purchase_stock_picking_return_invoicing.view_invoice_supplier_purchase_form
msgid "Select a purchase order or an old bill"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#. odoo-python
#: code:addons/purchase_stock_picking_return_invoicing/models/purchase_order.py:0
#, python-format
msgid ""
"There is no invoiceable line. If a product has a control policy based on "
"received quantity, please make sure that a quantity has been received."
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model.fields,help:purchase_stock_picking_return_invoicing.field_purchase_order_line__qty_returned
msgid "This is ONLY the returned quantity that is refundable."
msgstr ""

#~ msgid "Invoice"
#~ msgstr "فاتورة"
81 changes: 81 additions & 0 deletions purchase_stock_picking_return_invoicing/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_stock_picking_return_invoicing
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-24 18:04+0000\n"
"PO-Revision-Date: 2017-03-24 18:04+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"Language: bg\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"

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model.fields,field_description:purchase_stock_picking_return_invoicing.field_purchase_order__invoice_refund_count
msgid "# of Invoice Refunds"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model_terms:ir.ui.view,arch_db:purchase_stock_picking_return_invoicing.purchase_order_view_form_inherit
msgid "Create Refund"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model,name:purchase_stock_picking_return_invoicing.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model,name:purchase_stock_picking_return_invoicing.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model,name:purchase_stock_picking_return_invoicing.model_purchase_order_line
msgid "Purchase Order Line"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model.fields,field_description:purchase_stock_picking_return_invoicing.field_purchase_order_line__qty_refunded
msgid "Refunded Qty"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model_terms:ir.ui.view,arch_db:purchase_stock_picking_return_invoicing.purchase_order_view_form_inherit
msgid "Refunds"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model.fields,field_description:purchase_stock_picking_return_invoicing.field_purchase_order_line__qty_returned
msgid "Returned* Qty"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model_terms:ir.ui.view,arch_db:purchase_stock_picking_return_invoicing.view_invoice_supplier_purchase_form
msgid "Select a purchase order or an old bill"
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#. odoo-python
#: code:addons/purchase_stock_picking_return_invoicing/models/purchase_order.py:0
#, python-format
msgid ""
"There is no invoiceable line. If a product has a control policy based on "
"received quantity, please make sure that a quantity has been received."
msgstr ""

#. module: purchase_stock_picking_return_invoicing
#: model:ir.model.fields,help:purchase_stock_picking_return_invoicing.field_purchase_order_line__qty_returned
msgid "This is ONLY the returned quantity that is refundable."
msgstr ""

#~ msgid "Invoice"
#~ msgstr "Фактура"
Loading