Account Invoice Transmit Method Substitution Rule

account_invoice_transmit_method_substitution_rule
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/18.0/account_invoice_transmit_method_substitution_rule
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, hda
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_invoice_transmit_method
OCA/server-tools:
    - base_view_inheritance_extension
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
Sometimes a transmission method defined by default for the partner is
not applicable. For example, when the transmission method is e-mail and
the partner's e-mail is not set. This addon allows you to define
substitution rules when an invoice matches certain criteria.

This module can also be used when it is not easy to define the partner's
preference for the transmission method or the partner's preference is
not legally permitted. For example, in some countries, invoices with
payment direct debit method must be sent to the customer by post.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
transmit_method_substitution_rule_form_view transmit.method.substitution.rule form New
transmit_method_substitution_rule_tree_view transmit.method.substitution.rule list New
Models touched (2)

New fields (0)

No new fields.

Public methods (3)
  • apply_transmit_method_substitutions(self)
  • create(self, vals_list)
    @api.model_create_multi
  • get_substitution_transmit_method(self, substitution_rules)

New fields (5)
  • active Boolean
    default=True
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> string='Company'
  • domain Char
    default='[]' required=True
  • name Char
    required=True
  • transmit_method_id Many2one → transmit.method
    comodel_name='transmit.method' required=True string='Transmit Method'
Public methods (1)
  • get_substitution_rules_by_company(self)
    @api.model
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/12.0/account_invoice_transmit_method_substitution_rule
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
COMMITTERSGitHub, sbejaoui, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_invoice_transmit_method
OCA/server-tools:
    - base_view_inheritance_extension
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
transmit_method_substitution_rule_form_view transmit.method.substitution.rule form New
transmit_method_substitution_rule_tree_view transmit.method.substitution.rule tree New
Models touched (2)

New fields (0)

No new fields.

Public methods (3)
  • apply_transmit_method_substitutions(self)
    @api.multi
  • create(self, vals_list)
    @api.model_create_multi
  • get_substitution_transmit_method(self, substitution_rules)
    @api.multi

New fields (5)
  • active Boolean
    default=True string='Active'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> string='Company'
  • domain Char
    default='[]' required=True string='Domain'
  • name Char
    required=True
  • transmit_method_id Many2one → transmit.method
    comodel_name='transmit.method' required=True string='Transmit Method'
Public methods (1)
  • get_substitution_rules_by_company(self)
    @api.model