Repository
OCA/rma · module folder · Try on Runboat
Module version
1.0.0
Category
RMA
Folder size
0.1 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/rma
Last tracking update
2026-08-14 11:16:14
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Víctor Martínez, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Automatically create an Inter Company RMA so that it can be managed independently but still remain linked.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
rma_view_form rma.view.form rma form Inherits rma.rma_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (2)
  • intercompany_origin_rma_id Many2one → rma
    comodel_name='rma' copy=False readonly=True string='Intercompany Origin RMA'
  • intercompany_rma_id Many2one → rma
    comodel_name='rma' copy=False readonly=True string='Intercompany RMA'
Public methods (8)
  • action_cancel(self)
    Perform the same action in the intercompany RMAs.
  • action_confirm(self)
  • action_draft(self)
    Perform the same action in the intercompany RMAs.
  • action_refund(self)
    Perform the same action in the intercompany RMAs.
  • action_refund_without_invoice(self)
    Perform the same action in the intercompany RMAs.
  • create_replace(self, scheduled_date, warehouse, product, qty, uom)
    Perform the same action in the intercompany RMAs.
  • create_return(self, scheduled_date, qty=None, uom=None)
    Perform the same action in the intercompany RMAs.
  • write(self, vals)

New fields (0)

No new fields.

Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi
    When completing a sales receipt (return) picking, if the destination location is inter-company (because it is an inter-company process), the system will automatically create a sales order line; however, this would be incorrect. Therefore, we use the context added in _action_done() in stock.picking to prevent this. Related to https://github.com/odoo/odoo/blob/ee5502ef5ebe7c3a87984697771643d1f798b880/addons/sale_stock/models/stock.py#L141

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_cancel(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.