Skip to content

Commit

Permalink
Merge PR OCA#991 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by AaronHForgeFlow
  • Loading branch information
OCA-git-bot committed Oct 8, 2021
2 parents 7a4a60a + b9a78f6 commit c3f613b
Show file tree
Hide file tree
Showing 68 changed files with 4,999 additions and 0 deletions.
156 changes: 156 additions & 0 deletions purchase_stock_picking_return_invoicing/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
=======================================
Purchase Stock Picking Return Invoicing
=======================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/13.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-13-0/account-invoicing-13-0-purchase_stock_picking_return_invoicing
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/95/13.0
:alt: Try me on Runbot

|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

#. Go to *Purchases > Purchase > Purchase Orders > Create*.
#. Choose a supplier and add a product whose *Control Purchase Bills* is
*On received quantities*, and input some quantity to purchase.
#. Confirm the purchase order.
#. Go to *Shipment > Validate > Apply* so as to receive the quantities ordered.
#. Press the button *Return*.
#. 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.
#. On the return picking press *Validate > Apply*.
#. Go back to the purchase order. You will notice that the field *Returned
Qty* is now the quantity that was returned.
#. Press the button *Create Bill* to create the vendor bill.
#. 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.

#. Go to *Purchases > Purchase > Purchase Orders > Create*.
#. Choose a supplier and add a product whose *Control Purchase Bills* is
*On received quantities*, and input some quantity to purchase.
#. Confirm the purchase order.
#. Go to *Shipment > Validate > Apply* so as to receive the quantities ordered.
#. Go back to the purchase order. Press the button *Create Bill* to create
the vendor bill.
#. The proposed vendor bill will be proposed for the quantity received. The
*Billing Status* is now 'Fully Billed'
#. Go to the original incoming shipment
#. Press the button *Return*.
#. 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.
#. On the return picking press *Validate > Apply*.
#. 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.
#. Press the button *Refunds* to create the vendor refund bill.
#. The proposed vendor refund bill will be proposed for the quantity that is
to be refunded.
#. 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20purchase_stock_picking_return_invoicing%0Aversion:%2013.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
~~~~~~~

* Eficent
* Tecnativa

Contributors
~~~~~~~~~~~~

* Eficent <http://www.eficent.com>:

* Jordi Ballester Alomar <[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

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

|maintainer-pedrobaeza|

This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/13.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": "14.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"],
}
73 changes: 73 additions & 0 deletions purchase_stock_picking_return_invoicing/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 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 Entries"
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
#: 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 "فاتورة"
72 changes: 72 additions & 0 deletions purchase_stock_picking_return_invoicing/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# 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 Entries"
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
#: 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 "Фактура"
73 changes: 73 additions & 0 deletions purchase_stock_picking_return_invoicing/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 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: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n"
"Language: bs\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"

#. 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 Entries"
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
#: 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 "Faktura"
Loading

0 comments on commit c3f613b

Please sign in to comment.