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/account/data/account_data.xml | 155 +++++++++++++++++++++++++ addons/account/data/account_incoterms_data.xml | 50 ++++++++ addons/account/data/data_account_type.xml | 106 +++++++++++++++++ addons/account/data/digest_data.xml | 23 ++++ addons/account/data/mail_template_data.xml | 59 ++++++++++ addons/account/data/payment_receipt_data.xml | 68 +++++++++++ addons/account/data/service_cron.xml | 14 +++ 7 files changed, 475 insertions(+) create mode 100644 addons/account/data/account_data.xml create mode 100644 addons/account/data/account_incoterms_data.xml create mode 100644 addons/account/data/data_account_type.xml create mode 100644 addons/account/data/digest_data.xml create mode 100644 addons/account/data/mail_template_data.xml create mode 100644 addons/account/data/payment_receipt_data.xml create mode 100644 addons/account/data/service_cron.xml (limited to 'addons/account/data') diff --git a/addons/account/data/account_data.xml b/addons/account/data/account_data.xml new file mode 100644 index 00000000..a8b1fbb4 --- /dev/null +++ b/addons/account/data/account_data.xml @@ -0,0 +1,155 @@ + + + + + + Payment Terms + 6 + + + + + Settings + res.config.settings + form + inline + + + + + + + Operating Activities + accounts + + + Financing Activities + accounts + + + Investing & Extraordinary Activities + accounts + + + + + Immediate Payment + Payment terms: Immediate Payment + + + + 15 Days + Payment terms: 15 Days + + + + + 21 Days + Payment terms: 21 Days + + + + + 30 Days + Payment terms: 30 Days + + + + + 45 Days + Payment terms: 45 Days + + + + + 2 Months + Payment terms: 2 Months + + + + + End of Following Month + Payment terms: End of Following Month + + + + + 30% Now, Balance 60 Days + Payment terms: 30% Now, Balance 60 Days + + + + + + Account reconcile sequence + account.reconcile + A + + + + + + + + Validated + account.move + + Invoice validated + + + Paid + account.move + + Invoice paid + + + Invoice Created + account.move + + + Invoice Created + + + + + Manual + manual + inbound + + + Manual + manual + outbound + + + + + Taxes + 0 + + + + + Followup Trust Property + + normal + selection + + + + + Share + + + form + code + action = records.action_share() + + + + diff --git a/addons/account/data/account_incoterms_data.xml b/addons/account/data/account_incoterms_data.xml new file mode 100644 index 00000000..a3623a3a --- /dev/null +++ b/addons/account/data/account_incoterms_data.xml @@ -0,0 +1,50 @@ + + + + + EXW + EX WORKS + + + FCA + FREE CARRIER + + + FAS + FREE ALONGSIDE SHIP + + + FOB + FREE ON BOARD + + + CFR + COST AND FREIGHT + + + CIF + COST, INSURANCE AND FREIGHT + + + CPT + CARRIAGE PAID TO + + + CIP + CARRIAGE AND INSURANCE PAID TO + + + DPU + DELIVERED AT PLACE UNLOADED + + + DAP + DELIVERED AT PLACE + + + DDP + DELIVERED DUTY PAID + + + + diff --git a/addons/account/data/data_account_type.xml b/addons/account/data/data_account_type.xml new file mode 100644 index 00000000..6bd9dbc7 --- /dev/null +++ b/addons/account/data/data_account_type.xml @@ -0,0 +1,106 @@ + + + + + + Receivable + receivable + asset + + + + Payable + payable + liability + + + + Bank and Cash + liquidity + asset + + + + Credit Card + liquidity + liability + + + + Current Assets + other + asset + + + + Non-current Assets + other + asset + + + + Prepayments + other + asset + + + + Fixed Assets + other + asset + + + + Current Liabilities + other + liability + + + + Non-current Liabilities + other + liability + + + + Equity + equity + + + + Current Year Earnings + equity + + + + Income + other + income + + + Other Income + other + income + + + Expenses + other + expense + + + Depreciation + other + expense + + + Cost of Revenue + other + expense + + + Off-Balance Sheet + other + off_balance + + + diff --git a/addons/account/data/digest_data.xml b/addons/account/data/digest_data.xml new file mode 100644 index 00000000..c7f9a477 --- /dev/null +++ b/addons/account/data/digest_data.xml @@ -0,0 +1,23 @@ + + + + + True + + + + + + Tip: No need to print, put in an envelop and post your invoices + 700 + + +
+

Tip: No need to print, put in an envelop and post your invoices

+

Use the “Send by Post” option to post invoices automatically. For the cost of a local stamp, we do all the manual work: your invoice will be printed in the right country, put in an envelop and sent by snail mail. Use this feature from the list view to post hundreds of invoices in bulk.

+ +
+
+
+
+
diff --git a/addons/account/data/mail_template_data.xml b/addons/account/data/mail_template_data.xml new file mode 100644 index 00000000..1aa788e3 --- /dev/null +++ b/addons/account/data/mail_template_data.xml @@ -0,0 +1,59 @@ + + + + + + + + Invoice: Send by email + + ${(object.invoice_user_id.email_formatted or user.email_formatted) |safe} + ${object.partner_id.id} + ${object.company_id.name} Invoice (Ref ${object.name or 'n/a'}) + +
+

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

+ Here is your + % if object.name: + invoice ${object.name} + % else: + invoice + %endif + % if object.invoice_origin: + (with reference: ${object.invoice_origin}) + % endif + amounting in ${format_amount(object.amount_total, object.currency_id)} + from ${object.company_id.name}. + % if object.payment_state in ('paid', 'in_payment'): + This invoice is already paid. + % else: + Please remit payment at your earliest convenience. + % if object.payment_reference: +

+ Please use the following communication for your payment: ${object.payment_reference}. + % endif + % endif +

+ Do not hesitate to contact us if you have any questions. + % if object.invoice_user_id.signature: +
+ ${object.invoice_user_id.signature | safe} + % endif +

+
+
+ + Invoice_${(object.name or '').replace('/','_')}${object.state == 'draft' and '_draft' or ''} + ${object.partner_id.lang} + +
+
+
diff --git a/addons/account/data/payment_receipt_data.xml b/addons/account/data/payment_receipt_data.xml new file mode 100644 index 00000000..74b6eb65 --- /dev/null +++ b/addons/account/data/payment_receipt_data.xml @@ -0,0 +1,68 @@ + + + + + + + Payment Receipt: Send by email + + ${object.company_id.name} Payment Receipt (Ref ${object.name or 'n/a' }) + ${object.partner_id.id} + +
+

+ Dear ${object.partner_id.name}

+ Thank you for your payment. + Here is your payment receipt ${(object.name or '').replace('/','-')} amounting + to ${format_amount(object.amount, object.currency_id)} from ${object.company_id.name}. +

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

+ Best regards, + % if user.signature: +
+ ${user.signature | safe} + % endif +

+
+
+ + ${(object.name or '').replace('/','-')} + ${object.partner_id.lang} + +
+ + + Send receipt by email + mail.compose.message + form + new + + + form + + + + + Send receipts by email + mail.compose.message + form + new + + + list + +
+
diff --git a/addons/account/data/service_cron.xml b/addons/account/data/service_cron.xml new file mode 100644 index 00000000..231e9ff7 --- /dev/null +++ b/addons/account/data/service_cron.xml @@ -0,0 +1,14 @@ + + + + Account; Post draft entries with auto_post set to True up to today + 1 + days + -1 + + + + model._autopost_draft_entries() + code + + -- cgit v1.2.3