Payment Difference on HR expenses

hr_expense_payment_difference
REPOSITORY
REPOSITORYOCA/hr-expense
GIT
GIThttps://github.com/OCA/hr-expense.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr-expense/tree/13.0/hr_expense_payment_difference
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSoca-travis, Weblate, OCA-git-bot, Saran440, ps-tubtim
WEBSITE
WEBSITEhttps://github.com/OCA/hr-expense
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_expense
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - mail_bot
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
hr_expense_sheet_register_payment_view_form hr.expense.sheet.register.payment.wizard.form.payment.difference hr.expense.sheet.register.payment.wizard xpath Inherits hr_expense.hr_expense_sheet_register_payment_view_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • difference_residual Monetary
    compute='_compute_difference_residual'
Public methods (0)

No public methods.

New fields (4)
  • payment_difference Monetary
    compute='_compute_payment_difference' readonly=True
  • payment_difference_handling Selection
    copy=False default='open' args: [('open', 'Keep open'), ('reconcile', 'Mark invoice as fully paid')]
  • writeoff_account_id Many2one → account.account
    comodel_name='account.account' copy=False domain=[('deprecated', '=', False)] string='Difference Account'
  • writeoff_label Char
    default='Write-Off' help='Change label of the counterpart that will hold the payment difference' string='Journal Item Label'
Public methods (2)
  • default_get(self, fields)
    @api.model
  • expense_post_payment(self)
REPOSITORY
REPOSITORYOCA/hr
GIT
GIThttps://github.com/OCA/hr.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/hr/tree/12.0/hr_expense_payment_difference
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSoca-travis, Weblate, OCA-git-bot, Kitti U, Saran, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/hr
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - hr_expense
    - hr_contract
    - hr
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - resource
    - account
    - product
    - decimal_precision
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
hr_expense_sheet_register_payment_view_form hr.expense.sheet.register.payment.wizard.form.payment.difference hr.expense.sheet.register.payment.wizard xpath Inherits hr_expense.hr_expense_sheet_register_payment_view_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • difference_residual Monetary
    compute='_compute_difference_residual'
Public methods (0)

No public methods.

New fields (4)
  • payment_difference Monetary
    compute='_compute_payment_difference' readonly=True
  • payment_difference_handling Selection
    copy=False default='open' args: [('open', 'Keep open'), ('reconcile', 'Mark invoice as fully paid')]
  • writeoff_account_id Many2one → account.account
    comodel_name='account.account' copy=False domain=[('deprecated', '=', False)] string='Difference Account'
  • writeoff_label Char
    default='Write-Off' help='Change label of the counterpart that will hold the payment difference' string='Journal Item Label'
Public methods (1)
  • default_get(self, fields)
    @api.model