Point of Sale - Return Voucher

pos_return_voucher
REPOSITORY
REPOSITORYOCA/pos
GIT
GIThttps://github.com/OCA/pos.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/pos/tree/14.0/pos_return_voucher
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPoint Of Sale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSAures Tic, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSAures Tic, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, oca-ci, Jose Zambudio
WEBSITE
WEBSITEhttps://github.com/OCA/pos
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:49
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/pos:
    - pos_order_mgmt
    - pos_order_return
odoo/odoo:
    - point_of_sale
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - analytic
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath 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 xpath 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 xpath Inherits point_of_sale.pos_payment_method_view_tree
view_pos_payment_form_inherit_pos_return_voucher pos.payment.view.form.inherit pos.payment xpath Inherits point_of_sale.view_pos_payment_form
view_pos_pos_form_inh_pos_return_voucher pos.order.view.form.inherit pos.order xpath 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
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.