Repository
odoo/odoo · module folder
Module version
1.0
Category
Sales/Point of Sale
Folder size
0.35 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-08 22:45:26
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Odoo Translation Bot, Laurent Smet, Julien Castiaux, Julien Mougenot, Anh Thao Pham (pta), Tiffany Chang (tic), Gorash, roen-odoo, David Monnom (moda), Louis Wicket (wil), Pedram (PEBR), Dylan Kiss (dyki), Adrien Guilliams (adgu), kcv-odoo, manv-afk, aamo-odoo, paan-odoo, David Monnom, Mohammad Abdulmoneim (abdu), Ajit Singh, Shubham Agarwal [SHAG], Hadi El Yakhni, sjai-odoo, Laurent Smet (LAS), jand-odoo, Stephane Vanmeerhaeghe (stva)
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

This module allows the cashier to quickly give percentage-based
discount to a customer.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
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 (4)

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 percentage when clicking on the Discount button' string='Discount Percentage'
  • 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 (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…