| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/rma |
| GIT | |
| GIT | https://github.com/OCA/rma.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/rma/tree/18.0/rma_batch |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), ACSONE SA/NV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), ACSONE SA/NV |
| COMMITTERS | |
| COMMITTERS | sbejaoui, Weblate, OCA-git-bot, oca-ci, Samir GUESMI |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/rma |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:30:17 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/rma: - rma odoo/odoo: - stock_account - stock - product - base - 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. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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 |
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
action_show_rma(self)
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'
action_cancel(self)
action_confirm(self)
action_draft(self)
action_open_rma(self)
action_ready(self)
create(self, vals_list)
No new fields.
Public methods (1)action_create_returns(self)