Repository
OCA/pos · module folder · Try on Runboat
Module version
1.0.0
Category
Point Of Sale
Folder size
0.5 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/pos
Last tracking update
2026-08-07 07:47:37
Authors
Odoo Community Association (OCA), Aures Tic
Maintainers
Odoo Community Association (OCA), Aures Tic
Committers
Weblate, oca-ci, Jose Zambudio
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

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.