Skip to Content
Menu
This question has been flagged
2 Replies
1787 Views

Hello, dear forum members!

I'm facing an issue with automatic notifications that come to my email whenever a customer adds a product to their cart. Each time this happens, I receive a message with the following text:

"Dear Name,

You have been assigned to the Sales Order S00049.

System"

Could you please advise me on how to disable this specific notification? I need the other notifications related to orders and sales to remain active, but I no longer require this particular notification.

I would greatly appreciate any information and advice on this matter!

Avatar
Discard
Author Best Answer

I have 17th version of Odoo 
And here are the errors:
1) When click the "buy now" btn

2) When clicking "proceed to checkout" btn
The error when I click "proceed to checkout" button: RPC_ERROR Odoo Server Error Traceback (most recent call last): File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1722, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/home/odoo/src/odoo/17.0/odoo/service/model.py", line 133, in retrying result = func() File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1749, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1953, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "/home/odoo/src/odoo/17.0/addons/website/models/ir_http.py", line 235, in _dispatch response = super()._dispatch(endpoint) File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_http.py", line 222, in _dispatch result = endpoint(**request.params) File "/home/odoo/src/odoo/17.0/odoo/http.py", line 722, in route_wrapper result = endpoint(self, *args, **params_ok) File "/home/odoo/src/odoo/17.0/addons/website_sale_product_configurator/controllers/website_sale.py", line 45, in cart_options_update_json order = request.website.sale_get_order(force_create=True) File "/home/odoo/src/odoo/17.0/addons/website_sale_stock/models/website.py", line 29, in sale_get_order so = super().sale_get_order(*args, **kwargs) File "/home/odoo/src/odoo/17.0/addons/website_sale/models/website.py", line 364, in sale_get_order sale_order_sudo = SaleOrder.with_user(SUPERUSER_ID).create(so_data) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 414, in _model_create_multi return create(self, [arg]) File "/home/odoo/src/odoo/17.0/addons/base_automation/models/base_automation.py", line 703, in create records = create.origin(self.with_env(automations.env), vals_list, **kw) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi return create(self, arg) File "/home/odoo/src/odoo/17.0/addons/sale_project/models/sale_order.py", line 246, in create created_records = super().create(vals_list) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi return create(self, arg) File "/home/odoo/src/odoo/17.0/addons/website_sale/models/sale_order.py", line 48, in create return super().create(vals_list) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi return create(self, arg) File "/home/odoo/src/odoo/17.0/addons/sale/models/sale_order.py", line 777, in create return super().create(vals_list) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi return create(self, arg) File "/home/odoo/src/odoo/17.0/addons/mail/models/mail_thread.py", line 276, in create thread._message_auto_subscribe(create_values, followers_existing_policy='update') File "/home/odoo/src/odoo/17.0/addons/mail/models/mail_thread.py", line 4114, in _message_auto_subscribe self.with_context(lang=lang)._message_auto_subscribe_notify(pids, template) File "/home/odoo/src/odoo/17.0/addons/mail/models/mail_thread.py", line 4038, in _message_auto_subscribe_notify assignation_msg = self.env['ir.qweb']._render(template, values, minimal_qcontext=True) File "/home/odoo/src/odoo/17.0/odoo/tools/profiler.py", line 292, in _tracked_method_render return method_render(self, template, values, **options) File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_qweb.py", line 592, in _render rendering = render_template(irQweb, values) File "", line 5, in not_found_template ValueError: View 'mail.message_user_assigned' in website 1 not found The above server error caused the following client error: RPC_ERROR: Odoo Server Error at makeErrorFromResponse (https://www.bogowi.com/web/assets/1/d902380/web.assets_frontend_lazy.min.js:4665:163) at XMLHttpRequest. (https://www.bogowi.com/web/assets/1/d902380/web.assets_frontend_lazy.min.js:4669:13)

Is there any way to configure it so that the message is sent when the customer makes a purchase rather than when they add something to the cart?

Avatar
Discard
Best Answer

Maybe not set a salesperson for website orders


If the need is disable all assigned notification, the below post might help

https://www.odoo.com/forum/help-1/prevent-the-message-from-automatically-going-out-when-salesperson-is-assigned-to-an-so-and-its-confirmed-190501

Avatar
Discard
Author

Thank you for your comment and for your attempt to help. I tried both options: 1) If a salesperson is not assigned, then messages about the purchase are also not sent anywhere. I would like to disable only the notification that a salesperson is assigned while the buyer is just adding a product to the cart. If this will be 1000 people a day, then I will be receiving 1000 emails a day. That is, I am looking for a way to disable only one notification about the assignment of a salesperson to the order.
2) I also tried to follow the instructions from the link you provided. However, this led to an error during the purchase. Perhaps 2 years ago, such a solution was viable, but now it leads to an error on the site.

Might help if you are able to provide the error on the website with the 2nd suggested method.

Maybe someone in the forum has solution for the error or be able determine if it is a bug.

Do provide the version as well.

Author

Jaideep, I have 17th version of Odoo
And here are the errors:
1) When click the "buy now" btn

2) When clicking "proceed to checkout" btn
The error when I click "proceed to checkout" button: RPC_ERROR Odoo Server Error Traceback (most recent call last): File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1722, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/home/odoo/src/odoo/17.0/odoo/service/model.py", line 133, in retrying result = func() File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1749, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1953, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "/home/odoo/src/odoo/17.0/addons/website/models/ir_http.py", line 235, in _dispatch response = super()._dispatch(endpoint) File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_http.py", line 222, in _dispatch result = endpoint(**request.params) File "/home/odoo/src/odoo/17.0/odoo/http.py", line 722, in route_wrapper result = endpoint(self, *args, **params_ok) File "/home/odoo/src/odoo/17.0/addons/website_sale_product_configurator/controllers/website_sale.py", line 45, in cart_options_update_json order = request.website.sale_get_order(force_create=True) File "/home/odoo/src/odoo/17.0/addons/website_sale_stock/models/website.py", line 29, in sale_get_order so = super().sale_get_order(*args, **kwargs) File "/home/odoo/src/odoo/17.0/addons/website_sale/models/website.py", line 364, in sale_get_order sale_order_sudo = SaleOrder.with_user(SUPERUSER_ID).create(so_data) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 414, in _model_create_multi return create(self, [arg]) File "/home/odoo/src/odoo/17.0/addons/base_automation/models/base_automation.py", line 703, in create records = create.origin(self.with_env(automations.env), vals_list, **kw) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi return create(self, arg) File "/home/odoo/src/odoo/17.0/addons/sale_project/models/sale_order.py", line 246, in create created_records = super().create(vals_list) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi return create(self, arg) File "/home/odoo/src/odoo/17.0/addons/website_sale/models/sale_order.py", line 48, in create return super().create(vals_list) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi return create(self, arg) File "/home/odoo/src/odoo/17.0/addons/sale/models/sale_order.py", line 777, in create return super().create(vals_list) File "", line 2, in create File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi return create(self, arg) File "/home/odoo/src/odoo/17.0/addons/mail/models/mail_thread.py", line 276, in create thread._message_auto_subscribe(create_values, followers_existing_policy='update') File "/home/odoo/src/odoo/17.0/addons/mail/models/mail_thread.py", line 4114, in _message_auto_subscribe self.with_context(lang=lang)._message_auto_subscribe_notify(pids, template) File "/home/odoo/src/odoo/17.0/addons/mail/models/mail_thread.py", line 4038, in _message_auto_subscribe_notify assignation_msg = self.env['ir.qweb']._render(template, values, minimal_qcontext=True) File "/home/odoo/src/odoo/17.0/odoo/tools/profiler.py", line 292, in _tracked_method_render return method_render(self, template, values, **options) File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_qweb.py", line 592, in _render rendering = render_template(irQweb, values) File "", line 5, in not_found_template ValueError: View 'mail.message_user_assigned' in website 1 not found The above server error caused the following client error: RPC_ERROR: Odoo Server Error at makeErrorFromResponse (https://www.bogowi.com/web/assets/1/d902380/web.assets_frontend_lazy.min.js:4665:163) at XMLHttpRequest. (https://www.bogowi.com/web/assets/1/d902380/web.assets_frontend_lazy.min.js:4669:13)

Is there any way to configure it so that the message is sent when the customer makes a purchase rather than when they add something to the cart?

Thanks Daria for sharing the details.

Unfortunately I do not have the technical skills to interpret or comment on the error. I couldn't even be sure to know if it specific to your DB or is a bug.

If I were you, I would create a new post with this error so someone could provide a direction.

Besides, I could also suggest an alternate to create an automated action. 1. Do not assign the salesperson in the website settings page. 2. Create an automated action

Model - sales order
Trigger - State is set to "Sales Order"
Domain - Sales Team - Website
Action to do - Update Record
Action details - Salesperson to "your sales person"

By addition the salesperson later in the sales process might still trigger the you "are assigned to" notification however at the time of order confirmation rather than at the time of adding products to the cart

Hope these help

Jaideep, I appreciate your suggestion, and it seems like a good workaround for what I'm trying to achieve. However, after making these settings, the salesperson is indeed assigned at the moment I intended, which is after payment. Unfortunately, the notification message about the assignment does not come through. Do you happen to know the reason behind this? Any insights or suggestions would be highly appreciated. Thanks again for your help.

That's good right? I thought the intention was not to receive the assignment email, while only receiving all other order related communication.

Related Posts Replies Views Activity
1
Feb 22
3993
2
Mar 24
2859
7
Mar 21
67493
1
Sep 15
3954
1
Mar 15
3390