Skip to content
Health
41/100
poor
  • Security25/25
    No findings
  • Activity6/25
    Last human commit 35 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 14.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.5 MB
Module directory on disk
Code analysis 1 migration note 5 models 8 views 0 HTTP endpoints

Description

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 8

XML IDNameModelTypeStatus
assets assets ir.ui.view qweb Inherits point_of_sale.assets
pos_config_view_form_inh_pos_return_voucher pos.config.view.form.inherit pos.config form Inherits point_of_sale.pos_config_view_form
pos_payment_method_view_form_inherit_pos_return_voucher pos.payment.method.view.form.inherit pos.payment.method form Inherits point_of_sale.pos_payment_method_view_form
pos_payment_method_view_tree_inherit_pos_return_voucher pos.payment.method.view.tree.inherit pos.payment.method tree Inherits point_of_sale.pos_payment_method_view_tree
view_pos_payment_form_inherit_pos_return_voucher pos.payment.view.form.inherit pos.payment form Inherits point_of_sale.view_pos_payment_form
view_pos_pos_form_inh_pos_return_voucher pos.order.view.form.inherit pos.order form Inherits point_of_sale.view_pos_pos_form
view_pos_pos_return_voucher_form view.pos.pos.return.voucher.form pos.return.voucher form New
view_pos_pos_return_voucher_tree view.pos.pos.return.voucher.tree pos.return.voucher tree New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (1)
  • return_voucher_validity Integer
    default=30 help='If you leave this option empty, the vouchers will have an indefinite date, i.e., they will never expire.'
Public methods (0)

No public methods.

New fields (2)
  • emitted_return_voucher_id Many2one → pos.return.voucher
    comodel_name='pos.return.voucher' ondelete='restrict' readonly=True string='Emitted return voucher'
  • redeemed_return_voucher_ids Many2many → pos.return.voucher
    column1='order_id' column2='return_voucher_id' comodel_name='pos.return.voucher' readonly=True relation='pos_order_return_voucher_rel' string='Redeemed return vouchers'
Public methods (1)
  • add_payment(self, data)

New fields (2)
  • emitted_return_voucher_id Many2one → pos.return.voucher
    comodel_name='pos.return.voucher' ondelete='restrict' readonly=True
  • redeemed_return_voucher_id Many2one → pos.return.voucher
    comodel_name='pos.return.voucher' ondelete='restrict' readonly=True
Public methods (0)

No public methods.

New fields (1)
  • return_voucher Boolean
Public methods (0)

No public methods.

New fields (9)
  • amount Float
    copy=False required=True
  • date_order Datetime
    readonly=True related='order_id.date_order'
  • max_validity_date Datetime
    compute='_compute_max_validity_date' readonly=True store=True
  • order_id Many2one → pos.order
    comodel_name='pos.order' index=True ondelete='restrict' readonly=True string='Created from order'
  • pos_reference Char
    readonly=True related='order_id.pos_reference'
  • redeemed_order_ids Many2many → pos.order
    column1='return_voucher_id' column2='order_id' comodel_name='pos.order' readonly=True relation='pos_order_return_voucher_rel' string='Redeemed on order'
  • remaining_amount Float
    compute='_compute_remaining_amount' readonly=True store=True
  • state Selection
    compute='_compute_state' selection=[('active', 'Active'), ('expired', 'Expired'), ('done', 'Done')]
  • user_id Many2one → res.users
    comodel_name='res.users' default=<expr> ondelete='set null' string='User'
Public methods (0)

No public methods.