Repository
OCA/rma · module folder · Try on Runboat
Module version
1.1.0
Category
RMA
Folder size
0.13 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/rma
Last tracking update
2026-08-07 08:42:51
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Víctor Martínez, Weblate, OCA-git-bot, oca-ci, eduezerouali-tecnativa
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module enables RMAs for kits, wich isn't compatible with the base
modules. In the backend side, we can return separate component while in
the frontend side, customers can return the whole kit and the proper
RMAs will be generated.

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
portal_my_rmas My RMA Orders MRP ir.ui.view qweb Inherits rma.portal_my_rmas
portal_rma_page RMA Kits ir.ui.view qweb Inherits rma.portal_rma_page
report_rma_document report_rma_document ir.ui.view qweb Inherits rma_sale.report_rma_document
rma_view_form rma form Inherits rma_sale.rma_view_form
rma_view_tree rma tree Inherits rma.rma_view_tree
sale_order_portal_template Request RMA MRP ir.ui.view qweb Inherits rma_sale.sale_rma_request_form
sale_order_rma_wizard_form_view sale.order.rma.wizard form Inherits rma_sale.sale_order_rma_wizard_form_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • kit_qty Float
    digits='Product Unit of Measure' help='To how many kits this components corresponds to. Used mainly for refunding the right quantity' readonly=True string='Kit quantity'
  • phantom_bom_product Many2one → product.product
    comodel_name='product.product' readonly=True string='Related kit product'
  • rma_kit_register Char
    readonly=True
Public methods (2)
  • action_draft(self)
  • action_refund(self)
    We want to process them altogether

New fields (0)

No new fields.

Public methods (1)
  • get_delivery_rma_data(self)
    Get the phantom lines we'll be showing in the wizard

New fields (0)

No new fields.

Public methods (2)
  • get_delivery_move(self)
  • prepare_sale_rma_data(self)
    We'll take both the sale order product and the phantom one so we can play with them when filtering or showing to the customer

New fields (4)
  • kit_qty_done Float
    help='Used to inform kit qty used in the rma. Will be useful to refund' readonly=True
  • per_kit_quantity Float
    readonly=True
  • phantom_bom_product Many2one → product.product
    comodel_name='product.product'
  • phantom_kit_line Boolean
    readonly=True
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • component_line_ids One2many → sale.order.line.rma.wizard.component
    comodel_name='sale.order.line.rma.wizard.component' inverse_name='wizard_id' string='Component Lines'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
    Split component lines
  • create_rma(self, from_portal=None)
    We kept the component lines in the shade and now we need to take the ones linked to the phatom lines (kits) to create the proper RMA for each component according to the proper component quantities

Loading…

Loading…

Loading…

Loading…

Loading…