Account Invoice Payment Mode Note Template

account_invoice_payment_mode_note_template
REPOSITORY
REPOSITORYOCA/account-invoice-reporting
GIT
GIThttps://github.com/OCA/account-invoice-reporting.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoice-reporting/tree/18.0/account_invoice_payment_mode_note_template
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Samir GUESMI
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoice-reporting
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/bank-payment:
    - account_payment_partner
    - account_payment_mode
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This addon allow user to customize the payment mode note using jinja2
templates

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
account_payment_mode_form account.payment.mode xpath Inherits account_payment_mode.account_payment_mode_form
account_payment_mode_note_template_form_view account.payment.mode.note.template form New
report_invoice_payment_mode report_invoice_payment_mode ir.ui.view qweb Inherits account_payment_partner.report_invoice_payment_mode
Models touched (2)

New fields (1)
  • note Html
    sanitize_attributes=False sanitize_tags=False translate=True
Public methods (2)
  • action_update_template_note(self)
  • render_note(self, invoice, raise_error=False)

New fields (7)
  • copyvalue Char
    help='Final placeholder expression, to be copy-pasted in the desired template field.' args: 'Placeholder Expression'
  • model_object_field Many2one → ir.model.fields
    help='Select target field from the related document model.\nIf it is a relationship field you will be able to select a target field at the destination of the relationship.' string='Field' args: 'ir.model.fields'
  • note Html
    translate=True
  • null_value Char
    help='Optional value to use if the target field is empty' args: 'Default Value'
  • payment_mode_id Many2one → account.payment.mode
    comodel_name='account.payment.mode' ondelete='cascade' required=True
  • sub_model_object_field Many2one → ir.model.fields
    help='When a relationship field is selected as first field, this field lets you select the target field within the destination document model (sub-model).' args: 'ir.model.fields', 'Sub-field'
  • sub_object Many2one → ir.model
    help='When a relationship field is selected as first field, this field shows the document model the relationship goes to.' readonly=True args: 'ir.model', 'Sub-model'
Public methods (3)
  • build_expression(self, field_name, sub_field_name, null_value)
  • onchange_sub_model_object_value_field(self)
    @api.onchange('model_object_field', 'sub_model_object_field', 'null_value')
  • validate(self)