Point of Sale Discounts
pos_discount · odoo/odoo
Health
90/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by15/251 module depends on it
-
Maturity25/25In 13 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.44 MB
Module directory on disk
Code analysis
0 migration notes
5 models
3 views
0 HTTP endpoints
Description
This module allows the cashier to quickly give percentage-based discount to a customer.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
pos_discount.pos_order_receipt |
pos_discount.pos_order_receipt | ir.ui.view | qweb | Inherits point_of_sale.pos_order_receipt |
pos_discount.pos_session_sales_details |
pos_discount.pos_session_sales_details | ir.ui.view | qweb | Inherits point_of_sale.pos_session_sales_details |
res_config_settings_view_form |
res.config.settings.view.form.inherit.pos_discount | res.config.settings | form | Inherits point_of_sale.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (3)
-
discount_pcFloatdefault=10.0help='The default discount value when clicking on the Discount button'string='Discount Value' -
discount_product_idMany2one → product.productdomain=[('sale_ok', '=', True)]help='The product used to apply the discount on the ticket.'string='Discount Product' args: 'product.product' -
iface_discountBooleanhelp='Allow the cashier to give discounts on the whole order.'string='Order Discounts'
-
open_ui(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
get_sale_details(self, date_start=False, date_stop=False, config_ids=False, session_ids=False, **kwargs)@api.model
New fields (2)
-
pos_discount_pcFloatreadonly=Falserelated='pos_config_id.discount_pc' -
pos_discount_product_idMany2one → product.productcompute='_compute_pos_discount_product_id'readonly=Falsestore=True args: 'product.product'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…