Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 13 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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 IDNameModelTypeStatus
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_pc Float
    default=10.0 help='The default discount value when clicking on the Discount button' string='Discount Value'
  • discount_product_id Many2one → product.product
    domain=[('sale_ok', '=', True)] help='The product used to apply the discount on the ticket.' string='Discount Product' args: 'product.product'
  • iface_discount Boolean
    help='Allow the cashier to give discounts on the whole order.' string='Order Discounts'
Public methods (1)
  • 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_pc Float
    readonly=False related='pos_config_id.discount_pc'
  • pos_discount_product_id Many2one → product.product
    compute='_compute_pos_discount_product_id' readonly=False store=True args: 'product.product'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…