Refund Return Pickings in Sales Orders

sale_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/9.0/sale_stock_picking_return_invoicing
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, Jairo Llopis, OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttps://tecnativa.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - web_tip
    - web_planner
    - procurement
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
view_move_picking_tree stock.move xpath Inherits stock.view_move_picking_tree
view_order_form sale.order xpath Inherits sale.view_order_form
view_picking_form stock.picking xpath Inherits stock.view_picking_form
view_stock_return_picking_form Allow to refund sale order stock.return.picking xpath Inherits stock.view_stock_return_picking_form
Models touched (5)

New fields (1)
  • qty_returned Float
    copy=False digits=dp.get_precision('Product Unit of Measure') string='Returned Qty'
Public methods (0)

No public methods.

New fields (2)
  • origin_to_refund_so Boolean
    args: 'Origin To Refund in SO'
  • to_refund_so Boolean
    help='Trigger a decrease of the delivered quantity in the associated Sale Order' args: 'To Refund in SO'
Public methods (1)
  • action_done(self)
    @api.multi

New fields (1)
  • to_refund_lines Selection
    default='keep_line_value' help="This field allow modify 'to_refund_so' field value in all stock moves from this picking after it has been confirmed.keep_line_value: keep the original value.\nto_refund_so: set all stock moves to True value and recompute delivered quantities in sale order.\nno_refund_so: set all stock moves to False value and recompute delivered quantities in sale order." selection=[('keep_line_value', 'Keep Line Value'), ('to_refund_so', 'To Refund In Sales Order'), ('no_refund_so', 'No Refund In Sales Order')] string='Refund Options'
Public methods (2)
  • set_delivered_qty(self)
    @api.multi
  • write(self, vals)
    @api.multi

New fields (0)

No new fields.

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

New fields (2)
  • sale_order_id Many2one → sale.order
    comodel_name='sale.order' ondelete='cascade' readonly=True string='Sale order'
  • to_refund_so Boolean
    help='Trigger a decrease of the delivered quantity in the associated Sale Order' string='To Refund'
Public methods (0)

No public methods.