Point of Sale - Return Voucher
pos_return_voucher · OCA/pos
Health
41/100
poor
-
Security25/25No findings
-
Activity6/25Last human commit 35 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
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
Migration considerations
view_pos_pos_return_voucher_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_validityIntegerdefault=30help='If you leave this option empty, the vouchers will have an indefinite date, i.e., they will never expire.'
No public methods.
New fields (2)
-
emitted_return_voucher_idMany2one → pos.return.vouchercomodel_name='pos.return.voucher'ondelete='restrict'readonly=Truestring='Emitted return voucher' -
redeemed_return_voucher_idsMany2many → pos.return.vouchercolumn1='order_id'column2='return_voucher_id'comodel_name='pos.return.voucher'readonly=Truerelation='pos_order_return_voucher_rel'string='Redeemed return vouchers'
-
add_payment(self, data)
New fields (2)
-
emitted_return_voucher_idMany2one → pos.return.vouchercomodel_name='pos.return.voucher'ondelete='restrict'readonly=True -
redeemed_return_voucher_idMany2one → pos.return.vouchercomodel_name='pos.return.voucher'ondelete='restrict'readonly=True
No public methods.
New fields (1)
-
return_voucherBoolean
No public methods.
New fields (9)
-
amountFloatcopy=Falserequired=True -
date_orderDatetimereadonly=Truerelated='order_id.date_order' -
max_validity_dateDatetimecompute='_compute_max_validity_date'readonly=Truestore=True -
order_idMany2one → pos.ordercomodel_name='pos.order'index=Trueondelete='restrict'readonly=Truestring='Created from order' -
pos_referenceCharreadonly=Truerelated='order_id.pos_reference' -
redeemed_order_idsMany2many → pos.ordercolumn1='return_voucher_id'column2='order_id'comodel_name='pos.order'readonly=Truerelation='pos_order_return_voucher_rel'string='Redeemed on order' -
remaining_amountFloatcompute='_compute_remaining_amount'readonly=Truestore=True -
stateSelectioncompute='_compute_state'selection=[('active', 'Active'), ('expired', 'Expired'), ('done', 'Done')] -
user_idMany2one → res.userscomodel_name='res.users'default=<expr>ondelete='set null'string='User'
No public methods.