Repository
OCA/contract · module folder · Try on Runboat
Module version
1.0.1
Category
Contract Management
Folder size
0.27 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/contract
Last tracking update
2026-08-07 08:09:28
Authors
Odoo Community Association (OCA), LasLabs
Maintainers
Odoo Community Association (OCA), LasLabs
Committers
Weblate, OCA-git-bot, oca-ci, Ivan Vilata-i-Balaguer, louck
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
contract_contract_form_view Contract Auto Pay contract.contract form Inherits contract.contract_contract_customer_form_view
contract_template_form_view Contract Template Auto Pay contract.template form Inherits contract.contract_template_form_view
view_partner_form Res Partner Auto Pay res.partner form Inherits base.view_partner_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (2)
  • auto_pay_attempts Integer
  • auto_pay_failed Datetime
Public methods (0)

No public methods.

New fields (6)
  • auto_pay_retries Integer
    default=<expr> help='Amount times to retry failed/declined automatic payment before giving up.'
  • auto_pay_retry_hours Integer
    default=<expr> help='Amount of hours that should lapse until a failed automatic is retried.'
  • invoice_mail_template_id Many2one → mail.template
    comodel_name='mail.template' context=_context_mail_templates default=<expr> domain="[('model', '=', 'account.move')]" help='During the automatic payment process, an invoice will be created and validated. If this template is selected, it will automatically be sent to the customer during this process using the defined template.' string='Invoice Message'
  • is_auto_pay Boolean
    default=False help='Check this to enable automatic payment for invoices that are created for this contract.' string='Auto Pay?'
  • pay_fail_mail_template_id Many2one → mail.template
    comodel_name='mail.template' context=_context_mail_templates default=<expr> domain="[('model', '=', 'account.move')]" help='If automatic payment fails for some reason, this message will be sent to the billed partner.' string='Payment Failed Message'
  • pay_retry_mail_template_id Many2one → mail.template
    comodel_name='mail.template' context=_context_mail_templates default=<expr> domain="[('model', '=', 'account.move')]" help='If automatic payment fails for some reason, but will be re-attempted later, this message will be sent to the billed partner.' string='Payment Retry Message'
Public methods (0)

No public methods.

New fields (1)
  • payment_token_id Many2one → payment.token
    comodel_name='payment.token' context="{'default_partner_id': partner_id}" domain="[('partner_id', '=', partner_id)]" help="This is the payment token that will be used to automatically reconcile debts against this account. If none is set, the bill to partner's default token will be used." string='Payment Token'
Public methods (1)
  • cron_retry_auto_pay(self)
    @api.model
    Retry automatic payments for appropriate invoices.

New fields (1)
  • payment_token_id Many2one → payment.token
    comodel_name='payment.token' domain="[('id', 'in', payment_token_ids)]" help='This is the payment token that will be used to automatically reconcile debts for this partner, if there is not one already set on the analytic account.' string='Payment Token'
Public methods (0)

No public methods.

Loading…