Rma Batch

rma_batch
REPOSITORY
REPOSITORYOCA/rma
GIT
GIThttps://github.com/OCA/rma.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/rma/tree/18.0/rma_batch
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSsbejaoui, Weblate, OCA-git-bot, oca-ci, Samir GUESMI
WEBSITE
WEBSITEhttps://github.com/OCA/rma
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/rma:
    - rma
odoo/odoo:
    - 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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
The goal of this module is to introduce an **RMA Batch** — a container that
groups several RMAs belonging to the same return event.  
It allows users to manage all related RMAs together, ensuring that shared
information (customer, responsible, team, tags, date) stays synchronized and
that batch actions apply consistently across all linked RMAs.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
rma_batch_form_view rma.batch form New
rma_batch_list_view rma.batch list New
rma_form_view rma xpath Inherits rma.rma_view_form
Models touched (3)

New fields (5)
  • batch_id Many2one → rma.batch
    index=True ondelete='cascade' string='RMA Batch' args: 'rma.batch'
  • operation_id Many2one
    compute='_compute_operation_id' readonly=False store=True
  • partner_id Many2one
    compute='_compute_partner_id' readonly=False store=True
  • tag_ids Many2many
    compute='_compute_tag_ids' readonly=False store=True
  • user_id Many2one
    compute='_compute_user_id' readonly=False store=True
Public methods (1)
  • action_show_rma(self)

New fields (14)
  • company_id Many2one → res.company
    default=<expr> required=True string='Company' args: 'res.company'
  • count_rma Integer
    compute='_compute_count_rma'
  • date Datetime
    default=fields.Datetime.now index=True required=True
  • location_id Many2one → stock.location
    comodel_name='stock.location' domain=<expr> help='Default RMA location that will be propagated to RMA order lines'
  • name Char
    copy=False default=<expr> readonly=True required=True string='Reference'
  • operation_id Many2one → rma.operation
    comodel_name='rma.operation' string='Requested operation'
  • partner_id Many2one → res.partner
    required=True string='Customer' args: 'res.partner'
  • partner_invoice_id Many2one → res.partner
    comodel_name='res.partner' compute='_compute_partner_invoice_id' domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]" help='Refund address for current RMA.' readonly=False store=True string='Invoice Address'
  • partner_shipping_id Many2one → res.partner
    comodel_name='res.partner' compute='_compute_partner_shipping_id' help='Shipping address for current RMA.' readonly=False store=True string='Shipping Address'
  • rma_ids One2many → rma
    string='RMA' args: 'rma', 'batch_id'
  • state Selection
    default='draft' help='Represents the preparation and validation progress of the RMA batch:\n- Draft: The batch is being prepared. RMAs can still be added or edited.\n- Ready: All required information for the batch and its RMAs is complete. The batch is ready to be confirmed.\n- Confirmed: The batch has been validated and all linked RMAs are confirmed.\n- Cancelled: The batch and its related RMAs are cancelled or ignored.' string='Status' tracking=True args: [('draft', 'Draft'), ('ready', 'Ready'), ('confirmed', 'Confirmed'), ('cancelled', 'Cancelled')]
  • tag_ids Many2many → rma.tag
    comodel_name='rma.tag' string='Tags'
  • team_id Many2one → rma.team
    comodel_name='rma.team' compute='_compute_team_id' index=True store=True string='RMA team'
  • user_id Many2one → res.users
    default=<expr> index=True string='Responsible' tracking=True args: 'res.users'
Public methods (6)
  • action_cancel(self)
  • action_confirm(self)
  • action_draft(self)
  • action_open_rma(self)
  • action_ready(self)
  • create(self, vals_list)
    @api.model_create_multi

New fields (0)

No new fields.

Public methods (1)
  • action_create_returns(self)