Purchase Stock Picking Return Invoicing

purchase_stock_picking_return_invoicing
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/18.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSCarlos Lopez, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - onboarding
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
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.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_view_form_inherit purchase.order.form purchase.order button Inherits purchase_stock.purchase_order_view_form_inherit
view_invoice_supplier_purchase_form account.move field Inherits purchase.view_move_form_inherit_purchase
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund_count' string='# of Invoice Refunds'
Public methods (3)
  • action_create_invoice_refund(self)
    Create the refund associated to the PO.
  • action_view_invoice(self, invoices=False)
    Change super action for displaying only normal invoices.
  • action_view_invoice_refund(self, invoices=False)
    This function returns an action that display existing vendor refund bills of given purchase order ids. When only one found, show the vendor bill immediately.

New fields (2)
  • qty_refunded Float
    compute='_compute_qty_refunded' digits='Product Unit of Measure' string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' digits='Product Unit of Measure' help='This is ONLY the returned quantity that is refundable.' store=True string='Returned* Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/17.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSCarlos Lopez, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - onboarding
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
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.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_view_form_inherit purchase.order.form purchase.order button Inherits purchase_stock.purchase_order_view_form_inherit
view_invoice_supplier_purchase_form account.move field Inherits purchase.view_move_form_inherit_purchase
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund_count' string='# of Invoice Refunds'
Public methods (3)
  • action_create_invoice_refund(self)
    Create the refund associated to the PO.
  • action_view_invoice(self, invoices=False)
    Change super action for displaying only normal invoices.
  • action_view_invoice_refund(self, invoices=False)
    This function returns an action that display existing vendor refund bills of given purchase order ids. When only one found, show the vendor bill immediately.

New fields (2)
  • qty_refunded Float
    compute='_compute_qty_refunded' digits='Product Unit of Measure' string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' digits='Product Unit of Measure' help='This is ONLY the returned quantity that is refundable.' store=True string='Returned* Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/16.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSVíctor Martínez, Weblate, OCA-git-bot, oca-ci, josep-tecnativa, Yadier A. De Quesada
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:52
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_view_form_inherit purchase.order.form purchase.order button Inherits purchase_stock.purchase_order_view_form_inherit
view_invoice_supplier_purchase_form account.move field Inherits purchase.view_move_form_inherit_purchase
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund_count' string='# of Invoice Refunds'
Public methods (3)
  • action_create_invoice_refund(self)
    Create the refund associated to the PO.
  • action_view_invoice(self, invoices=False)
    Change super action for displaying only normal invoices.
  • action_view_invoice_refund(self, invoices=False)
    This function returns an action that display existing vendor refund bills of given purchase order ids. When only one found, show the vendor bill immediately.

New fields (2)
  • qty_refunded Float
    compute='_compute_qty_refunded' digits='Product Unit of Measure' string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' digits='Product Unit of Measure' help='This is ONLY the returned quantity that is refundable.' store=True string='Returned* Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/15.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSVíctor Martínez, Weblate, OCA-git-bot, oca-ci, Juany Davila, josep-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:37
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_view_form_inherit purchase.order.form purchase.order button Inherits purchase_stock.purchase_order_view_form_inherit
view_invoice_supplier_purchase_form account.move field Inherits purchase.view_move_form_inherit_purchase
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund_count' string='# of Invoice Refunds'
Public methods (3)
  • action_create_invoice_refund(self)
    Create the refund associated to the PO.
  • action_view_invoice(self, invoices=False)
    Change super action for displaying only normal invoices.
  • action_view_invoice_refund(self, invoices=False)
    This function returns an action that display existing vendor refund bills of given purchase order ids. When only one found, show the vendor bill immediately.

New fields (2)
  • qty_refunded Float
    compute='_compute_qty_refunded' digits='Product Unit of Measure' string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' digits='Product Unit of Measure' help='This is ONLY the returned quantity that is refundable.' store=True string='Returned* Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/14.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.2.1
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSPedro M. Baeza, mreficent, OCA Transbot, Víctor Martínez, oca-travis, Weblate, OCA-git-bot, mariadforgeflow
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:04
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_view_form_inherit purchase.order.form purchase.order button Inherits purchase_stock.purchase_order_view_form_inherit
view_invoice_supplier_purchase_form account.move field Inherits purchase.view_move_form_inherit_purchase
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund_count' string='# of Invoice Refunds'
Public methods (3)
  • action_create_invoice_refund(self)
    Create the refund associated to the PO.
  • action_view_invoice(self, invoices=False)
    Change super action for displaying only normal invoices.
  • action_view_invoice_refund(self, invoices=False)
    This function returns an action that display existing vendor refund bills of given purchase order ids. When only one found, show the vendor bill immediately.

New fields (2)
  • qty_refunded Float
    compute='_compute_qty_refunded' digits='Product Unit of Measure' string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' digits='Product Unit of Measure' help='This is ONLY the returned quantity that is refundable.' store=True string='Returned* Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/13.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.2.2
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSPedro M. Baeza, mreficent, Carlos Dauden, OCA Transbot, sergio-teruel, oca-travis, Weblate, OCA-git-bot, Kitti U
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - account
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_view_form_inherit purchase.order.form purchase.order button Inherits purchase_stock.purchase_order_view_form_inherit
view_invoice_supplier_purchase_form account.move field Inherits purchase.view_move_form_inherit_purchase
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund_count' string='# of Invoice Refunds'
Public methods (2)
  • action_view_invoice(self)
    Change super action for displaying only normal invoices.
  • action_view_invoice_refund(self)
    This function returns an action that display existing vendor refund bills of given purchase order id. When only one found, show the vendor bill immediately.

New fields (2)
  • qty_refunded Float
    compute='_compute_qty_refunded' string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' help='This is ONLY the returned quantity that is refundable.' store=True string='Returned* Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/12.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Eficent
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Eficent
COMMITTERS
COMMITTERSdavid, OCA Transbot, Miquel Raïch, oca-travis, Weblate, OCA-git-bot, sergiocorato
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - account
    - analytic
    - portal
    - http_routing
    - digest
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_view_form_inherit purchase.order.form purchase.order button Inherits purchase_stock.purchase_order_view_form_inherit
view_invoice_supplier_purchase_form account.invoice field Inherits purchase.view_invoice_supplier_purchase_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • purchase_order_change(self)
    @api.onchange('purchase_id')
    Remove lines with qty=0 when making refunds.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund_count' string='# of Invoice Refunds'
Public methods (2)
  • action_view_invoice(self)
    @api.multi
    Change super action for displaying only normal invoices.
  • action_view_invoice_refund(self)
    @api.multi
    This function returns an action that display existing vendor refund bills of given purchase order id. When only one found, show the vendor bill immediately.

New fields (2)
  • qty_refunded Float
    compute='_compute_qty_refunded' string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' help='This is ONLY the returned quantity that is refundable.' store=True string='Returned* Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/11.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Eficent
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Eficent
COMMITTERS
COMMITTERSPedro M. Baeza, david, Jordi Ballester Alomar, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - barcodes
    - web_planner
    - account
    - analytic
    - portal
    - http_routing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order button Inherits purchase.purchase_order_form
view_invoice_supplier_purchase_form account.invoice field Inherits purchase.view_invoice_supplier_purchase_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • purchase_order_change(self)
    @api.onchange('purchase_id')
    Remove lines with qty=0 when making refunds.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund_count' string='# of Invoice Refunds'
Public methods (2)
  • action_view_invoice(self)
    @api.multi
    Change super action for displaying only normal invoices.
  • action_view_invoice_refund(self)
    @api.multi
    This function returns an action that display existing vendor refund bills of given purchase order id. When only one found, show the vendor bill immediately.

New fields (2)
  • qty_refunded Float
    compute='_compute_qty_refunded' string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' help='This is ONLY the returned quantity that is refundable.' store=True string='Returned* Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/10.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Eficent
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Eficent
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - procurement
    - barcodes
    - web_planner
    - account
    - analytic
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order button Inherits purchase.purchase_order_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund_count' string='# of Invoice Refunds'
Public methods (2)
  • action_view_invoice(self)
    @api.multi
    Change super action for displaying only normal invoices.
  • action_view_invoice_refund(self)
    @api.multi
    This function returns an action that display existing vendor refund bills of given purchase order id. When only one found, show the vendor bill immediately.

New fields (2)
  • qty_refunded Float
    compute='_compute_qty_refunded' string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' store=True string='Returned Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/9.0/purchase_stock_picking_return_invoicing
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Eficent
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Eficent
COMMITTERS
COMMITTERSPedro M. Baeza, Jordi Ballester, OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - report
    - procurement
    - barcodes
    - web_planner
    - account
    - analytic
    - web_tip
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order button Inherits purchase.purchase_order_form
view_stock_return_picking_form Allow to refund purchase order stock.return.picking xpath Inherits stock.view_stock_return_picking_form
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • invoice_refund_count Integer
    compute='_compute_invoice_refund' copy=False default=0 string='# of Invoice Refunds'
Public methods (2)
  • action_view_invoice(self)
    @api.multi
  • action_view_invoice_refund(self)
    @api.multi
    This function returns an action that display existing vendor refund bills of given purchase order id. When only one found, show the vendor bill immediately.

New fields (5)
  • invoice_status Selection
    compute='_compute_qty_to_invoice' copy=False default='no' readonly=True string='Invoice Status' args: [('no', 'Not purchased'), ('to invoice', 'Waiting Invoices'), ('invoiced', 'Invoice Received')]
  • qty_refunded Float
    compute='_compute_qty_refunded' copy=False default=0.0 string='Refunded Qty'
  • qty_returned Float
    compute='_compute_qty_returned' copy=False default=0.0 string='Returned Qty'
  • qty_to_invoice Float
    compute='_compute_qty_to_invoice' copy=False default=0.0 string='Qty to Bill'
  • qty_to_refund Float
    compute='_compute_qty_to_invoice' copy=False default=0.0 string='Qty to Refund'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • default_get(self, fields)
    @api.model
    Get purchase order for lines.

New fields (1)
  • purchase_line_id Many2one → purchase.order.line
    comodel_name='purchase.order.line' readonly=True string='Purchase order line'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/account-invoicing
PULL REQUEST
PULL REQUEST[19.0][MIG] purchase_stock_picking_return_invoicing: Migration to 19.0 (#2337)