PoS Order - Change Policy

pos_payment_method_change_policy
REPOSITORY
REPOSITORYOCA/pos
GIT
GIThttps://github.com/OCA/pos.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/pos/tree/16.0/pos_payment_method_change_policy
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPoint Of Sale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP
COMMITTERS
COMMITTERSSylvain LE GAL, Weblate, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/pos
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:40
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - point_of_sale
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - 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 (1)
XML IDNameModelTypeStatus
view_pos_payment_method_form pos.payment.method field Inherits point_of_sale.pos_payment_method_view_form
Models touched (2)

New fields (2)
  • change_policy Selection
    default='cash' help="Method of managing the giving of change.\n * 'Cash': (Default). the cashier will give back money in cash method.\n * 'Exceptional Profit Product': an extra PoS Order Line will be added in the PoS Order of the surplus amount. This will be an exceptional gain for the seller, and a loss for the customer." required=True selection=[('cash', 'Cash'), ('profit_product', 'Exceptional Profit Product')]
  • change_product_id Many2one → product.product
    comodel_name='product.product' domain=[('type', '=', 'service'), ('available_in_pos', '=', True)] help='This product will be used if customer pays more that the amount of the receipt, to add an extra order line when confirming order.'
Public methods (1)
  • check_change_product_id(self)
    @api.constrains('change_policy', 'change_product_id')

New fields (0)

No new fields.

Public methods (0)

No public methods.