Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6 ตอบกลับ
5059 มุมมอง

Prevent subscription invoice to be automatically sent

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

In v16 if you create a plan for your subscriptions Odoo will automatically create, post and send by mail your invoice. 

Even if you leave the field "invoice mail" empty you will still send the email of your invoice.


You have 2 ways of solving this:


1)

  • Create an external email server => add a wrong smtp server which will prevent you from sending email (you can check by clicking on the "Test connection" button.

You need to have also another outgoing email server that is working which has a higher priority in order to be used for all other emails send from Odoo

  • Create a new email template

Create a fake email template that you will link to the subscription plan and to your blocking outgoing email server

As you linked your plan to your email template that cannot be sent as linked to a blocking email server then your invoice will be created and posted but not sent

They will be in the email menu but will never be sent


2)

  • Go in debug and in the external identifier menu
  • Search for this external identifier: sale_subscription.mail_template_subscription_invoice


This external identifier is the one called by the action send the email of the invoice automatically. 

  • Change the name of the external identifier


As the name is now changed, no email will be created as the action called is now not found anymore (because we changed the name)

อวตาร
ละทิ้ง

The feature to post invoices draft was there in v15 and Odoo removed it in v16. This way of "solving" the issue is hilarious. Although it will work, I think most users would like to see that feature back. The point is to have a configurable ERP, not to have Odoo decide how a business should be run...

คำตอบที่ดีที่สุด

I actually do not need invoices at all. Do you know how to do that? I managed to do it in Odoo 16 but it creates issues in Odoo 17 onwards (https://www.odoo.com/fr_FR/forum/aide-1/use-subscription-module-without-invoicing-in-odoo-17-18-269766)

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, I'm running v16 enterprise and I can't find the external identifier you mention, what could be the reason for that?

อวตาร
ละทิ้ง
ผู้เขียน

Hello, I checked on a runbot and it exist on V16 also.
You can search using this in the menu external identifiers: mail_template_subscription_invoice

Wonderful, found it now, thanks!

คำตอบที่ดีที่สุด

Amazing! thanks a lot

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Thanks @ded you are the boss of all time

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Good workaround!

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มิ.ย. 23
1374
1
มิ.ย. 23
1817
1
ก.พ. 25
1473
4
ก.พ. 24
6409
Billing Subscription แก้ไขแล้ว
1
มี.ค. 23
2126