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/sale/data/ir_sequence_data.xml | 15 + addons/sale/data/mail_data.xml | 301 ++++++++++ addons/sale/data/product_product_demo.xml | 149 +++++ addons/sale/data/sale_data.xml | 22 + addons/sale/data/sale_demo.xml | 946 ++++++++++++++++++++++++++++++ 5 files changed, 1433 insertions(+) create mode 100644 addons/sale/data/ir_sequence_data.xml create mode 100644 addons/sale/data/mail_data.xml create mode 100644 addons/sale/data/product_product_demo.xml create mode 100644 addons/sale/data/sale_data.xml create mode 100644 addons/sale/data/sale_demo.xml (limited to 'addons/sale/data') diff --git a/addons/sale/data/ir_sequence_data.xml b/addons/sale/data/ir_sequence_data.xml new file mode 100644 index 00000000..07379f90 --- /dev/null +++ b/addons/sale/data/ir_sequence_data.xml @@ -0,0 +1,15 @@ + + + + + + + Sales Order + sale.order + S + 5 + + + + + diff --git a/addons/sale/data/mail_data.xml b/addons/sale/data/mail_data.xml new file mode 100644 index 00000000..fc13b954 --- /dev/null +++ b/addons/sale/data/mail_data.xml @@ -0,0 +1,301 @@ + + + + + + Order Upsell + fa-line-chart + + + + + + Quotation sent + sale.order + + Quotation sent + + + Sales Order Confirmed + sale.order + + Quotation confirmed + + + + + Quotation sent + 20 + crm.team + + + team_id + + + Sales Order Confirmed + 21 + crm.team + + + team_id + + + Invoice Created + 22 + crm.team + + team_id + + + Invoice Confirmed + 23 + crm.team + + team_id + + + + + + + + Sales Order: Send by email + + ${object.company_id.name} ${object.state in ('draft', 'sent') and (ctx.get('proforma') and 'Proforma' or 'Quotation') or 'Order'} (Ref ${object.name or 'n/a' }) + ${(object.user_id.email_formatted or user.email_formatted) | safe} + ${object.partner_id.id} + +
+

+ % set doc_name = 'quotation' if object.state in ('draft', 'sent') else 'order' + Hello, +

+ Your + % if ctx.get('proforma'): + Pro forma invoice for ${doc_name} ${object.name} + % if object.origin: + (with reference: ${object.origin} ) + % endif + amounting in ${format_amount(object.amount_total, object.pricelist_id.currency_id)} is available. + % else: + ${doc_name} ${object.name} + % if object.origin: + (with reference: ${object.origin} ) + % endif + amounting in ${format_amount(object.amount_total, object.pricelist_id.currency_id)} is ready for review. + % endif +

+ Do not hesitate to contact us if you have any questions. +
+

+
+
+ + ${(object.name or '').replace('/','_')} + ${object.partner_id.lang} + +
+ + + Sales Order: Confirmation Email + + ${object.company_id.name} ${(object.get_portal_last_transaction().state == 'pending') and 'Pending Order' or 'Order'} (Ref ${object.name or 'n/a' }) + ${(object.user_id.email_formatted or user.email_formatted) | safe} + ${object.partner_id.id} + +
+

+ Hello, +

+ % set transaction = object.get_portal_last_transaction() + Your order ${object.name} amounting in ${format_amount(object.amount_total, object.currency_id)} + % if object.state == 'sale' or (transaction and transaction.state in ('done', 'authorized')) : + has been confirmed.
+ Thank you for your trust! + % elif transaction and transaction.state == 'pending' : + is pending. It will be confirmed when the payment is received. + % if object.reference: + Your payment reference is ${object.reference}. + % endif + % endif +

+ Do not hesitate to contact us if you have any questions. +

+

+% if object.website_id: +
+ + + + + + + +
ProductsQuantity + % if object.user_id.has_group('account.group_show_line_subtotals_tax_excluded'): + VAT Excl. + % else + VAT Incl. + % endif +
+ % for line in object.order_line: + % if not line.is_delivery and line.display_type in ['line_section', 'line_note']: + + + + +
+ % if line.display_type == 'line_section': + ${line.name} + % elif line.display_type == 'line_note': + ${line.name} + % endif +
+ % elif not line.is_delivery + + + + + + + +
+ Product image + ${line.product_id.name}${line.product_uom_qty} + % if object.user_id.has_group('account.group_show_line_subtotals_tax_excluded'): + ${format_amount(line.price_reduce_taxexcl, object.currency_id)} + % else + ${format_amount(line.price_reduce_taxinc, object.currency_id)} + % endif +
+ % endif + % endfor +
+ % if object.carrier_id: +
+ + + + + + + + + +
+ Delivery:${format_amount(object.amount_delivery, object.currency_id)}
+ SubTotal:${format_amount(object.amount_untaxed, object.currency_id)}
+
+ % else: +
+ + + + + +
+ SubTotal:${format_amount(object.amount_untaxed, object.currency_id)}
+
+ % endif +
+ + + + + + + + + +
+ Taxes:${format_amount(object.amount_tax, object.currency_id)}
+ Total:${format_amount(object.amount_total, object.currency_id)}
+
+ % if object.partner_invoice_id: +
+ + + + + + + +
+ Bill to: + ${object.partner_invoice_id.street or ''} + ${object.partner_invoice_id.city or ''} + ${object.partner_invoice_id.state_id.name or ''} + ${object.partner_invoice_id.zip or ''} + ${object.partner_invoice_id.country_id.name or ''} +
+ Payment Method: + % if transaction.payment_token_id: + ${transaction.payment_token_id.name} + % else: + ${transaction.acquirer_id.name} + % endif + (${format_amount(transaction.amount, object.currency_id)}) +
+
+ % endif + % if object.partner_shipping_id and not object.only_services: +
+ + + + +
+
+ Ship to: + ${object.partner_shipping_id.street or ''} + ${object.partner_shipping_id.city or ''} + ${object.partner_shipping_id.state_id.name or ''} + ${object.partner_shipping_id.zip or ''} + ${object.partner_shipping_id.country_id.name or ''} +
+ % if object.carrier_id: + + + + +
+ Shipping Method: + ${object.carrier_id.name} + % if object.carrier_id.fixed_price == 0.0: + (Free) + % else: + (${format_amount(object.carrier_id.fixed_price, object.currency_id)}) + % endif +
+ % endif +
+ % endif +% endif +
+ + ${(object.name or '').replace('/','_')} + ${object.partner_id.lang} + +
+
+
diff --git a/addons/sale/data/product_product_demo.xml b/addons/sale/data/product_product_demo.xml new file mode 100644 index 00000000..ae030ceb --- /dev/null +++ b/addons/sale/data/product_product_demo.xml @@ -0,0 +1,149 @@ + + + + + order + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + order + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + order + + + + delivery + + + + delivery + + + + order + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + + + + delivery + cost + + + + delivery + + + + delivery + + + + + order + sales_price + + + + delivery + cost + + + + diff --git a/addons/sale/data/sale_data.xml b/addons/sale/data/sale_data.xml new file mode 100644 index 00000000..1d217715 --- /dev/null +++ b/addons/sale/data/sale_data.xml @@ -0,0 +1,22 @@ + + + + + + Share + + + form + code + action = records.action_share() + + + + + sale.default_confirmation_template + + + + + + diff --git a/addons/sale/data/sale_demo.xml b/addons/sale/data/sale_demo.xml new file mode 100644 index 00000000..695736aa --- /dev/null +++ b/addons/sale/data/sale_demo.xml @@ -0,0 +1,946 @@ + + + + + + + + + + + + + + + + 250000 + + + + + 40000 + + + + Sale Promotion 1 + + + + + + + + + + + + + + + + + + + + 3 + + 2950.00 + + + + + + + 5 + + 145.00 + + + + + + + 2 + + 65.00 + + + + + + + + + + + + + + + + + + + + + 24 + + 75.00 + + + + + + + 30 + + 38.25 + + + + + + + + + + + + + + + + + + + + 10 + + 30.75 + + + + + + + 1 + + 70.00 + + + + + + + + + + + + + + + + + + + 16 + + 75.00 + + + + + + + 10 + + 45.00 + + + + + + + 3 + + 150.00 + + + + + + + 2 + + 70.00 + + + + + + + + + + + + + + + + + + + + 1 + + 405.00 + + + + + + + + + + + + + + + + + + + + 1 + + 750.00 + + + + + + + + + + + + + + + + + + + + 5 + + 2950.00 + + + + + + + 1 + + 173.00 + + + + + + + 1 + + 40.00 + + + + + + + 1 + + 18.00 + + + + Test/001 + + + + + + + + + + + + + + + + 2 + + 3645.00 + + + + + + + 2 + + 12.50 + + + + + + + + + + + + + + + + + + + + + + 3 + + 3245.00 + + + + + + + 3 + + 12.50 + + + + + + + + + + + + + + + + + + + + + 2 + + 2550.00 + + + + + + + 2 + + 12.50 + + + + + + + + + + + + + + + + + + + + + 3 + + 2450.00 + + + + + + + 3 + + 12.50 + + + + + + + + + + + + + + + + + + + + + 1 + + 3150.00 + + + + + + + 2 + + 12.50 + + + + + + + + + + + + + + + + + + + + 1 + + 2950.00 + + + + + + + 1 + + 12.50 + + + + + + + + + + + + + + + + + + + + 4 + + 2750.00 + + + + + + + 4 + + 12.50 + + + + + + + + + + + + + + + + + + + + 4 + + 2950.00 + + + + + + + 3 + + 12.50 + + + + + + + + + + + + + + + + + + + + 3 + + 2750.00 + + + + + + + 3 + + 12.50 + + + + + + + + + + + + + + + + + + + + 2 + + 3550.00 + + + + + + + 2 + + 12.50 + + + + + + + + + + + + + + + + + + + + 2 + + 2950.00 + + + + + + + 2 + + 12.50 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sale.order + + Hi, +I have a question regarding services pricing: I heard of a possible discount for quantities exceeding 25 hours. +Could you confirm, please? + comment + + + + + sale.order + + + Hello, +Unfortunately that was a temporary discount that is not available anymore. +Do you still plan to confirm the order based on the quoted prices? +Thanks! + comment + + + + + sale.order + + + Alright, thanks for the clarification. I will confirm the order as soon as I get my manager's approval. + comment + + + + + + + Deposit + + service + 150.0 + order + 100.0 + + + + + + + + + + + + + + + + + + + + sent + + + + + + + + + + + 3 + + 2950.00 + + + + + + + 5 + + 145.00 + + + + + + + 2 + + 65.00 + + + + + + + + + + + + + + + + + + 24 + + 75.00 + + + + + + + 30 + + 38.25 + + + + color + + + select + + + + #FFFFFF + + + #000000 + + + + + + + + + + + Custom + + True + 3 + + + + + + + + + + + + + + + + + DESK0005 + 0.01 + + + + DESK0006 + 0.01 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Answer questions + + + + + + + + + + + + + + + + + + + + + + + + + Check delivery requirements + + + + + + + + + Confirm Delivery + + + + + + + + + + + + + + + + + + + + + + + + + Get quote confirmation + + + + + + -- cgit v1.2.3