Repository
OCA/account-invoicing · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-invoicing
Last tracking update
2026-08-07 08:42:47
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Weblate, OCA-git-bot, oca-ci, hda
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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
HTTP endpoints (0)

No HTTP endpoints found for this module.

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

Loading…