Comment 4 for bug 934242

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hello,

Having the auto-email notification enabled by default is a design choice and in fact the only sensible choice for new users. This is simply the natural behavior and having to look for such a feature would be a real usability issue.
Those automatic notifications are only sent when a document is confirmed, not when simply writing draft documents.
However we completely understand that some companies would like to customize them or turn them off, so that is why we included several mechanisms to do so:

- OpenERP setups without a proper Outgoing Email Server (SMTP) setup will not be able to send out any email, and this will presumably be the case when testing (all demo partners are opted-out BTW)
- Customers without an email address will obviously not receive any notification (this will presumably be the case when testing, or perhaps they would have test emails instead)
- Customer who have been opted out will never receive notifications
- Finally, you can not only customize the templates but you can also delete them completely or remove the binding of the action for sending them from the corresponding workflow - and that is *permanent*

So yes, we have defined the templates and the action bindings in NOUPDATE blocks from the very beginning - just look 25 lines below the places in the code you mentioned, and you will see very obvious comments about this[1], e.g.:

    <!-- Mail template and workflow bindings are done in a NOUPDATE block
         so users can freely customize/delete them -->

Deleting the action itself is unnecessary and would actually make it harder to re-enable the feature later. Instead the cleanest thing to do is to remove the action bindings from the corresponding workflow activities, and they won't be automatically re-installed. *And* you can easily re-bind them later as needed.

As for non-technical OpenERP users who don't know how to customize workflows, they can simply opt-out customers or delete the templates altogether - much easier than having to find an action to delete.

[1] http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/account/edi/invoice_action_data.xml#L29