From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/purchase/data/digest_data.xml | 28 ++++ addons/purchase/data/ir_cron_data.xml | 14 ++ addons/purchase/data/mail_template_data.xml | 136 +++++++++++++++++ addons/purchase/data/purchase_data.xml | 54 +++++++ addons/purchase/data/purchase_demo.xml | 228 ++++++++++++++++++++++++++++ 5 files changed, 460 insertions(+) create mode 100644 addons/purchase/data/digest_data.xml create mode 100644 addons/purchase/data/ir_cron_data.xml create mode 100644 addons/purchase/data/mail_template_data.xml create mode 100644 addons/purchase/data/purchase_data.xml create mode 100644 addons/purchase/data/purchase_demo.xml (limited to 'addons/purchase/data') diff --git a/addons/purchase/data/digest_data.xml b/addons/purchase/data/digest_data.xml new file mode 100644 index 00000000..20c13ad6 --- /dev/null +++ b/addons/purchase/data/digest_data.xml @@ -0,0 +1,28 @@ + + + + + Tip: How to keep late receipts under control? + 100 + + +
+

Tip: How to keep late receipts under control?

+

When creating a purchase order, have a look at the vendor's On Time Delivery rate: the percentage of products shipped on time. If it is too low, activate the automated reminders. A few days before the due shipment, Odoo will send the vendor an email to ask confirmation of shipment dates and keep you informed in case of any delays. To get the vendor's performance statistics, click on the OTD rate.

+ +
+
+
+ + Tip: Never miss a purchase order + 2000 + + +
+

Tip: Never miss a purchase order

+

When sending a purchase order by email, Odoo asks the vendor to acknowledge the reception of the order. When the vendor acknowledges the order by clicking on a button in the email, the information is added on the purchase order. Use filters to track orders that have not been acknowledged.

+
+
+
+
+
diff --git a/addons/purchase/data/ir_cron_data.xml b/addons/purchase/data/ir_cron_data.xml new file mode 100644 index 00000000..75dd75d6 --- /dev/null +++ b/addons/purchase/data/ir_cron_data.xml @@ -0,0 +1,14 @@ + + + + Purchase reminder + + 1 + days + -1 + 1 + + code + model._send_reminder_mail() + + diff --git a/addons/purchase/data/mail_template_data.xml b/addons/purchase/data/mail_template_data.xml new file mode 100644 index 00000000..fcc5a903 --- /dev/null +++ b/addons/purchase/data/mail_template_data.xml @@ -0,0 +1,136 @@ + + + + + Purchase Order: Send RFQ + + ${object.company_id.name} Order (Ref ${object.name or 'n/a' }) + ${object.partner_id.id} + +
+

+ Dear ${object.partner_id.name} + % if object.partner_id.parent_id: + (${object.partner_id.parent_id.name}) + % endif +

+ Here is in attachment a request for quotation ${object.name} + % if object.partner_ref: + with reference: ${object.partner_ref} + % endif + from ${object.company_id.name}. +

+ If you have any questions, please do not hesitate to contact us. +

+ Best regards, +

+
+ + RFQ_${(object.name or '').replace('/','_')} + ${object.partner_id.lang} + +
+ + + Purchase Order: Send PO + + ${object.company_id.name} Order (Ref ${object.name or 'n/a' }) + ${object.partner_id.id} + +
+

+ Dear ${object.partner_id.name} + % if object.partner_id.parent_id: + (${object.partner_id.parent_id.name}) + % endif +

+ Here is in attachment a purchase order ${object.name} + % if object.partner_ref: + with reference: ${object.partner_ref} + % endif + amounting in ${format_amount(object.amount_total, object.currency_id)} + from ${object.company_id.name}. +

+ % if object.date_planned: + The receipt is expected for ${format_date(object.date_planned)}. +

+ Could you please acknowledge the receipt of this order? + % endif +

+
+ + PO_${(object.name or '').replace('/','_')} + ${object.partner_id.lang} + +
+ + + Purchase Order: Vendor Reminder + + ${(object.user_id.email_formatted or user.email_formatted) |safe} + ${object.company_id.name} Order (Ref ${object.name or 'n/a' }) + ${object.partner_id.id} + +
+

+ Dear ${object.partner_id.name} + % if object.partner_id.parent_id: + (${object.partner_id.parent_id.name}) + % endif +

+ Here is a reminder that the delivery of the purchase order ${object.name} + % if object.partner_ref: + (${object.partner_ref}) + % endif + is expected for + % if object.date_planned: + ${format_date(object.date_planned)}. + % else: + undefined. + % endif + Could you please confirm it will be delivered on time? +

+
+ + PO_${(object.name or '').replace('/','_')} + ${object.partner_id.lang} + +
+ + + +
+
diff --git a/addons/purchase/data/purchase_data.xml b/addons/purchase/data/purchase_data.xml new file mode 100644 index 00000000..93d6e048 --- /dev/null +++ b/addons/purchase/data/purchase_data.xml @@ -0,0 +1,54 @@ + + + + + + RFQ Confirmed + + purchase.order + + + RFQ Approved + + purchase.order + + + RFQ Done + + purchase.order + + + + + Purchase Order + purchase.order + P + 5 + + + + + + Share + + + form + code + action = records.action_share() + + + + + receipt_reminder_email + + + + + + reminder_date_before_receipt + + + + + + diff --git a/addons/purchase/data/purchase_demo.xml b/addons/purchase/data/purchase_demo.xml new file mode 100644 index 00000000..fa17b083 --- /dev/null +++ b/addons/purchase/data/purchase_demo.xml @@ -0,0 +1,228 @@ + + + + + + + + + + True + + + + True + + + + True + + + + + + draft + + + + + + + draft + + + + + + + draft + + + + + + + draft + + + + + + + draft + + + + + + + draft + + + + + + + draft + + + + + + + + + Send specifications + + + + + + + + + Get approval + + + + + + + + + Check optional products + + + + + + + + + Check competitors + + + + + + + -- cgit v1.2.3