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/l10n_generic_coa/__init__.py | 8 + addons/l10n_generic_coa/__manifest__.py | 29 +++ .../data/account.account.template.csv | 35 ++++ addons/l10n_generic_coa/data/l10n_generic_coa.xml | 12 ++ .../data/l10n_generic_coa_post.xml | 103 ++++++++++ .../demo/account_bank_statement_demo.xml | 129 +++++++++++++ .../l10n_generic_coa/demo/account_invoice_demo.xml | 208 +++++++++++++++++++++ .../demo/account_reconcile_model.xml | 34 ++++ .../src/demo/bank_statement_yourcompany_1.pdf | Bin 0 -> 23482 bytes .../src/demo/in_invoice_yourcompany_demo_1.pdf | Bin 0 -> 19969 bytes .../src/demo/in_invoice_yourcompany_demo_2.pdf | Bin 0 -> 47172 bytes 11 files changed, 558 insertions(+) create mode 100644 addons/l10n_generic_coa/__init__.py create mode 100644 addons/l10n_generic_coa/__manifest__.py create mode 100644 addons/l10n_generic_coa/data/account.account.template.csv create mode 100644 addons/l10n_generic_coa/data/l10n_generic_coa.xml create mode 100644 addons/l10n_generic_coa/data/l10n_generic_coa_post.xml create mode 100644 addons/l10n_generic_coa/demo/account_bank_statement_demo.xml create mode 100644 addons/l10n_generic_coa/demo/account_invoice_demo.xml create mode 100644 addons/l10n_generic_coa/demo/account_reconcile_model.xml create mode 100644 addons/l10n_generic_coa/static/src/demo/bank_statement_yourcompany_1.pdf create mode 100644 addons/l10n_generic_coa/static/src/demo/in_invoice_yourcompany_demo_1.pdf create mode 100644 addons/l10n_generic_coa/static/src/demo/in_invoice_yourcompany_demo_2.pdf (limited to 'addons/l10n_generic_coa') diff --git a/addons/l10n_generic_coa/__init__.py b/addons/l10n_generic_coa/__init__.py new file mode 100644 index 00000000..d417dc68 --- /dev/null +++ b/addons/l10n_generic_coa/__init__.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + + +def uninstall_hook(cr, registry): + cr.execute( + "DELETE FROM ir_model_data WHERE module = 'l10n_generic_coa'" + ) diff --git a/addons/l10n_generic_coa/__manifest__.py b/addons/l10n_generic_coa/__manifest__.py new file mode 100644 index 00000000..0d62b68e --- /dev/null +++ b/addons/l10n_generic_coa/__manifest__.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +{ + 'name': 'Generic - Accounting', + 'version': '1.1', + 'category': 'Accounting/Localizations/Account Charts', + 'description': """ +This is the base module to manage the generic accounting chart in Odoo. +============================================================================== + +Install some generic chart of accounts. + """, + 'depends': [ + 'account', + ], + 'data': [ + 'data/l10n_generic_coa.xml', + 'data/account.account.template.csv', + 'data/l10n_generic_coa_post.xml', + ], + 'demo': [ + 'demo/account_bank_statement_demo.xml', + 'demo/account_invoice_demo.xml', + 'demo/account_reconcile_model.xml', + ], + 'uninstall_hook': 'uninstall_hook', + 'license': 'LGPL-3', +} diff --git a/addons/l10n_generic_coa/data/account.account.template.csv b/addons/l10n_generic_coa/data/account.account.template.csv new file mode 100644 index 00000000..9030e5bb --- /dev/null +++ b/addons/l10n_generic_coa/data/account.account.template.csv @@ -0,0 +1,35 @@ +"id","name","code","user_type_id/id","chart_template_id/id","tag_ids/id","reconcile" +"current_assets","Current Assets","1010","account.data_account_type_current_assets","l10n_generic_coa.configurable_chart_template","","False" +"stock_valuation","Stock Valuation","1101","account.data_account_type_current_assets","l10n_generic_coa.configurable_chart_template","","False" +"stock_in","Stock Interim (Received)","1102","account.data_account_type_current_assets","l10n_generic_coa.configurable_chart_template","","True" +"stock_out","Stock Interim (Delivered)","1103","account.data_account_type_current_assets","l10n_generic_coa.configurable_chart_template","","True" +"receivable","Account Receivable","1210","account.data_account_type_receivable","l10n_generic_coa.configurable_chart_template","","True" +"to_receive_rec","Products to receive","1211","account.data_account_type_current_assets","l10n_generic_coa.configurable_chart_template","","True" +"tax_paid","Tax Paid","1310","account.data_account_type_current_assets","l10n_generic_coa.configurable_chart_template","","False" +"tax_receivable","Tax Receivable","1320","account.data_account_type_current_assets","l10n_generic_coa.configurable_chart_template","","False" +"prepayments","Prepayments","1410","account.data_account_type_prepayments","l10n_generic_coa.configurable_chart_template","","False" +"fixed_assets","Fixed Asset","1510","account.data_account_type_fixed_assets","l10n_generic_coa.configurable_chart_template","","False" +"non_current_assets","Non-current assets","1910","account.data_account_type_non_current_assets","l10n_generic_coa.configurable_chart_template","","False" +"current_liabilities","Current Liabilities","2010","account.data_account_type_current_liabilities","l10n_generic_coa.configurable_chart_template","","False" +"payable","Account Payable","2110","account.data_account_type_payable","l10n_generic_coa.configurable_chart_template","","True" +"to_receive_pay","Bills to receive","2111","account.data_account_type_current_liabilities","l10n_generic_coa.configurable_chart_template","","True" +"tax_received","Tax Received","2510","account.data_account_type_current_liabilities","l10n_generic_coa.configurable_chart_template","","False" +"tax_payable","Tax Payable","2520","account.data_account_type_current_liabilities","l10n_generic_coa.configurable_chart_template","","False" +"non_current_liabilities","Non-current Liabilities","2910","account.data_account_type_non_current_liabilities","l10n_generic_coa.configurable_chart_template","","False" +"capital","Capital","3010","account.data_account_type_equity","l10n_generic_coa.configurable_chart_template","","False" +"dividends","Dividends","3020","account.data_account_type_equity","l10n_generic_coa.configurable_chart_template","","False" +"income","Product Sales","4000","account.data_account_type_revenue","l10n_generic_coa.configurable_chart_template","account.account_tag_operating","False" +"income_currency_exchange","Foreign Exchange Gain","4410","account.data_account_type_revenue","l10n_generic_coa.configurable_chart_template","account.account_tag_financing","False" +"cash_diff_income","Cash Difference Gain","4420","account.data_account_type_revenue","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False" +"other_income","Other Income","4500","account.data_account_type_other_income","l10n_generic_coa.configurable_chart_template","","False" +"cost_of_goods_sold","Cost of Goods Sold","5000","account.data_account_type_direct_costs","l10n_generic_coa.configurable_chart_template","account.account_tag_operating","False" +"expense","Expenses","6000","account.data_account_type_expenses","l10n_generic_coa.configurable_chart_template","account.account_tag_operating","False" +"expense_invest","Purchase of Equipments","6110","account.data_account_type_expenses","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False" +"expense_rent","Rent","6120","account.data_account_type_expenses","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False" +"expense_finance","Bank Fees","6200","account.data_account_type_expenses","l10n_generic_coa.configurable_chart_template","account.account_tag_financing","False" +"expense_salary","Salary Expenses","6300","account.data_account_type_expenses","l10n_generic_coa.configurable_chart_template","account.account_tag_operating","False" +"expense_currency_exchange","Foreign Exchange Loss","6410","account.data_account_type_expenses","l10n_generic_coa.configurable_chart_template","account.account_tag_financing","False" +"cash_diff_expense","Cash Difference Loss","6420","account.data_account_type_expenses","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False" +"expense_rd","RD Expenses","9610","account.data_account_type_expenses","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False" +"expense_sales","Sales Expenses","9620","account.data_account_type_expenses","l10n_generic_coa.configurable_chart_template","account.account_tag_investing","False" +"pos_receivable","Account Receivable (PoS)","1013","account.data_account_type_receivable","l10n_generic_coa.configurable_chart_template","","True" diff --git a/addons/l10n_generic_coa/data/l10n_generic_coa.xml b/addons/l10n_generic_coa/data/l10n_generic_coa.xml new file mode 100644 index 00000000..b729c78c --- /dev/null +++ b/addons/l10n_generic_coa/data/l10n_generic_coa.xml @@ -0,0 +1,12 @@ + + + + + Configurable Account Chart Template + 6 + 1014 + 1015 + 1017 + + + diff --git a/addons/l10n_generic_coa/data/l10n_generic_coa_post.xml b/addons/l10n_generic_coa/data/l10n_generic_coa_post.xml new file mode 100644 index 00000000..5ecfaff8 --- /dev/null +++ b/addons/l10n_generic_coa/data/l10n_generic_coa_post.xml @@ -0,0 +1,103 @@ + + + + + + Tax 15% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tax 15% + 15 + sale + + + + + + + + Purchase Tax 15% + 15 + purchase + + + + + + + + + + + + + diff --git a/addons/l10n_generic_coa/demo/account_bank_statement_demo.xml b/addons/l10n_generic_coa/demo/account_bank_statement_demo.xml new file mode 100644 index 00000000..73c061cd --- /dev/null +++ b/addons/l10n_generic_coa/demo/account_bank_statement_demo.xml @@ -0,0 +1,129 @@ + + + + + + + 9944.87 + 5103.0 + + + + + + 1 + + + 1275.0 + + + + + + + + 2 + Bank fees + + -32.58 + + + + + + + 3 + Prepayment + + 650.0 + + + + + + + + 4 + + + 2000.0 + + + + + + + + 5 + Last Year Interests + + 102.78 + + + + + + + 1 + + + 750.0 + + + + + + + + 7 + R:9772938 10/07 AX 9415116318 T:5 BRT: 100,00€ C/ croip + + 96.67 + + + + + + + + binary + + bank_statement_yourcompany_demo.pdf + account.bank.statement + + + + + + + + + account.bank.statement + + Bank statement attachment + comment + + + + + + + + + diff --git a/addons/l10n_generic_coa/demo/account_invoice_demo.xml b/addons/l10n_generic_coa/demo/account_invoice_demo.xml new file mode 100644 index 00000000..6cccfa14 --- /dev/null +++ b/addons/l10n_generic_coa/demo/account_invoice_demo.xml @@ -0,0 +1,208 @@ + + + + + + out_invoice + + + + + + + + + + out_invoice + + + + + + + + + out_invoice + + + + + + + + + out_invoice + + + + + + + + + + + in_invoice + + + + + + + + + + + in_invoice + + + + + + in_invoice + INV/2018/0057 + + + 2018-09-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + binary + + in_invoice_yourcompany_demo.pdf + account.move + + + + + + + + + account.move + + Vendor Bill attachment + comment + + + + + + binary + + in_invoice_yourcompany_demo.pdf + account.move + + + + + + + + + account.move + + Vendor Bill attachment + comment + + + + + + + + + + Follow-up on payment + + + + + + + + + + + + + + + + + Include upsell + + + + + + + + + Update address + + + + + + diff --git a/addons/l10n_generic_coa/demo/account_reconcile_model.xml b/addons/l10n_generic_coa/demo/account_reconcile_model.xml new file mode 100644 index 00000000..5934fdd0 --- /dev/null +++ b/addons/l10n_generic_coa/demo/account_reconcile_model.xml @@ -0,0 +1,34 @@ + + + + + Line with Bank Fees + writeoff_suggestion + contains + BRT + , + + + + + 1 + Due amount + + regex + BRT: ([\d,]+) + + + + + 2 + Bank Fees + + percentage + 100 + + + diff --git a/addons/l10n_generic_coa/static/src/demo/bank_statement_yourcompany_1.pdf b/addons/l10n_generic_coa/static/src/demo/bank_statement_yourcompany_1.pdf new file mode 100644 index 00000000..5de72134 Binary files /dev/null and b/addons/l10n_generic_coa/static/src/demo/bank_statement_yourcompany_1.pdf differ diff --git a/addons/l10n_generic_coa/static/src/demo/in_invoice_yourcompany_demo_1.pdf b/addons/l10n_generic_coa/static/src/demo/in_invoice_yourcompany_demo_1.pdf new file mode 100644 index 00000000..98b6026c Binary files /dev/null and b/addons/l10n_generic_coa/static/src/demo/in_invoice_yourcompany_demo_1.pdf differ diff --git a/addons/l10n_generic_coa/static/src/demo/in_invoice_yourcompany_demo_2.pdf b/addons/l10n_generic_coa/static/src/demo/in_invoice_yourcompany_demo_2.pdf new file mode 100644 index 00000000..59878fe1 Binary files /dev/null and b/addons/l10n_generic_coa/static/src/demo/in_invoice_yourcompany_demo_2.pdf differ -- cgit v1.2.3