[IMP] account, sale, l10n_ch, purchase: replace mail composer inheritance by message_post override
Currently composer is inherited in those four modules to add a specific behavior when sending the invoice / quotation by email. Purpose is to mark it as sent, using a magic context key. This commit keeps the feature but changes the implementation. It is now done by overriding message_post which should be the entry point for all message-related features.
Showing
- addons/account/models/account_invoice.py 7 additions, 15 deletionsaddons/account/models/account_invoice.py
- addons/l10n_ch/models/__init__.py 0 additions, 1 deletionaddons/l10n_ch/models/__init__.py
- addons/l10n_ch/models/account_invoice.py 7 additions, 0 deletionsaddons/l10n_ch/models/account_invoice.py
- addons/l10n_ch/models/mail_compose_message.py 0 additions, 25 deletionsaddons/l10n_ch/models/mail_compose_message.py
- addons/purchase/models/purchase.py 9 additions, 14 deletionsaddons/purchase/models/purchase.py
- addons/sale/models/sale.py 7 additions, 0 deletionsaddons/sale/models/sale.py
- addons/sale/wizard/__init__.py 0 additions, 1 deletionaddons/sale/wizard/__init__.py
- addons/sale/wizard/mail_compose_message.py 0 additions, 17 deletionsaddons/sale/wizard/mail_compose_message.py
Loading
Please register or sign in to comment