Sale Credit Points

sale_credit_point
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/15.0/sale_credit_point
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSDenis Roussel, Weblate, OCA-git-bot, oca-ci, Telmo Santos, Stefan, Hai Lang
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:34
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
view_credit_point_history_search credit.point.history.search credit.point.history search New
view_credit_point_history_tree view.credit.point.history.tree credit.point.history tree New
view_partner_form_points res.partner.form.points res.partner div Inherits base.view_partner_form
view_partner_search_points res.partner.search.points res.partner field Inherits base.view_res_partner_filter
wiz_manage_credit_point Credit Point Update wiz.manage.credit.point form New
Models touched (4)

New fields (6)
  • amount Monetary
    currency_field='credit_point_currency_id' default=0 readonly=True required=True
  • comment Char
  • create_date Datetime
  • credit_point_currency_id Many2one
    readonly=True related='partner_id.credit_point_currency_id'
  • operation Selection
    required=True selection=POINT_OPERATIONS
  • partner_id Many2one → res.partner
    comodel_name='res.partner' required=True string='Partner'
Public methods (0)

No public methods.

New fields (4)
  • credit_history_ids One2many → credit.point.history
    comodel_name='credit.point.history' inverse_name='partner_id'
  • credit_point Monetary
    currency_field='credit_point_currency_id' default=0 readonly=True string='Points Attribution'
  • credit_point_currency_id Many2one → res.currency
    comodel_name='res.currency' default=<expr>
  • yearly_point_increase Monetary
    compute='_compute_yearly_point_increase' currency_field='credit_point_currency_id' readonly=True string='Yearly points increase'
Public methods (6)
  • action_update_credit_point(self)
    Open update credit point wizard.
  • credit_point_bypass_check(self)
  • credit_point_decrease(self, amount, comment='')
  • credit_point_increase(self, amount, comment='')
  • credit_point_replace(self, amount, comment='')
  • update_history(self, amount, operation, comment)

New fields (0)

No new fields.

Public methods (5)
  • action_cancel(self)
  • action_confirm(self)
    Check credit before confirmation, update credit if check passed.
  • credit_point_check(self, user=None)
    Verify order amount against credit point budget.
  • credit_point_check_failed_msg(self)
    @property
  • credit_point_decrease_msg(self)
    @property

New fields (4)
  • comment Text
    required=True
  • credit_point Integer
    required=True string='Points'
  • operation Selection
    required=True selection=POINT_OPERATIONS string='Type of operation'
  • partner_ids Many2many → res.partner
    required=True string='Partners' args: 'res.partner'
Public methods (1)
  • action_update_credit(self)