Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 5 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 6 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.13 MB
Module directory on disk
Code analysis 0 migration notes 7 models 7 views 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…