Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.1.0
Category
Sales
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-07 07:56:58
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Denis Roussel, Weblate, OCA-git-bot, oca-ci, Telmo Santos, Stefan, Hai Lang
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits base.view_partner_form
view_partner_search_points res.partner.search.points res.partner search Inherits base.view_res_partner_filter
wiz_manage_credit_point Credit Point Update wiz.manage.credit.point form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

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)