Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1364 Lượt xem

Problem: With the use of the subscriptions application, Odoo automatically generates confirmed invoices, and in the Mexican localization, they are stamped (timbradas). The problem arises when the user requires a review of each of the generated invoices before stamping.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Solution


Creation of a new boolean type field in the customer invoices.

Create an automated action with the following configuration (debug mode must be activated).

Where:

  • Status must be published
  • Created by OdooBot
  • Customer invoice journal
  • Field created in point one is equal to false

We must define the action "Update Status to Draft"

Demonstration flow

Create a subscription with a defined recurring plan.

For this example, the scheduled action for automatic invoice generation will be forced.


When the action is executed, an invoice will be generated in the subscription with the "draft" status and created by OdooBot.



To confirm the invoice, the value of the "check" field must be changed to true.




Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 25
930
1
thg 9 24
3010
1
thg 9 25
595
1
thg 9 25
5070
2
thg 9 25
828