Account Invoice Transmit Method Substitution Rule
account_invoice_transmit_method_substitution_rule · OCA/account-invoicing
-
Security25/25No findings
-
Activity12/25Last human commit 15 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
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)
-
activeBooleandefault=True -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>string='Company' -
domainChardefault='[]'required=True -
nameCharrequired=True -
transmit_method_idMany2one → transmit.methodcomodel_name='transmit.method'required=Truestring='Transmit Method'
-
get_substitution_rules_by_company(self)@api.model
Loading…