Merge lp:~rr.clearcorp/openerp-ccorp-addons/7.0-base_import_exchange_rates into lp:openerp-ccorp-addons/6.1
- 7.0-base_import_exchange_rates
- Merge into 6.1
Proposed by
Ronald Rubi
Status: | Needs review |
---|---|
Proposed branch: | lp:~rr.clearcorp/openerp-ccorp-addons/7.0-base_import_exchange_rates |
Merge into: | lp:openerp-ccorp-addons/6.1 |
Diff against target: |
27075 lines (+19291/-4407) (has conflicts) 289 files modified
TODO-6.1/company_webkit/__init__.py (+0/-1) TODO-6.1/company_webkit/__openerp__.py (+0/-44) TODO-6.1/company_webkit/company_webkit.py (+0/-282) TODO-6.1/company_webkit/company_webkit_view.xml (+0/-28) TODO-7.0/sneldev_magento/wizard/export_tools.py (+0/-2) TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_export.py (+0/-2) TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_import.py (+1/-4) TODO-7.0/sneldev_magento/wizard/sneldev_magento_customers_import.py (+0/-2) TODO-7.0/sneldev_magento/wizard/sneldev_magento_orders_import.py (+1/-3) TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_export.py (+0/-2) TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_import.py (+0/-3) TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_export.py (+1/-4) TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_init.py (+0/-2) TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_start.py (+1/-3) TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_stop.py (+1/-3) account_account_extended_ccorp/__init__.py (+26/-0) account_account_extended_ccorp/__openerp__.py (+47/-0) account_account_extended_ccorp/account_account_extended_ccorp.py (+31/-0) account_account_extended_ccorp/account_account_extended_ccorp_view.xml (+20/-0) account_account_extended_ccorp/account_move_line_extended.py (+55/-0) account_account_extended_ccorp/account_move_line_extended.xml (+35/-0) account_account_extended_ccorp/i18n/en_US.po (+27/-0) account_account_extended_ccorp/i18n/es_CR.po (+49/-0) account_asset_extended_ccorp/__init__.py (+25/-0) account_asset_extended_ccorp/__openerp__.py (+46/-0) account_asset_extended_ccorp/account_asset_extended_ccorp.py (+77/-0) account_asset_extended_ccorp/account_asset_extended_ccorp_view.xml (+27/-0) account_asset_extended_ccorp/i18n/account_asset_extended.pot (+49/-0) account_asset_extended_ccorp/i18n/es_CR.po (+49/-0) account_general_ledger_report/__init__.py (+24/-0) account_general_ledger_report/__openerp__.py (+47/-0) account_general_ledger_report/i18n/es_CR.po (+280/-0) account_general_ledger_report/report/__init__.py (+23/-0) account_general_ledger_report/report/account_general_ledger_report.mako (+182/-0) account_general_ledger_report/report/account_general_ledger_report.py (+179/-0) account_general_ledger_report/report/report.xml (+16/-0) account_general_ledger_report/report_menus.xml (+13/-0) account_general_ledger_report/wizard/__init__.py (+23/-0) account_general_ledger_report/wizard/account_general_ledger_report_wizard.py (+39/-0) account_general_ledger_report/wizard/account_general_ledger_report_wizard.xml (+62/-0) account_invoice_global_discount/__init__.py (+3/-0) account_invoice_global_discount/__openerp__.py (+8/-5) account_invoice_global_discount/account_invoice_global_discount.py (+2/-1) account_invoice_global_discount/account_invoice_global_discount_view.xml (+155/-113) account_invoice_global_discount/account_invoice_global_discount_wizard.xml (+0/-9) account_invoice_global_discount/wizard/__init__.py (+20/-30) account_invoice_global_discount/wizard/discount_wizard.py (+49/-87) account_invoice_global_discount/wizard/discount_wizard_view.xml (+31/-0) account_invoice_journal_defaults/__openerp__.py (+6/-8) account_invoice_journal_defaults/account_invoice_journal_defaults.py (+78/-23) account_invoice_journal_defaults/account_invoice_journal_defaults_view.xml (+23/-11) account_invoice_webkit_report/__openerp__.py (+7/-4) account_invoice_webkit_report/account_invoice_webkit_report.py (+1/-0) account_invoice_webkit_report/account_invoice_webkit_report.xml (+21/-0) account_invoice_webkit_report/ccorp_account_webkit_report.xml (+0/-34) account_invoice_webkit_report/data/account_invoice_webkit_report_header.xml (+239/-0) account_invoice_webkit_report/i18n/ccorp_account.pot (+0/-179) account_invoice_webkit_report/i18n/ccorp_account_webkit.pot (+0/-190) account_invoice_webkit_report/i18n/es.po (+0/-182) account_invoice_webkit_report/i18n/es_CR.po (+26/-46) account_invoice_webkit_report/report/__init__.py (+19/-31) account_invoice_webkit_report/report/account_invoice_report.mako (+137/-0) account_invoice_webkit_report/report/account_invoice_report.py (+41/-0) account_invoice_webkit_report/report/invoice.mako (+0/-123) account_invoice_webkit_report/report/invoice.py (+0/-54) account_invoice_webkit_report/report/report.xml (+14/-0) account_journal_extended_code/__init__.py (+20/-30) account_journal_extended_code/__openerp__.py (+34/-44) account_journal_extended_code/account_journal_extended_code.py (+29/-40) account_journal_period_report/__openerp__.py (+3/-2) account_journal_period_report/i18n/es_CR.po (+105/-0) account_journal_period_report/report/account_journal_period_report.mako (+3/-2) account_journal_period_report/report/report.xml (+1/-3) account_journal_period_report/wizard/__init__.py (+0/-1) account_journal_period_report/wizard/account_journal_period_report_wizard_view.xml (+18/-0) account_journal_view_extended/__init__.py (+0/-34) account_journal_view_extended/__openerp__.py (+0/-51) account_journal_view_extended/account_journal_view_extended_view.xml (+0/-35) account_move_reverse/account_move_reverse.py (+29/-2) account_move_reverse/account_move_reverse_view.xml (+24/-0) account_move_reverse/i18n/account_move_reverse.pot (+0/-83) account_move_reverse/i18n/es_CR.po (+40/-25) account_name_extended/__init__.py (+23/-0) account_name_extended/__openerp__.py (+56/-0) account_name_extended/account_name_extended.py (+393/-0) account_name_extended/account_name_extended_view.xml (+37/-0) account_period_attachment_doc/__init__.py (+23/-0) account_period_attachment_doc/__openerp__.py (+41/-0) account_period_attachment_doc/account_period_attachment_doc.py (+40/-0) account_period_attachment_doc/account_period_attachment_doc.xml (+94/-0) account_period_attachment_doc/i18n/es_CR.po (+66/-0) account_report_lib/__init__.py (+26/-0) account_report_lib/__openerp__.py (+45/-0) account_report_lib/account_common_library.py (+383/-0) account_report_lib/account_financial_report_build.py (+123/-0) account_report_lib/account_report_base.py (+138/-0) account_report_lib/data/account_base_type.xml (+25/-0) account_report_lib/i18n/es_CR.po (+300/-0) account_report_lib/security/ir.model.access.csv (+2/-0) account_report_lib/tools/__init__.py (+25/-0) account_report_lib/tools/tools_amount_to_text.py (+129/-0) account_report_lib/tools/tools_modules_extended.py (+171/-0) account_report_lib/tools/tools_modules_extended.xml (+32/-0) account_report_lib/tools/tools_new_models.py (+37/-0) account_report_lib/wizard/__init__.py (+23/-0) account_report_lib/wizard/account_report_wizard.py (+105/-0) account_report_lib/wizard/account_report_wizard.xml (+60/-0) account_report_signatures/__init__.py (+23/-0) account_report_signatures/__openerp__.py (+40/-0) account_report_signatures/account_report_signature_menu.xml (+11/-0) account_report_signatures/account_report_signatures.py (+35/-0) account_report_signatures/account_report_signatures.xml (+73/-0) account_report_signatures/i18n/es_CR.po (+72/-0) account_report_signatures/security/account_report_signatures_security.xml (+25/-0) account_voucher_payment_method/__init__.py (+22/-0) account_voucher_payment_method/__openerp__.py (+22/-0) account_voucher_payment_method/account_voucher_payment_method.py (+17/-188) account_voucher_payment_method/account_voucher_payment_method.xml (+18/-21) account_voucher_reverse/account_voucher_reverse_view.xml (+7/-7) account_withholding_tax_comissions/__init__.py (+27/-0) account_withholding_tax_comissions/__openerp__.py (+48/-0) account_withholding_tax_comissions/account_journal_withholding_tax.py (+58/-0) account_withholding_tax_comissions/account_journal_withholding_tax.xml (+25/-0) account_withholding_tax_comissions/account_move_withholding_tax.py (+31/-0) account_withholding_tax_comissions/account_voucher_withholding_tax.py (+357/-0) account_withholding_tax_comissions/account_voucher_withholding_tax.xml (+88/-0) account_withholding_tax_comissions/account_withholding_tax.py (+72/-0) account_withholding_tax_comissions/account_withholding_tax.xml (+73/-0) account_withholding_tax_comissions/i18n/es_CR.po (+236/-0) base_company_prefix/base_company_prefix.py (+3/-6) base_company_prefix/base_company_prefix.xml (+1/-6) base_currency_symbol/__init__.py (+18/-30) base_currency_symbol/__openerp__.py (+43/-0) base_currency_symbol/__terp__.py (+0/-55) base_currency_symbol/base_currency_symbol.py (+18/-30) base_import_exchange_rates/__openerp__.py (+23/-10) base_import_exchange_rates/company.py (+1/-3) base_import_exchange_rates/company_view.xml (+15/-9) budget/__init__.py (+31/-0) budget/__openerp__.py (+64/-0) budget/account.py (+679/-0) budget/account_invoice.py (+166/-0) budget/account_invoice_view.xml (+66/-0) budget/account_move.py (+109/-0) budget/account_move_line.xml (+29/-0) budget/account_view.xml (+20/-0) budget/budget.py (+1370/-0) budget/budget_sequence.xml (+17/-0) budget/budget_view.xml (+759/-0) budget/budget_workflow.xml (+189/-0) budget/hr_expense.py (+245/-0) budget/hr_expense_view.xml (+46/-0) budget/hr_expense_workflow.xml (+13/-0) budget/i18n/es_CR.po (+1479/-0) budget/purchase.py (+240/-0) budget/purchase_view.xml (+100/-0) budget/purchase_workflow.xml (+185/-0) budget/res_partner.py (+29/-0) budget/res_partner_view.xml (+20/-0) budget/sale.py (+126/-0) budget/sale_view.xml (+26/-0) budget/security/ir.model.access.csv (+19/-0) budget/security/security.xml (+140/-0) budget/wizard/__init__.py (+24/-0) budget/wizard/budget_import_catalog.py (+107/-0) budget/wizard/budget_import_catalog_view.xml (+34/-0) budget/wizard/budget_program_populate.py (+77/-0) budget/wizard/budget_program_populate_view.xml (+34/-0) cash_flow_report/__init__.py (+26/-0) cash_flow_report/__openerp__.py (+48/-0) cash_flow_report/account_move_reconcile.py (+304/-0) cash_flow_report/cash_flow_type.py (+63/-0) cash_flow_report/cash_flow_type.xml (+80/-0) cash_flow_report/i18n/es_CR.po (+295/-0) cash_flow_report/report/__init__.py (+23/-0) cash_flow_report/report/cash_flow_report.mako (+143/-0) cash_flow_report/report/cash_flow_report.py (+219/-0) cash_flow_report/report/report.xml (+15/-0) cash_flow_report/report_menus.xml (+10/-0) cash_flow_report/wizard/__init__.py (+22/-0) cash_flow_report/wizard/cash_flow_report_wizard.py (+40/-0) cash_flow_report/wizard/cash_flow_report_wizard.xml (+70/-0) ccorp_payment_receipt/__terp__.py (+0/-59) ccorp_payment_receipt/data.xml (+0/-217) ccorp_payment_receipt/report/amount_to_text.py (+0/-127) ccorp_payment_receipt/report/header.html (+0/-88) ccorp_payment_receipt/report/payment_receipt.mako (+0/-66) ccorp_payment_receipt/report/payment_receipt.py (+0/-72) ccorp_payment_receipt/report/style.css (+0/-143) hr_contract_extended/__init__.py (+22/-0) hr_contract_extended/__openerp__.py (+45/-0) hr_contract_extended/hr_contract_extended.py (+117/-0) hr_contract_extended/hr_contract_extended_view.xml (+51/-0) hr_contract_extended/i18n/es_CR.po (+105/-0) hr_contract_extended/i18n/hr_salary_rule_by_contract.pot (+34/-0) hr_contract_extended/security/hr_contract_extended_security.xml (+20/-0) hr_contract_extended/security/ir.model.access.csv (+5/-0) hr_payroll_report/__openerp__.py (+1/-0) hr_payroll_report/hr_payroll_report_report.xml (+4/-2) hr_payroll_report/hr_payroll_report_view.xml (+10/-10) hr_payroll_report/i18n/es_CR.po (+58/-74) hr_payroll_report/report/hr_payroll_details_report.mako (+78/-107) hr_payroll_report/report/hr_payroll_report.mako (+88/-105) hr_personnel_actions/__init__.py (+24/-0) hr_personnel_actions/__openerp__.py (+55/-0) hr_personnel_actions/hr_personnel_actions.py (+123/-0) hr_personnel_actions/hr_personnel_actions_data.xml (+54/-0) hr_personnel_actions/hr_personnel_actions_menu.xml (+23/-0) hr_personnel_actions/hr_personnel_actions_view.xml (+152/-0) hr_personnel_actions/i18n/es_CR.po (+228/-0) hr_personnel_actions/report/__init__.py (+23/-0) hr_personnel_actions/report/parser.py (+28/-0) hr_personnel_actions/report/report_data.xml (+52/-0) payment_receipt_report/__init__.py (+22/-33) payment_receipt_report/__openerp__.py (+44/-0) payment_receipt_report/data/payment_receipt_report_webkit.xml (+223/-0) payment_receipt_report/i18n/es_CR.po (+41/-46) payment_receipt_report/payment_receipt_report.xml (+9/-2) payment_receipt_report/report/__init__.py (+19/-31) payment_receipt_report/report/payment_receipt_report.mako (+65/-0) payment_receipt_report/report/payment_receipt_report.py (+61/-0) project_extended/__init__.py (+0/-23) project_extended/__openerp__.py (+0/-47) project_extended/i18n/es_CR.po (+122/-0) project_extended/i18n/project_extended.pot (+42/-0) project_extended/project_extended.py (+0/-74) project_extended/project_extended_view.xml (+0/-34) project_reports/__openerp__.py (+4/-1) project_reports/i18n/es_CR.po (+115/-78) project_reports/report/project_report.mako (+88/-112) project_reports/report/project_report.py (+1/-0) project_reports/report/report.xml (+2/-4) project_reports/report_menus.xml (+1/-1) project_reports/wizard/project_report_wizard.xml (+11/-11) project_search/__init__.py (+23/-0) project_search/__openerp__.py (+47/-0) project_search/i18n/es_CR.po (+127/-0) project_search/project_search.py (+48/-0) project_search/project_search_view.xml (+20/-0) purchase_order_ccorp_report/purchase_order_ccorp_report.xml (+0/-23) purchase_order_discount/purchase_order_discount.py (+8/-8) purchase_order_discount/purchase_order_discount.xml (+21/-7) purchase_order_report/__init__.py (+2/-1) purchase_order_report/__openerp__.py (+5/-1) purchase_order_report/data/purchase_order_report_webkit.xml (+242/-0) purchase_order_report/i18n/es_CR.po (+53/-49) purchase_order_report/purchase_order_report.py (+43/-0) purchase_order_report/purchase_order_report.xml (+27/-0) purchase_order_report/report/__init__.py (+1/-0) purchase_order_report/report/purchase_order_report.mako (+43/-9) purchase_order_report/report/purchase_order_report.py (+1/-1) report_webkit_lib/__init__.py (+23/-0) report_webkit_lib/__openerp__.py (+44/-0) report_webkit_lib/data/data.xml (+11/-0) report_webkit_lib/data/webkit_headers.xml (+693/-0) report_webkit_lib/i18n/es_CR.po (+37/-0) report_webkit_lib/report_webkit_lib_extend.py (+38/-0) report_webkit_lib/report_webkit_lib_extended_view.xml (+19/-0) res_currency_sequence/__init__.py (+23/-0) res_currency_sequence/__openerp__.py (+46/-0) res_currency_sequence/i18n/es_CR.po (+42/-0) res_currency_sequence/res_currency_sequence.py (+68/-0) res_currency_sequence/res_currency_sequence_view.xml (+41/-0) sale_order_ccorp_report/__init__.py (+0/-23) sale_order_ccorp_report/__openerp__.py (+0/-51) sale_order_ccorp_report/ccorp_sale_webkit_report.xml (+0/-13) sale_order_ccorp_report/report/__init__.py (+0/-23) sale_order_ccorp_report/report/footer.html (+0/-34) sale_order_ccorp_report/report/header.html (+0/-59) sale_order_ccorp_report/report/sale_order.py (+0/-54) sale_order_ccorp_report/report/style.css (+0/-131) sale_order_extended/__init__.py (+0/-1) sale_order_extended/__openerp__.py (+2/-2) sale_order_extended/sale_order_extended.py (+0/-11) sale_order_extended/sale_order_extended_view.xml (+1/-16) sale_order_global_discount/__openerp__.py (+3/-5) sale_order_global_discount/sale_order_global_discount.py (+41/-0) sale_order_report/__init__.py (+24/-0) sale_order_report/__openerp__.py (+52/-0) sale_order_report/data/sale_order_report_webkit.xml (+242/-0) sale_order_report/i18n/es_CR.po (+182/-0) sale_order_report/report/__init__.py (+23/-0) sale_order_report/report/sale_order_report.mako (+135/-0) sale_order_report/report/sale_order_report.py (+54/-0) sale_order_report/sale_order_report.py (+41/-0) sale_order_report/sale_order_report.xml (+18/-0) winpdb_debugger/__openerp__.py (+13/-14) winpdb_debugger/winpdb_debugger.py (+5/-3) winpdb_debugger/winpdb_debugger_wizard.xml (+47/-69) Conflict adding file account_general_ledger_report. Moved existing file to account_general_ledger_report.moved. Conflict adding file account_journal_period_report/i18n. Moved existing file to account_journal_period_report/i18n.moved. Text conflict in base_import_exchange_rates/__openerp__.py Text conflict in hr_payroll_report/report/hr_payroll_report.mako Text conflict in purchase_order_report/report/purchase_order_report.mako Conflict adding file res_currency_sequence. Moved existing file to res_currency_sequence.moved. Conflict: can't delete sale_order_ccorp_report because it is not empty. Not deleting. Conflict because sale_order_ccorp_report is not versioned, but has versioned children. Versioned directory. Conflict: can't delete sale_order_ccorp_report/i18n because it is not empty. Not deleting. Conflict because sale_order_ccorp_report/i18n is not versioned, but has versioned children. Versioned directory. Contents conflict in sale_order_ccorp_report/i18n/es.po Contents conflict in sale_order_ccorp_report/i18n/es_CR.po Conflict: can't delete sale_order_ccorp_report/report because it is not empty. Not deleting. Conflict because sale_order_ccorp_report/report is not versioned, but has versioned children. Versioned directory. Contents conflict in sale_order_ccorp_report/report/sale_order.mako Text conflict in sale_order_global_discount/sale_order_global_discount.py |
To merge this branch: | bzr merge lp:~rr.clearcorp/openerp-ccorp-addons/7.0-base_import_exchange_rates |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
ClearCorp drivers | Pending | ||
Review via email:
|
Commit message
Description of the change
[ADD] Add dependence res_currency_
To post a comment you must log in.
Unmerged revisions
- 782. By Ronald Rubi
-
[ADD] Add dependence res_currency_
sequence in base_import_ exchange_ rates - 781. By Ronald Rubi
-
[MRG] Add module res_currency_
sequence - 780. By Ronald Rubi
-
[MRG] Fix account_
move_reverse, bad matching lines - 779. By Ronald Rubi
-
[MRG] Remove description_pad in project_report
- 778. By Ronald Rubi
-
[MRG] Fix duplicate in account_moves
- 777. By Ronald Rubi
-
[MRG] Added autogenerated sequence for Personel Actions
- 776. By Ronald Rubi
-
[MRG] Fixed unreconcile issue in budget_move that implied miscalculation of amounts. Also fixed state change for budget_move in case that payments are unreconciled
- 775. By Ronald Rubi
-
[MRG] New Module Personnel Actions Created
- 774. By Ronald Rubi
-
[MRG]Added expenses features
- 773. By Ronald Rubi
-
[MRG] Module project_search, Colors by Remmaing time in project_extended
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === removed directory 'TODO-6.1/company_webkit' | |||
2 | === removed file 'TODO-6.1/company_webkit/__init__.py' | |||
3 | --- TODO-6.1/company_webkit/__init__.py 2012-06-30 22:41:06 +0000 | |||
4 | +++ TODO-6.1/company_webkit/__init__.py 1970-01-01 00:00:00 +0000 | |||
5 | @@ -1,1 +0,0 @@ | |||
6 | 1 | import company_webkit | ||
7 | 2 | 0 | ||
8 | === removed file 'TODO-6.1/company_webkit/__openerp__.py' | |||
9 | --- TODO-6.1/company_webkit/__openerp__.py 2012-06-30 22:41:06 +0000 | |||
10 | +++ TODO-6.1/company_webkit/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
11 | @@ -1,44 +0,0 @@ | |||
12 | 1 | # -*- encoding: utf-8 -*- | ||
13 | 2 | ############################################################################## | ||
14 | 3 | # | ||
15 | 4 | # account_rename.py | ||
16 | 5 | # account_rename | ||
17 | 6 | # First author: Mag Guevara <mag.guevara@clearcorp.co.cr> (ClearCorp S.A.) | ||
18 | 7 | # Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved. | ||
19 | 8 | # | ||
20 | 9 | # Redistribution and use in source and binary forms, with or without modification, are | ||
21 | 10 | # permitted provided that the following conditions are met: | ||
22 | 11 | # | ||
23 | 12 | # 1. Redistributions of source code must retain the above copyright notice, this list of | ||
24 | 13 | # conditions and the following disclaimer. | ||
25 | 14 | # | ||
26 | 15 | # 2. Redistributions in binary form must reproduce the above copyright notice, this list | ||
27 | 16 | # of conditions and the following disclaimer in the documentation and/or other materials | ||
28 | 17 | # provided with the distribution. | ||
29 | 18 | # | ||
30 | 19 | # THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
31 | 20 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | ||
32 | 21 | # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR | ||
33 | 22 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
34 | 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
35 | 24 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
36 | 25 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
37 | 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
38 | 27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
39 | 28 | # | ||
40 | 29 | # The views and conclusions contained in the software and documentation are those of the | ||
41 | 30 | # authors and should not be interpreted as representing official policies, either expressed | ||
42 | 31 | # or implied, of ClearCorp S.A.. | ||
43 | 32 | # | ||
44 | 33 | ############################################################################## | ||
45 | 34 | { | ||
46 | 35 | "name" : "Company fields for report webkit", | ||
47 | 36 | "author" : "ClearCorp S.A.", | ||
48 | 37 | "version" : "1.0", | ||
49 | 38 | "depends" : ["base","report_webkit"], | ||
50 | 39 | "init_xml" : [], | ||
51 | 40 | "update_xml" : ["company_webkit_view.xml"], | ||
52 | 41 | "category" : "Report", | ||
53 | 42 | "active" : False, | ||
54 | 43 | "instalable" : True, | ||
55 | 44 | } | ||
56 | 45 | 0 | ||
57 | === removed file 'TODO-6.1/company_webkit/company_webkit.py' | |||
58 | --- TODO-6.1/company_webkit/company_webkit.py 2012-06-30 22:41:06 +0000 | |||
59 | +++ TODO-6.1/company_webkit/company_webkit.py 1970-01-01 00:00:00 +0000 | |||
60 | @@ -1,282 +0,0 @@ | |||
61 | 1 | # -*- encoding: utf-8 -*- | ||
62 | 2 | ############################################################################## | ||
63 | 3 | # | ||
64 | 4 | # company_webkit.py | ||
65 | 5 | # company_webkit | ||
66 | 6 | # First author: Mag Guevara <mag.guevara@clearcorp.co.cr> (ClearCorp S.A.) | ||
67 | 7 | # Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved. | ||
68 | 8 | # | ||
69 | 9 | # Redistribution and use in source and binary forms, with or without modification, are | ||
70 | 10 | # permitted provided that the following conditions are met: | ||
71 | 11 | # | ||
72 | 12 | # 1. Redistributions of source code must retain the above copyright notice, this list of | ||
73 | 13 | # conditions and the following disclaimer. | ||
74 | 14 | # | ||
75 | 15 | # 2. Redistributions in binary form must reproduce the above copyright notice, this list | ||
76 | 16 | # of conditions and the following disclaimer in the documentation and/or other materials | ||
77 | 17 | # provided with the distribution. | ||
78 | 18 | # | ||
79 | 19 | # THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
80 | 20 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | ||
81 | 21 | # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR | ||
82 | 22 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
83 | 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
84 | 24 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
85 | 25 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
86 | 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
87 | 27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
88 | 28 | # | ||
89 | 29 | # The views and conclusions contained in the software and documentation are those of the | ||
90 | 30 | # authors and should not be interpreted as representing official policies, either expressed | ||
91 | 31 | # or implied, of ClearCorp S.A.. | ||
92 | 32 | # | ||
93 | 33 | ############################################################################## | ||
94 | 34 | from osv import osv, fields | ||
95 | 35 | from tools import debug | ||
96 | 36 | from tools.translate import _ | ||
97 | 37 | |||
98 | 38 | class company_webkit(osv.osv): | ||
99 | 39 | _name = "res.company" | ||
100 | 40 | _inherit = "res.company" | ||
101 | 41 | |||
102 | 42 | def _get_default_header(self,cr,uid,ids): | ||
103 | 43 | return """ | ||
104 | 44 | <html> | ||
105 | 45 | <head> | ||
106 | 46 | <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> | ||
107 | 47 | <script> | ||
108 | 48 | function subst() { | ||
109 | 49 | var vars={}; | ||
110 | 50 | var x=document.location.search.substring(1).split('&'); | ||
111 | 51 | for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);} | ||
112 | 52 | var x=['frompage','topage','page','webpage','section','subsection','subsubsection']; | ||
113 | 53 | for(var i in x) { | ||
114 | 54 | var y = document.getElementsByClassName(x[i]); | ||
115 | 55 | for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]]; | ||
116 | 56 | } | ||
117 | 57 | } | ||
118 | 58 | </script> | ||
119 | 59 | <style type="text/css"> | ||
120 | 60 | ${css} | ||
121 | 61 | </style> | ||
122 | 62 | </head> | ||
123 | 63 | <body class = "header" onload="subst()"> | ||
124 | 64 | <table class="header-table" cellspacing = "3"> | ||
125 | 65 | <tbody> | ||
126 | 66 | <tr> | ||
127 | 67 | <td> | ||
128 | 68 | ${helper.embed_logo_by_name('company_logo')|n} | ||
129 | 69 | </td> | ||
130 | 70 | <td> | ||
131 | 71 | <table class="company_data"> | ||
132 | 72 | <tr class = "title"> | ||
133 | 73 | <td>${company.partner_id.name |entity}</td> | ||
134 | 74 | <td style = "text-align : right;">${_("Address")}</td> | ||
135 | 75 | </tr> | ||
136 | 76 | <tr> | ||
137 | 77 | <td>${_("ID Num")}: ${company.partner_id.ref | entity}</td> | ||
138 | 78 | <td style = "text-align : right;">${company.partner_id.address[0].street or ''|entity}</td> | ||
139 | 79 | </tr> | ||
140 | 80 | <tr> | ||
141 | 81 | <td>${_("Tel-fax")}: ${company.partner_id.address[0].phone or '-'|entity}</td> | ||
142 | 82 | <td style = "text-align : right;">${company.partner_id.address[0].street2 or ''|entity}</td> | ||
143 | 83 | </tr> | ||
144 | 84 | <tr> | ||
145 | 85 | <td>${_("E-mail")}: ${company.partner_id.address[0].email or '-'|entity}</td> | ||
146 | 86 | <td style = "text-align : right;">${company.partner_id.address[0].zip or ''|entity} ${company.partner_id.address[0].city or ''|entity}</td> | ||
147 | 87 | </tr> | ||
148 | 88 | <tr> | ||
149 | 89 | <td>${_("Web")}: ${company.partner_id.website or '-'|entity}</td> | ||
150 | 90 | %if company.partner_id.address[0].country_id : | ||
151 | 91 | <td style = "text-align : right;">${company.partner_id.address[0].state_id.name or ''|entity}, ${company.partner_id.address[0].country_id.name or ''|entity} </td> | ||
152 | 92 | %else: | ||
153 | 93 | <td style = "text-align : right;"> </td> | ||
154 | 94 | %endif | ||
155 | 95 | </tr> | ||
156 | 96 | </table> | ||
157 | 97 | </td> | ||
158 | 98 | </tr> | ||
159 | 99 | </tbody> | ||
160 | 100 | </table> | ||
161 | 101 | |||
162 | 102 | <p class = "slogan">${company.rml_header1}</p> | ||
163 | 103 | <hr />${_debug or ''|n} </body> | ||
164 | 104 | </html> | ||
165 | 105 | """ | ||
166 | 106 | |||
167 | 107 | def _get_default_footer(self,cr,uid,ids): | ||
168 | 108 | return """ | ||
169 | 109 | <html> | ||
170 | 110 | <head> | ||
171 | 111 | <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> | ||
172 | 112 | <script> | ||
173 | 113 | function subst() { | ||
174 | 114 | var vars={}; | ||
175 | 115 | var x=document.location.search.substring(1).split('&'); | ||
176 | 116 | for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);} | ||
177 | 117 | var x=['frompage','topage','page','webpage','section','subsection','subsubsection']; | ||
178 | 118 | for(var i in x) { | ||
179 | 119 | var y = document.getElementsByClassName(x[i]); | ||
180 | 120 | for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]]; | ||
181 | 121 | } | ||
182 | 122 | } | ||
183 | 123 | </script> | ||
184 | 124 | <style type="text/css"> | ||
185 | 125 | ${css} | ||
186 | 126 | </style> | ||
187 | 127 | </head> | ||
188 | 128 | <body class = "footer" onload="subst()"> | ||
189 | 129 | <table class = "footer_table"> | ||
190 | 130 | <tr><td><p class ="company_footer">${company.webkit_footer1 or ' '}</p></td></tr> | ||
191 | 131 | <tr><td><p class ="company_footer">${company.webkit_footer2 or ' '}</p></td><td style="text-align:right;font-size:12;">Page <span class="page"/></td><td style="text-align:left;font-size:12;"> of <span class="topage"/></td></tr> | ||
192 | 132 | <tr><td><p class ="company_footer">${company.webkit_footer3 or ' '}</p></td></tr> | ||
193 | 133 | </table> | ||
194 | 134 | </body> | ||
195 | 135 | </html> | ||
196 | 136 | """ | ||
197 | 137 | def _get_default_css(self,cr,uid,ids): | ||
198 | 138 | return """ | ||
199 | 139 | .header { | ||
200 | 140 | padding : 200px 10px 5px 10px; | ||
201 | 141 | border:0; margin: 0; | ||
202 | 142 | } | ||
203 | 143 | .header-table { | ||
204 | 144 | width: 100%; | ||
205 | 145 | padding-top: 8%; | ||
206 | 146 | } | ||
207 | 147 | .partner-table { | ||
208 | 148 | width: 100%; | ||
209 | 149 | font-family: Arial,Verdana, Sans, Serif; | ||
210 | 150 | font-size: 12; | ||
211 | 151 | } | ||
212 | 152 | |||
213 | 153 | #data-table { | ||
214 | 154 | width: 100%; | ||
215 | 155 | padding-top: 20px; | ||
216 | 156 | font-family: Arial,Verdana, Sans, Serif; | ||
217 | 157 | font-size: 12; | ||
218 | 158 | } | ||
219 | 159 | #data-table th{ | ||
220 | 160 | border-bottom:2px solid black; | ||
221 | 161 | text-align:center; | ||
222 | 162 | font-size:12; | ||
223 | 163 | font-weight:bold; | ||
224 | 164 | padding-right:3px; | ||
225 | 165 | padding-left:3px; | ||
226 | 166 | } | ||
227 | 167 | #data-table thead { | ||
228 | 168 | display:table-header-group; | ||
229 | 169 | } | ||
230 | 170 | |||
231 | 171 | .title { | ||
232 | 172 | font-size:16; | ||
233 | 173 | font-weight: bold; | ||
234 | 174 | } | ||
235 | 175 | |||
236 | 176 | .company_address{ | ||
237 | 177 | width : 100%; | ||
238 | 178 | text-align: right; | ||
239 | 179 | font-family: Arial,Verdana, Sans, Serif; | ||
240 | 180 | font-size: 13; | ||
241 | 181 | } | ||
242 | 182 | |||
243 | 183 | .company_data { | ||
244 | 184 | width : 100%; | ||
245 | 185 | text-align: center; | ||
246 | 186 | font-family: Arial,Verdana, Sans, Serif; | ||
247 | 187 | font-size: 13; | ||
248 | 188 | |||
249 | 189 | } | ||
250 | 190 | |||
251 | 191 | .company_footer { | ||
252 | 192 | font-family: Arial,Verdana, Sans, Serif; | ||
253 | 193 | font-size: 8.4; | ||
254 | 194 | font-style : italic; | ||
255 | 195 | } | ||
256 | 196 | .footer { | ||
257 | 197 | border-top: 1px solid black; | ||
258 | 198 | width: 100%; | ||
259 | 199 | border:0; margin: 0; | ||
260 | 200 | padding-bottom: 300px; | ||
261 | 201 | } | ||
262 | 202 | |||
263 | 203 | .data { | ||
264 | 204 | padding : 5px 10px 10px 10px; | ||
265 | 205 | border:0; margin: 0; | ||
266 | 206 | } | ||
267 | 207 | |||
268 | 208 | .footer_table { | ||
269 | 209 | width: 100%; | ||
270 | 210 | padding-bottom: 150px; | ||
271 | 211 | border-top: 1px solid black; | ||
272 | 212 | } | ||
273 | 213 | |||
274 | 214 | .slogan { | ||
275 | 215 | font-family: Arial,Verdana, Sans, Serif; | ||
276 | 216 | font-size: 10; | ||
277 | 217 | font-style : italic; | ||
278 | 218 | color : #888888; | ||
279 | 219 | } | ||
280 | 220 | |||
281 | 221 | #notes_table { | ||
282 | 222 | font-family: Arial,Verdana, Sans, Serif; | ||
283 | 223 | font-size: 12; | ||
284 | 224 | font-style : italic; | ||
285 | 225 | width:65%; | ||
286 | 226 | border-collapse:separate; | ||
287 | 227 | border-spacing:10px; | ||
288 | 228 | } | ||
289 | 229 | #notes_table td{ | ||
290 | 230 | background-color: #eee; | ||
291 | 231 | padding: 10px | ||
292 | 232 | } | ||
293 | 233 | |||
294 | 234 | .document_data { | ||
295 | 235 | font-family: Arial,Verdana, Sans, Serif; | ||
296 | 236 | font-size: 13; | ||
297 | 237 | width : 100%; | ||
298 | 238 | } | ||
299 | 239 | |||
300 | 240 | #data-table tbody tr.even td { | ||
301 | 241 | background-color: #eee; | ||
302 | 242 | } | ||
303 | 243 | #data-table tbody tr.odd td { | ||
304 | 244 | background-color: #fff; | ||
305 | 245 | } | ||
306 | 246 | |||
307 | 247 | .notes{ | ||
308 | 248 | padding-top : 0px; | ||
309 | 249 | margin-left: 5px; | ||
310 | 250 | font-style : italic; | ||
311 | 251 | } | ||
312 | 252 | #desc_col{ | ||
313 | 253 | width : 380px; | ||
314 | 254 | } | ||
315 | 255 | |||
316 | 256 | """ | ||
317 | 257 | def create(self,cr,uid, vals,context=None): | ||
318 | 258 | company_id = super(company_webkit,self).create(cr,uid,vals,context) | ||
319 | 259 | obj_company = self.pool.get('res.company').browse(cr,uid,company_id) | ||
320 | 260 | |||
321 | 261 | vals = { | ||
322 | 262 | 'name' : 'Base ' + obj_company.name, | ||
323 | 263 | 'html': obj_company._get_default_header(), | ||
324 | 264 | 'css' : obj_company._get_default_css(), | ||
325 | 265 | 'footer_html' : obj_company._get_default_footer(), | ||
326 | 266 | 'margin_top' : 55.00, | ||
327 | 267 | 'margin_bottom' : 24.00, | ||
328 | 268 | 'orientation' : 'Portrait', | ||
329 | 269 | 'format' : 'Letter', | ||
330 | 270 | } | ||
331 | 271 | register_id = self.pool.get('ir.header_webkit').search(cr,uid,[('name','=', 'Base ' + obj_company.name)]) | ||
332 | 272 | if not register_id: | ||
333 | 273 | #obj_header = super(rent_contract,self).create(cr,uid,vals,context) | ||
334 | 274 | obj_company.write({'header_webkit' : [(0,0, vals)]}) | ||
335 | 275 | return obj_company.id | ||
336 | 276 | |||
337 | 277 | _columns = { | ||
338 | 278 | 'webkit_footer1': fields.char('Report Footer 1', size=200), | ||
339 | 279 | 'webkit_footer2': fields.char('Report Footer 2', size=200), | ||
340 | 280 | 'webkit_footer3': fields.char('Report Footer 3', size=200), | ||
341 | 281 | } | ||
342 | 282 | company_webkit() | ||
343 | 283 | 0 | ||
344 | === removed file 'TODO-6.1/company_webkit/company_webkit_view.xml' | |||
345 | --- TODO-6.1/company_webkit/company_webkit_view.xml 2012-06-30 22:41:06 +0000 | |||
346 | +++ TODO-6.1/company_webkit/company_webkit_view.xml 1970-01-01 00:00:00 +0000 | |||
347 | @@ -1,28 +0,0 @@ | |||
348 | 1 | <?xml version = "1.0" encoding = "UTF-8"?> | ||
349 | 2 | <openerp> | ||
350 | 3 | <data> | ||
351 | 4 | |||
352 | 5 | <!-- | ||
353 | 6 | ====================================== | ||
354 | 7 | accounts | ||
355 | 8 | ====================================== | ||
356 | 9 | --> | ||
357 | 10 | |||
358 | 11 | <record model = "ir.ui.view" id = "view_webkit_company_form"> | ||
359 | 12 | <field name = "name">res.company.form</field> | ||
360 | 13 | <field name = "model">res.company</field> | ||
361 | 14 | <field name = "type">form</field> | ||
362 | 15 | <field name="inherit_id" ref="report_webkit.currency_del_img"/> | ||
363 | 16 | <field name = "arch" type = "xml"> | ||
364 | 17 | <data> | ||
365 | 18 | <field name = "lib_path" position = "after"> | ||
366 | 19 | <field name = "webkit_footer1"/> | ||
367 | 20 | <field name = "webkit_footer2"/> | ||
368 | 21 | <field name = "webkit_footer3"/> | ||
369 | 22 | </field> | ||
370 | 23 | </data> | ||
371 | 24 | </field> | ||
372 | 25 | </record> | ||
373 | 26 | </data> | ||
374 | 27 | </openerp> | ||
375 | 28 | |||
376 | 29 | 0 | ||
377 | === added directory 'TODO-7.0' | |||
378 | === renamed directory 'account_account_rename' => 'TODO-7.0/account_account_rename' | |||
379 | === renamed directory 'account_multicompany_relation' => 'TODO-7.0/account_multicompany_relation' | |||
380 | === renamed directory 'account_parser_type' => 'TODO-7.0/account_parser_type' | |||
381 | === renamed directory 'account_template_chart_name' => 'TODO-7.0/account_template_chart_name' | |||
382 | === renamed directory 'account_webkit_report_library' => 'TODO-7.0/account_webkit_report_library' | |||
383 | === renamed directory 'base_partner_code' => 'TODO-7.0/base_partner_code' | |||
384 | === renamed directory 'base_partner_merge_ccorp' => 'TODO-7.0/base_partner_merge_ccorp' | |||
385 | === renamed directory 'base_partner_search_extended' => 'TODO-7.0/base_partner_search_extended' | |||
386 | === renamed directory 'base_partner_sequence_ccorp' => 'TODO-7.0/base_partner_sequence_ccorp' | |||
387 | === renamed directory 'base_toolbar_custom_actions' => 'TODO-7.0/base_toolbar_custom_actions' | |||
388 | === renamed directory 'bom_price_update' => 'TODO-7.0/bom_price_update' | |||
389 | === renamed directory 'generic_instance_merge' => 'TODO-7.0/generic_instance_merge' | |||
390 | === renamed directory 'hr_contract_name' => 'TODO-7.0/hr_contract_name' | |||
391 | === renamed directory 'hr_payroll_sort_employees' => 'TODO-7.0/hr_payroll_sort_employees' | |||
392 | === renamed directory 'magento_stadistic' => 'TODO-7.0/magento_stadistic' | |||
393 | === renamed directory 'modules_magento_7' => 'TODO-7.0/modules_magento_7' | |||
394 | === renamed directory 'mrp_production_sequence' => 'TODO-7.0/mrp_production_sequence' | |||
395 | === renamed directory 'product_cost_group' => 'TODO-7.0/product_cost_group' | |||
396 | === renamed directory 'product_search_improver' => 'TODO-7.0/product_search_improver' | |||
397 | === renamed directory 'purchase_order_archive' => 'TODO-7.0/purchase_order_archive' | |||
398 | === renamed directory 'purchase_order_sequence' => 'TODO-7.0/purchase_order_sequence' | |||
399 | === renamed directory 'purchase_order_supplier_domain' => 'TODO-7.0/purchase_order_supplier_domain' | |||
400 | === renamed directory 'rent' => 'TODO-7.0/rent' | |||
401 | === renamed directory 'sale_order_line_ccorp' => 'TODO-7.0/sale_order_line_ccorp' | |||
402 | === renamed directory 'sale_order_sequence' => 'TODO-7.0/sale_order_sequence' | |||
403 | === renamed directory 'sneldev_magento' => 'TODO-7.0/sneldev_magento' | |||
404 | === modified file 'TODO-7.0/sneldev_magento/wizard/export_tools.py' | |||
405 | --- sneldev_magento/wizard/export_tools.py 2012-09-10 15:35:49 +0000 | |||
406 | +++ TODO-7.0/sneldev_magento/wizard/export_tools.py 2013-11-06 21:08:00 +0000 | |||
407 | @@ -26,8 +26,6 @@ | |||
408 | 26 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 26 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
409 | 27 | # | 27 | # |
410 | 28 | ############################################################################## | 28 | ############################################################################## |
411 | 29 | |||
412 | 30 | import wizard | ||
413 | 31 | import pooler | 29 | import pooler |
414 | 32 | import threading | 30 | import threading |
415 | 33 | 31 | ||
416 | 34 | 32 | ||
417 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_export.py' | |||
418 | --- sneldev_magento/wizard/sneldev_magento_categories_export.py 2012-09-13 21:23:10 +0000 | |||
419 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_export.py 2013-11-06 21:08:00 +0000 | |||
420 | @@ -21,8 +21,6 @@ | |||
421 | 21 | 21 | ||
422 | 22 | 22 | ||
423 | 23 | import pooler | 23 | import pooler |
424 | 24 | import wizard | ||
425 | 25 | import pooler | ||
426 | 26 | import os | 24 | import os |
427 | 27 | 25 | ||
428 | 28 | from export_tools import * | 26 | from export_tools import * |
429 | 29 | 27 | ||
430 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_import.py' | |||
431 | --- sneldev_magento/wizard/sneldev_magento_categories_import.py 2012-09-10 15:35:49 +0000 | |||
432 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_import.py 2013-11-06 21:08:00 +0000 | |||
433 | @@ -19,9 +19,6 @@ | |||
434 | 19 | # | 19 | # |
435 | 20 | ############################################################################## | 20 | ############################################################################## |
436 | 21 | 21 | ||
437 | 22 | |||
438 | 23 | import pooler | ||
439 | 24 | import wizard | ||
440 | 25 | import pooler | 22 | import pooler |
441 | 26 | import os | 23 | import os |
442 | 27 | 24 | ||
443 | @@ -46,4 +43,4 @@ | |||
444 | 46 | 43 | ||
445 | 47 | wiz_sneldev_categories_import() | 44 | wiz_sneldev_categories_import() |
446 | 48 | 45 | ||
447 | 49 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
448 | 50 | \ No newline at end of file | 46 | \ No newline at end of file |
449 | 47 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
450 | 51 | 48 | ||
451 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_customers_import.py' | |||
452 | --- sneldev_magento/wizard/sneldev_magento_customers_import.py 2012-10-03 21:45:53 +0000 | |||
453 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_customers_import.py 2013-11-06 21:08:00 +0000 | |||
454 | @@ -20,8 +20,6 @@ | |||
455 | 20 | ############################################################################## | 20 | ############################################################################## |
456 | 21 | 21 | ||
457 | 22 | import pooler | 22 | import pooler |
458 | 23 | import wizard | ||
459 | 24 | import pooler | ||
460 | 25 | import os | 23 | import os |
461 | 26 | 24 | ||
462 | 27 | from export_tools import * | 25 | from export_tools import * |
463 | 28 | 26 | ||
464 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_orders_import.py' | |||
465 | --- sneldev_magento/wizard/sneldev_magento_orders_import.py 2012-10-03 21:45:53 +0000 | |||
466 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_orders_import.py 2013-11-06 21:08:00 +0000 | |||
467 | @@ -21,8 +21,6 @@ | |||
468 | 21 | 21 | ||
469 | 22 | 22 | ||
470 | 23 | import pooler | 23 | import pooler |
471 | 24 | import wizard | ||
472 | 25 | import pooler | ||
473 | 26 | import os | 24 | import os |
474 | 27 | 25 | ||
475 | 28 | from export_tools import * | 26 | from export_tools import * |
476 | @@ -54,4 +52,4 @@ | |||
477 | 54 | 52 | ||
478 | 55 | wiz_sneldev_orders_import() | 53 | wiz_sneldev_orders_import() |
479 | 56 | 54 | ||
480 | 57 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
481 | 58 | \ No newline at end of file | 55 | \ No newline at end of file |
482 | 56 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
483 | 59 | 57 | ||
484 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_export.py' | |||
485 | --- sneldev_magento/wizard/sneldev_magento_products_export.py 2012-09-17 16:07:49 +0000 | |||
486 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_export.py 2013-11-06 21:08:00 +0000 | |||
487 | @@ -21,8 +21,6 @@ | |||
488 | 21 | 21 | ||
489 | 22 | 22 | ||
490 | 23 | import pooler | 23 | import pooler |
491 | 24 | import wizard | ||
492 | 25 | import pooler | ||
493 | 26 | import os | 24 | import os |
494 | 27 | 25 | ||
495 | 28 | from export_tools import * | 26 | from export_tools import * |
496 | 29 | 27 | ||
497 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_import.py' | |||
498 | --- sneldev_magento/wizard/sneldev_magento_products_import.py 2012-10-16 22:33:14 +0000 | |||
499 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_import.py 2013-11-06 21:08:00 +0000 | |||
500 | @@ -19,9 +19,6 @@ | |||
501 | 19 | # | 19 | # |
502 | 20 | ############################################################################## | 20 | ############################################################################## |
503 | 21 | 21 | ||
504 | 22 | |||
505 | 23 | import pooler | ||
506 | 24 | import wizard | ||
507 | 25 | import pooler | 22 | import pooler |
508 | 26 | import os | 23 | import os |
509 | 27 | 24 | ||
510 | 28 | 25 | ||
511 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_export.py' | |||
512 | --- sneldev_magento/wizard/sneldev_magento_stock_export.py 2012-09-11 15:05:32 +0000 | |||
513 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_export.py 2013-11-06 21:08:00 +0000 | |||
514 | @@ -19,9 +19,6 @@ | |||
515 | 19 | # | 19 | # |
516 | 20 | ############################################################################## | 20 | ############################################################################## |
517 | 21 | 21 | ||
518 | 22 | |||
519 | 23 | import pooler | ||
520 | 24 | import wizard | ||
521 | 25 | import pooler | 22 | import pooler |
522 | 26 | import os | 23 | import os |
523 | 27 | 24 | ||
524 | @@ -47,4 +44,4 @@ | |||
525 | 47 | 44 | ||
526 | 48 | wiz_sneldev_stock_export() | 45 | wiz_sneldev_stock_export() |
527 | 49 | 46 | ||
528 | 50 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
529 | 51 | \ No newline at end of file | 47 | \ No newline at end of file |
530 | 48 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
531 | 52 | 49 | ||
532 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_init.py' | |||
533 | --- sneldev_magento/wizard/sneldev_magento_stock_init.py 2012-09-10 15:35:49 +0000 | |||
534 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_init.py 2013-11-06 21:08:00 +0000 | |||
535 | @@ -21,8 +21,6 @@ | |||
536 | 21 | 21 | ||
537 | 22 | 22 | ||
538 | 23 | import pooler | 23 | import pooler |
539 | 24 | import wizard | ||
540 | 25 | import pooler | ||
541 | 26 | import os | 24 | import os |
542 | 27 | 25 | ||
543 | 28 | from export_tools import * | 26 | from export_tools import * |
544 | 29 | 27 | ||
545 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_start.py' | |||
546 | --- sneldev_magento/wizard/sneldev_magento_sync_start.py 2012-09-10 15:35:49 +0000 | |||
547 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_start.py 2013-11-06 21:08:00 +0000 | |||
548 | @@ -21,8 +21,6 @@ | |||
549 | 21 | 21 | ||
550 | 22 | 22 | ||
551 | 23 | import pooler | 23 | import pooler |
552 | 24 | import wizard | ||
553 | 25 | import pooler | ||
554 | 26 | import os | 24 | import os |
555 | 27 | 25 | ||
556 | 28 | from export_tools import * | 26 | from export_tools import * |
557 | @@ -44,4 +42,4 @@ | |||
558 | 44 | 42 | ||
559 | 45 | wiz_sneldev_sync_start() | 43 | wiz_sneldev_sync_start() |
560 | 46 | 44 | ||
561 | 47 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
562 | 48 | \ No newline at end of file | 45 | \ No newline at end of file |
563 | 46 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
564 | 49 | 47 | ||
565 | === modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_stop.py' | |||
566 | --- sneldev_magento/wizard/sneldev_magento_sync_stop.py 2012-09-10 15:35:49 +0000 | |||
567 | +++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_stop.py 2013-11-06 21:08:00 +0000 | |||
568 | @@ -21,8 +21,6 @@ | |||
569 | 21 | 21 | ||
570 | 22 | 22 | ||
571 | 23 | import pooler | 23 | import pooler |
572 | 24 | import wizard | ||
573 | 25 | import pooler | ||
574 | 26 | import os | 24 | import os |
575 | 27 | 25 | ||
576 | 28 | from export_tools import * | 26 | from export_tools import * |
577 | @@ -44,4 +42,4 @@ | |||
578 | 44 | 42 | ||
579 | 45 | wiz_sneldev_sync_stop() | 43 | wiz_sneldev_sync_stop() |
580 | 46 | 44 | ||
581 | 47 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
582 | 48 | \ No newline at end of file | 45 | \ No newline at end of file |
583 | 46 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
584 | 49 | 47 | ||
585 | === renamed directory 'stock_extended' => 'TODO-7.0/stock_extended' | |||
586 | === added directory 'account_account_extended_ccorp' | |||
587 | === added file 'account_account_extended_ccorp/__init__.py' | |||
588 | --- account_account_extended_ccorp/__init__.py 1970-01-01 00:00:00 +0000 | |||
589 | +++ account_account_extended_ccorp/__init__.py 2013-11-06 21:08:00 +0000 | |||
590 | @@ -0,0 +1,26 @@ | |||
591 | 1 | # -*- coding: utf-8 -*- | ||
592 | 2 | ############################################################################## | ||
593 | 3 | # | ||
594 | 4 | # OpenERP, Open Source Management Solution | ||
595 | 5 | # Addons modules by CLEARCORP S.A. | ||
596 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
597 | 7 | # | ||
598 | 8 | # This program is free software: you can redistribute it and/or modify | ||
599 | 9 | # it under the terms of the GNU Affero General Public License as | ||
600 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
601 | 11 | # License, or (at your option) any later version. | ||
602 | 12 | # | ||
603 | 13 | # This program is distributed in the hope that it will be useful, | ||
604 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
605 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
606 | 16 | # GNU Affero General Public License for more details. | ||
607 | 17 | # | ||
608 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
609 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
610 | 20 | # | ||
611 | 21 | ############################################################################## | ||
612 | 22 | |||
613 | 23 | import account_account_extended_ccorp | ||
614 | 24 | import account_move_line_extended | ||
615 | 25 | |||
616 | 26 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
617 | 0 | 27 | ||
618 | === added file 'account_account_extended_ccorp/__openerp__.py' | |||
619 | --- account_account_extended_ccorp/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
620 | +++ account_account_extended_ccorp/__openerp__.py 2013-11-06 21:08:00 +0000 | |||
621 | @@ -0,0 +1,47 @@ | |||
622 | 1 | # -*- coding: utf-8 -*- | ||
623 | 2 | ############################################################################## | ||
624 | 3 | # | ||
625 | 4 | # OpenERP, Open Source Management Solution | ||
626 | 5 | # Addons modules by CLEARCORP S.A. | ||
627 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
628 | 7 | # | ||
629 | 8 | # This program is free software: you can redistribute it and/or modify | ||
630 | 9 | # it under the terms of the GNU Affero General Public License as | ||
631 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
632 | 11 | # License, or (at your option) any later version. | ||
633 | 12 | # | ||
634 | 13 | # This program is distributed in the hope that it will be useful, | ||
635 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
636 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
637 | 16 | # GNU Affero General Public License for more details. | ||
638 | 17 | # | ||
639 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
640 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
641 | 20 | # | ||
642 | 21 | ############################################################################## | ||
643 | 22 | |||
644 | 23 | { | ||
645 | 24 | 'name': 'Account Account extended ccorp', | ||
646 | 25 | 'version': '1.0', | ||
647 | 26 | 'author' : 'CLEARCORP S.A.', | ||
648 | 27 | 'complexity': 'normal', | ||
649 | 28 | 'website': 'http://clearcorp.co.cr', | ||
650 | 29 | 'category': 'Accounting & Finance', | ||
651 | 30 | 'description': """ | ||
652 | 31 | Extends account account and account move line | ||
653 | 32 | =============================================== | ||
654 | 33 | Adds a boolean attribute to diferentiate accounts that move cash. | ||
655 | 34 | Adds filters to account move line: Currency and account type | ||
656 | 35 | """, | ||
657 | 36 | 'depends': ['account'], | ||
658 | 37 | 'init_xml': [], | ||
659 | 38 | 'demo_xml': [], | ||
660 | 39 | 'data': [ | ||
661 | 40 | 'account_account_extended_ccorp_view.xml', | ||
662 | 41 | 'account_move_line_extended.xml'], | ||
663 | 42 | 'license': 'AGPL-3', | ||
664 | 43 | 'installable': True, | ||
665 | 44 | 'active': False, | ||
666 | 45 | } | ||
667 | 46 | |||
668 | 47 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
669 | 0 | 48 | ||
670 | === added file 'account_account_extended_ccorp/account_account_extended_ccorp.py' | |||
671 | --- account_account_extended_ccorp/account_account_extended_ccorp.py 1970-01-01 00:00:00 +0000 | |||
672 | +++ account_account_extended_ccorp/account_account_extended_ccorp.py 2013-11-06 21:08:00 +0000 | |||
673 | @@ -0,0 +1,31 @@ | |||
674 | 1 | # -*- coding: utf-8 -*- | ||
675 | 2 | ############################################################################## | ||
676 | 3 | # | ||
677 | 4 | # OpenERP, Open Source Management Solution | ||
678 | 5 | # Addons modules by CLEARCORP S.A. | ||
679 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
680 | 7 | # | ||
681 | 8 | # This program is free software: you can redistribute it and/or modify | ||
682 | 9 | # it under the terms of the GNU Affero General Public License as | ||
683 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
684 | 11 | # License, or (at your option) any later version. | ||
685 | 12 | # | ||
686 | 13 | # This program is distributed in the hope that it will be useful, | ||
687 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
688 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
689 | 16 | # GNU Affero General Public License for more details. | ||
690 | 17 | # | ||
691 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
692 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
693 | 20 | # | ||
694 | 21 | ############################################################################## | ||
695 | 22 | |||
696 | 23 | from osv import osv,fields | ||
697 | 24 | |||
698 | 25 | class AccountAccount(osv.osv): | ||
699 | 26 | |||
700 | 27 | _inherit = 'account.account' | ||
701 | 28 | _columns = { | ||
702 | 29 | 'moves_cash': fields.boolean('Moves cash'), | ||
703 | 30 | } | ||
704 | 31 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
705 | 0 | 32 | ||
706 | === added file 'account_account_extended_ccorp/account_account_extended_ccorp_view.xml' | |||
707 | --- account_account_extended_ccorp/account_account_extended_ccorp_view.xml 1970-01-01 00:00:00 +0000 | |||
708 | +++ account_account_extended_ccorp/account_account_extended_ccorp_view.xml 2013-11-06 21:08:00 +0000 | |||
709 | @@ -0,0 +1,20 @@ | |||
710 | 1 | <openerp> | ||
711 | 2 | <data> | ||
712 | 3 | |||
713 | 4 | <!-- | ||
714 | 5 | Account | ||
715 | 6 | --> | ||
716 | 7 | <record id="view_account_ccorp_form" model="ir.ui.view"> | ||
717 | 8 | <field name="name">view.account.ccorp.form</field> | ||
718 | 9 | <field name="model">account.account</field> | ||
719 | 10 | <field name="inherit_id" ref="account.view_account_form"/> | ||
720 | 11 | <field name="arch" type="xml"> | ||
721 | 12 | <data> | ||
722 | 13 | <field name="reconcile" position="after"> | ||
723 | 14 | <field name="moves_cash"/> | ||
724 | 15 | </field> | ||
725 | 16 | </data> | ||
726 | 17 | </field> | ||
727 | 18 | </record> | ||
728 | 19 | </data> | ||
729 | 20 | </openerp> | ||
730 | 0 | 21 | ||
731 | === added file 'account_account_extended_ccorp/account_move_line_extended.py' | |||
732 | --- account_account_extended_ccorp/account_move_line_extended.py 1970-01-01 00:00:00 +0000 | |||
733 | +++ account_account_extended_ccorp/account_move_line_extended.py 2013-11-06 21:08:00 +0000 | |||
734 | @@ -0,0 +1,55 @@ | |||
735 | 1 | # -*- coding: utf-8 -*- | ||
736 | 2 | ############################################################################## | ||
737 | 3 | # | ||
738 | 4 | # OpenERP, Open Source Management Solution | ||
739 | 5 | # Addons modules by CLEARCORP S.A. | ||
740 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
741 | 7 | # | ||
742 | 8 | # This program is free software: you can redistribute it and/or modify | ||
743 | 9 | # it under the terms of the GNU Affero General Public License as | ||
744 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
745 | 11 | # License, or (at your option) any later version. | ||
746 | 12 | # | ||
747 | 13 | # This program is distributed in the hope that it will be useful, | ||
748 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
749 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
750 | 16 | # GNU Affero General Public License for more details. | ||
751 | 17 | # | ||
752 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
753 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
754 | 20 | # | ||
755 | 21 | ############################################################################## | ||
756 | 22 | |||
757 | 23 | from osv import osv,fields, orm | ||
758 | 24 | |||
759 | 25 | class accountMovelineInherit(orm.Model): | ||
760 | 26 | |||
761 | 27 | _inherit = "account.move.line" | ||
762 | 28 | |||
763 | 29 | #===== Add currency and account_type with two function fields | ||
764 | 30 | |||
765 | 31 | #===== Currency -> get currency_id from company_id or account_id | ||
766 | 32 | def _currency_filter(self, cr, uid, ids, field_name, arg, context=None): | ||
767 | 33 | result = {} | ||
768 | 34 | for rec in self.browse(cr, uid, ids, context=context): | ||
769 | 35 | if rec.account_id.currency_id: | ||
770 | 36 | result[rec.id] = (rec.account_id.currency_id.id,rec.account_id.currency_id.name) | ||
771 | 37 | else: | ||
772 | 38 | result[rec.id] = (rec.company_id.currency_id.id,rec.company_id.currency_id.name) | ||
773 | 39 | return result | ||
774 | 40 | |||
775 | 41 | #====== Account Type -> get user_type from account_id | ||
776 | 42 | def _account_type_filter(self, cr, uid, ids, field_name, arg, context=None): | ||
777 | 43 | result = {} | ||
778 | 44 | for rec in self.browse(cr, uid, ids, context=context): | ||
779 | 45 | result[rec.id] = (rec.account_id.user_type.id, rec.account_id.user_type.name) | ||
780 | 46 | return result | ||
781 | 47 | |||
782 | 48 | _columns = { | ||
783 | 49 | 'currency_filter':fields.function(_currency_filter, string='Currency', type="many2one", relation='res.currency',store=True), | ||
784 | 50 | 'account_type':fields.function(_account_type_filter, string='Account Type', type='many2one', relation='account.account.type',store=True) | ||
785 | 51 | } | ||
786 | 52 | |||
787 | 53 | |||
788 | 54 | |||
789 | 55 | |||
790 | 0 | \ No newline at end of file | 56 | \ No newline at end of file |
791 | 1 | 57 | ||
792 | === added file 'account_account_extended_ccorp/account_move_line_extended.xml' | |||
793 | --- account_account_extended_ccorp/account_move_line_extended.xml 1970-01-01 00:00:00 +0000 | |||
794 | +++ account_account_extended_ccorp/account_move_line_extended.xml 2013-11-06 21:08:00 +0000 | |||
795 | @@ -0,0 +1,35 @@ | |||
796 | 1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
797 | 2 | <openerp> | ||
798 | 3 | <data> | ||
799 | 4 | <record id="view_move_line_filter_inherit" model="ir.ui.view"> | ||
800 | 5 | <field name="name">view.move.line.filter.inherit</field> | ||
801 | 6 | <field name="model">account.move.line</field> | ||
802 | 7 | <field name="inherit_id" ref="account.view_account_move_line_filter"/> | ||
803 | 8 | <field name="arch" type="xml"> | ||
804 | 9 | <data> | ||
805 | 10 | <field name="name" position="after"> | ||
806 | 11 | <field name="account_type" context="{'account_type':self}" widget="selection"/> | ||
807 | 12 | </field> | ||
808 | 13 | <group string="Group By..." position="inside"> | ||
809 | 14 | <filter string="Currency" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'currency_filter'}"/> | ||
810 | 15 | <filter string="Account Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'account_type'}"/> | ||
811 | 16 | </group> | ||
812 | 17 | </data> | ||
813 | 18 | </field> | ||
814 | 19 | </record> | ||
815 | 20 | |||
816 | 21 | <record id="view_move_line_tree_inherit" model="ir.ui.view"> | ||
817 | 22 | <field name="name">view.move.line.tree.inherit</field> | ||
818 | 23 | <field name="model">account.move.line</field> | ||
819 | 24 | <field name="inherit_id" ref="account.view_move_line_tree"/> | ||
820 | 25 | <field name="arch" type="xml"> | ||
821 | 26 | <data> | ||
822 | 27 | <field name="reconcile" position="after"> | ||
823 | 28 | <field name="currency_filter"/> | ||
824 | 29 | <field name="account_type"/> | ||
825 | 30 | </field> | ||
826 | 31 | </data> | ||
827 | 32 | </field> | ||
828 | 33 | </record> | ||
829 | 34 | </data> | ||
830 | 35 | </openerp> | ||
831 | 0 | 36 | ||
832 | === added directory 'account_account_extended_ccorp/i18n' | |||
833 | === added file 'account_account_extended_ccorp/i18n/en_US.po' | |||
834 | --- account_account_extended_ccorp/i18n/en_US.po 1970-01-01 00:00:00 +0000 | |||
835 | +++ account_account_extended_ccorp/i18n/en_US.po 2013-11-06 21:08:00 +0000 | |||
836 | @@ -0,0 +1,27 @@ | |||
837 | 1 | # Translation of OpenERP Server. | ||
838 | 2 | # This file contains the translation of the following modules: | ||
839 | 3 | # * account_account_extended_ccorp | ||
840 | 4 | # | ||
841 | 5 | msgid "" | ||
842 | 6 | msgstr "" | ||
843 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
844 | 8 | "Report-Msgid-Bugs-To: \n" | ||
845 | 9 | "POT-Creation-Date: 2013-08-16 20:51+0000\n" | ||
846 | 10 | "PO-Revision-Date: 2013-08-16 20:51+0000\n" | ||
847 | 11 | "Last-Translator: <>\n" | ||
848 | 12 | "Language-Team: \n" | ||
849 | 13 | "MIME-Version: 1.0\n" | ||
850 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
851 | 15 | "Content-Transfer-Encoding: \n" | ||
852 | 16 | "Plural-Forms: \n" | ||
853 | 17 | |||
854 | 18 | #. module: account_account_extended_ccorp | ||
855 | 19 | #: field:account.account,moves_cash:0 | ||
856 | 20 | msgid "Moves cash" | ||
857 | 21 | msgstr "Moves cash" | ||
858 | 22 | |||
859 | 23 | #. module: account_account_extended_ccorp | ||
860 | 24 | #: model:ir.model,name:account_account_extended_ccorp.model_account_account | ||
861 | 25 | msgid "Account" | ||
862 | 26 | msgstr "Account" | ||
863 | 27 | |||
864 | 0 | 28 | ||
865 | === added file 'account_account_extended_ccorp/i18n/es_CR.po' | |||
866 | --- account_account_extended_ccorp/i18n/es_CR.po 1970-01-01 00:00:00 +0000 | |||
867 | +++ account_account_extended_ccorp/i18n/es_CR.po 2013-11-06 21:08:00 +0000 | |||
868 | @@ -0,0 +1,49 @@ | |||
869 | 1 | # Translation of OpenERP Server. | ||
870 | 2 | # This file contains the translation of the following modules: | ||
871 | 3 | # * account_account_extended_ccorp | ||
872 | 4 | # | ||
873 | 5 | msgid "" | ||
874 | 6 | msgstr "" | ||
875 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
876 | 8 | "Report-Msgid-Bugs-To: \n" | ||
877 | 9 | "POT-Creation-Date: 2013-09-20 22:09+0000\n" | ||
878 | 10 | "PO-Revision-Date: 2013-09-20 22:09+0000\n" | ||
879 | 11 | "Last-Translator: <>\n" | ||
880 | 12 | "Language-Team: \n" | ||
881 | 13 | "MIME-Version: 1.0\n" | ||
882 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
883 | 15 | "Content-Transfer-Encoding: \n" | ||
884 | 16 | "Plural-Forms: \n" | ||
885 | 17 | |||
886 | 18 | #. module: account_account_extended_ccorp | ||
887 | 19 | #: field:account.account,moves_cash:0 | ||
888 | 20 | msgid "Moves cash" | ||
889 | 21 | msgstr "Mueve efectivo" | ||
890 | 22 | |||
891 | 23 | #. module: account_account_extended_ccorp | ||
892 | 24 | #: model:ir.model,name:account_account_extended_ccorp.model_account_account | ||
893 | 25 | msgid "Account" | ||
894 | 26 | msgstr "Cuenta" | ||
895 | 27 | |||
896 | 28 | #. module: account_account_extended_ccorp | ||
897 | 29 | #: view:account.move.line:0 | ||
898 | 30 | msgid "Group By..." | ||
899 | 31 | msgstr "Agrupar por..." | ||
900 | 32 | |||
901 | 33 | #. module: account_account_extended_ccorp | ||
902 | 34 | #: view:account.move.line:0 | ||
903 | 35 | #: field:account.move.line,currency_filter:0 | ||
904 | 36 | msgid "Currency" | ||
905 | 37 | msgstr "Divisa" | ||
906 | 38 | |||
907 | 39 | #. module: account_account_extended_ccorp | ||
908 | 40 | #: model:ir.model,name:account_account_extended_ccorp.model_account_move_line | ||
909 | 41 | msgid "Journal Items" | ||
910 | 42 | msgstr "Elementos diario" | ||
911 | 43 | |||
912 | 44 | #. module: account_account_extended_ccorp | ||
913 | 45 | #: view:account.move.line:0 | ||
914 | 46 | #: field:account.move.line,account_type:0 | ||
915 | 47 | msgid "Account Type" | ||
916 | 48 | msgstr "Tipo de Cuenta" | ||
917 | 49 | |||
918 | 0 | 50 | ||
919 | === added directory 'account_asset_extended_ccorp' | |||
920 | === added file 'account_asset_extended_ccorp/__init__.py' | |||
921 | --- account_asset_extended_ccorp/__init__.py 1970-01-01 00:00:00 +0000 | |||
922 | +++ account_asset_extended_ccorp/__init__.py 2013-11-06 21:08:00 +0000 | |||
923 | @@ -0,0 +1,25 @@ | |||
924 | 1 | # -*- coding: utf-8 -*- | ||
925 | 2 | ############################################################################## | ||
926 | 3 | # | ||
927 | 4 | # OpenERP, Open Source Management Solution | ||
928 | 5 | # Addons modules by CLEARCORP S.A. | ||
929 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
930 | 7 | # | ||
931 | 8 | # This program is free software: you can redistribute it and/or modify | ||
932 | 9 | # it under the terms of the GNU Affero General Public License as | ||
933 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
934 | 11 | # License, or (at your option) any later version. | ||
935 | 12 | # | ||
936 | 13 | # This program is distributed in the hope that it will be useful, | ||
937 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
938 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
939 | 16 | # GNU Affero General Public License for more details. | ||
940 | 17 | # | ||
941 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
942 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
943 | 20 | # | ||
944 | 21 | ############################################################################## | ||
945 | 22 | |||
946 | 23 | import account_asset_extended_ccorp | ||
947 | 24 | |||
948 | 25 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
949 | 0 | 26 | ||
950 | === added file 'account_asset_extended_ccorp/__openerp__.py' | |||
951 | --- account_asset_extended_ccorp/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
952 | +++ account_asset_extended_ccorp/__openerp__.py 2013-11-06 21:08:00 +0000 | |||
953 | @@ -0,0 +1,46 @@ | |||
954 | 1 | # -*- coding: utf-8 -*- | ||
955 | 2 | ############################################################################## | ||
956 | 3 | # | ||
957 | 4 | # OpenERP, Open Source Management Solution | ||
958 | 5 | # Addons modules by CLEARCORP S.A. | ||
959 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
960 | 7 | # | ||
961 | 8 | # This program is free software: you can redistribute it and/or modify | ||
962 | 9 | # it under the terms of the GNU Affero General Public License as | ||
963 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
964 | 11 | # License, or (at your option) any later version. | ||
965 | 12 | # | ||
966 | 13 | # This program is distributed in the hope that it will be useful, | ||
967 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
968 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
969 | 16 | # GNU Affero General Public License for more details. | ||
970 | 17 | # | ||
971 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
972 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
973 | 20 | # | ||
974 | 21 | ############################################################################## | ||
975 | 22 | |||
976 | 23 | { | ||
977 | 24 | 'name': 'Account Asset extended ccorp', | ||
978 | 25 | 'version': '1.0', | ||
979 | 26 | 'author' : 'CLEARCORP S.A.', | ||
980 | 27 | 'complexity': 'normal', | ||
981 | 28 | 'website': 'http://clearcorp.co.cr', | ||
982 | 29 | 'category': 'Accounting & Finance', | ||
983 | 30 | 'description': """ | ||
984 | 31 | Extend account asset | ||
985 | 32 | ========================================== | ||
986 | 33 | Create relation asset with invoice line. | ||
987 | 34 | Add model, asset number and responsible in assets. | ||
988 | 35 | Modify in the creation of several assets on an invoice line. | ||
989 | 36 | """, | ||
990 | 37 | 'depends': ['account_asset'], | ||
991 | 38 | 'init_xml': [], | ||
992 | 39 | 'demo_xml': [], | ||
993 | 40 | 'data': ['account_asset_extended_ccorp_view.xml'], | ||
994 | 41 | 'license': 'AGPL-3', | ||
995 | 42 | 'installable': True, | ||
996 | 43 | 'active': False, | ||
997 | 44 | } | ||
998 | 45 | |||
999 | 46 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
1000 | 0 | 47 | ||
1001 | === added file 'account_asset_extended_ccorp/account_asset_extended_ccorp.py' | |||
1002 | --- account_asset_extended_ccorp/account_asset_extended_ccorp.py 1970-01-01 00:00:00 +0000 | |||
1003 | +++ account_asset_extended_ccorp/account_asset_extended_ccorp.py 2013-11-06 21:08:00 +0000 | |||
1004 | @@ -0,0 +1,77 @@ | |||
1005 | 1 | # -*- coding: utf-8 -*- | ||
1006 | 2 | ############################################################################## | ||
1007 | 3 | # | ||
1008 | 4 | # OpenERP, Open Source Management Solution | ||
1009 | 5 | # Addons modules by CLEARCORP S.A. | ||
1010 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
1011 | 7 | # | ||
1012 | 8 | # This program is free software: you can redistribute it and/or modify | ||
1013 | 9 | # it under the terms of the GNU Affero General Public License as | ||
1014 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
1015 | 11 | # License, or (at your option) any later version. | ||
1016 | 12 | # | ||
1017 | 13 | # This program is distributed in the hope that it will be useful, | ||
1018 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1019 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1020 | 16 | # GNU Affero General Public License for more details. | ||
1021 | 17 | # | ||
1022 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
1023 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1024 | 20 | # | ||
1025 | 21 | ############################################################################## | ||
1026 | 22 | |||
1027 | 23 | from osv import osv,fields | ||
1028 | 24 | |||
1029 | 25 | class AccountAssetAsset(osv.osv): | ||
1030 | 26 | |||
1031 | 27 | _inherit = 'account.asset.asset' | ||
1032 | 28 | _columns = { | ||
1033 | 29 | 'account_invoice_line_id': fields.many2one('account.invoice.line', 'Invoice Line'), | ||
1034 | 30 | 'account_invoice_id': fields.related('account_invoice_line_id', 'invoice_id', type="many2one", relation="account.invoice", string="Invoice", store=False), | ||
1035 | 31 | 'responsible' : fields.many2one('res.partner', 'Responsible'), | ||
1036 | 32 | 'model': fields.char('Model', size=64), | ||
1037 | 33 | 'asset_number': fields.char('Asset Number', size=64), | ||
1038 | 34 | } | ||
1039 | 35 | |||
1040 | 36 | class AccountInvoiceLine(osv.osv): | ||
1041 | 37 | |||
1042 | 38 | _inherit = 'account.invoice.line' | ||
1043 | 39 | _columns = { | ||
1044 | 40 | 'asset_ids': fields.one2many('account.asset.asset', 'account_invoice_line_id', 'Asset', readonly=True, states={'draft':[('readonly',False)]}), | ||
1045 | 41 | } | ||
1046 | 42 | def asset_create(self, cr, uid, lines, context=None): | ||
1047 | 43 | context = context or {} | ||
1048 | 44 | asset_obj = self.pool.get('account.asset.asset') | ||
1049 | 45 | for line in lines: | ||
1050 | 46 | if line.asset_category_id: | ||
1051 | 47 | quantity = line.quantity | ||
1052 | 48 | cont = 1 | ||
1053 | 49 | while cont <= quantity: | ||
1054 | 50 | vals = { | ||
1055 | 51 | 'name': line.name, | ||
1056 | 52 | 'code': line.invoice_id.number or False, | ||
1057 | 53 | 'category_id': line.asset_category_id.id, | ||
1058 | 54 | 'purchase_value': line.price_subtotal/quantity, | ||
1059 | 55 | 'period_id': line.invoice_id.period_id.id, | ||
1060 | 56 | 'partner_id': line.invoice_id.partner_id.id, | ||
1061 | 57 | 'company_id': line.invoice_id.company_id.id, | ||
1062 | 58 | 'currency_id': line.invoice_id.currency_id.id, | ||
1063 | 59 | 'purchase_date' : line.invoice_id.date_invoice, | ||
1064 | 60 | } | ||
1065 | 61 | changed_vals = asset_obj.onchange_category_id(cr, uid, [], vals['category_id'], context=context) | ||
1066 | 62 | vals.update(changed_vals['value']) | ||
1067 | 63 | vals.update({'account_invoice_line_id': line.id}) | ||
1068 | 64 | asset_id = asset_obj.create(cr, uid, vals, context=context) | ||
1069 | 65 | if line.asset_category_id.open_asset: | ||
1070 | 66 | asset_obj.validate(cr, uid, [asset_id], context=context) | ||
1071 | 67 | cont+=1 | ||
1072 | 68 | return True | ||
1073 | 69 | |||
1074 | 70 | def copy_data(self, cr, uid, id, default=None, context=None): | ||
1075 | 71 | res = super(AccountInvoiceLine, self).copy_data(cr, uid, id, default=default, context=context) | ||
1076 | 72 | res.update({ | ||
1077 | 73 | 'asset_ids': [], | ||
1078 | 74 | }) | ||
1079 | 75 | return res | ||
1080 | 76 | |||
1081 | 77 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
1082 | 0 | 78 | ||
1083 | === added file 'account_asset_extended_ccorp/account_asset_extended_ccorp_view.xml' | |||
1084 | --- account_asset_extended_ccorp/account_asset_extended_ccorp_view.xml 1970-01-01 00:00:00 +0000 | |||
1085 | +++ account_asset_extended_ccorp/account_asset_extended_ccorp_view.xml 2013-11-06 21:08:00 +0000 | |||
1086 | @@ -0,0 +1,27 @@ | |||
1087 | 1 | <openerp> | ||
1088 | 2 | <data> | ||
1089 | 3 | |||
1090 | 4 | <!-- | ||
1091 | 5 | Asset | ||
1092 | 6 | --> | ||
1093 | 7 | <record id="view_account_asset_asset_ccorp_form" model="ir.ui.view"> | ||
1094 | 8 | <field name="name">view.account.asset.asset.ccorp.form</field> | ||
1095 | 9 | <field name="model">account.asset.asset</field> | ||
1096 | 10 | <field name="inherit_id" ref="account_asset.view_account_asset_asset_form"/> | ||
1097 | 11 | <field name="arch" type="xml"> | ||
1098 | 12 | <data> | ||
1099 | 13 | <xpath expr="/form/sheet/group/group/field[@name='parent_id']" position="after"> | ||
1100 | 14 | <field name="account_invoice_id" readonly="1"/> | ||
1101 | 15 | </xpath> | ||
1102 | 16 | <xpath expr="/form/sheet/group/group/field[@name='company_id']" position="after"> | ||
1103 | 17 | <field name="responsible"/> | ||
1104 | 18 | </xpath> | ||
1105 | 19 | <xpath expr="/form/sheet/notebook/page/group/group/field[@name='partner_id']" position="after"> | ||
1106 | 20 | <field name="model"/> | ||
1107 | 21 | <field name="asset_number"/> | ||
1108 | 22 | </xpath> | ||
1109 | 23 | </data> | ||
1110 | 24 | </field> | ||
1111 | 25 | </record> | ||
1112 | 26 | </data> | ||
1113 | 27 | </openerp> | ||
1114 | 0 | 28 | ||
1115 | === added directory 'account_asset_extended_ccorp/i18n' | |||
1116 | === added file 'account_asset_extended_ccorp/i18n/account_asset_extended.pot' | |||
1117 | --- account_asset_extended_ccorp/i18n/account_asset_extended.pot 1970-01-01 00:00:00 +0000 | |||
1118 | +++ account_asset_extended_ccorp/i18n/account_asset_extended.pot 2013-11-06 21:08:00 +0000 | |||
1119 | @@ -0,0 +1,49 @@ | |||
1120 | 1 | # Translation of OpenERP Server. | ||
1121 | 2 | # This file contains the translation of the following modules: | ||
1122 | 3 | # * account_asset_extended_ccorp | ||
1123 | 4 | # | ||
1124 | 5 | msgid "" | ||
1125 | 6 | msgstr "" | ||
1126 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
1127 | 8 | "Report-Msgid-Bugs-To: \n" | ||
1128 | 9 | "POT-Creation-Date: 2013-05-16 22:09+0000\n" | ||
1129 | 10 | "PO-Revision-Date: 2013-05-16 22:09+0000\n" | ||
1130 | 11 | "Last-Translator: <>\n" | ||
1131 | 12 | "Language-Team: \n" | ||
1132 | 13 | "MIME-Version: 1.0\n" | ||
1133 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
1134 | 15 | "Content-Transfer-Encoding: \n" | ||
1135 | 16 | "Plural-Forms: \n" | ||
1136 | 17 | |||
1137 | 18 | #. module: account_asset_extended_ccorp | ||
1138 | 19 | #: field:account.asset.asset,responsible:0 | ||
1139 | 20 | msgid "Responsible" | ||
1140 | 21 | msgstr "Responsible" | ||
1141 | 22 | |||
1142 | 23 | #. module: account_asset_extended_ccorp | ||
1143 | 24 | #: field:account.asset.asset,account_invoice_line_id:0 | ||
1144 | 25 | #: model:ir.model,name:account_asset_extended_ccorp.model_account_invoice_line | ||
1145 | 26 | msgid "Invoice Line" | ||
1146 | 27 | msgstr "Línea factura" | ||
1147 | 28 | |||
1148 | 29 | #. module: account_asset_extended_ccorp | ||
1149 | 30 | #: field:account.invoice.line,asset_ids:0 | ||
1150 | 31 | #: model:ir.model,name:account_asset_extended_ccorp.model_account_asset_asset | ||
1151 | 32 | msgid "Asset" | ||
1152 | 33 | msgstr "Activo" | ||
1153 | 34 | |||
1154 | 35 | #. module: account_asset_extended_ccorp | ||
1155 | 36 | #: field:account.asset.asset,account_invoice_id:0 | ||
1156 | 37 | msgid "Invoice" | ||
1157 | 38 | msgstr "Invoice" | ||
1158 | 39 | |||
1159 | 40 | #. module: account_asset_extended_ccorp | ||
1160 | 41 | #: field:account.asset.asset,asset_number:0 | ||
1161 | 42 | msgid "Asset Number" | ||
1162 | 43 | msgstr "Asset Number" | ||
1163 | 44 | |||
1164 | 45 | #. module: account_asset_extended_ccorp | ||
1165 | 46 | #: field:account.asset.asset,model:0 | ||
1166 | 47 | msgid "Model" | ||
1167 | 48 | msgstr "Model" | ||
1168 | 49 | |||
1169 | 0 | 50 | ||
1170 | === added symlink 'account_asset_extended_ccorp/i18n/es.po' | |||
1171 | === target is u'es_CR.po' | |||
1172 | === added file 'account_asset_extended_ccorp/i18n/es_CR.po' | |||
1173 | --- account_asset_extended_ccorp/i18n/es_CR.po 1970-01-01 00:00:00 +0000 | |||
1174 | +++ account_asset_extended_ccorp/i18n/es_CR.po 2013-11-06 21:08:00 +0000 | |||
1175 | @@ -0,0 +1,49 @@ | |||
1176 | 1 | # Translation of OpenERP Server. | ||
1177 | 2 | # This file contains the translation of the following modules: | ||
1178 | 3 | # * account_asset_extended_ccorp | ||
1179 | 4 | # | ||
1180 | 5 | msgid "" | ||
1181 | 6 | msgstr "" | ||
1182 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
1183 | 8 | "Report-Msgid-Bugs-To: \n" | ||
1184 | 9 | "POT-Creation-Date: 2013-05-16 22:09+0000\n" | ||
1185 | 10 | "PO-Revision-Date: 2013-05-16 22:09+0000\n" | ||
1186 | 11 | "Last-Translator: <>\n" | ||
1187 | 12 | "Language-Team: \n" | ||
1188 | 13 | "MIME-Version: 1.0\n" | ||
1189 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
1190 | 15 | "Content-Transfer-Encoding: \n" | ||
1191 | 16 | "Plural-Forms: \n" | ||
1192 | 17 | |||
1193 | 18 | #. module: account_asset_extended_ccorp | ||
1194 | 19 | #: field:account.asset.asset,responsible:0 | ||
1195 | 20 | msgid "Responsible" | ||
1196 | 21 | msgstr "Responsable" | ||
1197 | 22 | |||
1198 | 23 | #. module: account_asset_extended_ccorp | ||
1199 | 24 | #: field:account.asset.asset,account_invoice_line_id:0 | ||
1200 | 25 | #: model:ir.model,name:account_asset_extended_ccorp.model_account_invoice_line | ||
1201 | 26 | msgid "Invoice Line" | ||
1202 | 27 | msgstr "Línea factura" | ||
1203 | 28 | |||
1204 | 29 | #. module: account_asset_extended_ccorp | ||
1205 | 30 | #: field:account.invoice.line,asset_ids:0 | ||
1206 | 31 | #: model:ir.model,name:account_asset_extended_ccorp.model_account_asset_asset | ||
1207 | 32 | msgid "Asset" | ||
1208 | 33 | msgstr "Activo" | ||
1209 | 34 | |||
1210 | 35 | #. module: account_asset_extended_ccorp | ||
1211 | 36 | #: field:account.asset.asset,account_invoice_id:0 | ||
1212 | 37 | msgid "Invoice" | ||
1213 | 38 | msgstr "Factura" | ||
1214 | 39 | |||
1215 | 40 | #. module: account_asset_extended_ccorp | ||
1216 | 41 | #: field:account.asset.asset,asset_number:0 | ||
1217 | 42 | msgid "Asset Number" | ||
1218 | 43 | msgstr "Número de Activo" | ||
1219 | 44 | |||
1220 | 45 | #. module: account_asset_extended_ccorp | ||
1221 | 46 | #: field:account.asset.asset,model:0 | ||
1222 | 47 | msgid "Model" | ||
1223 | 48 | msgstr "Modelo" | ||
1224 | 49 | |||
1225 | 0 | 50 | ||
1226 | === added directory 'account_general_ledger_report' | |||
1227 | === renamed directory 'account_general_ledger_report' => 'account_general_ledger_report.moved' | |||
1228 | === added file 'account_general_ledger_report/__init__.py' | |||
1229 | --- account_general_ledger_report/__init__.py 1970-01-01 00:00:00 +0000 | |||
1230 | +++ account_general_ledger_report/__init__.py 2013-11-06 21:08:00 +0000 | |||
1231 | @@ -0,0 +1,24 @@ | |||
1232 | 1 | # -*- coding: utf-8 -*- | ||
1233 | 2 | ############################################################################## | ||
1234 | 3 | # | ||
1235 | 4 | # OpenERP, Open Source Management Solution | ||
1236 | 5 | # Addons modules by CLEARCORP S.A. | ||
1237 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
1238 | 7 | # | ||
1239 | 8 | # This program is free software: you can redistribute it and/or modify | ||
1240 | 9 | # it under the terms of the GNU Affero General Public License as | ||
1241 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
1242 | 11 | # License, or (at your option) any later version. | ||
1243 | 12 | # | ||
1244 | 13 | # This program is distributed in the hope that it will be useful, | ||
1245 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1246 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1247 | 16 | # GNU Affero General Public License for more details. | ||
1248 | 17 | # | ||
1249 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
1250 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1251 | 20 | # | ||
1252 | 21 | ############################################################################## | ||
1253 | 22 | |||
1254 | 23 | import report | ||
1255 | 24 | import wizard | ||
1256 | 0 | \ No newline at end of file | 25 | \ No newline at end of file |
1257 | 1 | 26 | ||
1258 | === added file 'account_general_ledger_report/__openerp__.py' | |||
1259 | --- account_general_ledger_report/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
1260 | +++ account_general_ledger_report/__openerp__.py 2013-11-06 21:08:00 +0000 | |||
1261 | @@ -0,0 +1,47 @@ | |||
1262 | 1 | # -*- coding: utf-8 -*- | ||
1263 | 2 | ############################################################################## | ||
1264 | 3 | # | ||
1265 | 4 | # OpenERP, Open Source Management Solution | ||
1266 | 5 | # Addons modules by CLEARCORP S.A. | ||
1267 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
1268 | 7 | # | ||
1269 | 8 | # This program is free software: you can redistribute it and/or modify | ||
1270 | 9 | # it under the terms of the GNU Affero General Public License as | ||
1271 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
1272 | 11 | # License, or (at your option) any later version. | ||
1273 | 12 | # | ||
1274 | 13 | # This program is distributed in the hope that it will be useful, | ||
1275 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1276 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1277 | 16 | # GNU Affero General Public License for more details. | ||
1278 | 17 | # | ||
1279 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
1280 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1281 | 20 | # | ||
1282 | 21 | ############################################################################## | ||
1283 | 22 | |||
1284 | 23 | { | ||
1285 | 24 | 'name': 'General Ledger Report Webkit', | ||
1286 | 25 | 'version': '1.0', | ||
1287 | 26 | 'url': 'http://launchpad.net/openerp-ccorp-addons', | ||
1288 | 27 | 'author': 'ClearCorp S.A.', | ||
1289 | 28 | 'website': 'http://clearcorp.co.cr', | ||
1290 | 29 | 'category': 'Accounting & Finance', | ||
1291 | 30 | 'complexity': 'normal', | ||
1292 | 31 | 'description': """This module modifies the general ledger report""", | ||
1293 | 32 | 'depends': [ | ||
1294 | 33 | 'account', | ||
1295 | 34 | 'account_report_lib', | ||
1296 | 35 | 'account_report_signatures' | ||
1297 | 36 | ], | ||
1298 | 37 | 'init_xml': [], | ||
1299 | 38 | 'demo_xml': [], | ||
1300 | 39 | 'update_xml': [ | ||
1301 | 40 | 'report/report.xml', | ||
1302 | 41 | 'wizard/account_general_ledger_report_wizard.xml', | ||
1303 | 42 | 'report_menus.xml', | ||
1304 | 43 | ], | ||
1305 | 44 | 'license': 'AGPL-3', | ||
1306 | 45 | 'installable': True, | ||
1307 | 46 | 'active': False, | ||
1308 | 47 | } | ||
1309 | 0 | \ No newline at end of file | 48 | \ No newline at end of file |
1310 | 1 | 49 | ||
1311 | === added directory 'account_general_ledger_report/i18n' | |||
1312 | === added file 'account_general_ledger_report/i18n/es_CR.po' | |||
1313 | --- account_general_ledger_report/i18n/es_CR.po 1970-01-01 00:00:00 +0000 | |||
1314 | +++ account_general_ledger_report/i18n/es_CR.po 2013-11-06 21:08:00 +0000 | |||
1315 | @@ -0,0 +1,280 @@ | |||
1316 | 1 | # Translation of OpenERP Server. | ||
1317 | 2 | # This file contains the translation of the following modules: | ||
1318 | 3 | # * account_general_ledger_report | ||
1319 | 4 | # | ||
1320 | 5 | msgid "" | ||
1321 | 6 | msgstr "" | ||
1322 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
1323 | 8 | "Report-Msgid-Bugs-To: \n" | ||
1324 | 9 | "POT-Creation-Date: 2013-06-07 21:22+0000\n" | ||
1325 | 10 | "PO-Revision-Date: 2013-06-07 21:22+0000\n" | ||
1326 | 11 | "Last-Translator: <>\n" | ||
1327 | 12 | "Language-Team: \n" | ||
1328 | 13 | "MIME-Version: 1.0\n" | ||
1329 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
1330 | 15 | "Content-Transfer-Encoding: \n" | ||
1331 | 16 | "Plural-Forms: \n" | ||
1332 | 17 | |||
1333 | 18 | #. module: account_general_ledger_report | ||
1334 | 19 | #: view:general.ledger.wiz:0 | ||
1335 | 20 | msgid "This report allows you to print or generate a pdf of your General Ledger" | ||
1336 | 21 | msgstr "Este reporte permite imprimir o generar un pdf del Libro mayor" | ||
1337 | 22 | |||
1338 | 23 | #. module: account_general_ledger_report | ||
1339 | 24 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:31 | ||
1340 | 25 | msgid "Filter by: " | ||
1341 | 26 | msgstr "Filtrado por: " | ||
1342 | 27 | |||
1343 | 28 | #. module: account_general_ledger_report | ||
1344 | 29 | #: field:general.ledger.wiz,amount_currency:0 | ||
1345 | 30 | msgid "With Currency" | ||
1346 | 31 | msgstr "Con moneda" | ||
1347 | 32 | |||
1348 | 33 | #. module: account_general_ledger_report | ||
1349 | 34 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:104 | ||
1350 | 35 | msgid "Label" | ||
1351 | 36 | msgstr "Etiqueta" | ||
1352 | 37 | |||
1353 | 38 | #. module: account_general_ledger_report | ||
1354 | 39 | #: field:general.ledger.wiz,period_from:0 | ||
1355 | 40 | msgid "Start Period" | ||
1356 | 41 | msgstr "Período inicial" | ||
1357 | 42 | |||
1358 | 43 | #. module: account_general_ledger_report | ||
1359 | 44 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:109 | ||
1360 | 45 | msgid "Debit" | ||
1361 | 46 | msgstr "Débito" | ||
1362 | 47 | |||
1363 | 48 | #. module: account_general_ledger_report | ||
1364 | 49 | #: view:general.ledger.wiz:0 | ||
1365 | 50 | msgid "General Ledger" | ||
1366 | 51 | msgstr "Libro mayor" | ||
1367 | 52 | |||
1368 | 53 | #. module: account_general_ledger_report | ||
1369 | 54 | #: help:general.ledger.wiz,historic_strict:0 | ||
1370 | 55 | msgid "If selected, will display a historical unreconciled lines, taking into account the end of the period or date selected" | ||
1371 | 56 | msgstr "Si está selecciondo, desplegará las líneas no conciliadas históricas, dentro de la cuenta al final del período o de la fecha seleccionada" | ||
1372 | 57 | |||
1373 | 58 | #. module: account_general_ledger_report | ||
1374 | 59 | #: field:general.ledger.wiz,special_period:0 | ||
1375 | 60 | msgid "Special period" | ||
1376 | 61 | msgstr "Período especial" | ||
1377 | 62 | |||
1378 | 63 | #. module: account_general_ledger_report | ||
1379 | 64 | #: field:general.ledger.wiz,company_id:0 | ||
1380 | 65 | msgid "Company" | ||
1381 | 66 | msgstr "Compañía" | ||
1382 | 67 | |||
1383 | 68 | #. module: account_general_ledger_report | ||
1384 | 69 | #: model:ir.model,name:account_general_ledger_report.model_general_ledger_wiz | ||
1385 | 70 | msgid "General Ledger Report Wizard" | ||
1386 | 71 | msgstr "Asistente para el Libro Mayor" | ||
1387 | 72 | |||
1388 | 73 | #. module: account_general_ledger_report | ||
1389 | 74 | #: help:general.ledger.wiz,special_period:0 | ||
1390 | 75 | msgid "Include special period" | ||
1391 | 76 | msgstr "Includir períodos especiales" | ||
1392 | 77 | |||
1393 | 78 | #. module: account_general_ledger_report | ||
1394 | 79 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:44 | ||
1395 | 80 | msgid "Period: " | ||
1396 | 81 | msgstr "Período: " | ||
1397 | 82 | |||
1398 | 83 | #. module: account_general_ledger_report | ||
1399 | 84 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:100 | ||
1400 | 85 | msgid "Period" | ||
1401 | 86 | msgstr "Período" | ||
1402 | 87 | |||
1403 | 88 | #. module: account_general_ledger_report | ||
1404 | 89 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:59 | ||
1405 | 90 | msgid "Target moves: " | ||
1406 | 91 | msgstr "Movimientos destino: " | ||
1407 | 92 | |||
1408 | 93 | #. module: account_general_ledger_report | ||
1409 | 94 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:113 | ||
1410 | 95 | msgid "Curr. Am." | ||
1411 | 96 | msgstr "Mon. M." | ||
1412 | 97 | |||
1413 | 98 | #. module: account_general_ledger_report | ||
1414 | 99 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:99 | ||
1415 | 100 | #: selection:general.ledger.wiz,filter:0 | ||
1416 | 101 | msgid "Date" | ||
1417 | 102 | msgstr "Fecha" | ||
1418 | 103 | |||
1419 | 104 | #. module: account_general_ledger_report | ||
1420 | 105 | #: field:general.ledger.wiz,chart_account_id:0 | ||
1421 | 106 | msgid "Chart of Account" | ||
1422 | 107 | msgstr "Catálogo de Cuentas" | ||
1423 | 108 | |||
1424 | 109 | #. module: account_general_ledger_report | ||
1425 | 110 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:162 | ||
1426 | 111 | msgid "TOTAL" | ||
1427 | 112 | msgstr "TOTAL" | ||
1428 | 113 | |||
1429 | 114 | #. module: account_general_ledger_report | ||
1430 | 115 | #: view:general.ledger.wiz:0 | ||
1431 | 116 | #: field:general.ledger.wiz,journal_ids:0 | ||
1432 | 117 | msgid "Journals" | ||
1433 | 118 | msgstr "Diarios" | ||
1434 | 119 | |||
1435 | 120 | #. module: account_general_ledger_report | ||
1436 | 121 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:114 | ||
1437 | 122 | msgid "Curr. Bal." | ||
1438 | 123 | msgstr "Bal. M." | ||
1439 | 124 | |||
1440 | 125 | #. module: account_general_ledger_report | ||
1441 | 126 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:30 | ||
1442 | 127 | msgid "Fiscal Year: " | ||
1443 | 128 | msgstr "Año fiscal: " | ||
1444 | 129 | |||
1445 | 130 | #. module: account_general_ledger_report | ||
1446 | 131 | #: help:general.ledger.wiz,chart_account_id:0 | ||
1447 | 132 | msgid "Select Charts of Accounts" | ||
1448 | 133 | msgstr "Selecccione el catálogo contable" | ||
1449 | 134 | |||
1450 | 135 | #. module: account_general_ledger_report | ||
1451 | 136 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:50 | ||
1452 | 137 | msgid "Accounts: " | ||
1453 | 138 | msgstr "Cuentas: " | ||
1454 | 139 | |||
1455 | 140 | #. module: account_general_ledger_report | ||
1456 | 141 | #: field:general.ledger.wiz,date_to:0 | ||
1457 | 142 | msgid "End Date" | ||
1458 | 143 | msgstr "Fecha final" | ||
1459 | 144 | |||
1460 | 145 | #. module: account_general_ledger_report | ||
1461 | 146 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:15 | ||
1462 | 147 | msgid "General Ledger Report " | ||
1463 | 148 | msgstr "Informe del libro mayor" | ||
1464 | 149 | |||
1465 | 150 | #. module: account_general_ledger_report | ||
1466 | 151 | #: selection:general.ledger.wiz,target_move:0 | ||
1467 | 152 | msgid "All Posted Entries" | ||
1468 | 153 | msgstr "Todos los apuntes publicados" | ||
1469 | 154 | |||
1470 | 155 | |||
1471 | 156 | #. module: account_general_ledger_report | ||
1472 | 157 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:88 | ||
1473 | 158 | msgid "No move lines for this account" | ||
1474 | 159 | msgstr "No existen líneas de asiento para esta cuenta" | ||
1475 | 160 | |||
1476 | 161 | #. module: account_general_ledger_report | ||
1477 | 162 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:47 | ||
1478 | 163 | msgid "No filter" | ||
1479 | 164 | msgstr "Sin filtros" | ||
1480 | 165 | |||
1481 | 166 | #. module: account_general_ledger_report | ||
1482 | 167 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:111 | ||
1483 | 168 | msgid "Cumul. Bal." | ||
1484 | 169 | msgstr "Bal Acumul." | ||
1485 | 170 | |||
1486 | 171 | #. module: account_general_ledger_report | ||
1487 | 172 | #: help:general.ledger.wiz,fiscalyear_id:0 | ||
1488 | 173 | msgid "Keep empty for all open fiscal year" | ||
1489 | 174 | msgstr "Mantener vacío para todos los años fiscales abiertos" | ||
1490 | 175 | |||
1491 | 176 | #. module: account_general_ledger_report | ||
1492 | 177 | #: field:general.ledger.wiz,period_to:0 | ||
1493 | 178 | msgid "End Period" | ||
1494 | 179 | msgstr "Período final" | ||
1495 | 180 | |||
1496 | 181 | #. module: account_general_ledger_report | ||
1497 | 182 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:110 | ||
1498 | 183 | msgid "Credit" | ||
1499 | 184 | msgstr "Crédito" | ||
1500 | 185 | |||
1501 | 186 | #. module: account_general_ledger_report | ||
1502 | 187 | #: field:general.ledger.wiz,fiscalyear_id:0 | ||
1503 | 188 | msgid "Fiscal Year" | ||
1504 | 189 | msgstr "Año fiscal" | ||
1505 | 190 | |||
1506 | 191 | #. module: account_general_ledger_report | ||
1507 | 192 | #: field:general.ledger.wiz,historic_strict:0 | ||
1508 | 193 | msgid "Strict History" | ||
1509 | 194 | msgstr "Histórico estricto" | ||
1510 | 195 | |||
1511 | 196 | #. module: account_general_ledger_report | ||
1512 | 197 | #: selection:general.ledger.wiz,filter:0 | ||
1513 | 198 | msgid "No Filters" | ||
1514 | 199 | msgstr "Sin filtros" | ||
1515 | 200 | |||
1516 | 201 | #. module: account_general_ledger_report | ||
1517 | 202 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:101 | ||
1518 | 203 | msgid "Entry" | ||
1519 | 204 | msgstr "Asiento" | ||
1520 | 205 | |||
1521 | 206 | #. module: account_general_ledger_report | ||
1522 | 207 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:56 | ||
1523 | 208 | msgid "All" | ||
1524 | 209 | msgstr "Todo" | ||
1525 | 210 | |||
1526 | 211 | #. module: account_general_ledger_report | ||
1527 | 212 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:29 | ||
1528 | 213 | msgid "Chart of Accounts: " | ||
1529 | 214 | msgstr "Catálogo de cuentas: " | ||
1530 | 215 | |||
1531 | 216 | #. module: account_general_ledger_report | ||
1532 | 217 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:107 | ||
1533 | 218 | msgid "Reconcile" | ||
1534 | 219 | msgstr "Conciliación" | ||
1535 | 220 | |||
1536 | 221 | #. module: account_general_ledger_report | ||
1537 | 222 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:37 | ||
1538 | 223 | msgid "Dates: " | ||
1539 | 224 | msgstr "Fechas: " | ||
1540 | 225 | |||
1541 | 226 | #. module: account_general_ledger_report | ||
1542 | 227 | #: help:general.ledger.wiz,amount_currency:0 | ||
1543 | 228 | msgid "It adds the currency column on report if the currency differs from the company currency." | ||
1544 | 229 | msgstr "Añade una columna de moneda en el reporte si la moneda es diferente de la moneda de la compañía" | ||
1545 | 230 | |||
1546 | 231 | #. module: account_general_ledger_report | ||
1547 | 232 | #: field:general.ledger.wiz,target_move:0 | ||
1548 | 233 | msgid "Target Moves" | ||
1549 | 234 | msgstr "Movimientos destino" | ||
1550 | 235 | |||
1551 | 236 | #. module: account_general_ledger_report | ||
1552 | 237 | #: model:ir.actions.act_window,name:account_general_ledger_report.action_general_ledger_report_wizard | ||
1553 | 238 | msgid "General Ledger Report" | ||
1554 | 239 | msgstr "Informe del libro mayor" | ||
1555 | 240 | |||
1556 | 241 | #. module: account_general_ledger_report | ||
1557 | 242 | #: field:general.ledger.wiz,account_ids:0 | ||
1558 | 243 | msgid "Accounts" | ||
1559 | 244 | msgstr "Cuentas" | ||
1560 | 245 | |||
1561 | 246 | #. module: account_general_ledger_report | ||
1562 | 247 | #: selection:general.ledger.wiz,filter:0 | ||
1563 | 248 | msgid "Periods" | ||
1564 | 249 | msgstr "Períodos" | ||
1565 | 250 | |||
1566 | 251 | #. module: account_general_ledger_report | ||
1567 | 252 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:103 | ||
1568 | 253 | msgid "Partner" | ||
1569 | 254 | msgstr "Empresa" | ||
1570 | 255 | |||
1571 | 256 | #. module: account_general_ledger_report | ||
1572 | 257 | #: field:general.ledger.wiz,date_from:0 | ||
1573 | 258 | msgid "Start Date" | ||
1574 | 259 | msgstr "Fecha inicial" | ||
1575 | 260 | |||
1576 | 261 | #. module: account_general_ledger_report | ||
1577 | 262 | #: field:general.ledger.wiz,filter:0 | ||
1578 | 263 | msgid "Filter by" | ||
1579 | 264 | msgstr "Filtrar por" | ||
1580 | 265 | |||
1581 | 266 | #. module: account_general_ledger_report | ||
1582 | 267 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:84 | ||
1583 | 268 | msgid "Initial balance:" | ||
1584 | 269 | msgstr "Balance inicial:" | ||
1585 | 270 | |||
1586 | 271 | #. module: account_general_ledger_report | ||
1587 | 272 | #: selection:general.ledger.wiz,target_move:0 | ||
1588 | 273 | msgid "All Entries" | ||
1589 | 274 | msgstr "Todos los apuntes" | ||
1590 | 275 | |||
1591 | 276 | #. module: account_general_ledger_report | ||
1592 | 277 | #: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:102 | ||
1593 | 278 | msgid "Journal" | ||
1594 | 279 | msgstr "Diario" | ||
1595 | 280 | |||
1596 | 0 | 281 | ||
1597 | === added directory 'account_general_ledger_report/report' | |||
1598 | === added file 'account_general_ledger_report/report/__init__.py' | |||
1599 | --- account_general_ledger_report/report/__init__.py 1970-01-01 00:00:00 +0000 | |||
1600 | +++ account_general_ledger_report/report/__init__.py 2013-11-06 21:08:00 +0000 | |||
1601 | @@ -0,0 +1,23 @@ | |||
1602 | 1 | # -*- coding: utf-8 -*- | ||
1603 | 2 | ############################################################################## | ||
1604 | 3 | # | ||
1605 | 4 | # OpenERP, Open Source Management Solution | ||
1606 | 5 | # Addons modules by CLEARCORP S.A. | ||
1607 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
1608 | 7 | # | ||
1609 | 8 | # This program is free software: you can redistribute it and/or modify | ||
1610 | 9 | # it under the terms of the GNU Affero General Public License as | ||
1611 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
1612 | 11 | # License, or (at your option) any later version. | ||
1613 | 12 | # | ||
1614 | 13 | # This program is distributed in the hope that it will be useful, | ||
1615 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1616 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1617 | 16 | # GNU Affero General Public License for more details. | ||
1618 | 17 | # | ||
1619 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
1620 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1621 | 20 | # | ||
1622 | 21 | ############################################################################## | ||
1623 | 22 | |||
1624 | 23 | import account_general_ledger_report | ||
1625 | 0 | 24 | ||
1626 | === added file 'account_general_ledger_report/report/account_general_ledger_report.mako' | |||
1627 | --- account_general_ledger_report/report/account_general_ledger_report.mako 1970-01-01 00:00:00 +0000 | |||
1628 | +++ account_general_ledger_report/report/account_general_ledger_report.mako 2013-11-06 21:08:00 +0000 | |||
1629 | @@ -0,0 +1,182 @@ | |||
1630 | 1 | <!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
1631 | 2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
1632 | 3 | <head> | ||
1633 | 4 | <link rel='stylesheet' href='addons/account_webkit_report_library/webkit_headers/main.css' /> | ||
1634 | 5 | <style> | ||
1635 | 6 | ${css} | ||
1636 | 7 | </style> | ||
1637 | 8 | </head> | ||
1638 | 9 | <body> | ||
1639 | 10 | <div class="table header"> | ||
1640 | 11 | <div class="table-row"> | ||
1641 | 12 | <div class="table-cell logo">${helper.embed_logo_by_name('default_logo', height=70)|n}</div> | ||
1642 | 13 | <br/> | ||
1643 | 14 | <div class="table-cell text"> | ||
1644 | 15 | <p class="title">${_('General Ledger Report ')}</p> | ||
1645 | 16 | </div> | ||
1646 | 17 | </div> | ||
1647 | 18 | </div> | ||
1648 | 19 | <br/> | ||
1649 | 20 | <% | ||
1650 | 21 | chart_account = get_chart_account_id(data) | ||
1651 | 22 | fiscalyear = get_fiscal_year(data) | ||
1652 | 23 | filter = get_filter(data) | ||
1653 | 24 | %> | ||
1654 | 25 | |||
1655 | 26 | <div class="table list"> | ||
1656 | 27 | <div class="table-header"> | ||
1657 | 28 | <div class="table-row labels no-wrap"> | ||
1658 | 29 | <div class="table-cell first-column" style="width: 70px">${_('Chart of Accounts: ')}<br/>${chart_account.name}</div> | ||
1659 | 30 | <div class="table-cell" style="width: 70px">${_('Fiscal Year: ')}<br/>${fiscalyear.name}</div> | ||
1660 | 31 | <div class="table-cell" style="width: 70px">${_('Filter by: ')}<br/> | ||
1661 | 32 | %if filter == 'filter_date': | ||
1662 | 33 | <% | ||
1663 | 34 | start_date = get_date_from(data) | ||
1664 | 35 | stop_date = get_date_to(data) | ||
1665 | 36 | %> | ||
1666 | 37 | ${_('Dates: ')}<br/> | ||
1667 | 38 | ${formatLang(start_date, date=True) if start_date else u'' } - ${formatLang(stop_date, date=True) if start_date else u'' } | ||
1668 | 39 | %elif filter == 'filter_period': | ||
1669 | 40 | <% | ||
1670 | 41 | start_period = get_start_period(data) | ||
1671 | 42 | stop_period = get_end_period(data) | ||
1672 | 43 | %> | ||
1673 | 44 | ${_('Period: ')}<br/> | ||
1674 | 45 | ${start_period.name if start_period else u''} - ${stop_period.name if stop_period else u'' } | ||
1675 | 46 | %else: | ||
1676 | 47 | ${_('No filter')} | ||
1677 | 48 | %endif | ||
1678 | 49 | </div> | ||
1679 | 50 | <div class="table-cell" style="width: 70px">${_('Accounts: ')}<br/> | ||
1680 | 51 | %if get_accounts_ids(cr, uid, data): | ||
1681 | 52 | %for account in get_accounts_ids(cr, uid, data): | ||
1682 | 53 | ${(account.code) + ','}<br/> | ||
1683 | 54 | %endfor | ||
1684 | 55 | %else: | ||
1685 | 56 | ${_('All')} | ||
1686 | 57 | %endif | ||
1687 | 58 | </div> | ||
1688 | 59 | <div class="table-cell" style="width: 70px">${_('Target moves: ')}<br/>${ display_target_move(data) }</div> | ||
1689 | 60 | </div> | ||
1690 | 61 | </div> | ||
1691 | 62 | </div> | ||
1692 | 63 | <% | ||
1693 | 64 | account_list_obj, account_lines, account_conciliation, account_balance = get_data(cr, uid, data) | ||
1694 | 65 | cumul_balance_curr = 0.0 | ||
1695 | 66 | %> | ||
1696 | 67 | %for account in account_list_obj: | ||
1697 | 68 | <% | ||
1698 | 69 | cumul_balance = account_balance[account.id]['balance'] or 0.0 | ||
1699 | 70 | |||
1700 | 71 | if 'foreign_balance' in account_balance[account.id].keys(): | ||
1701 | 72 | cumul_balance_curr = account_balance[account.id]['foreign_balance'] | ||
1702 | 73 | |||
1703 | 74 | amount_total_debit = amount_total_credit = amount_total_curr = 0.0 | ||
1704 | 75 | print_column = False | ||
1705 | 76 | move_lines = [] | ||
1706 | 77 | %> | ||
1707 | 78 | %if account.type != 'view': | ||
1708 | 79 | <br/><br/> | ||
1709 | 80 | <div class="table header"> | ||
1710 | 81 | <div class="table-row"> | ||
1711 | 82 | <div class="table-cell text"> | ||
1712 | 83 | <p class="subtitle">${account.code +' - ' +account.name}</p> | ||
1713 | 84 | <p class="subtitle">${_('Initial balance:')} ${formatLang(cumul_balance)} | ||
1714 | 85 | %if account.report_currency_id: | ||
1715 | 86 | ${account.report_currency_id.position == 'before' and (account.report_currency_id.symbol+' ') or ''}${formatLang(cumul_balance_curr)}${account.report_currency_id.position == 'after' and (' '+account.report_currency_id.symbol) or ''} | ||
1716 | 87 | %endif | ||
1717 | 88 | ${account.id not in account_lines.keys() and _('No move lines for this account') or ''} | ||
1718 | 89 | </p> | ||
1719 | 90 | </div> | ||
1720 | 91 | </div> | ||
1721 | 92 | </div> | ||
1722 | 93 | %if account.id in account_lines.keys(): | ||
1723 | 94 | <% move_lines = account_lines[account.id] %> | ||
1724 | 95 | |||
1725 | 96 | <div class="table list"> | ||
1726 | 97 | <div class="table-header"> | ||
1727 | 98 | <div class="table-row labels no-wrap"> | ||
1728 | 99 | <div class="table-cell first-column" style="width: 55px">${_('Date')}</div> | ||
1729 | 100 | <div class="table-cell" style="width: 70px">${_('Period')}</div> | ||
1730 | 101 | <div class="table-cell" style="width: 100px">${_('Entry')}</div> | ||
1731 | 102 | <div class="table-cell" style="width: 70px">${_('Journal')}</div> | ||
1732 | 103 | <div class="table-cell" style="width: 100px">${_('Partner')}</div> | ||
1733 | 104 | <div class="table-cell" style="width: 100px">${_('Label')}</div> | ||
1734 | 105 | %if account.reconcile or (account.id in account_conciliation.keys() and account_conciliation[account.id]): | ||
1735 | 106 | <% print_column = True %> | ||
1736 | 107 | <div class="table-cell" style="width: 75px">${_('Reconcile')}</div> | ||
1737 | 108 | %endif | ||
1738 | 109 | <div class="table-cell amount" style="width: 60px">${_('Debit')}</div> | ||
1739 | 110 | <div class="table-cell amount" style="width: 60px">${_('Credit')}</div> | ||
1740 | 111 | <div class="table-cell amount" style="width: 60px">${_('Cumul. Bal.')}</div> | ||
1741 | 112 | %if account.report_currency_id: | ||
1742 | 113 | <div class="table-cell amount" style="width: 60px">${_('Curr. Am.')}</div> | ||
1743 | 114 | <div class="table-cell amount last-column" style="width: 60px">${_('Curr. Bal.')}</div> | ||
1744 | 115 | %endif | ||
1745 | 116 | </div> | ||
1746 | 117 | </div> | ||
1747 | 118 | <div class="table-body"> | ||
1748 | 119 | %for line in move_lines: | ||
1749 | 120 | <% | ||
1750 | 121 | amount_total_debit += line.debit | ||
1751 | 122 | amount_total_credit += line.credit | ||
1752 | 123 | |||
1753 | 124 | cumul_balance = cumul_balance + line.debit - line.credit | ||
1754 | 125 | if line.amount_currency: | ||
1755 | 126 | cumul_balance_curr = cumul_balance_curr + line.amount_currency | ||
1756 | 127 | amount_total_curr += line.amount_currency | ||
1757 | 128 | %> | ||
1758 | 129 | <div class="table-row ${row_even and 'even' or 'odd'}"> | ||
1759 | 130 | <div class="table-cell first-column">${formatLang(line.date, date=True)}</div> | ||
1760 | 131 | <div class="table-cell">${line.period_id.name or ''}</div> | ||
1761 | 132 | <div class="table-cell">${line.move_id.name or ''}</div> | ||
1762 | 133 | <div class="table-cell">${line.journal_id.name}</div> | ||
1763 | 134 | <div class="table-cell">${line.partner_id.name or ''}</div> | ||
1764 | 135 | <div class="table-cell">${line.name or ''}</div> | ||
1765 | 136 | %if print_column: | ||
1766 | 137 | <div class="table-cell"> | ||
1767 | 138 | ${line.id in account_conciliation[account.id].keys() and account_conciliation[account.id][line.id] or ''} | ||
1768 | 139 | </div> | ||
1769 | 140 | %endif | ||
1770 | 141 | <div class="table-cell amount">${formatLang(line.debit)}</div> | ||
1771 | 142 | <div class="table-cell amount"> ${formatLang(line.credit)}</div> | ||
1772 | 143 | <div class="table-cell amount last-column"> ${formatLang(cumul_balance)}</div> | ||
1773 | 144 | %if account.report_currency_id: | ||
1774 | 145 | <div class="table-cell amount"> ${line.amount_currency and formatLang(line.amount_currency) or ''}</div> | ||
1775 | 146 | <div class="table-cell amount last-column"> ${formatLang(cumul_balance_curr)}</div> | ||
1776 | 147 | %endif | ||
1777 | 148 | </div> | ||
1778 | 149 | %endfor | ||
1779 | 150 | <div class="table-row spacer"> | ||
1780 | 151 | <div class="table-cell"> </div> | ||
1781 | 152 | </div> | ||
1782 | 153 | <div class="table-row subtotal"> | ||
1783 | 154 | <div class="table-cell first-column"> </div> | ||
1784 | 155 | <div class="table-cell"> </div> | ||
1785 | 156 | <div class="table-cell"> </div> | ||
1786 | 157 | <div class="table-cell"> </div> | ||
1787 | 158 | <div class="table-cell"> </div> | ||
1788 | 159 | %if print_column: | ||
1789 | 160 | <div class="table-cell"> </div> | ||
1790 | 161 | %endif | ||
1791 | 162 | <div class="table-cell">${_('TOTAL')}</div> | ||
1792 | 163 | <div class="table-cell amount" >${formatLang(amount_total_debit)}</div> | ||
1793 | 164 | <div class="table-cell amount" > ${formatLang(amount_total_credit)}</div> | ||
1794 | 165 | %if account.report_currency_id: | ||
1795 | 166 | <div class="table-cell amount"> ${formatLang(cumul_balance)}</div> | ||
1796 | 167 | <div class="table-cell amount"> ${formatLang(amount_total_curr)}</div> | ||
1797 | 168 | <div class="table-cell amount last-column"> ${formatLang(cumul_balance_curr)}</div> | ||
1798 | 169 | %else: | ||
1799 | 170 | <div class="table-cell amount last-column"> ${formatLang(cumul_balance)}</div> | ||
1800 | 171 | %endif | ||
1801 | 172 | </div> | ||
1802 | 173 | <% | ||
1803 | 174 | amount_total_debit = amount_total_credit = 0.0 | ||
1804 | 175 | %> | ||
1805 | 176 | </div> | ||
1806 | 177 | </div> | ||
1807 | 178 | %endif | ||
1808 | 179 | %endif | ||
1809 | 180 | %endfor | ||
1810 | 181 | </body> | ||
1811 | 182 | </html> | ||
1812 | 0 | 183 | ||
1813 | === added file 'account_general_ledger_report/report/account_general_ledger_report.py' | |||
1814 | --- account_general_ledger_report/report/account_general_ledger_report.py 1970-01-01 00:00:00 +0000 | |||
1815 | +++ account_general_ledger_report/report/account_general_ledger_report.py 2013-11-06 21:08:00 +0000 | |||
1816 | @@ -0,0 +1,179 @@ | |||
1817 | 1 | #-*- coding:utf-8 -*- | ||
1818 | 2 | ############################################################################## | ||
1819 | 3 | # | ||
1820 | 4 | # OpenERP, Open Source Management Solution | ||
1821 | 5 | # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved | ||
1822 | 6 | # d$ | ||
1823 | 7 | # | ||
1824 | 8 | # This program is free software: you can redistribute it and/or modify | ||
1825 | 9 | # it under the terms of the GNU Affero General Public License as published by | ||
1826 | 10 | # the Free Software Foundation, either version 3 of the License, or | ||
1827 | 11 | # (at your option) any later version. | ||
1828 | 12 | # | ||
1829 | 13 | # This program is distributed in the hope that it will be useful, | ||
1830 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1831 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1832 | 16 | # GNU Affero General Public License for more details. | ||
1833 | 17 | # | ||
1834 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
1835 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1836 | 20 | # | ||
1837 | 21 | ############################################################################## | ||
1838 | 22 | |||
1839 | 23 | import pooler | ||
1840 | 24 | from openerp.addons.account_report_lib.account_report_base import accountReportbase | ||
1841 | 25 | from report import report_sxw | ||
1842 | 26 | |||
1843 | 27 | class GeneralLedgerReportWebkit(accountReportbase): | ||
1844 | 28 | |||
1845 | 29 | def __init__(self, cr, uid, name, context): | ||
1846 | 30 | super(GeneralLedgerReportWebkit, self).__init__(cr, uid, name, context=context) | ||
1847 | 31 | self.pool = pooler.get_pool(self.cr.dbname) | ||
1848 | 32 | self.cursor = self.cr | ||
1849 | 33 | |||
1850 | 34 | self.localcontext.update({ | ||
1851 | 35 | 'cr': cr, | ||
1852 | 36 | 'uid': uid, | ||
1853 | 37 | 'get_chart_account_id': self.get_chart_account_id, | ||
1854 | 38 | 'get_fiscalyear': self.get_fiscalyear, | ||
1855 | 39 | 'get_filter': self.get_filter, | ||
1856 | 40 | 'get_accounts_ids': self.get_accounts_ids, | ||
1857 | 41 | 'get_data':self.get_data, | ||
1858 | 42 | }) | ||
1859 | 43 | |||
1860 | 44 | def get_data(self, cr, uid, data): | ||
1861 | 45 | filter_data = [] | ||
1862 | 46 | account_list = [] | ||
1863 | 47 | account_selected = [] | ||
1864 | 48 | |||
1865 | 49 | account_lines = {} | ||
1866 | 50 | account_balance = {} | ||
1867 | 51 | account_conciliation = {} | ||
1868 | 52 | |||
1869 | 53 | library_obj = self.pool.get('account.webkit.report.library') | ||
1870 | 54 | |||
1871 | 55 | filter_type = self.get_filter(data) | ||
1872 | 56 | chart_account = self.get_chart_account_id(data) | ||
1873 | 57 | |||
1874 | 58 | if filter_type == 'filter_date': | ||
1875 | 59 | start_date = self.get_date_from(data) | ||
1876 | 60 | stop_date = self.get_date_to(data) | ||
1877 | 61 | |||
1878 | 62 | filter_data.append(start_date) | ||
1879 | 63 | filter_data.append(stop_date) | ||
1880 | 64 | |||
1881 | 65 | elif filter_type == 'filter_period': | ||
1882 | 66 | |||
1883 | 67 | start_period = self.get_start_period(data) #return the period object | ||
1884 | 68 | stop_period = self.get_end_period(data) | ||
1885 | 69 | |||
1886 | 70 | filter_data.append(start_period) | ||
1887 | 71 | filter_data.append(stop_period) | ||
1888 | 72 | |||
1889 | 73 | else: | ||
1890 | 74 | filter_type = '' | ||
1891 | 75 | |||
1892 | 76 | fiscalyear = self.get_fiscalyear(data) | ||
1893 | 77 | target_move = self.get_target_move(data) | ||
1894 | 78 | |||
1895 | 79 | #From the wizard can select specific account, extract this accounts | ||
1896 | 80 | account_selected = self.get_accounts_ids(cr, uid, data) | ||
1897 | 81 | |||
1898 | 82 | if not account_selected: | ||
1899 | 83 | account_selected = [chart_account.id] | ||
1900 | 84 | account_list_ids = library_obj.get_account_child_ids(cr, uid, account_selected) #get all the accounts in the chart_account_id | ||
1901 | 85 | |||
1902 | 86 | #Extract the id for the browse record | ||
1903 | 87 | else: | ||
1904 | 88 | account_ids = [] | ||
1905 | 89 | for account in account_selected: | ||
1906 | 90 | account_ids.append(account.id) | ||
1907 | 91 | account_list_ids = library_obj.get_account_child_ids(cr, uid, account_ids) #get all the accounts in the chart_account_id | ||
1908 | 92 | |||
1909 | 93 | account_list_obj = self.pool.get('account.account').browse(cr, uid, account_list_ids) | ||
1910 | 94 | |||
1911 | 95 | #Get the move_lines for each account. | ||
1912 | 96 | move_lines = library_obj.get_move_lines(cr, 1, | ||
1913 | 97 | account_list_ids, | ||
1914 | 98 | filter_type=filter_type, | ||
1915 | 99 | filter_data=filter_data, | ||
1916 | 100 | fiscalyear=fiscalyear, | ||
1917 | 101 | target_move=target_move, | ||
1918 | 102 | order_by='account_id asc, date asc, ref asc') | ||
1919 | 103 | |||
1920 | 104 | |||
1921 | 105 | #Reconcile -> show reconcile in the mako. | ||
1922 | 106 | ''' | ||
1923 | 107 | First, if the account permit reconcile (reconcile == True), add to the dictionary. | ||
1924 | 108 | If the account don't allow the reconcile, search if the lines have reconcile_id or partial_reconcile_id | ||
1925 | 109 | If the account allow the reconcile or the lines have reconcile_id or partial_reconcile_id, add in the dictionary | ||
1926 | 110 | and show in the mako the column "Reconcile" | ||
1927 | 111 | |||
1928 | 112 | the final result is: | ||
1929 | 113 | {account_id: {line.id: [conciliation_name]}} | ||
1930 | 114 | ''' | ||
1931 | 115 | #Search if the move_lines have partial or reconcile id | ||
1932 | 116 | for line in move_lines: | ||
1933 | 117 | #If the account have reconcile, add to the dictionary | ||
1934 | 118 | if line.account_id.id not in account_conciliation: | ||
1935 | 119 | account_conciliation[line.account_id.id] = {} | ||
1936 | 120 | |||
1937 | 121 | if line.reconcile_id and line.reconcile_id.name != '': | ||
1938 | 122 | account_conciliation[line.account_id.id][line.id] = line.reconcile_id.name | ||
1939 | 123 | |||
1940 | 124 | elif line.reconcile_partial_id and line.reconcile_partial_id.name != '': | ||
1941 | 125 | str_name = 'P: ' + line.reconcile_partial_id.name | ||
1942 | 126 | #conciliation_lines.append(str_name) | ||
1943 | 127 | account_conciliation[line.account_id.id][line.id] = str_name | ||
1944 | 128 | |||
1945 | 129 | if line.account_id.id not in account_lines: | ||
1946 | 130 | account_lines[line.account_id.id] = [] | ||
1947 | 131 | |||
1948 | 132 | account_lines[line.account_id.id].append(line) | ||
1949 | 133 | |||
1950 | 134 | fields = ['balance'] | ||
1951 | 135 | if self.get_amount_currency(data): | ||
1952 | 136 | fields.append('foreign_balance') | ||
1953 | 137 | |||
1954 | 138 | if filter_type == 'filter_date': | ||
1955 | 139 | account_balance = library_obj.get_account_balance(cr, uid, | ||
1956 | 140 | account_list_ids, | ||
1957 | 141 | fields, | ||
1958 | 142 | initial_balance=True, | ||
1959 | 143 | company_id=chart_account.company_id.id, | ||
1960 | 144 | fiscal_year_id = fiscalyear.id, | ||
1961 | 145 | state = target_move, | ||
1962 | 146 | start_date = start_date, | ||
1963 | 147 | end_date = stop_date, | ||
1964 | 148 | chart_account_id = chart_account.id, | ||
1965 | 149 | filter_type=filter_type) | ||
1966 | 150 | elif filter_type == 'filter_period': | ||
1967 | 151 | account_balance = library_obj.get_account_balance(cr, uid, | ||
1968 | 152 | account_list_ids, | ||
1969 | 153 | fields, | ||
1970 | 154 | initial_balance=True, | ||
1971 | 155 | company_id=chart_account.company_id.id, | ||
1972 | 156 | fiscal_year_id = fiscalyear.id, | ||
1973 | 157 | state = target_move, | ||
1974 | 158 | start_period_id = start_period.id, | ||
1975 | 159 | end_period_id = stop_period.id, | ||
1976 | 160 | chart_account_id = chart_account.id, | ||
1977 | 161 | filter_type=filter_type) | ||
1978 | 162 | else: | ||
1979 | 163 | account_balance = library_obj.get_account_balance(cr, uid, | ||
1980 | 164 | account_list_ids, | ||
1981 | 165 | fields, | ||
1982 | 166 | initial_balance=True, | ||
1983 | 167 | company_id=chart_account.company_id.id, | ||
1984 | 168 | fiscal_year_id = fiscalyear.id, | ||
1985 | 169 | state = target_move, | ||
1986 | 170 | chart_account_id = chart_account.id, | ||
1987 | 171 | filter_type=filter_type) | ||
1988 | 172 | |||
1989 | 173 | |||
1990 | 174 | return account_list_obj, account_lines, account_conciliation, account_balance | ||
1991 | 175 | |||
1992 | 176 | report_sxw.report_sxw('report.account_general_ledger_webkit', | ||
1993 | 177 | 'account.account', | ||
1994 | 178 | 'addons/account_general_ledger_report/report/account_general_ledger_report.mako', | ||
1995 | 179 | parser=GeneralLedgerReportWebkit) | ||
1996 | 0 | \ No newline at end of file | 180 | \ No newline at end of file |
1997 | 1 | 181 | ||
1998 | === added file 'account_general_ledger_report/report/report.xml' | |||
1999 | --- account_general_ledger_report/report/report.xml 1970-01-01 00:00:00 +0000 | |||
2000 | +++ account_general_ledger_report/report/report.xml 2013-11-06 21:08:00 +0000 | |||
2001 | @@ -0,0 +1,16 @@ | |||
2002 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
2003 | 2 | <openerp> | ||
2004 | 3 | <data> | ||
2005 | 4 | <record id="account.account_general_ledger" model="ir.actions.report.xml"> | ||
2006 | 5 | <field name="report_type">webkit</field> | ||
2007 | 6 | <field name="report_name">account_general_ledger_webkit</field> | ||
2008 | 7 | <field eval="[(6,0,[])]" name="groups_id"/> | ||
2009 | 8 | <field name="model">account.account</field> | ||
2010 | 9 | <field name="type">ir.actions.report.xml</field> | ||
2011 | 10 | <field name="name">General Ledger Webkit</field> | ||
2012 | 11 | <field name="report_rml">account_general_ledger_report/report/account_general_ledger_report.mako</field> | ||
2013 | 12 | <field name="report_file">account_general_ledger_report/report/account_general_ledger_report.mako</field> | ||
2014 | 13 | <field name="webkit_header" ref="report_webkit_lib.webkit_header_clearcorp_official_portrait" /> | ||
2015 | 14 | </record> | ||
2016 | 15 | </data> | ||
2017 | 16 | </openerp> | ||
2018 | 0 | 17 | ||
2019 | === added file 'account_general_ledger_report/report_menus.xml' | |||
2020 | --- account_general_ledger_report/report_menus.xml 1970-01-01 00:00:00 +0000 | |||
2021 | +++ account_general_ledger_report/report_menus.xml 2013-11-06 21:08:00 +0000 | |||
2022 | @@ -0,0 +1,13 @@ | |||
2023 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
2024 | 2 | <openerp> | ||
2025 | 3 | <data> | ||
2026 | 4 | |||
2027 | 5 | <menuitem icon="STOCK_PRINT" | ||
2028 | 6 | name="General Ledger" | ||
2029 | 7 | parent="account.final_accounting_reports" | ||
2030 | 8 | action="action_general_ledger_report_wizard" | ||
2031 | 9 | groups="account.group_account_user,account.group_account_manager" | ||
2032 | 10 | id="account.menu_general_ledger"/> | ||
2033 | 11 | |||
2034 | 12 | </data> | ||
2035 | 13 | </openerp> | ||
2036 | 0 | 14 | ||
2037 | === added directory 'account_general_ledger_report/wizard' | |||
2038 | === added file 'account_general_ledger_report/wizard/__init__.py' | |||
2039 | --- account_general_ledger_report/wizard/__init__.py 1970-01-01 00:00:00 +0000 | |||
2040 | +++ account_general_ledger_report/wizard/__init__.py 2013-11-06 21:08:00 +0000 | |||
2041 | @@ -0,0 +1,23 @@ | |||
2042 | 1 | #-*- coding:utf-8 -*- | ||
2043 | 2 | ############################################################################## | ||
2044 | 3 | # | ||
2045 | 4 | # OpenERP, Open Source Management Solution | ||
2046 | 5 | # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved | ||
2047 | 6 | # d$ | ||
2048 | 7 | # | ||
2049 | 8 | # This program is free software: you can redistribute it and/or modify | ||
2050 | 9 | # it under the terms of the GNU Affero General Public License as published by | ||
2051 | 10 | # the Free Software Foundation, either version 3 of the License, or | ||
2052 | 11 | # (at your option) any later version. | ||
2053 | 12 | # | ||
2054 | 13 | # This program is distributed in the hope that it will be useful, | ||
2055 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2056 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
2057 | 16 | # GNU Affero General Public License for more details. | ||
2058 | 17 | # | ||
2059 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
2060 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
2061 | 20 | # | ||
2062 | 21 | ############################################################################## | ||
2063 | 22 | |||
2064 | 23 | import account_general_ledger_report_wizard | ||
2065 | 0 | \ No newline at end of file | 24 | \ No newline at end of file |
2066 | 1 | 25 | ||
2067 | === added file 'account_general_ledger_report/wizard/account_general_ledger_report_wizard.py' | |||
2068 | --- account_general_ledger_report/wizard/account_general_ledger_report_wizard.py 1970-01-01 00:00:00 +0000 | |||
2069 | +++ account_general_ledger_report/wizard/account_general_ledger_report_wizard.py 2013-11-06 21:08:00 +0000 | |||
2070 | @@ -0,0 +1,39 @@ | |||
2071 | 1 | # -*- coding: utf-8 -*- | ||
2072 | 2 | ############################################################################## | ||
2073 | 3 | # | ||
2074 | 4 | # OpenERP, Open Source Management Solution | ||
2075 | 5 | # Addons modules by CLEARCORP S.A. | ||
2076 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
2077 | 7 | # | ||
2078 | 8 | # This program is free software: you can redistribute it and/or modify | ||
2079 | 9 | # it under the terms of the GNU Affero General Public License as | ||
2080 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
2081 | 11 | # License, or (at your option) any later version. | ||
2082 | 12 | # | ||
2083 | 13 | # This program is distributed in the hope that it will be useful, | ||
2084 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
2085 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
2086 | 16 | # GNU Affero General Public License for more details. | ||
2087 | 17 | # | ||
2088 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
2089 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
2090 | 20 | # | ||
2091 | 21 | ############################################################################## | ||
2092 | 22 | |||
2093 | 23 | from osv import fields, osv | ||
2094 | 24 | |||
2095 | 25 | class AccountReportGeneralLedgerWizard(osv.osv_memory): | ||
2096 | 26 | |||
2097 | 27 | _inherit = "account.report.wiz" | ||
2098 | 28 | _name = "general.ledger.wiz" | ||
2099 | 29 | _description = "General Ledger Report Wizard" | ||
2100 | 30 | |||
2101 | 31 | def _print_report(self, cursor, uid, ids, data, context=None): | ||
2102 | 32 | context = context or {} | ||
2103 | 33 | |||
2104 | 34 | return { | ||
2105 | 35 | 'type': 'ir.actions.report.xml', | ||
2106 | 36 | 'report_name': 'account_general_ledger_webkit', | ||
2107 | 37 | 'datas': data | ||
2108 | 38 | } | ||
2109 | 39 | |||
2110 | 0 | \ No newline at end of file | 40 | \ No newline at end of file |
2111 | 1 | 41 | ||
2112 | === added file 'account_general_ledger_report/wizard/account_general_ledger_report_wizard.xml' | |||
2113 | --- account_general_ledger_report/wizard/account_general_ledger_report_wizard.xml 1970-01-01 00:00:00 +0000 | |||
2114 | +++ account_general_ledger_report/wizard/account_general_ledger_report_wizard.xml 2013-11-06 21:08:00 +0000 | |||
2115 | @@ -0,0 +1,62 @@ | |||
2116 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
2117 | 2 | <openerp> | ||
2118 | 3 | <data> | ||
2119 | 4 | <record id ="account_report_general_ledger_report_inherit" model="ir.ui.view"> | ||
2120 | 5 | <field name="name">General Ledger Report </field> | ||
2121 | 6 | <field name="model">general.ledger.wiz</field> | ||
2122 | 7 | <field name="type">form</field> | ||
2123 | 8 | <field name="inherit_id" ref="account_report_lib.account_report_lib_wizard_view"/> | ||
2124 | 9 | <field name="arch" type="xml"> | ||
2125 | 10 | <data> | ||
2126 | 11 | <xpath expr="/form/label[@string='']" position="replace"> | ||
2127 | 12 | <separator string="General Ledger" colspan="4"/> | ||
2128 | 13 | <label nolabel="1" colspan="4" string="This report allows you to print or generate a pdf of your General Ledger"/> | ||
2129 | 14 | </xpath> | ||
2130 | 15 | <field name="chart_account_id" position="attributes"> | ||
2131 | 16 | <attribute name="attrs">{'required': True}</attribute> | ||
2132 | 17 | </field> | ||
2133 | 18 | <field name="fiscalyear_id" position="attributes"> | ||
2134 | 19 | <attribute name="attrs">{'required': True}</attribute> | ||
2135 | 20 | </field> | ||
2136 | 21 | <field name="target_move" position="attributes"> | ||
2137 | 22 | <attribute name="attrs">{'required': True}</attribute> | ||
2138 | 23 | </field> | ||
2139 | 24 | <field name="historic_strict" position="attributes"> | ||
2140 | 25 | <attribute name="attrs">{'invisible': True}</attribute> | ||
2141 | 26 | </field> | ||
2142 | 27 | <field name="period_from" position="replace"> | ||
2143 | 28 | <field name="period_from" domain="[('special', '=', False)]" attrs="{'required':[('filter', '=', 'filter_period')]}"/> | ||
2144 | 29 | </field> | ||
2145 | 30 | <field name="date_from" position="attributes"> | ||
2146 | 31 | <attribute name="attrs">{'required': [('filter', '=', 'filter_date')]}</attribute> | ||
2147 | 32 | </field> | ||
2148 | 33 | <field name="period_to" position="replace"> | ||
2149 | 34 | <field name="period_to" domain="[('special', '=', False)]" attrs="{'required':[('filter', '=', 'filter_period')]}"/> | ||
2150 | 35 | </field> | ||
2151 | 36 | <field name="date_to" position="attributes"> | ||
2152 | 37 | <attribute name="attrs">{'required': [('filter', '=', 'filter_date')]}</attribute> | ||
2153 | 38 | </field> | ||
2154 | 39 | <field name="special_period" position="attributes"> | ||
2155 | 40 | <attribute name="attrs">{'invisible': True}</attribute> | ||
2156 | 41 | </field> | ||
2157 | 42 | <group string="Journals" position="attributes"> | ||
2158 | 43 | <attribute name="attrs">{'invisible': True}</attribute> | ||
2159 | 44 | </group> | ||
2160 | 45 | <group string="Account Financial Report" position="attributes"> | ||
2161 | 46 | <attribute name="attrs">{'invisible': True}</attribute> | ||
2162 | 47 | </group> | ||
2163 | 48 | </data> | ||
2164 | 49 | </field> | ||
2165 | 50 | </record> | ||
2166 | 51 | |||
2167 | 52 | <record id="action_general_ledger_report_wizard" model="ir.actions.act_window"> | ||
2168 | 53 | <field name="name">General Ledger Report</field> | ||
2169 | 54 | <field name="type">ir.actions.act_window</field> | ||
2170 | 55 | <field name="res_model">general.ledger.wiz</field> | ||
2171 | 56 | <field name="view_type">form</field> | ||
2172 | 57 | <field name="view_mode">form</field> | ||
2173 | 58 | <field name="view_id" ref="account_report_general_ledger_report_inherit"/> | ||
2174 | 59 | <field name="target">new</field> | ||
2175 | 60 | </record> | ||
2176 | 61 | </data> | ||
2177 | 62 | </openerp> | ||
2178 | 0 | 63 | ||
2179 | === modified file 'account_invoice_global_discount/__init__.py' | |||
2180 | --- account_invoice_global_discount/__init__.py 2012-06-30 22:41:06 +0000 | |||
2181 | +++ account_invoice_global_discount/__init__.py 2013-11-06 21:08:00 +0000 | |||
2182 | @@ -22,3 +22,6 @@ | |||
2183 | 22 | 22 | ||
2184 | 23 | import account_invoice_global_discount | 23 | import account_invoice_global_discount |
2185 | 24 | import wizard | 24 | import wizard |
2186 | 25 | |||
2187 | 26 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
2188 | 27 | |||
2189 | 25 | 28 | ||
2190 | === modified file 'account_invoice_global_discount/__openerp__.py' | |||
2191 | --- account_invoice_global_discount/__openerp__.py 2012-06-30 22:41:06 +0000 | |||
2192 | +++ account_invoice_global_discount/__openerp__.py 2013-11-06 21:08:00 +0000 | |||
2193 | @@ -24,7 +24,6 @@ | |||
2194 | 24 | "name" : 'Global invoice discount', | 24 | "name" : 'Global invoice discount', |
2195 | 25 | "version" : '1.0', | 25 | "version" : '1.0', |
2196 | 26 | "author" : 'CLEARCORP S.A', | 26 | "author" : 'CLEARCORP S.A', |
2197 | 27 | #easy, normal, expert | ||
2198 | 28 | 'complexity': 'normal', | 27 | 'complexity': 'normal', |
2199 | 29 | "description": """ | 28 | "description": """ |
2200 | 30 | Adds a discount feature for invoice. | 29 | Adds a discount feature for invoice. |
2201 | @@ -37,16 +36,20 @@ | |||
2202 | 37 | "website" : "http://clearcorp.co.cr", | 36 | "website" : "http://clearcorp.co.cr", |
2203 | 38 | "images" : [], | 37 | "images" : [], |
2204 | 39 | "icon" : False, | 38 | "icon" : False, |
2206 | 40 | "depends" : ['account'], | 39 | "depends" : ['account', |
2207 | 40 | 'product_visible_discount'], | ||
2208 | 41 | "init_xml" : [], | 41 | "init_xml" : [], |
2209 | 42 | "demo_xml" : [], | 42 | "demo_xml" : [], |
2212 | 43 | "update_xml" : [ | 43 | "update_xml" : [], |
2213 | 44 | 'account_invoice_global_discount_wizard.xml', | 44 | "data" : [ |
2214 | 45 | 'account_invoice_global_discount_view.xml', | 45 | 'account_invoice_global_discount_view.xml', |
2216 | 46 | ], | 46 | 'wizard/discount_wizard_view.xml', |
2217 | 47 | ], | ||
2218 | 47 | "test" : [], | 48 | "test" : [], |
2219 | 48 | "auto_install": False, | 49 | "auto_install": False, |
2220 | 49 | "application": False, | 50 | "application": False, |
2221 | 50 | "installable": True, | 51 | "installable": True, |
2222 | 51 | 'license': 'AGPL-3', | 52 | 'license': 'AGPL-3', |
2223 | 52 | } | 53 | } |
2224 | 54 | |||
2225 | 55 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
2226 | 53 | 56 | ||
2227 | === modified file 'account_invoice_global_discount/account_invoice_global_discount.py' | |||
2228 | --- account_invoice_global_discount/account_invoice_global_discount.py 2012-06-30 22:41:06 +0000 | |||
2229 | +++ account_invoice_global_discount/account_invoice_global_discount.py 2013-11-06 21:08:00 +0000 | |||
2230 | @@ -18,7 +18,6 @@ | |||
2231 | 18 | # You should have received a copy of the GNU Affero General Public License | 18 | # You should have received a copy of the GNU Affero General Public License |
2232 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
2233 | 20 | # | 20 | # |
2234 | 21 | ############################################################################## | ||
2235 | 22 | 21 | ||
2236 | 23 | from osv import osv,fields | 22 | from osv import osv,fields |
2237 | 24 | from tools import config | 23 | from tools import config |
2238 | @@ -103,3 +102,5 @@ | |||
2239 | 103 | }, | 102 | }, |
2240 | 104 | multi='ccorp'), | 103 | multi='ccorp'), |
2241 | 105 | } | 104 | } |
2242 | 105 | |||
2243 | 106 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
2244 | 106 | 107 | ||
2245 | === modified file 'account_invoice_global_discount/account_invoice_global_discount_view.xml' | |||
2246 | --- account_invoice_global_discount/account_invoice_global_discount_view.xml 2012-06-30 22:41:06 +0000 | |||
2247 | +++ account_invoice_global_discount/account_invoice_global_discount_view.xml 2013-11-06 21:08:00 +0000 | |||
2248 | @@ -1,115 +1,157 @@ | |||
2249 | 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2363 | 2 | <openerp><data> | 2 | <openerp> |
2364 | 3 | <!-- | 3 | <data> |
2365 | 4 | Resource: account.invoice | 4 | |
2366 | 5 | Adds fields with not discounted amounts | 5 | <record id="account_invoice_supplier_form_ccorp_attributes" model="ir.ui.view"> |
2367 | 6 | --> | 6 | <field name="name">account.invoice.supplier.form.ccorp.attributes</field> |
2368 | 7 | <record id="invoice_tree_ccorp1" model="ir.ui.view"> | 7 | <field name="model">account.invoice</field> |
2369 | 8 | <field name="name">account.invoice.tree_ccorp1</field> | 8 | <field name="inherit_id" ref="account.invoice_supplier_form"/> |
2370 | 9 | <field name="model">account.invoice</field> | 9 | <field name="arch" type="xml"> |
2371 | 10 | <field name="inherit_id" ref="account.invoice_tree"/> | 10 | <data> |
2372 | 11 | <field name="type">tree</field> | 11 | <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree[@string='Invoice lines']" position="attributes"> |
2373 | 12 | <field name="arch" type="xml"> | 12 | <attribute name="editable"></attribute> |
2374 | 13 | <field name="amount_untaxed" position="replace"> | 13 | </xpath> |
2375 | 14 | <field name="amount_untaxed_not_discounted" sum="Untaxed amount"/> | 14 | </data> |
2376 | 15 | </field> | 15 | </field> |
2377 | 16 | </field> | 16 | </record> |
2378 | 17 | </record> | 17 | |
2379 | 18 | <record id="invoice_tree_ccorp2" model="ir.ui.view"> | 18 | <record id="account_invoice_form_ccorp_attributes" model="ir.ui.view"> |
2380 | 19 | <field name="name">account.invoice.tree_ccorp2</field> | 19 | <field name="name">account.invoice.form.ccorp.attributes</field> |
2381 | 20 | <field name="model">account.invoice</field> | 20 | <field name="model">account.invoice</field> |
2382 | 21 | <field name="inherit_id" ref="account.invoice_tree"/> | 21 | <field name="inherit_id" ref="account.invoice_form"/> |
2383 | 22 | <field name="type">tree</field> | 22 | <field name="arch" type="xml"> |
2384 | 23 | <field name="arch" type="xml"> | 23 | <data> |
2385 | 24 | <field name="amount_total" position="before"> | 24 | <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree[@string='Invoice Lines']" position="attributes"> |
2386 | 25 | <field name="invoice_discount"/> | 25 | <attribute name="editable"></attribute> |
2387 | 26 | <field name="amount_discounted" sum="Discounted amount"/> | 26 | </xpath> |
2388 | 27 | </field> | 27 | </data> |
2389 | 28 | </field> | 28 | </field> |
2390 | 29 | </record> | 29 | </record> |
2391 | 30 | 30 | ||
2392 | 31 | <record id="invoice_supplier_form_ccorp_line1" model="ir.ui.view"> | 31 | <record id="invoice_tree_ccorp1" model="ir.ui.view"> |
2393 | 32 | <field name="name">account.invoice.supplier.form_ccorp1</field> | 32 | <field name="name">account.invoice.tree_ccorp1</field> |
2394 | 33 | <field name="model">account.invoice</field> | 33 | <field name="model">account.invoice</field> |
2395 | 34 | <field name="inherit_id" ref="account.invoice_supplier_form"/> | 34 | <field name="inherit_id" ref="account.invoice_tree"/> |
2396 | 35 | <field name="type">form</field> | 35 | <field name="arch" type="xml"> |
2397 | 36 | <field name="arch" type="xml"> | 36 | <field name="amount_untaxed" position="replace"> |
2398 | 37 | <xpath expr="/form/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="before"> | 37 | <field name="amount_untaxed_not_discounted" sum="Untaxed amount"/> |
2399 | 38 | <field name="discount"/> | 38 | </field> |
2400 | 39 | </xpath> | 39 | <field name="amount_total" position="before"> |
2401 | 40 | </field> | 40 | <field name="invoice_discount"/> |
2402 | 41 | </record> | 41 | <field name="amount_discounted" sum="Discounted amount"/> |
2403 | 42 | <record id="invoice_supplier_form_ccorp_line2" model="ir.ui.view"> | 42 | </field> |
2404 | 43 | <field name="name">account.invoice.supplier.form_ccorp1</field> | 43 | </field> |
2405 | 44 | <field name="model">account.invoice</field> | 44 | </record> |
2406 | 45 | <field name="inherit_id" ref="account.invoice_supplier_form"/> | 45 | |
2407 | 46 | <field name="type">form</field> | 46 | <record id="account_invoice_supplier_form_ccorp_line1" model="ir.ui.view"> |
2408 | 47 | <field name="arch" type="xml"> | 47 | <field name="name">account.invoice.supplier.form.ccorp.line1</field> |
2409 | 48 | <xpath expr="/form/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="after"> | 48 | <field name="model">account.invoice</field> |
2410 | 49 | <field name="price_subtotal_not_discounted"/> | 49 | <field name="inherit_id" ref="account.invoice_supplier_form"/> |
2411 | 50 | </xpath> | 50 | <field name="arch" type="xml"> |
2412 | 51 | </field> | 51 | <data> |
2413 | 52 | </record> | 52 | <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="before"> |
2414 | 53 | 53 | <field name="discount"/> | |
2415 | 54 | <record id="invoice_supplier_form_ccorp1" model="ir.ui.view"> | 54 | </xpath> |
2416 | 55 | <field name="name">account.invoice.supplier.form_ccorp1</field> | 55 | </data> |
2417 | 56 | <field name="model">account.invoice</field> | 56 | </field> |
2418 | 57 | <field name="inherit_id" ref="account.invoice_supplier_form"/> | 57 | </record> |
2419 | 58 | <field name="type">form</field> | 58 | |
2420 | 59 | <field name="arch" type="xml"> | 59 | <record id="account_invoice_supplier_form_ccorp_line2" model="ir.ui.view"> |
2421 | 60 | <xpath expr="/form/notebook/page/group/button[@name='button_reset_taxes']" position="replace"> | 60 | <field name="name">account.invoice.supplier.form.ccorp.line2</field> |
2422 | 61 | <button colspan="2" name="%(invoice_discount)d" states="draft" string="Apply Discount" type="action"/> | 61 | <field name="model">account.invoice</field> |
2423 | 62 | <button colspan="2" name="button_reset_taxes" states="draft" string="Compute Totals" type="object"/> | 62 | <field name="inherit_id" ref="account.invoice_supplier_form"/> |
2424 | 63 | </xpath> | 63 | <field name="arch" type="xml"> |
2425 | 64 | </field> | 64 | <data> |
2426 | 65 | </record> | 65 | <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="after"> |
2427 | 66 | <record id="invoice_supplier_form_ccorp2" model="ir.ui.view"> | 66 | <field name="price_subtotal_not_discounted"/> |
2428 | 67 | <field name="name">account.invoice.supplier.form_ccorp2</field> | 67 | </xpath> |
2429 | 68 | <field name="model">account.invoice</field> | 68 | </data> |
2430 | 69 | <field name="inherit_id" ref="account.invoice_supplier_form"/> | 69 | </field> |
2431 | 70 | <field name="type">form</field> | 70 | </record> |
2432 | 71 | <field name="arch" type="xml"> | 71 | |
2433 | 72 | <xpath expr="/form/notebook/page/group/field[@name='amount_untaxed']" position="replace"> | 72 | <record id="account_invoice_supplier_form_ccorp1" model="ir.ui.view"> |
2434 | 73 | <label colspan="2"/> | 73 | <field name="name">account.invoice.supplier.form.ccorp1</field> |
2435 | 74 | <field name="amount_untaxed_not_discounted"/> | 74 | <field name="model">account.invoice</field> |
2436 | 75 | <field name="invoice_discount"/> | 75 | <field name="inherit_id" ref="account.invoice_supplier_form"/> |
2437 | 76 | <field name="amount_discounted"/> | 76 | <field name="arch" type="xml"> |
2438 | 77 | </xpath> | 77 | <data> |
2439 | 78 | </field> | 78 | <xpath expr="//button[@name='button_reset_taxes']" position="replace"> |
2440 | 79 | </record> | 79 | <button colspan="2" name="invoice_discount" states="draft" string="Apply Discount" type="action"/> |
2441 | 80 | 80 | <button colspan="2" name="button_reset_taxes" states="draft" string="Compute Totals" type="object"/> | |
2442 | 81 | <record id="invoice_form_ccorp1" model="ir.ui.view"> | 81 | </xpath> |
2443 | 82 | <field name="name">account.invoice.form_ccorp1</field> | 82 | </data> |
2444 | 83 | <field name="model">account.invoice</field> | 83 | </field> |
2445 | 84 | <field name="inherit_id" ref="account.invoice_form"/> | 84 | </record> |
2446 | 85 | <field name="type">form</field> | 85 | |
2447 | 86 | <field name="arch" type="xml"> | 86 | <record id="account_invoice_supplier_form_ccorp2" model="ir.ui.view"> |
2448 | 87 | <xpath expr="/form/notebook/page/group/field[@name='amount_untaxed']" position="replace"> | 87 | <field name="name">account.invoice.supplier.form.ccorp2</field> |
2449 | 88 | <field name="amount_untaxed_not_discounted"/> | 88 | <field name="model">account.invoice</field> |
2450 | 89 | <group colspan="2" col="1"> | 89 | <field name="inherit_id" ref="account.invoice_supplier_form"/> |
2451 | 90 | <button colspan="2" name="%(invoice_discount)d" states="draft" string="Apply Discount" type="action"/> | 90 | <field name="arch" type="xml"> |
2452 | 91 | </group> | 91 | <data> |
2453 | 92 | <field name="invoice_discount"/> | 92 | <xpath expr="/form/sheet/notebook/page/group/field[@name='amount_untaxed']" position="replace"> |
2454 | 93 | <label colspan="2" string=""/> | 93 | <field name="amount_untaxed_not_discounted"/> |
2455 | 94 | <field name="amount_discounted"/> | 94 | <field name="invoice_discount"/> |
2456 | 95 | </xpath> | 95 | <field name="amount_discounted"/> |
2457 | 96 | </field> | 96 | </xpath> |
2458 | 97 | </record> | 97 | </data> |
2459 | 98 | 98 | </field> | |
2460 | 99 | <!-- | 99 | </record> |
2461 | 100 | Resource: account.invoice.line | 100 | |
2462 | 101 | Adds the subtotal not discounted to tree and form views | 101 | <record id="account_invoice_form_ccorp_line1" model="ir.ui.view"> |
2463 | 102 | --> | 102 | <field name="name">account.invoice.form.ccorp.line1</field> |
2464 | 103 | <record id="view_invoice_line_tree_ccorp" model="ir.ui.view"> | 103 | <field name="model">account.invoice</field> |
2465 | 104 | <field name="name">account.invoice.line.tree_ccorp</field> | 104 | <field name="inherit_id" ref="account.invoice_form"/> |
2466 | 105 | <field name="model">account.invoice.line</field> | 105 | <field name="arch" type="xml"> |
2467 | 106 | <field name="inherit_id" ref="account.view_invoice_line_tree"/> | 106 | <data> |
2468 | 107 | <field name="type">tree</field> | 107 | <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="before"> |
2469 | 108 | <field name="arch" type="xml"> | 108 | <field name="discount"/> |
2470 | 109 | <field name="price_subtotal" position="after"> | 109 | </xpath> |
2471 | 110 | <field name="price_subtotal_not_discounted"/> | 110 | </data> |
2472 | 111 | </field> | 111 | </field> |
2473 | 112 | </field> | 112 | </record> |
2474 | 113 | </record> | 113 | |
2475 | 114 | </data> | 114 | <record id="account_invoice_form_ccorp_line2" model="ir.ui.view"> |
2476 | 115 | <field name="name">account.invoice.form.ccorp.line2</field> | ||
2477 | 116 | <field name="model">account.invoice</field> | ||
2478 | 117 | <field name="inherit_id" ref="account.invoice_form"/> | ||
2479 | 118 | <field name="arch" type="xml"> | ||
2480 | 119 | <data> | ||
2481 | 120 | <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="after"> | ||
2482 | 121 | <field name="price_subtotal_not_discounted"/> | ||
2483 | 122 | </xpath> | ||
2484 | 123 | </data> | ||
2485 | 124 | </field> | ||
2486 | 125 | </record> | ||
2487 | 126 | |||
2488 | 127 | <record id="account_invoice_form_ccorp1" model="ir.ui.view"> | ||
2489 | 128 | <field name="name">account.invoice.form.ccorp1</field> | ||
2490 | 129 | <field name="model">account.invoice</field> | ||
2491 | 130 | <field name="inherit_id" ref="account.invoice_form"/> | ||
2492 | 131 | <field name="arch" type="xml"> | ||
2493 | 132 | <data> | ||
2494 | 133 | <xpath expr="//button[@name='button_reset_taxes']" position="replace"> | ||
2495 | 134 | <button colspan="2" name="invoice_discount" states="draft" string="Apply Discount" type="action"/> | ||
2496 | 135 | <button colspan="2" name="button_reset_taxes" states="draft" string="Compute Totals" type="object"/> | ||
2497 | 136 | </xpath> | ||
2498 | 137 | </data> | ||
2499 | 138 | </field> | ||
2500 | 139 | </record> | ||
2501 | 140 | |||
2502 | 141 | <record id="account_invoice_form_ccorp2" model="ir.ui.view"> | ||
2503 | 142 | <field name="name">account.invoice.form.ccorp2</field> | ||
2504 | 143 | <field name="model">account.invoice</field> | ||
2505 | 144 | <field name="inherit_id" ref="account.invoice_form"/> | ||
2506 | 145 | <field name="arch" type="xml"> | ||
2507 | 146 | <data> | ||
2508 | 147 | <xpath expr="/form/sheet/notebook/page/group/field[@name='amount_untaxed']" position="replace"> | ||
2509 | 148 | <field name="amount_untaxed_not_discounted"/> | ||
2510 | 149 | <field name="invoice_discount"/> | ||
2511 | 150 | <field name="amount_discounted"/> | ||
2512 | 151 | </xpath> | ||
2513 | 152 | </data> | ||
2514 | 153 | </field> | ||
2515 | 154 | </record> | ||
2516 | 155 | |||
2517 | 156 | </data> | ||
2518 | 115 | </openerp> | 157 | </openerp> |
2519 | 116 | 158 | ||
2520 | === removed file 'account_invoice_global_discount/account_invoice_global_discount_wizard.xml' | |||
2521 | --- account_invoice_global_discount/account_invoice_global_discount_wizard.xml 2012-06-30 22:41:06 +0000 | |||
2522 | +++ account_invoice_global_discount/account_invoice_global_discount_wizard.xml 1970-01-01 00:00:00 +0000 | |||
2523 | @@ -1,9 +0,0 @@ | |||
2524 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
2525 | 2 | <openerp> | ||
2526 | 3 | <data noupdate="1"> | ||
2527 | 4 | <!-- | ||
2528 | 5 | Resource: account.invoice | ||
2529 | 6 | --> | ||
2530 | 7 | <wizard string="Discount" model="account.invoice" name="invoice.discount" id="invoice_discount" menu="False"/> | ||
2531 | 8 | </data> | ||
2532 | 9 | </openerp> | ||
2533 | 10 | 0 | ||
2534 | === modified file 'account_invoice_global_discount/wizard/__init__.py' | |||
2535 | --- account_invoice_global_discount/wizard/__init__.py 2012-06-30 22:41:06 +0000 | |||
2536 | +++ account_invoice_global_discount/wizard/__init__.py 2013-11-06 21:08:00 +0000 | |||
2537 | @@ -1,35 +1,25 @@ | |||
2539 | 1 | # -*- encoding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
2540 | 2 | ############################################################################## | 2 | ############################################################################## |
2541 | 3 | # | 3 | # |
2571 | 4 | # __init__.py | 4 | # OpenERP, Open Source Management Solution |
2572 | 5 | # account_invoice_global_discount | 5 | # Addons modules by CLEARCORP S.A. |
2573 | 6 | # First author: Carlos Vásquez <carlos.vasquez@clearcorp.co.cr> (ClearCorp S.A.) | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). |
2574 | 7 | # Copyright (c) 2010-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved. | 7 | # |
2575 | 8 | # | 8 | # This program is free software: you can redistribute it and/or modify |
2576 | 9 | # Redistribution and use in source and binary forms, with or without modification, are | 9 | # it under the terms of the GNU Affero General Public License as |
2577 | 10 | # permitted provided that the following conditions are met: | 10 | # published by the Free Software Foundation, either version 3 of the |
2578 | 11 | # | 11 | # License, or (at your option) any later version. |
2579 | 12 | # 1. Redistributions of source code must retain the above copyright notice, this list of | 12 | # |
2580 | 13 | # conditions and the following disclaimer. | 13 | # This program is distributed in the hope that it will be useful, |
2581 | 14 | # | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
2582 | 15 | # 2. Redistributions in binary form must reproduce the above copyright notice, this list | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2583 | 16 | # of conditions and the following disclaimer in the documentation and/or other materials | 16 | # GNU Affero General Public License for more details. |
2584 | 17 | # provided with the distribution. | 17 | # |
2585 | 18 | # | 18 | # You should have received a copy of the GNU Affero General Public License |
2586 | 19 | # THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
2587 | 20 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | 20 | # |
2559 | 21 | # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR | ||
2560 | 22 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
2561 | 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
2562 | 24 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
2563 | 25 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
2564 | 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
2565 | 27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
2566 | 28 | # | ||
2567 | 29 | # The views and conclusions contained in the software and documentation are those of the | ||
2568 | 30 | # authors and should not be interpreted as representing official policies, either expressed | ||
2569 | 31 | # or implied, of ClearCorp S.A.. | ||
2570 | 32 | # | ||
2588 | 33 | ############################################################################## | 21 | ############################################################################## |
2589 | 34 | 22 | ||
2590 | 35 | import discount_wizard | 23 | import discount_wizard |
2591 | 24 | |||
2592 | 25 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
2593 | 36 | 26 | ||
2594 | === modified file 'account_invoice_global_discount/wizard/discount_wizard.py' | |||
2595 | --- account_invoice_global_discount/wizard/discount_wizard.py 2012-06-30 22:41:06 +0000 | |||
2596 | +++ account_invoice_global_discount/wizard/discount_wizard.py 2013-11-06 21:08:00 +0000 | |||
2597 | @@ -1,87 +1,49 @@ | |||
2685 | 1 | # -*- encoding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
2686 | 2 | ############################################################################## | 2 | ############################################################################## |
2687 | 3 | # | 3 | # |
2688 | 4 | # wizard_discount.py | 4 | # OpenERP, Open Source Management Solution |
2689 | 5 | # account_invoice_global_discount | 5 | # Addons modules by CLEARCORP S.A. |
2690 | 6 | # First author: Carlos Vásquez <carlos.vasquez@clearcorp.co.cr> (ClearCorp S.A.) | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). |
2691 | 7 | # Copyright (c) 2010-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved. | 7 | # |
2692 | 8 | # | 8 | # This program is free software: you can redistribute it and/or modify |
2693 | 9 | # Redistribution and use in source and binary forms, with or without modification, are | 9 | # it under the terms of the GNU Affero General Public License as |
2694 | 10 | # permitted provided that the following conditions are met: | 10 | # published by the Free Software Foundation, either version 3 of the |
2695 | 11 | # | 11 | # License, or (at your option) any later version. |
2696 | 12 | # 1. Redistributions of source code must retain the above copyright notice, this list of | 12 | # |
2697 | 13 | # conditions and the following disclaimer. | 13 | # This program is distributed in the hope that it will be useful, |
2698 | 14 | # | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
2699 | 15 | # 2. Redistributions in binary form must reproduce the above copyright notice, this list | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2700 | 16 | # of conditions and the following disclaimer in the documentation and/or other materials | 16 | # GNU Affero General Public License for more details. |
2701 | 17 | # provided with the distribution. | 17 | # |
2702 | 18 | # | 18 | # You should have received a copy of the GNU Affero General Public License |
2703 | 19 | # THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
2704 | 20 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | 20 | # |
2705 | 21 | # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR | 21 | ############################################################################## |
2706 | 22 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 22 | |
2707 | 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | 23 | from osv import osv, fields |
2708 | 24 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | 24 | |
2709 | 25 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | 25 | class DiscountWizard(osv.osv): |
2710 | 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 26 | |
2711 | 27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 | _name = "discount.wizard" |
2712 | 28 | # | 28 | _description = "Discount Wizard" |
2713 | 29 | # The views and conclusions contained in the software and documentation are those of the | 29 | |
2714 | 30 | # authors and should not be interpreted as representing official policies, either expressed | 30 | _columns = { |
2715 | 31 | # or implied, of ClearCorp S.A.. | 31 | 'discount': fields.float('Discount percentage', required=True), |
2716 | 32 | # | 32 | 'period_from': fields.many2one('account.period', 'Start Period'), |
2717 | 33 | ############################################################################## | 33 | 'period_to': fields.many2one('account.period', 'End Period'), |
2718 | 34 | 34 | } | |
2719 | 35 | import pooler | 35 | |
2720 | 36 | import wizard | 36 | _default = { |
2721 | 37 | 37 | 'discount': lambda *args: 0 | |
2722 | 38 | 38 | } | |
2723 | 39 | _form = """<?xml version="1.0"?> | 39 | |
2724 | 40 | <form string="Discount:"> | 40 | |
2725 | 41 | <field name="discount"/> | 41 | def apply_discount(self, cr, uid, data, context): |
2726 | 42 | </form> | 42 | invoice_obj = self.pool.get('account.invoice') |
2727 | 43 | """ | 43 | invoice_line_obj = self.pool.get('account.invoice.line') |
2728 | 44 | 44 | for invoice in invoice_obj.browse(cr, uid, data['ids'], context=context): | |
2729 | 45 | _fields = { | 45 | invoice_line_obj.write(cr, uid, [line.id for line in invoice.invoice_line], {'discount': data['form']['discount']}, context=context,) |
2730 | 46 | 'discount': { | 46 | return {} |
2731 | 47 | 'string': 'Discount percentage', | 47 | |
2732 | 48 | 'type': 'float', | 48 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
2733 | 49 | 'required': True, | 49 | |
2647 | 50 | 'default': lambda *args: 0 | ||
2648 | 51 | }, | ||
2649 | 52 | } | ||
2650 | 53 | |||
2651 | 54 | |||
2652 | 55 | def apply_discount(self, cr, uid, data, context): | ||
2653 | 56 | pool = pooler.get_pool(cr.dbname) | ||
2654 | 57 | invoice_obj = pool.get('account.invoice') | ||
2655 | 58 | invoice_line_obj = pool.get('account.invoice.line') | ||
2656 | 59 | for invoice in invoice_obj.browse(cr, uid, data['ids'], context=context): | ||
2657 | 60 | invoice_line_obj.write(cr, uid, [line.id for line in invoice.invoice_line], {'discount': data['form']['discount']}, context=context,) | ||
2658 | 61 | return {} | ||
2659 | 62 | |||
2660 | 63 | |||
2661 | 64 | class discount_wizard(wizard.interface): | ||
2662 | 65 | states = { | ||
2663 | 66 | 'init': { | ||
2664 | 67 | 'actions': [], | ||
2665 | 68 | 'result': { | ||
2666 | 69 | 'type': 'form', | ||
2667 | 70 | 'arch': _form, | ||
2668 | 71 | 'fields': _fields, | ||
2669 | 72 | 'state': (('end', 'Cancel'), | ||
2670 | 73 | ('apply_discount', 'Apply Discount', 'gtk-ok', True) | ||
2671 | 74 | ) | ||
2672 | 75 | } | ||
2673 | 76 | }, | ||
2674 | 77 | 'apply_discount': { | ||
2675 | 78 | 'actions': [], | ||
2676 | 79 | 'result': { | ||
2677 | 80 | 'type': 'action', | ||
2678 | 81 | 'action': apply_discount, | ||
2679 | 82 | 'state': "end", | ||
2680 | 83 | } | ||
2681 | 84 | }, | ||
2682 | 85 | } | ||
2683 | 86 | |||
2684 | 87 | discount_wizard('invoice.discount') | ||
2734 | 88 | 50 | ||
2735 | === added file 'account_invoice_global_discount/wizard/discount_wizard_view.xml' | |||
2736 | --- account_invoice_global_discount/wizard/discount_wizard_view.xml 1970-01-01 00:00:00 +0000 | |||
2737 | +++ account_invoice_global_discount/wizard/discount_wizard_view.xml 2013-11-06 21:08:00 +0000 | |||
2738 | @@ -0,0 +1,31 @@ | |||
2739 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
2740 | 2 | <openerp> | ||
2741 | 3 | <data noupdate="1"> | ||
2742 | 4 | |||
2743 | 5 | <record id="discount_wizard_view" model="ir.ui.view"> | ||
2744 | 6 | <field name="name">Discount Wizard View</field> | ||
2745 | 7 | <field name="model">discount.wizard</field> | ||
2746 | 8 | <field name="arch" type="xml"> | ||
2747 | 9 | <form string="Discount Wizard" version="7.0"> | ||
2748 | 10 | <field name="discount" /> | ||
2749 | 11 | <footer> | ||
2750 | 12 | <button name="apply_discount" string="Discount" type="object"/> | ||
2751 | 13 | or | ||
2752 | 14 | <button string="Cancel" class="oe_link" special="cancel" /> | ||
2753 | 15 | </footer> | ||
2754 | 16 | </form> | ||
2755 | 17 | </field> | ||
2756 | 18 | </record> | ||
2757 | 19 | |||
2758 | 20 | <record id="action_discount_wizard_view" model="ir.actions.act_window"> | ||
2759 | 21 | <field name="name">Action Discount Wizard View</field> | ||
2760 | 22 | <field name="type">ir.actions.act_window</field> | ||
2761 | 23 | <field name="res_model">discount.wizard</field> | ||
2762 | 24 | <field name="view_type">form</field> | ||
2763 | 25 | <field name="view_mode">form</field> | ||
2764 | 26 | <field name="view_id" ref="discount_wizard_view"/> | ||
2765 | 27 | <field name="target">new</field> | ||
2766 | 28 | </record> | ||
2767 | 29 | |||
2768 | 30 | </data> | ||
2769 | 31 | </openerp> | ||
2770 | 0 | 32 | ||
2771 | === modified file 'account_invoice_journal_defaults/__openerp__.py' | |||
2772 | --- account_invoice_journal_defaults/__openerp__.py 2012-06-29 21:17:48 +0000 | |||
2773 | +++ account_invoice_journal_defaults/__openerp__.py 2013-11-06 21:08:00 +0000 | |||
2774 | @@ -25,14 +25,12 @@ | |||
2775 | 25 | 'category': 'Accounting & Finance', | 25 | 'category': 'Accounting & Finance', |
2776 | 26 | "sequence": 4, | 26 | "sequence": 4, |
2777 | 27 | 'complexity': "normal", | 27 | 'complexity': "normal", |
2786 | 28 | 'description': """ | 28 | 'description': ''' |
2787 | 29 | account_invoice_journal_defaults. | 29 | * account_id and journal_id added to onchange_partner |
2788 | 30 | ======================= | 30 | * account_id added in onchange_journal |
2789 | 31 | * Currency changed to readonly | 31 | * account_id associated with the journal or with the account in the partner |
2790 | 32 | * Change button removed | 32 | * account_id change to read-only |
2791 | 33 | * account_id removed in onchange_partner | 33 | ''', |
2784 | 34 | * account_id added in onchange_journal | ||
2785 | 35 | """, | ||
2792 | 36 | "author" : 'CLEARCORP S.A', | 34 | "author" : 'CLEARCORP S.A', |
2793 | 37 | 'website':'http://www.clearcorp.co.cr', | 35 | 'website':'http://www.clearcorp.co.cr', |
2794 | 38 | "depends" : ['account'], | 36 | "depends" : ['account'], |
2795 | 39 | 37 | ||
2796 | === modified file 'account_invoice_journal_defaults/account_invoice_journal_defaults.py' | |||
2797 | --- account_invoice_journal_defaults/account_invoice_journal_defaults.py 2013-01-14 21:57:42 +0000 | |||
2798 | +++ account_invoice_journal_defaults/account_invoice_journal_defaults.py 2013-11-06 21:08:00 +0000 | |||
2799 | @@ -29,30 +29,88 @@ | |||
2800 | 29 | _inherit = 'account.invoice' | 29 | _inherit = 'account.invoice' |
2801 | 30 | 30 | ||
2802 | 31 | def onchange_partner_id(self, cr, uid, ids, type, partner_id,\ | 31 | def onchange_partner_id(self, cr, uid, ids, type, partner_id,\ |
2804 | 32 | date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False): | 32 | date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False, journal_id = False, account_id = False): |
2805 | 33 | 33 | ||
2806 | 34 | result = super(AccountInvoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id, company_id) | 34 | result = super(AccountInvoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id, company_id) |
2808 | 35 | if 'account_id' in result['value']: | 35 | |
2809 | 36 | #If the partner have account_id, but the journal doesn't have one, put the account that appears | ||
2810 | 37 | #in result dictionary. | ||
2811 | 38 | |||
2812 | 39 | if not account_id: | ||
2813 | 40 | journal = self.pool.get('account.journal').browse(cr, uid, journal_id) | ||
2814 | 41 | acc_id = False | ||
2815 | 42 | |||
2816 | 43 | if journal.type == 'sale': | ||
2817 | 44 | acc_id = journal.default_receivable_account_id | ||
2818 | 45 | elif journal.type == 'purchase': | ||
2819 | 46 | acc_id = journal.default_payable_account_id | ||
2820 | 47 | elif journal.type == 'sale_refund': | ||
2821 | 48 | acc_id = journal.default_payable_account_id | ||
2822 | 49 | elif journal.type == 'purchase_refund': | ||
2823 | 50 | acc_id = journal.default_receivable_account_id | ||
2824 | 51 | |||
2825 | 52 | if not acc_id: | ||
2826 | 53 | if partner_id: | ||
2827 | 54 | partner = self.pool.get('res.partner').browse(cr, uid, partner_id) | ||
2828 | 55 | |||
2829 | 56 | if partner.id != uid: | ||
2830 | 57 | if journal.type == 'sale': | ||
2831 | 58 | acc_id = partner.property_account_receivable | ||
2832 | 59 | elif journal.type == 'purchase': | ||
2833 | 60 | acc_id = partner.property_account_payable | ||
2834 | 61 | elif journal.type == 'sale_refund': | ||
2835 | 62 | acc_id = partner.property_account_payable | ||
2836 | 63 | elif journal.type == 'purchase_refund': | ||
2837 | 64 | acc_id = partner.property_account_receivable | ||
2838 | 65 | |||
2839 | 66 | else: | ||
2840 | 67 | result['value']['account_id'] = False | ||
2841 | 68 | |||
2842 | 69 | result['value']['account_id'] = acc_id.id | ||
2843 | 70 | |||
2844 | 71 | else: | ||
2845 | 36 | del result['value']['account_id'] | 72 | del result['value']['account_id'] |
2847 | 37 | 73 | ||
2848 | 38 | return result | 74 | return result |
2849 | 39 | 75 | ||
2851 | 40 | def onchange_journal_id(self, cr, uid, ids, journal_id=False, context=None): | 76 | def onchange_journal_id(self, cr, uid, ids, journal_id=False, partner_id = False, context=None): |
2852 | 77 | |||
2853 | 41 | result = super(AccountInvoice, self).onchange_journal_id(cr, uid, ids, journal_id, context) | 78 | result = super(AccountInvoice, self).onchange_journal_id(cr, uid, ids, journal_id, context) |
2868 | 42 | 79 | ||
2869 | 43 | journal = self.pool.get('account.journal').browse(cr, uid, journal_id, context=context) | 80 | if journal_id is not False: |
2870 | 44 | 81 | journal = self.pool.get('account.journal').browse(cr, uid, journal_id, context=context) | |
2871 | 45 | if journal.type == 'sale': | 82 | |
2872 | 46 | acc_id = journal.default_receivable_account_id.id | 83 | if journal.type == 'sale': |
2873 | 47 | elif journal.type == 'purchase': | 84 | acc_id = journal.default_receivable_account_id |
2874 | 48 | acc_id = journal.default_payable_account_id.id | 85 | elif journal.type == 'purchase': |
2875 | 49 | elif journal.type == 'sale_refund': | 86 | acc_id = journal.default_payable_account_id |
2876 | 50 | acc_id = journal.default_payable_account_id.id | 87 | elif journal.type == 'sale_refund': |
2877 | 51 | elif journal.type == 'purchase_refund': | 88 | acc_id = journal.default_payable_account_id |
2878 | 52 | acc_id = journal.default_receivable_account_id.id | 89 | elif journal.type == 'purchase_refund': |
2879 | 53 | 90 | acc_id = journal.default_receivable_account_id | |
2880 | 54 | result['value']['account_id'] = acc_id | 91 | |
2881 | 55 | 92 | if not acc_id: | |
2882 | 93 | if partner_id: | ||
2883 | 94 | partner = self.pool.get('res.partner').browse(cr, uid, partner_id['uid'], context) | ||
2884 | 95 | |||
2885 | 96 | if partner.id != uid: | ||
2886 | 97 | if journal.type == 'sale': | ||
2887 | 98 | acc_id = partner.property_account_receivable | ||
2888 | 99 | elif journal.type == 'purchase': | ||
2889 | 100 | acc_id = partner.property_account_payable | ||
2890 | 101 | elif journal.type == 'sale_refund': | ||
2891 | 102 | acc_id = partner.property_account_payable | ||
2892 | 103 | elif journal.type == 'purchase_refund': | ||
2893 | 104 | acc_id = partner.property_account_receivable | ||
2894 | 105 | |||
2895 | 106 | result['value']['account_id'] = acc_id.id | ||
2896 | 107 | |||
2897 | 108 | else: | ||
2898 | 109 | result['value']['account_id'] = False | ||
2899 | 110 | |||
2900 | 111 | else: | ||
2901 | 112 | result['value']['account_id'] = acc_id.id | ||
2902 | 113 | |||
2903 | 56 | return result | 114 | return result |
2904 | 57 | 115 | ||
2905 | 58 | def create(self, cr, uid, vals, context=None): | 116 | def create(self, cr, uid, vals, context=None): |
2906 | @@ -118,11 +176,8 @@ | |||
2907 | 118 | _inherit = 'account.journal' | 176 | _inherit = 'account.journal' |
2908 | 119 | 177 | ||
2909 | 120 | _columns = { | 178 | _columns = { |
2912 | 121 | 'default_receivable_account_id': fields.many2one('account.account', 'Default Receivable Account', domain="[('type','!=','view')]", help="It acts as a default receivable account"), | 179 | 'default_receivable_account_id': fields.many2one('account.account', 'Default Receivable Account', help="It acts as a default receivable account"), |
2913 | 122 | 'default_payable_account_id': fields.many2one('account.account', 'Default Payable Account', domain="[('type','!=','view')]", help="It acts as a default payable account"), | 180 | 'default_payable_account_id': fields.many2one('account.account', 'Default Payable Account', help="It acts as a default payable account"), |
2914 | 123 | } | 181 | } |
2915 | 124 | 182 | ||
2916 | 125 | |||
2917 | 126 | |||
2918 | 127 | |||
2919 | 128 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | 183 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
2920 | 129 | 184 | ||
2921 | === modified file 'account_invoice_journal_defaults/account_invoice_journal_defaults_view.xml' | |||
2922 | --- account_invoice_journal_defaults/account_invoice_journal_defaults_view.xml 2012-06-29 21:17:48 +0000 | |||
2923 | +++ account_invoice_journal_defaults/account_invoice_journal_defaults_view.xml 2013-11-06 21:08:00 +0000 | |||
2924 | @@ -10,16 +10,22 @@ | |||
2925 | 10 | <field name="inherit_id" ref="account.invoice_supplier_form"/> | 10 | <field name="inherit_id" ref="account.invoice_supplier_form"/> |
2926 | 11 | <field name="arch" type="xml"> | 11 | <field name="arch" type="xml"> |
2927 | 12 | <data> | 12 | <data> |
2928 | 13 | <field name = "journal_id" position = "replace"> | ||
2929 | 14 | <field name="journal_id" on_change="onchange_journal_id(journal_id, partner_id)" widget="selection"/> | ||
2930 | 15 | </field> | ||
2931 | 16 | |||
2932 | 17 | <field name = "partner_id" position="replace"> | ||
2933 | 18 | <field string="Supplier" name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id, journal_id,account_id)" context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" options='{"quick_create": false}' domain="[('supplier', '=', True)]"/> | ||
2934 | 19 | </field> | ||
2935 | 20 | |||
2936 | 13 | <field name = "currency_id" position = "replace"> | 21 | <field name = "currency_id" position = "replace"> |
2937 | 14 | <field name="currency_id" width="50" readonly="1"/> | 22 | <field name="currency_id" width="50" readonly="1"/> |
2938 | 15 | </field> | 23 | </field> |
2939 | 24 | |||
2940 | 16 | <field name = "account_id" position = "replace"> | 25 | <field name = "account_id" position = "replace"> |
2941 | 17 | <field domain="[('company_id', '=', company_id), ('type', '=', 'payable')]" name="account_id" readonly="1" groups="account.group_account_user"/> | 26 | <field domain="[('company_id', '=', company_id), ('type', '=', 'payable')]" name="account_id" readonly="1" groups="account.group_account_user"/> |
2942 | 18 | </field> | 27 | </field> |
2947 | 19 | <button string="Change" position = "replace"> | 28 | </data> |
2944 | 20 | <button invisible = "True" type="action" icon="terp-stock_effects-object-colorize" string="Change" groups="account.group_account_user"/> | ||
2945 | 21 | </button> | ||
2946 | 22 | </data> | ||
2948 | 23 | </field> | 29 | </field> |
2949 | 24 | </record> | 30 | </record> |
2950 | 25 | <!-- End Supplier Invoice --> | 31 | <!-- End Supplier Invoice --> |
2951 | @@ -31,16 +37,22 @@ | |||
2952 | 31 | <field name="type">form</field> | 37 | <field name="type">form</field> |
2953 | 32 | <field name="inherit_id" ref="account.invoice_form"/> | 38 | <field name="inherit_id" ref="account.invoice_form"/> |
2954 | 33 | <field name="arch" type="xml"> | 39 | <field name="arch" type="xml"> |
2956 | 34 | <data> | 40 | <data> |
2957 | 41 | <field name="journal_id" position="replace"> | ||
2958 | 42 | <field name="journal_id" groups="base.group_user" on_change="onchange_journal_id(journal_id, context, partner_id)" widget="selection"/> | ||
2959 | 43 | </field> | ||
2960 | 44 | |||
2961 | 45 | <field name="partner_id" positon="replace"> | ||
2962 | 46 | <field string="Customer" name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id,journal_id,account_id)" groups="base.group_user" context="{'search_default_customer': 1}" options='{"quick_create": false}' domain="[('customer', '=', True)]"/> | ||
2963 | 47 | </field> | ||
2964 | 48 | |||
2965 | 35 | <field name = "currency_id" position = "replace"> | 49 | <field name = "currency_id" position = "replace"> |
2966 | 36 | <field name="currency_id" width="50" readonly="1"/> | 50 | <field name="currency_id" width="50" readonly="1"/> |
2967 | 37 | </field> | 51 | </field> |
2968 | 52 | |||
2969 | 38 | <field name = "account_id" position = "replace"> | 53 | <field name = "account_id" position = "replace"> |
2970 | 39 | <field domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" readonly="1" groups="account.group_account_user"/> | 54 | <field domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" readonly="1" groups="account.group_account_user"/> |
2971 | 40 | </field> | 55 | </field> |
2972 | 41 | <button string="Change" position = "replace"> | ||
2973 | 42 | <button invisible = "True" type="action" icon="terp-stock_effects-object-colorize" string="Change" groups="account.group_account_user"/> | ||
2974 | 43 | </button> | ||
2975 | 44 | </data> | 56 | </data> |
2976 | 45 | </field> | 57 | </field> |
2977 | 46 | </record> | 58 | </record> |
2978 | @@ -54,11 +66,11 @@ | |||
2979 | 54 | <field name="inherit_id" ref="account.view_account_journal_form"/> | 66 | <field name="inherit_id" ref="account.view_account_journal_form"/> |
2980 | 55 | <field name="arch" type="xml"> | 67 | <field name="arch" type="xml"> |
2981 | 56 | <data> | 68 | <data> |
2983 | 57 | <field name="default_credit_account_id" position = "after"> | 69 | <field name="type" position = "after"> |
2984 | 58 | <group colspan="2" col="2" attrs="{'invisible':[('type','not in', ('sale', 'purchase', 'sale_refund', 'purchase_refund'))]}"> | 70 | <group colspan="2" col="2" attrs="{'invisible':[('type','not in', ('sale', 'purchase', 'sale_refund', 'purchase_refund'))]}"> |
2985 | 59 | <separator string="Default Accounts Receivable/Payable" colspan="4"/> | 71 | <separator string="Default Accounts Receivable/Payable" colspan="4"/> |
2988 | 60 | <field name="default_receivable_account_id" attrs="{'required':[('type','in', ('sale', 'purchase', 'sale_refund', 'purchase_refund'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/> | 72 | <field name="default_receivable_account_id" domain="[('type','=', 'receivable')]"/> |
2989 | 61 | <field name="default_payable_account_id" attrs="{'required':[('type','in', ('sale', 'purchase', 'sale_refund', 'purchase_refund'))]}" domain="[('type','<>','view'),('type','<>','consolidation')]"/> | 73 | <field name="default_payable_account_id" domain="[('type','=', 'payable')]"/> |
2990 | 62 | </group> | 74 | </group> |
2991 | 63 | </field> | 75 | </field> |
2992 | 64 | </data> | 76 | </data> |
2993 | 65 | 77 | ||
2994 | === modified file 'account_invoice_webkit_report/__openerp__.py' | |||
2995 | --- account_invoice_webkit_report/__openerp__.py 2012-12-04 18:01:04 +0000 | |||
2996 | +++ account_invoice_webkit_report/__openerp__.py 2013-11-06 21:08:00 +0000 | |||
2997 | @@ -24,10 +24,9 @@ | |||
2998 | 24 | "name" : 'Invoice Webkit Report', | 24 | "name" : 'Invoice Webkit Report', |
2999 | 25 | "version" : '1.0', | 25 | "version" : '1.0', |
3000 | 26 | "author" : 'CLEARCORP S.A', | 26 | "author" : 'CLEARCORP S.A', |
3001 | 27 | #easy, normal, expert | ||
3002 | 28 | 'complexity': 'normal', | 27 | 'complexity': 'normal', |
3003 | 29 | "description": """ | 28 | "description": """ |
3005 | 30 | Invoice webkit report | 29 | Invoice webkit report |
3006 | 31 | """, | 30 | """, |
3007 | 32 | "category": 'Accounting & Finance', | 31 | "category": 'Accounting & Finance', |
3008 | 33 | "sequence": 4, | 32 | "sequence": 4, |
3009 | @@ -36,12 +35,16 @@ | |||
3010 | 36 | "icon" : False, | 35 | "icon" : False, |
3011 | 37 | "depends" : [ | 36 | "depends" : [ |
3012 | 38 | 'base', | 37 | 'base', |
3014 | 39 | 'report_webkit', | 38 | 'account_report_lib', |
3015 | 40 | 'account_invoice_global_discount', | 39 | 'account_invoice_global_discount', |
3016 | 41 | ], | 40 | ], |
3017 | 42 | "init_xml" : [], | 41 | "init_xml" : [], |
3018 | 43 | "demo_xml" : [], | 42 | "demo_xml" : [], |
3020 | 44 | "update_xml" : ['ccorp_account_webkit_report.xml'], | 43 | "update_xml" : [ |
3021 | 44 | 'data/account_invoice_webkit_report_header.xml', | ||
3022 | 45 | 'account_invoice_webkit_report.xml', | ||
3023 | 46 | 'report/report.xml' | ||
3024 | 47 | ], | ||
3025 | 45 | "test" : [], | 48 | "test" : [], |
3026 | 46 | "auto_install": False, | 49 | "auto_install": False, |
3027 | 47 | "application": False, | 50 | "application": False, |
3028 | 48 | 51 | ||
3029 | === modified file 'account_invoice_webkit_report/account_invoice_webkit_report.py' | |||
3030 | --- account_invoice_webkit_report/account_invoice_webkit_report.py 2012-12-04 18:01:04 +0000 | |||
3031 | +++ account_invoice_webkit_report/account_invoice_webkit_report.py 2013-11-06 21:08:00 +0000 | |||
3032 | @@ -29,4 +29,5 @@ | |||
3033 | 29 | _columns = { | 29 | _columns = { |
3034 | 30 | 'use_email_invoice':fields.boolean('Use user email',help="In the invoice, if it is selected appears the user's mail is logged in. If not selected, do not appear any associated email"), | 30 | 'use_email_invoice':fields.boolean('Use user email',help="In the invoice, if it is selected appears the user's mail is logged in. If not selected, do not appear any associated email"), |
3035 | 31 | } | 31 | } |
3036 | 32 | |||
3037 | 32 | res_company() | 33 | res_company() |
3038 | 33 | \ No newline at end of file | 34 | \ No newline at end of file |
3039 | 34 | 35 | ||
3040 | === added file 'account_invoice_webkit_report/account_invoice_webkit_report.xml' | |||
3041 | --- account_invoice_webkit_report/account_invoice_webkit_report.xml 1970-01-01 00:00:00 +0000 | |||
3042 | +++ account_invoice_webkit_report/account_invoice_webkit_report.xml 2013-11-06 21:08:00 +0000 | |||
3043 | @@ -0,0 +1,21 @@ | |||
3044 | 1 | <?xml version="1.0"?> | ||
3045 | 2 | <openerp> | ||
3046 | 3 | <data> | ||
3047 | 4 | <record id="view_company_form_inherit" model="ir.ui.view"> | ||
3048 | 5 | <field name="name">res.company.form.inherit</field> | ||
3049 | 6 | <field name="model">res.company</field> | ||
3050 | 7 | <field name="type">form</field> | ||
3051 | 8 | <field name="inherit_id" ref="base.view_company_form"/> | ||
3052 | 9 | <field name="arch" type="xml"> | ||
3053 | 10 | <data> | ||
3054 | 11 | <page string="General Information" position="after"> | ||
3055 | 12 | <page string="Configuration Report" groups="base.group_extended"> | ||
3056 | 13 | <separator colspan="4" string="Invoices"/> | ||
3057 | 14 | <field colspan="4" name="use_email_invoice"/> | ||
3058 | 15 | </page> | ||
3059 | 16 | </page> | ||
3060 | 17 | </data> | ||
3061 | 18 | </field> | ||
3062 | 19 | </record> | ||
3063 | 20 | </data> | ||
3064 | 21 | </openerp> | ||
3065 | 0 | 22 | ||
3066 | === removed file 'account_invoice_webkit_report/ccorp_account_webkit_report.xml' | |||
3067 | --- account_invoice_webkit_report/ccorp_account_webkit_report.xml 2013-01-17 15:31:51 +0000 | |||
3068 | +++ account_invoice_webkit_report/ccorp_account_webkit_report.xml 1970-01-01 00:00:00 +0000 | |||
3069 | @@ -1,34 +0,0 @@ | |||
3070 | 1 | <?xml version="1.0"?> | ||
3071 | 2 | <openerp> | ||
3072 | 3 | <data> | ||
3073 | 4 | |||
3074 | 5 | <record id="account.account_invoices" model="ir.actions.report.xml"> | ||
3075 | 6 | <field name="auto" eval="False" /> | ||
3076 | 7 | <field name="multi" eval="False" /> | ||
3077 | 8 | <field name="model">account.invoice</field> | ||
3078 | 9 | <field name="name">account.invoice.layout_ccorp</field> | ||
3079 | 10 | <field name="report_file">account_invoice_webkit_report/report/invoice.mako</field> | ||
3080 | 11 | <field name="report_rml">account_invoice_webkit_report/report/invoice.mako</field> | ||
3081 | 12 | <field name="report_type">webkit</field> | ||
3082 | 13 | </record> | ||
3083 | 14 | |||
3084 | 15 | |||
3085 | 16 | <record id="view_company_form_inherit" model="ir.ui.view"> | ||
3086 | 17 | <field name="name">res.company.form.inherit</field> | ||
3087 | 18 | <field name="model">res.company</field> | ||
3088 | 19 | <field name="type">form</field> | ||
3089 | 20 | <field name="inherit_id" ref="base.view_company_form"/> | ||
3090 | 21 | <field name="arch" type="xml"> | ||
3091 | 22 | <data> | ||
3092 | 23 | <page string="General Information" position="after"> | ||
3093 | 24 | <page string="Configuration Report" groups="base.group_extended"> | ||
3094 | 25 | <separator colspan="4" string="Invoices"/> | ||
3095 | 26 | <field colspan="4" name="use_email_invoice"/> | ||
3096 | 27 | </page> | ||
3097 | 28 | </page> | ||
3098 | 29 | </data> | ||
3099 | 30 | </field> | ||
3100 | 31 | </record> | ||
3101 | 32 | |||
3102 | 33 | </data> | ||
3103 | 34 | </openerp> | ||
3104 | 35 | 0 | ||
3105 | === added directory 'account_invoice_webkit_report/data' | |||
3106 | === added file 'account_invoice_webkit_report/data/account_invoice_webkit_report_header.xml' | |||
3107 | --- account_invoice_webkit_report/data/account_invoice_webkit_report_header.xml 1970-01-01 00:00:00 +0000 | |||
3108 | +++ account_invoice_webkit_report/data/account_invoice_webkit_report_header.xml 2013-11-06 21:08:00 +0000 | |||
3109 | @@ -0,0 +1,239 @@ | |||
3110 | 1 | <?xml version="1.0"?> | ||
3111 | 2 | <openerp> | ||
3112 | 3 | <data noupdate="1"> | ||
3113 | 4 | <record id="invoice_header_webkit" model="ir.header_webkit"> | ||
3114 | 5 | <field name="name">Invoice CLEARCORP official header</field> | ||
3115 | 6 | <field name="orientation">Portrait</field> | ||
3116 | 7 | <field name="format">Letter</field> | ||
3117 | 8 | <field name="margin_top">70.00</field> | ||
3118 | 9 | <field name="margin_bottom">24.00</field> | ||
3119 | 10 | <field name="margin_left">0</field> | ||
3120 | 11 | <field name="margin_right">0</field> | ||
3121 | 12 | <field name="css"><![CDATA[ | ||
3122 | 13 | .header { | ||
3123 | 14 | padding : 200px 10px 5px 10px; | ||
3124 | 15 | border:0; margin: 0; | ||
3125 | 16 | } | ||
3126 | 17 | .header-table { | ||
3127 | 18 | width: 100%; | ||
3128 | 19 | padding-top: 8%; | ||
3129 | 20 | } | ||
3130 | 21 | .partner-table { | ||
3131 | 22 | width: 100%; | ||
3132 | 23 | font-family: Arial,Verdana, Sans, Serif; | ||
3133 | 24 | font-size: 12; | ||
3134 | 25 | } | ||
3135 | 26 | |||
3136 | 27 | #data-table { | ||
3137 | 28 | width: 100%; | ||
3138 | 29 | padding-top: 20px; | ||
3139 | 30 | font-family: Arial,Verdana, Sans, Serif; | ||
3140 | 31 | font-size: 12; | ||
3141 | 32 | } | ||
3142 | 33 | #data-table th{ | ||
3143 | 34 | border-bottom:2px solid black; | ||
3144 | 35 | text-align:center; | ||
3145 | 36 | font-size:12; | ||
3146 | 37 | font-weight:bold; | ||
3147 | 38 | padding-right:3px; | ||
3148 | 39 | padding-left:3px; | ||
3149 | 40 | } | ||
3150 | 41 | #data-table thead { | ||
3151 | 42 | display:table-header-group; | ||
3152 | 43 | } | ||
3153 | 44 | |||
3154 | 45 | .title { | ||
3155 | 46 | font-size:16; | ||
3156 | 47 | font-weight: bold; | ||
3157 | 48 | } | ||
3158 | 49 | |||
3159 | 50 | td.company_logo{ | ||
3160 | 51 | width : 100%; | ||
3161 | 52 | padding-top: 20px; | ||
3162 | 53 | padding-bottom: 5px; | ||
3163 | 54 | } | ||
3164 | 55 | .company_address{ | ||
3165 | 56 | width : 100%; | ||
3166 | 57 | text-align: right; | ||
3167 | 58 | font-family: Arial,Verdana, Sans, Serif; | ||
3168 | 59 | font-size: 13; | ||
3169 | 60 | } | ||
3170 | 61 | |||
3171 | 62 | .company_data { | ||
3172 | 63 | width : 100%; | ||
3173 | 64 | text-align: left; | ||
3174 | 65 | font-family: Arial,Verdana, Sans, Serif; | ||
3175 | 66 | font-size: 13; | ||
3176 | 67 | |||
3177 | 68 | } | ||
3178 | 69 | |||
3179 | 70 | .company_footer { | ||
3180 | 71 | font-family: Arial,Verdana, Sans, Serif; | ||
3181 | 72 | font-size: 8.4; | ||
3182 | 73 | font-style : italic; | ||
3183 | 74 | } | ||
3184 | 75 | .footer { | ||
3185 | 76 | border-top: 1px solid black; | ||
3186 | 77 | width: 100%; | ||
3187 | 78 | border:0; margin: 0; | ||
3188 | 79 | padding-bottom: 300px; | ||
3189 | 80 | } | ||
3190 | 81 | |||
3191 | 82 | .data { | ||
3192 | 83 | padding : 5px 10px 10px 10px; | ||
3193 | 84 | border:0; margin: 0; | ||
3194 | 85 | } | ||
3195 | 86 | |||
3196 | 87 | .footer_table { | ||
3197 | 88 | width: 100%; | ||
3198 | 89 | padding-bottom: 150px; | ||
3199 | 90 | border-top: 1px solid black; | ||
3200 | 91 | } | ||
3201 | 92 | |||
3202 | 93 | .slogan { | ||
3203 | 94 | font-family: Arial,Verdana, Sans, Serif; | ||
3204 | 95 | font-size: 10; | ||
3205 | 96 | font-style : italic; | ||
3206 | 97 | color : #888888; | ||
3207 | 98 | } | ||
3208 | 99 | |||
3209 | 100 | #notes_table { | ||
3210 | 101 | font-family: Arial,Verdana, Sans, Serif; | ||
3211 | 102 | font-size: 12; | ||
3212 | 103 | font-style : italic; | ||
3213 | 104 | width:65%; | ||
3214 | 105 | border-collapse:separate; | ||
3215 | 106 | border-spacing:10px; | ||
3216 | 107 | } | ||
3217 | 108 | #notes_table td{ | ||
3218 | 109 | background-color: #eee; | ||
3219 | 110 | padding: 10px | ||
3220 | 111 | } | ||
3221 | 112 | |||
3222 | 113 | .document_data { | ||
3223 | 114 | font-family: Arial,Verdana, Sans, Serif; | ||
3224 | 115 | font-size: 13; | ||
3225 | 116 | } | ||
3226 | 117 | |||
3227 | 118 | #data-table tbody tr.even td { | ||
3228 | 119 | background-color: #eee; | ||
3229 | 120 | } | ||
3230 | 121 | #data-table tbody tr.odd td { | ||
3231 | 122 | background-color: #fff; | ||
3232 | 123 | } | ||
3233 | 124 | |||
3234 | 125 | .notes{ | ||
3235 | 126 | padding-top : 0px; | ||
3236 | 127 | margin-left: 5px; | ||
3237 | 128 | font-style : italic; | ||
3238 | 129 | } | ||
3239 | 130 | #desc_col{ | ||
3240 | 131 | width : 440px; | ||
3241 | 132 | } | ||
3242 | 133 | #desc_col_po{ | ||
3243 | 134 | width : 380px; | ||
3244 | 135 | } | ||
3245 | 136 | ]]> | ||
3246 | 137 | </field> | ||
3247 | 138 | <field name="html"><![CDATA[ | ||
3248 | 139 | <html> | ||
3249 | 140 | <head> | ||
3250 | 141 | <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> | ||
3251 | 142 | <script> | ||
3252 | 143 | function subst() { | ||
3253 | 144 | var vars={}; | ||
3254 | 145 | var x=document.location.search.substring(1).split('&'); | ||
3255 | 146 | for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);} | ||
3256 | 147 | var x=['frompage','topage','page','webpage','section','subsection','subsubsection']; | ||
3257 | 148 | for(var i in x) { | ||
3258 | 149 | var y = document.getElementsByClassName(x[i]); | ||
3259 | 150 | for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]]; | ||
3260 | 151 | } | ||
3261 | 152 | } | ||
3262 | 153 | </script> | ||
3263 | 154 | <style type="text/css"> | ||
3264 | 155 | ${css} | ||
3265 | 156 | </style> | ||
3266 | 157 | </head> | ||
3267 | 158 | <body class = "header" onload="subst()"> | ||
3268 | 159 | <table class="header-table" cellspacing = "3"> | ||
3269 | 160 | <tbody> | ||
3270 | 161 | <tr> | ||
3271 | 162 | <td class="company_logo"> | ||
3272 | 163 | ${helper.embed_logo_by_name('default_logo', height=40, width=150)|n} | ||
3273 | 164 | </td> | ||
3274 | 165 | </tr> | ||
3275 | 166 | <tr> | ||
3276 | 167 | <td> | ||
3277 | 168 | <table class="company_data"> | ||
3278 | 169 | <tr class = "title"> | ||
3279 | 170 | <td>${company.partner_id.name or '-'}</td> | ||
3280 | 171 | <td>${_("Address")}</td> | ||
3281 | 172 | </tr> | ||
3282 | 173 | <tr> | ||
3283 | 174 | <td>${_("ID Num")}: ${company.company_registry or '-'}</td> | ||
3284 | 175 | <td>${company.partner_id.street or '-'}</td> | ||
3285 | 176 | </tr> | ||
3286 | 177 | <tr> | ||
3287 | 178 | <td>${_("Tel-fax")}: ${company.partner_id.phone or '-'}</td> | ||
3288 | 179 | <td>${company.partner_id.zip or ''} ${company.partner_id.city or ''}</td> | ||
3289 | 180 | </tr> | ||
3290 | 181 | <tr> | ||
3291 | 182 | <td>${_("E-mail")}: ${company.partner_id.email or '-'}</td> | ||
3292 | 183 | %if company.partner_id.country_id : | ||
3293 | 184 | <td>${company.partner_id.state_id.name or ''|entity}, ${company.partner_id.country_id.name or ''} </td> | ||
3294 | 185 | %else: | ||
3295 | 186 | <td> </td> | ||
3296 | 187 | %endif | ||
3297 | 188 | </tr> | ||
3298 | 189 | <tr> | ||
3299 | 190 | <td>${_("Web")}: ${company.website or '-'}</td> | ||
3300 | 191 | <td></td> | ||
3301 | 192 | </tr> | ||
3302 | 193 | </table> | ||
3303 | 194 | </td> | ||
3304 | 195 | </tr> | ||
3305 | 196 | </tbody> | ||
3306 | 197 | </table> | ||
3307 | 198 | |||
3308 | 199 | <p class = "slogan">${company.rml_header1}</p> | ||
3309 | 200 | <hr />${_debug or ''|n} </body> | ||
3310 | 201 | </html>]]></field> | ||
3311 | 202 | <field name="footer_html"><![CDATA[ | ||
3312 | 203 | <html> | ||
3313 | 204 | <head> | ||
3314 | 205 | <meta content="text/html; charset=UTF-8" http-equiv="content-type"/> | ||
3315 | 206 | <script> | ||
3316 | 207 | function subst() { | ||
3317 | 208 | var vars={}; | ||
3318 | 209 | var x=document.location.search.substring(1).split('&'); | ||
3319 | 210 | for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);} | ||
3320 | 211 | var x=['frompage','topage','page','webpage','section','subsection','subsubsection']; | ||
3321 | 212 | for(var i in x) { | ||
3322 | 213 | var y = document.getElementsByClassName(x[i]); | ||
3323 | 214 | for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]]; | ||
3324 | 215 | } | ||
3325 | 216 | } | ||
3326 | 217 | </script> | ||
3327 | 218 | <style type="text/css"> | ||
3328 | 219 | ${css} | ||
3329 | 220 | </style> | ||
3330 | 221 | </head> | ||
3331 | 222 | <body class = "footer" onload="subst()"> | ||
3332 | 223 | <table class = "footer_table"> | ||
3333 | 224 | <tr> | ||
3334 | 225 | <td colspan="2"><p class ="company_footer">Favor realizar pagos a nombre de ${company.name} cédula jurídica ${company.company_registry}. CUENTAS BANCARIAS: ${company.accounts_footer}</p></td> | ||
3335 | 226 | </tr> | ||
3336 | 227 | <tr> | ||
3337 | 228 | <td colspan="2"><p class ="company_footer">Si realiza el pago en colones (CRC), por favor utilizar el tipo de cambio al día de la fecha de pago del BCCR.</p></td> | ||
3338 | 229 | </tr> | ||
3339 | 230 | <tr> | ||
3340 | 231 | <td><p class ="company_footer">Emitida conforme lo establecido en la resolución de Facturación Electrónica, N° DGT-22-07 del diecisiete de setiembre de dos mil siete de la Dirección General de Tributación </p></td> | ||
3341 | 232 | <td style="text-align:right;font-size:10;">Página <span class="page"/></td><td style="text-align:left;font-size:10;"> de <span class="topage"/></td> | ||
3342 | 233 | </tr> | ||
3343 | 234 | </table> | ||
3344 | 235 | </body> | ||
3345 | 236 | </html> ]]></field> | ||
3346 | 237 | </record> | ||
3347 | 238 | </data> | ||
3348 | 239 | </openerp> | ||
3349 | 0 | \ No newline at end of file | 240 | \ No newline at end of file |
3350 | 1 | 241 | ||
3351 | === removed file 'account_invoice_webkit_report/i18n/ccorp_account.pot' | |||
3352 | --- account_invoice_webkit_report/i18n/ccorp_account.pot 2012-06-30 22:41:06 +0000 | |||
3353 | +++ account_invoice_webkit_report/i18n/ccorp_account.pot 1970-01-01 00:00:00 +0000 | |||
3354 | @@ -1,179 +0,0 @@ | |||
3355 | 1 | # Translation of OpenERP Server. | ||
3356 | 2 | # This file contains the translation of the following modules: | ||
3357 | 3 | # * ccorp_account | ||
3358 | 4 | # | ||
3359 | 5 | msgid "" | ||
3360 | 6 | msgstr "" | ||
3361 | 7 | "Project-Id-Version: OpenERP Server 5.0.12\n" | ||
3362 | 8 | "Report-Msgid-Bugs-To: support@openerp.com\n" | ||
3363 | 9 | "POT-Creation-Date: 2010-08-23 20:49:00+0000\n" | ||
3364 | 10 | "PO-Revision-Date: 2010-08-23 20:49:00+0000\n" | ||
3365 | 11 | "Last-Translator: <>\n" | ||
3366 | 12 | "Language-Team: \n" | ||
3367 | 13 | "MIME-Version: 1.0\n" | ||
3368 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
3369 | 15 | "Content-Transfer-Encoding: \n" | ||
3370 | 16 | "Plural-Forms: \n" | ||
3371 | 17 | |||
3372 | 18 | #. module: ccorp_account | ||
3373 | 19 | #: model:ir.module.module,description:ccorp_account.module_meta_information | ||
3374 | 20 | msgid "ClearCorp 'account' modifications:\n" | ||
3375 | 21 | " Reports:\n" | ||
3376 | 22 | " * Invoice\n" | ||
3377 | 23 | " " | ||
3378 | 24 | msgstr "" | ||
3379 | 25 | |||
3380 | 26 | #. module: ccorp_account | ||
3381 | 27 | #: model:ir.module.module,shortdesc:ccorp_account.module_meta_information | ||
3382 | 28 | msgid "ClearCorp account module modifications" | ||
3383 | 29 | msgstr "" | ||
3384 | 30 | |||
3385 | 31 | #. module: ccorp_account | ||
3386 | 32 | #: rml:account.invoice.layout_ccorp:0 | ||
3387 | 33 | msgid "Electronic Invoice" | ||
3388 | 34 | msgstr "" | ||
3389 | 35 | |||
3390 | 36 | #. module: ccorp_account | ||
3391 | 37 | #: rml:account.invoice.layout_ccorp:0 | ||
3392 | 38 | msgid "PRO-FORMA" | ||
3393 | 39 | msgstr "" | ||
3394 | 40 | |||
3395 | 41 | #. module: ccorp_account | ||
3396 | 42 | #: rml:account.invoice.layout_ccorp:0 | ||
3397 | 43 | msgid "Draft Invoice" | ||
3398 | 44 | msgstr "" | ||
3399 | 45 | |||
3400 | 46 | #. module: ccorp_account | ||
3401 | 47 | #: rml:account.invoice.layout_ccorp:0 | ||
3402 | 48 | msgid "Cancelled Invoice" | ||
3403 | 49 | msgstr "" | ||
3404 | 50 | |||
3405 | 51 | #. module: ccorp_account | ||
3406 | 52 | #: rml:account.invoice.layout_ccorp:0 | ||
3407 | 53 | msgid "Supplier Refund" | ||
3408 | 54 | msgstr "" | ||
3409 | 55 | |||
3410 | 56 | #. module: ccorp_account | ||
3411 | 57 | #: rml:account.invoice.layout_ccorp:0 | ||
3412 | 58 | msgid "Supplier Invoice" | ||
3413 | 59 | msgstr "" | ||
3414 | 60 | |||
3415 | 61 | #. module: ccorp_account | ||
3416 | 62 | #: rml:account.invoice.layout_ccorp:0 | ||
3417 | 63 | msgid "Num.: " | ||
3418 | 64 | msgstr "" | ||
3419 | 65 | |||
3420 | 66 | #. module: ccorp_account | ||
3421 | 67 | #: rml:account.invoice.layout_ccorp:0 | ||
3422 | 68 | msgid "Date: " | ||
3423 | 69 | msgstr "" | ||
3424 | 70 | |||
3425 | 71 | #. module: ccorp_account | ||
3426 | 72 | #: rml:account.invoice.layout_ccorp:0 | ||
3427 | 73 | msgid "ID Num.: " | ||
3428 | 74 | msgstr "" | ||
3429 | 75 | |||
3430 | 76 | #. module: ccorp_account | ||
3431 | 77 | #: rml:account.invoice.layout_ccorp:0 | ||
3432 | 78 | msgid "Tel-fax: " | ||
3433 | 79 | msgstr "" | ||
3434 | 80 | |||
3435 | 81 | #. module: ccorp_account | ||
3436 | 82 | #: rml:account.invoice.layout_ccorp:0 | ||
3437 | 83 | msgid "Email: " | ||
3438 | 84 | msgstr "" | ||
3439 | 85 | |||
3440 | 86 | #. module: ccorp_account | ||
3441 | 87 | #: rml:account.invoice.layout_ccorp:0 | ||
3442 | 88 | msgid "Web: " | ||
3443 | 89 | msgstr "" | ||
3444 | 90 | |||
3445 | 91 | #. module: ccorp_account | ||
3446 | 92 | #: rml:account.invoice.layout_ccorp:0 | ||
3447 | 93 | msgid "Address:" | ||
3448 | 94 | msgstr "" | ||
3449 | 95 | |||
3450 | 96 | #. module: ccorp_account | ||
3451 | 97 | #: rml:account.invoice.layout_ccorp:0 | ||
3452 | 98 | msgid "Phone: " | ||
3453 | 99 | msgstr "" | ||
3454 | 100 | |||
3455 | 101 | #. module: ccorp_account | ||
3456 | 102 | #: rml:account.invoice.layout_ccorp:0 | ||
3457 | 103 | msgid "Fax: " | ||
3458 | 104 | msgstr "" | ||
3459 | 105 | |||
3460 | 106 | #. module: ccorp_account | ||
3461 | 107 | #: rml:account.invoice.layout_ccorp:0 | ||
3462 | 108 | msgid "Salesman: " | ||
3463 | 109 | msgstr "" | ||
3464 | 110 | |||
3465 | 111 | #. module: ccorp_account | ||
3466 | 112 | #: rml:account.invoice.layout_ccorp:0 | ||
3467 | 113 | msgid "Payment tems: " | ||
3468 | 114 | msgstr "" | ||
3469 | 115 | |||
3470 | 116 | #. module: ccorp_account | ||
3471 | 117 | #: rml:account.invoice.layout_ccorp:0 | ||
3472 | 118 | msgid "Due date: " | ||
3473 | 119 | msgstr "" | ||
3474 | 120 | |||
3475 | 121 | #. module: ccorp_account | ||
3476 | 122 | #: rml:account.invoice.layout_ccorp:0 | ||
3477 | 123 | msgid "Exchange rate: " | ||
3478 | 124 | msgstr "" | ||
3479 | 125 | |||
3480 | 126 | #. module: ccorp_account | ||
3481 | 127 | #: rml:account.invoice.layout_ccorp:0 | ||
3482 | 128 | msgid "Page: " | ||
3483 | 129 | msgstr "" | ||
3484 | 130 | |||
3485 | 131 | #. module: ccorp_account | ||
3486 | 132 | #: rml:account.invoice.layout_ccorp:0 | ||
3487 | 133 | msgid "Thank you for choosing us." | ||
3488 | 134 | msgstr "" | ||
3489 | 135 | |||
3490 | 136 | #. module: ccorp_account | ||
3491 | 137 | #: rml:account.invoice.layout_ccorp:0 | ||
3492 | 138 | msgid "Qty." | ||
3493 | 139 | msgstr "" | ||
3494 | 140 | |||
3495 | 141 | #. module: ccorp_account | ||
3496 | 142 | #: rml:account.invoice.layout_ccorp:0 | ||
3497 | 143 | msgid "Description / (Taxes)" | ||
3498 | 144 | msgstr "" | ||
3499 | 145 | |||
3500 | 146 | #. module: ccorp_account | ||
3501 | 147 | #: rml:account.invoice.layout_ccorp:0 | ||
3502 | 148 | msgid "Disc." | ||
3503 | 149 | msgstr "" | ||
3504 | 150 | |||
3505 | 151 | #. module: ccorp_account | ||
3506 | 152 | #: rml:account.invoice.layout_ccorp:0 | ||
3507 | 153 | msgid "Unit Price" | ||
3508 | 154 | msgstr "" | ||
3509 | 155 | |||
3510 | 156 | #. module: ccorp_account | ||
3511 | 157 | #: rml:account.invoice.layout_ccorp:0 | ||
3512 | 158 | msgid "Total Price" | ||
3513 | 159 | msgstr "" | ||
3514 | 160 | |||
3515 | 161 | #. module: ccorp_account | ||
3516 | 162 | #: rml:account.invoice.layout_ccorp:0 | ||
3517 | 163 | msgid "Subtotal" | ||
3518 | 164 | msgstr "" | ||
3519 | 165 | |||
3520 | 166 | #. module: ccorp_account | ||
3521 | 167 | #: rml:account.invoice.layout_ccorp:0 | ||
3522 | 168 | msgid "Discount" | ||
3523 | 169 | msgstr "" | ||
3524 | 170 | |||
3525 | 171 | #. module: ccorp_account | ||
3526 | 172 | #: rml:account.invoice.layout_ccorp:0 | ||
3527 | 173 | msgid "Taxes" | ||
3528 | 174 | msgstr "" | ||
3529 | 175 | |||
3530 | 176 | #. module: ccorp_account | ||
3531 | 177 | #: rml:account.invoice.layout_ccorp:0 | ||
3532 | 178 | msgid "TOTAL" | ||
3533 | 179 | msgstr "" | ||
3534 | 180 | 0 | ||
3535 | === removed file 'account_invoice_webkit_report/i18n/ccorp_account_webkit.pot' | |||
3536 | --- account_invoice_webkit_report/i18n/ccorp_account_webkit.pot 2012-06-30 22:41:06 +0000 | |||
3537 | +++ account_invoice_webkit_report/i18n/ccorp_account_webkit.pot 1970-01-01 00:00:00 +0000 | |||
3538 | @@ -1,190 +0,0 @@ | |||
3539 | 1 | # Translation of OpenERP Server. | ||
3540 | 2 | # This file contains the translation of the following modules: | ||
3541 | 3 | # * ccorp_account | ||
3542 | 4 | # | ||
3543 | 5 | msgid "" | ||
3544 | 6 | msgstr "" | ||
3545 | 7 | "Project-Id-Version: OpenERP Server 6.0.2\n" | ||
3546 | 8 | "Report-Msgid-Bugs-To: support@openerp.com\n" | ||
3547 | 9 | "POT-Creation-Date: 2011-10-06 19:15+0000\n" | ||
3548 | 10 | "PO-Revision-Date: 2011-10-06 19:15+0000\n" | ||
3549 | 11 | "Last-Translator: <>\n" | ||
3550 | 12 | "Language-Team: \n" | ||
3551 | 13 | "MIME-Version: 1.0\n" | ||
3552 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
3553 | 15 | "Content-Transfer-Encoding: \n" | ||
3554 | 16 | "Plural-Forms: \n" | ||
3555 | 17 | |||
3556 | 18 | #. module: ccorp_account | ||
3557 | 19 | #: report:report.account.invoice.layout_ccorp:93 | ||
3558 | 20 | #: report:report.account.invoice.layout_ccorp:98 | ||
3559 | 21 | msgid "Sub Total" | ||
3560 | 22 | msgstr "" | ||
3561 | 23 | |||
3562 | 24 | #. module: ccorp_account | ||
3563 | 25 | #: report:report.account.invoice.layout_ccorp:39 | ||
3564 | 26 | msgid "Date:" | ||
3565 | 27 | msgstr "" | ||
3566 | 28 | |||
3567 | 29 | #. module: ccorp_account | ||
3568 | 30 | #: report:report.account.invoice.layout_ccorp:36 | ||
3569 | 31 | msgid "ID Num." | ||
3570 | 32 | msgstr "" | ||
3571 | 33 | |||
3572 | 34 | #. module: ccorp_account | ||
3573 | 35 | #: report:report.account.invoice.layout_ccorp:47 | ||
3574 | 36 | msgid "Payment tems" | ||
3575 | 37 | msgstr "" | ||
3576 | 38 | |||
3577 | 39 | #. module: ccorp_account | ||
3578 | 40 | #: report:report.account.invoice.layout_ccorp:81 | ||
3579 | 41 | msgid "Note" | ||
3580 | 42 | msgstr "" | ||
3581 | 43 | |||
3582 | 44 | #. module: ccorp_account | ||
3583 | 45 | #: report:report.account.invoice.layout_ccorp:23 | ||
3584 | 46 | msgid "Supplier Invoice" | ||
3585 | 47 | msgstr "" | ||
3586 | 48 | |||
3587 | 49 | #. module: ccorp_account | ||
3588 | 50 | #: model:ir.module.module,description:ccorp_account.module_meta_information | ||
3589 | 51 | msgid "ClearCorp 'account' modifications:\n" | ||
3590 | 52 | " Reports:\n" | ||
3591 | 53 | " * Invoice\n" | ||
3592 | 54 | " " | ||
3593 | 55 | msgstr "ClearCorp 'account' modifications:\n" | ||
3594 | 56 | " Reports:\n" | ||
3595 | 57 | " * Invoice\n" | ||
3596 | 58 | " " | ||
3597 | 59 | |||
3598 | 60 | #. module: ccorp_account | ||
3599 | 61 | #: report:report.account.invoice.layout_ccorp:63 | ||
3600 | 62 | msgid "Disc.(%)" | ||
3601 | 63 | msgstr "" | ||
3602 | 64 | |||
3603 | 65 | #. module: ccorp_account | ||
3604 | 66 | #: report:report.account.invoice.layout_ccorp:48 | ||
3605 | 67 | msgid "Email" | ||
3606 | 68 | msgstr "" | ||
3607 | 69 | |||
3608 | 70 | #. module: ccorp_account | ||
3609 | 71 | #: report:report.account.invoice.layout_ccorp:63 | ||
3610 | 72 | #: report:report.account.invoice.layout_ccorp:65 | ||
3611 | 73 | msgid "Total Price" | ||
3612 | 74 | msgstr "" | ||
3613 | 75 | |||
3614 | 76 | #. module: ccorp_account | ||
3615 | 77 | #: report:report.account.invoice.layout_ccorp:17 | ||
3616 | 78 | msgid "PROFORMA" | ||
3617 | 79 | msgstr "" | ||
3618 | 80 | |||
3619 | 81 | #. module: ccorp_account | ||
3620 | 82 | #: report:report.account.invoice.layout_ccorp:44 | ||
3621 | 83 | msgid "Fax" | ||
3622 | 84 | msgstr "" | ||
3623 | 85 | |||
3624 | 86 | #. module: ccorp_account | ||
3625 | 87 | #: report:report.account.invoice.layout_ccorp:94 | ||
3626 | 88 | msgid "Discount" | ||
3627 | 89 | msgstr "" | ||
3628 | 90 | |||
3629 | 91 | #. module: ccorp_account | ||
3630 | 92 | #: model:ir.actions.report.xml,name:ccorp_account.account_invoice_ccorp | ||
3631 | 93 | msgid "Invoice HTML" | ||
3632 | 94 | msgstr "" | ||
3633 | 95 | |||
3634 | 96 | #. module: ccorp_account | ||
3635 | 97 | #: report:report.account.invoice.layout_ccorp:21 | ||
3636 | 98 | msgid "Canceled Invoice" | ||
3637 | 99 | msgstr "" | ||
3638 | 100 | |||
3639 | 101 | #. module: ccorp_account | ||
3640 | 102 | #: report:report.account.invoice.layout_ccorp:40 | ||
3641 | 103 | msgid "Phone" | ||
3642 | 104 | msgstr "" | ||
3643 | 105 | |||
3644 | 106 | #. module: ccorp_account | ||
3645 | 107 | #: report:report.account.invoice.layout_ccorp:107 | ||
3646 | 108 | msgid "Invoice Note" | ||
3647 | 109 | msgstr "" | ||
3648 | 110 | |||
3649 | 111 | #. module: ccorp_account | ||
3650 | 112 | #: report:report.account.invoice.layout_ccorp:63 | ||
3651 | 113 | #: report:report.account.invoice.layout_ccorp:65 | ||
3652 | 114 | msgid "[Code] Description / (Taxes)" | ||
3653 | 115 | msgstr "" | ||
3654 | 116 | |||
3655 | 117 | #. module: ccorp_account | ||
3656 | 118 | #: report:report.account.invoice.layout_ccorp:19 | ||
3657 | 119 | msgid "Draft Inovice" | ||
3658 | 120 | msgstr "" | ||
3659 | 121 | |||
3660 | 122 | #. module: ccorp_account | ||
3661 | 123 | #: report:report.account.invoice.layout_ccorp:55 | ||
3662 | 124 | msgid "Address" | ||
3663 | 125 | msgstr "" | ||
3664 | 126 | |||
3665 | 127 | #. module: ccorp_account | ||
3666 | 128 | #: report:report.account.invoice.layout_ccorp:15 | ||
3667 | 129 | msgid "Electronic Invoice" | ||
3668 | 130 | msgstr "" | ||
3669 | 131 | |||
3670 | 132 | #. module: ccorp_account | ||
3671 | 133 | #: report:report.account.invoice.layout_ccorp:95 | ||
3672 | 134 | #: report:report.account.invoice.layout_ccorp:99 | ||
3673 | 135 | msgid "Taxes" | ||
3674 | 136 | msgstr "" | ||
3675 | 137 | |||
3676 | 138 | #. module: ccorp_account | ||
3677 | 139 | #: model:ir.module.module,shortdesc:ccorp_account.module_meta_information | ||
3678 | 140 | msgid "ClearCorp account module modifications" | ||
3679 | 141 | msgstr "ClearCorp account module modifications" | ||
3680 | 142 | |||
3681 | 143 | #. module: ccorp_account | ||
3682 | 144 | #: report:report.account.invoice.layout_ccorp:110 | ||
3683 | 145 | msgid "Payment Note" | ||
3684 | 146 | msgstr "" | ||
3685 | 147 | |||
3686 | 148 | #. module: ccorp_account | ||
3687 | 149 | #: report:report.account.invoice.layout_ccorp:25 | ||
3688 | 150 | msgid "Refund" | ||
3689 | 151 | msgstr "" | ||
3690 | 152 | |||
3691 | 153 | #. module: ccorp_account | ||
3692 | 154 | #: report:report.account.invoice.layout_ccorp:43 | ||
3693 | 155 | msgid "Due date" | ||
3694 | 156 | msgstr "" | ||
3695 | 157 | |||
3696 | 158 | #. module: ccorp_account | ||
3697 | 159 | #: report:report.account.invoice.layout_ccorp:63 | ||
3698 | 160 | #: report:report.account.invoice.layout_ccorp:65 | ||
3699 | 161 | msgid "Qty" | ||
3700 | 162 | msgstr "" | ||
3701 | 163 | |||
3702 | 164 | #. module: ccorp_account | ||
3703 | 165 | #: report:report.account.invoice.layout_ccorp:63 | ||
3704 | 166 | #: report:report.account.invoice.layout_ccorp:65 | ||
3705 | 167 | msgid "Unit Price" | ||
3706 | 168 | msgstr "" | ||
3707 | 169 | |||
3708 | 170 | #. module: ccorp_account | ||
3709 | 171 | #: view:account.account:0 | ||
3710 | 172 | msgid "Inactive Accounts" | ||
3711 | 173 | msgstr "" | ||
3712 | 174 | |||
3713 | 175 | #. module: ccorp_account | ||
3714 | 176 | #: report:report.account.invoice.layout_ccorp:27 | ||
3715 | 177 | msgid "Supplier Refund" | ||
3716 | 178 | msgstr "" | ||
3717 | 179 | |||
3718 | 180 | #. module: ccorp_account | ||
3719 | 181 | #: report:report.account.invoice.layout_ccorp:96 | ||
3720 | 182 | #: report:report.account.invoice.layout_ccorp:100 | ||
3721 | 183 | msgid "Total" | ||
3722 | 184 | msgstr "" | ||
3723 | 185 | |||
3724 | 186 | #. module: ccorp_account | ||
3725 | 187 | #: report:report.account.invoice.layout_ccorp:51 | ||
3726 | 188 | msgid "Salesman" | ||
3727 | 189 | msgstr "" | ||
3728 | 190 | |||
3729 | 191 | 0 | ||
3730 | === removed file 'account_invoice_webkit_report/i18n/es.po' | |||
3731 | --- account_invoice_webkit_report/i18n/es.po 2012-06-30 22:41:06 +0000 | |||
3732 | +++ account_invoice_webkit_report/i18n/es.po 1970-01-01 00:00:00 +0000 | |||
3733 | @@ -1,182 +0,0 @@ | |||
3734 | 1 | # Spanish translation for openerp-ccorp-addons | ||
3735 | 2 | # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 | ||
3736 | 3 | # This file is distributed under the same license as the openerp-ccorp-addons package. | ||
3737 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, 2011. | ||
3738 | 5 | # | ||
3739 | 6 | msgid "" | ||
3740 | 7 | msgstr "" | ||
3741 | 8 | "Project-Id-Version: openerp-ccorp-addons\n" | ||
3742 | 9 | "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" | ||
3743 | 10 | "POT-Creation-Date: 2010-08-23 20:49+0000\n" | ||
3744 | 11 | "PO-Revision-Date: 2011-11-16 05:10+0000\n" | ||
3745 | 12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
3746 | 13 | "Language-Team: Spanish <es@li.org>\n" | ||
3747 | 14 | "MIME-Version: 1.0\n" | ||
3748 | 15 | "Content-Type: text/plain; charset=UTF-8\n" | ||
3749 | 16 | "Content-Transfer-Encoding: 8bit\n" | ||
3750 | 17 | "X-Launchpad-Export-Date: 2011-11-29 06:07+0000\n" | ||
3751 | 18 | "X-Generator: Launchpad (build 14399)\n" | ||
3752 | 19 | |||
3753 | 20 | #. module: ccorp_account | ||
3754 | 21 | #: model:ir.module.module,description:ccorp_account.module_meta_information | ||
3755 | 22 | msgid "" | ||
3756 | 23 | "ClearCorp 'account' modifications:\n" | ||
3757 | 24 | " Reports:\n" | ||
3758 | 25 | " * Invoice\n" | ||
3759 | 26 | " " | ||
3760 | 27 | msgstr "" | ||
3761 | 28 | |||
3762 | 29 | #. module: ccorp_account | ||
3763 | 30 | #: model:ir.module.module,shortdesc:ccorp_account.module_meta_information | ||
3764 | 31 | msgid "ClearCorp account module modifications" | ||
3765 | 32 | msgstr "" | ||
3766 | 33 | |||
3767 | 34 | #. module: ccorp_account | ||
3768 | 35 | #: rml:account.invoice.layout_ccorp:0 | ||
3769 | 36 | msgid "Electronic Invoice" | ||
3770 | 37 | msgstr "Factura Electrónica" | ||
3771 | 38 | |||
3772 | 39 | #. module: ccorp_account | ||
3773 | 40 | #: rml:account.invoice.layout_ccorp:0 | ||
3774 | 41 | msgid "PRO-FORMA" | ||
3775 | 42 | msgstr "Proforma" | ||
3776 | 43 | |||
3777 | 44 | #. module: ccorp_account | ||
3778 | 45 | #: rml:account.invoice.layout_ccorp:0 | ||
3779 | 46 | msgid "Draft Invoice" | ||
3780 | 47 | msgstr "Factura BORRADOR" | ||
3781 | 48 | |||
3782 | 49 | #. module: ccorp_account | ||
3783 | 50 | #: rml:account.invoice.layout_ccorp:0 | ||
3784 | 51 | msgid "Cancelled Invoice" | ||
3785 | 52 | msgstr "Factura CANCELADA" | ||
3786 | 53 | |||
3787 | 54 | #. module: ccorp_account | ||
3788 | 55 | #: rml:account.invoice.layout_ccorp:0 | ||
3789 | 56 | msgid "Supplier Refund" | ||
3790 | 57 | msgstr "Nota de crédito PROVEEDOR" | ||
3791 | 58 | |||
3792 | 59 | #. module: ccorp_account | ||
3793 | 60 | #: rml:account.invoice.layout_ccorp:0 | ||
3794 | 61 | msgid "Supplier Invoice" | ||
3795 | 62 | msgstr "Factura PROVEEDOR" | ||
3796 | 63 | |||
3797 | 64 | #. module: ccorp_account | ||
3798 | 65 | #: rml:account.invoice.layout_ccorp:0 | ||
3799 | 66 | msgid "Num.: " | ||
3800 | 67 | msgstr "" | ||
3801 | 68 | |||
3802 | 69 | #. module: ccorp_account | ||
3803 | 70 | #: rml:account.invoice.layout_ccorp:0 | ||
3804 | 71 | msgid "Date: " | ||
3805 | 72 | msgstr "" | ||
3806 | 73 | |||
3807 | 74 | #. module: ccorp_account | ||
3808 | 75 | #: rml:account.invoice.layout_ccorp:0 | ||
3809 | 76 | msgid "ID Num.: " | ||
3810 | 77 | msgstr "" | ||
3811 | 78 | |||
3812 | 79 | #. module: ccorp_account | ||
3813 | 80 | #: rml:account.invoice.layout_ccorp:0 | ||
3814 | 81 | msgid "Tel-fax: " | ||
3815 | 82 | msgstr "Tel-fax: " | ||
3816 | 83 | |||
3817 | 84 | #. module: ccorp_account | ||
3818 | 85 | #: rml:account.invoice.layout_ccorp:0 | ||
3819 | 86 | msgid "Email: " | ||
3820 | 87 | msgstr "" | ||
3821 | 88 | |||
3822 | 89 | #. module: ccorp_account | ||
3823 | 90 | #: rml:account.invoice.layout_ccorp:0 | ||
3824 | 91 | msgid "Web: " | ||
3825 | 92 | msgstr "" | ||
3826 | 93 | |||
3827 | 94 | #. module: ccorp_account | ||
3828 | 95 | #: rml:account.invoice.layout_ccorp:0 | ||
3829 | 96 | msgid "Address:" | ||
3830 | 97 | msgstr "Dirección:" | ||
3831 | 98 | |||
3832 | 99 | #. module: ccorp_account | ||
3833 | 100 | #: rml:account.invoice.layout_ccorp:0 | ||
3834 | 101 | msgid "Phone: " | ||
3835 | 102 | msgstr "" | ||
3836 | 103 | |||
3837 | 104 | #. module: ccorp_account | ||
3838 | 105 | #: rml:account.invoice.layout_ccorp:0 | ||
3839 | 106 | msgid "Fax: " | ||
3840 | 107 | msgstr "" | ||
3841 | 108 | |||
3842 | 109 | #. module: ccorp_account | ||
3843 | 110 | #: rml:account.invoice.layout_ccorp:0 | ||
3844 | 111 | msgid "Salesman: " | ||
3845 | 112 | msgstr "" | ||
3846 | 113 | |||
3847 | 114 | #. module: ccorp_account | ||
3848 | 115 | #: rml:account.invoice.layout_ccorp:0 | ||
3849 | 116 | msgid "Payment tems: " | ||
3850 | 117 | msgstr "" | ||
3851 | 118 | |||
3852 | 119 | #. module: ccorp_account | ||
3853 | 120 | #: rml:account.invoice.layout_ccorp:0 | ||
3854 | 121 | msgid "Due date: " | ||
3855 | 122 | msgstr "" | ||
3856 | 123 | |||
3857 | 124 | #. module: ccorp_account | ||
3858 | 125 | #: rml:account.invoice.layout_ccorp:0 | ||
3859 | 126 | msgid "Exchange rate: " | ||
3860 | 127 | msgstr "" | ||
3861 | 128 | |||
3862 | 129 | #. module: ccorp_account | ||
3863 | 130 | #: rml:account.invoice.layout_ccorp:0 | ||
3864 | 131 | msgid "Page: " | ||
3865 | 132 | msgstr "" | ||
3866 | 133 | |||
3867 | 134 | #. module: ccorp_account | ||
3868 | 135 | #: rml:account.invoice.layout_ccorp:0 | ||
3869 | 136 | msgid "Thank you for choosing us." | ||
3870 | 137 | msgstr "Gracias por escoger nuestros servicios." | ||
3871 | 138 | |||
3872 | 139 | #. module: ccorp_account | ||
3873 | 140 | #: rml:account.invoice.layout_ccorp:0 | ||
3874 | 141 | msgid "Qty." | ||
3875 | 142 | msgstr "Cant." | ||
3876 | 143 | |||
3877 | 144 | #. module: ccorp_account | ||
3878 | 145 | #: rml:account.invoice.layout_ccorp:0 | ||
3879 | 146 | msgid "Description / (Taxes)" | ||
3880 | 147 | msgstr "" | ||
3881 | 148 | |||
3882 | 149 | #. module: ccorp_account | ||
3883 | 150 | #: rml:account.invoice.layout_ccorp:0 | ||
3884 | 151 | msgid "Disc." | ||
3885 | 152 | msgstr "Desc." | ||
3886 | 153 | |||
3887 | 154 | #. module: ccorp_account | ||
3888 | 155 | #: rml:account.invoice.layout_ccorp:0 | ||
3889 | 156 | msgid "Unit Price" | ||
3890 | 157 | msgstr "Precio Unit." | ||
3891 | 158 | |||
3892 | 159 | #. module: ccorp_account | ||
3893 | 160 | #: rml:account.invoice.layout_ccorp:0 | ||
3894 | 161 | msgid "Total Price" | ||
3895 | 162 | msgstr "Precio Total" | ||
3896 | 163 | |||
3897 | 164 | #. module: ccorp_account | ||
3898 | 165 | #: rml:account.invoice.layout_ccorp:0 | ||
3899 | 166 | msgid "Subtotal" | ||
3900 | 167 | msgstr "Subtotal" | ||
3901 | 168 | |||
3902 | 169 | #. module: ccorp_account | ||
3903 | 170 | #: rml:account.invoice.layout_ccorp:0 | ||
3904 | 171 | msgid "Discount" | ||
3905 | 172 | msgstr "Descuento" | ||
3906 | 173 | |||
3907 | 174 | #. module: ccorp_account | ||
3908 | 175 | #: rml:account.invoice.layout_ccorp:0 | ||
3909 | 176 | msgid "Taxes" | ||
3910 | 177 | msgstr "Impuestos" | ||
3911 | 178 | |||
3912 | 179 | #. module: ccorp_account | ||
3913 | 180 | #: rml:account.invoice.layout_ccorp:0 | ||
3914 | 181 | msgid "TOTAL" | ||
3915 | 182 | msgstr "TOTAL" | ||
3916 | 183 | 0 | ||
3917 | === modified file 'account_invoice_webkit_report/i18n/es_CR.po' | |||
3918 | --- account_invoice_webkit_report/i18n/es_CR.po 2012-12-04 18:01:04 +0000 | |||
3919 | +++ account_invoice_webkit_report/i18n/es_CR.po 2013-11-06 21:08:00 +0000 | |||
3920 | @@ -4,10 +4,10 @@ | |||
3921 | 4 | # | 4 | # |
3922 | 5 | msgid "" | 5 | msgid "" |
3923 | 6 | msgstr "" | 6 | msgstr "" |
3925 | 7 | "Project-Id-Version: OpenERP Server 6.1\n" | 7 | "Project-Id-Version: OpenERP Server 7.0\n" |
3926 | 8 | "Report-Msgid-Bugs-To: \n" | 8 | "Report-Msgid-Bugs-To: \n" |
3929 | 9 | "POT-Creation-Date: 2012-12-04 17:11+0000\n" | 9 | "POT-Creation-Date: 2013-04-30 16:38+0000\n" |
3930 | 10 | "PO-Revision-Date: 2012-12-04 17:11+0000\n" | 10 | "PO-Revision-Date: 2013-04-30 16:38+0000\n" |
3931 | 11 | "Last-Translator: <>\n" | 11 | "Last-Translator: <>\n" |
3932 | 12 | "Language-Team: \n" | 12 | "Language-Team: \n" |
3933 | 13 | "MIME-Version: 1.0\n" | 13 | "MIME-Version: 1.0\n" |
3934 | @@ -16,15 +16,15 @@ | |||
3935 | 16 | "Plural-Forms: \n" | 16 | "Plural-Forms: \n" |
3936 | 17 | 17 | ||
3937 | 18 | #. module: account_invoice_webkit_report | 18 | #. module: account_invoice_webkit_report |
3940 | 19 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:93 | 19 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:94 |
3941 | 20 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:98 | 20 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:99 |
3942 | 21 | msgid "Sub Total" | 21 | msgid "Sub Total" |
3944 | 22 | msgstr "Sub Total" | 22 | msgstr "Subtotal" |
3945 | 23 | 23 | ||
3946 | 24 | #. module: account_invoice_webkit_report | 24 | #. module: account_invoice_webkit_report |
3947 | 25 | #: field:res.company,use_email_invoice:0 | 25 | #: field:res.company,use_email_invoice:0 |
3948 | 26 | msgid "Use user email" | 26 | msgid "Use user email" |
3950 | 27 | msgstr "Usar email del usuario logueado" | 27 | msgstr "Usar email del usuario" |
3951 | 28 | 28 | ||
3952 | 29 | #. module: account_invoice_webkit_report | 29 | #. module: account_invoice_webkit_report |
3953 | 30 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:39 | 30 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:39 |
3954 | @@ -32,19 +32,14 @@ | |||
3955 | 32 | msgstr "Fecha:" | 32 | msgstr "Fecha:" |
3956 | 33 | 33 | ||
3957 | 34 | #. module: account_invoice_webkit_report | 34 | #. module: account_invoice_webkit_report |
3961 | 35 | #: constraint:res.company:0 | 35 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:36 |
3962 | 36 | msgid "Error! You can not create recursive companies." | 36 | msgid "ID Num." |
3963 | 37 | msgstr "¡Error! No puede crear compañías recursivas." | 37 | msgstr "Código cliente" |
3964 | 38 | 38 | ||
3965 | 39 | #. module: account_invoice_webkit_report | 39 | #. module: account_invoice_webkit_report |
3966 | 40 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:47 | 40 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:47 |
3967 | 41 | msgid "Payment tems" | 41 | msgid "Payment tems" |
3974 | 42 | msgstr "Plazo de pago" | 42 | msgstr "Condiciones de pago" |
3969 | 43 | |||
3970 | 44 | #. module: account_invoice_webkit_report | ||
3971 | 45 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:81 | ||
3972 | 46 | msgid "Note" | ||
3973 | 47 | msgstr "Nota" | ||
3975 | 48 | 43 | ||
3976 | 49 | #. module: account_invoice_webkit_report | 44 | #. module: account_invoice_webkit_report |
3977 | 50 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:23 | 45 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:23 |
3978 | @@ -65,7 +60,7 @@ | |||
3979 | 65 | #. module: account_invoice_webkit_report | 60 | #. module: account_invoice_webkit_report |
3980 | 66 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:48 | 61 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:48 |
3981 | 67 | msgid "Email" | 62 | msgid "Email" |
3983 | 68 | msgstr "Email" | 63 | msgstr "Correo electrónico" |
3984 | 69 | 64 | ||
3985 | 70 | #. module: account_invoice_webkit_report | 65 | #. module: account_invoice_webkit_report |
3986 | 71 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:63 | 66 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:63 |
3987 | @@ -86,12 +81,7 @@ | |||
3988 | 86 | #. module: account_invoice_webkit_report | 81 | #. module: account_invoice_webkit_report |
3989 | 87 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:40 | 82 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:40 |
3990 | 88 | msgid "Phone" | 83 | msgid "Phone" |
3997 | 89 | msgstr "Phone" | 84 | msgstr "Teléfono" |
3992 | 90 | |||
3993 | 91 | #. module: account_invoice_webkit_report | ||
3994 | 92 | #: model:ir.actions.report.xml,name:account_invoice_webkit_report.account_invoice_ccorp | ||
3995 | 93 | msgid "Invoice HTML" | ||
3996 | 94 | msgstr "Facturas" | ||
3998 | 95 | 85 | ||
3999 | 96 | #. module: account_invoice_webkit_report | 86 | #. module: account_invoice_webkit_report |
4000 | 97 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:21 | 87 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:21 |
4001 | @@ -99,12 +89,12 @@ | |||
4002 | 99 | msgstr "Factura cancelada" | 89 | msgstr "Factura cancelada" |
4003 | 100 | 90 | ||
4004 | 101 | #. module: account_invoice_webkit_report | 91 | #. module: account_invoice_webkit_report |
4006 | 102 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:94 | 92 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:95 |
4007 | 103 | msgid "Discount" | 93 | msgid "Discount" |
4008 | 104 | msgstr "Descuento" | 94 | msgstr "Descuento" |
4009 | 105 | 95 | ||
4010 | 106 | #. module: account_invoice_webkit_report | 96 | #. module: account_invoice_webkit_report |
4012 | 107 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:107 | 97 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:108 |
4013 | 108 | msgid "Invoice Note" | 98 | msgid "Invoice Note" |
4014 | 109 | msgstr "Nota de factura" | 99 | msgstr "Nota de factura" |
4015 | 110 | 100 | ||
4016 | @@ -112,12 +102,7 @@ | |||
4017 | 112 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:63 | 102 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:63 |
4018 | 113 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:65 | 103 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:65 |
4019 | 114 | msgid "[Code] Description / (Taxes)" | 104 | msgid "[Code] Description / (Taxes)" |
4026 | 115 | msgstr "[Cód.] Descripción / (Imp.)" | 105 | msgstr "[Código] Descripción / (Impuestos)" |
4021 | 116 | |||
4022 | 117 | #. module: account_invoice_webkit_report | ||
4023 | 118 | #: sql_constraint:res.company:0 | ||
4024 | 119 | msgid "The company name must be unique !" | ||
4025 | 120 | msgstr "¡El nombre de la compañía debe ser único!" | ||
4027 | 121 | 106 | ||
4028 | 122 | #. module: account_invoice_webkit_report | 107 | #. module: account_invoice_webkit_report |
4029 | 123 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:19 | 108 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:19 |
4030 | @@ -125,11 +110,6 @@ | |||
4031 | 125 | msgstr "Factura borrador" | 110 | msgstr "Factura borrador" |
4032 | 126 | 111 | ||
4033 | 127 | #. module: account_invoice_webkit_report | 112 | #. module: account_invoice_webkit_report |
4034 | 128 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:36 | ||
4035 | 129 | msgid "ID Num." | ||
4036 | 130 | msgstr "ID Num." | ||
4037 | 131 | |||
4038 | 132 | #. module: account_invoice_webkit_report | ||
4039 | 133 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:55 | 113 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:55 |
4040 | 134 | msgid "Address" | 114 | msgid "Address" |
4041 | 135 | msgstr "Dirección" | 115 | msgstr "Dirección" |
4042 | @@ -145,35 +125,35 @@ | |||
4043 | 145 | msgstr "Factura electrónica" | 125 | msgstr "Factura electrónica" |
4044 | 146 | 126 | ||
4045 | 147 | #. module: account_invoice_webkit_report | 127 | #. module: account_invoice_webkit_report |
4048 | 148 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:95 | 128 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:96 |
4049 | 149 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:99 | 129 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:100 |
4050 | 150 | msgid "Taxes" | 130 | msgid "Taxes" |
4051 | 151 | msgstr "Impuestos" | 131 | msgstr "Impuestos" |
4052 | 152 | 132 | ||
4053 | 153 | #. module: account_invoice_webkit_report | 133 | #. module: account_invoice_webkit_report |
4054 | 154 | #: help:res.company,use_email_invoice:0 | 134 | #: help:res.company,use_email_invoice:0 |
4055 | 155 | msgid "In the invoice, if it is selected appears the user's mail is logged in. If not selected, do not appear any associated email" | 135 | msgid "In the invoice, if it is selected appears the user's mail is logged in. If not selected, do not appear any associated email" |
4057 | 156 | msgstr "En la factura, si está seleccionado aparece el email del usuario logueado. Si no está seleccionado no aparece ningún email" | 136 | msgstr "En la factura, si está seleccionada, aparece el correo del usuario logueado. Si no está seleccionado, no aparece ningún correo asociado." |
4058 | 157 | 137 | ||
4059 | 158 | #. module: account_invoice_webkit_report | 138 | #. module: account_invoice_webkit_report |
4060 | 159 | #: view:res.company:0 | 139 | #: view:res.company:0 |
4061 | 160 | msgid "Configuration Report" | 140 | msgid "Configuration Report" |
4063 | 161 | msgstr "Configuración de reportes" | 141 | msgstr "Configuración de reporte" |
4064 | 162 | 142 | ||
4065 | 163 | #. module: account_invoice_webkit_report | 143 | #. module: account_invoice_webkit_report |
4067 | 164 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:111 | 144 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:112 |
4068 | 165 | msgid "Payment Note" | 145 | msgid "Payment Note" |
4069 | 166 | msgstr "Nota de pago" | 146 | msgstr "Nota de pago" |
4070 | 167 | 147 | ||
4071 | 168 | #. module: account_invoice_webkit_report | 148 | #. module: account_invoice_webkit_report |
4072 | 169 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:25 | 149 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:25 |
4073 | 170 | msgid "Refund" | 150 | msgid "Refund" |
4075 | 171 | msgstr "Reembolso" | 151 | msgstr "Nota de crédito" |
4076 | 172 | 152 | ||
4077 | 173 | #. module: account_invoice_webkit_report | 153 | #. module: account_invoice_webkit_report |
4078 | 174 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:43 | 154 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:43 |
4079 | 175 | msgid "Due date" | 155 | msgid "Due date" |
4081 | 176 | msgstr "Vence" | 156 | msgstr "Fecha de vencimiento" |
4082 | 177 | 157 | ||
4083 | 178 | #. module: account_invoice_webkit_report | 158 | #. module: account_invoice_webkit_report |
4084 | 179 | #: view:res.company:0 | 159 | #: view:res.company:0 |
4085 | @@ -194,11 +174,11 @@ | |||
4086 | 194 | #. module: account_invoice_webkit_report | 174 | #. module: account_invoice_webkit_report |
4087 | 195 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:27 | 175 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:27 |
4088 | 196 | msgid "Supplier Refund" | 176 | msgid "Supplier Refund" |
4090 | 197 | msgstr "Reembolso de proveedor" | 177 | msgstr "Nota de débito" |
4091 | 198 | 178 | ||
4092 | 199 | #. module: account_invoice_webkit_report | 179 | #. module: account_invoice_webkit_report |
4095 | 200 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:96 | 180 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:97 |
4096 | 201 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:100 | 181 | #: report:addons/account_invoice_webkit_report/report/invoice.mako:101 |
4097 | 202 | msgid "Total" | 182 | msgid "Total" |
4098 | 203 | msgstr "Total" | 183 | msgstr "Total" |
4099 | 204 | 184 | ||
4100 | 205 | 185 | ||
4101 | === modified file 'account_invoice_webkit_report/report/__init__.py' | |||
4102 | --- account_invoice_webkit_report/report/__init__.py 2012-06-30 22:41:06 +0000 | |||
4103 | +++ account_invoice_webkit_report/report/__init__.py 2013-11-06 21:08:00 +0000 | |||
4104 | @@ -1,35 +1,23 @@ | |||
4106 | 1 | # -*- encoding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
4107 | 2 | ############################################################################## | 2 | ############################################################################## |
4108 | 3 | # | 3 | # |
4138 | 4 | # __init__.py | 4 | # OpenERP, Open Source Management Solution |
4139 | 5 | # ccorp_account | 5 | # Addons modules by CLEARCORP S.A. |
4140 | 6 | # First author: Carlos Vásquez <carlos.vasquez@clearcorp.co.cr> (ClearCorp S.A.) | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). |
4141 | 7 | # Copyright (c) 2010-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved. | 7 | # |
4142 | 8 | # | 8 | # This program is free software: you can redistribute it and/or modify |
4143 | 9 | # Redistribution and use in source and binary forms, with or without modification, are | 9 | # it under the terms of the GNU Affero General Public License as |
4144 | 10 | # permitted provided that the following conditions are met: | 10 | # published by the Free Software Foundation, either version 3 of the |
4145 | 11 | # | 11 | # License, or (at your option) any later version. |
4146 | 12 | # 1. Redistributions of source code must retain the above copyright notice, this list of | 12 | # |
4147 | 13 | # conditions and the following disclaimer. | 13 | # This program is distributed in the hope that it will be useful, |
4148 | 14 | # | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
4149 | 15 | # 2. Redistributions in binary form must reproduce the above copyright notice, this list | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4150 | 16 | # of conditions and the following disclaimer in the documentation and/or other materials | 16 | # GNU Affero General Public License for more details. |
4151 | 17 | # provided with the distribution. | 17 | # |
4152 | 18 | # | 18 | # You should have received a copy of the GNU Affero General Public License |
4153 | 19 | # THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
4154 | 20 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | 20 | # |
4126 | 21 | # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR | ||
4127 | 22 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
4128 | 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
4129 | 24 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
4130 | 25 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
4131 | 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
4132 | 27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
4133 | 28 | # | ||
4134 | 29 | # The views and conclusions contained in the software and documentation are those of the | ||
4135 | 30 | # authors and should not be interpreted as representing official policies, either expressed | ||
4136 | 31 | # or implied, of ClearCorp S.A.. | ||
4137 | 32 | # | ||
4155 | 33 | ############################################################################## | 21 | ############################################################################## |
4156 | 34 | 22 | ||
4158 | 35 | import invoice | 23 | import account_invoice_report |
4159 | 36 | 24 | ||
4160 | === added file 'account_invoice_webkit_report/report/account_invoice_report.mako' | |||
4161 | --- account_invoice_webkit_report/report/account_invoice_report.mako 1970-01-01 00:00:00 +0000 | |||
4162 | +++ account_invoice_webkit_report/report/account_invoice_report.mako 2013-11-06 21:08:00 +0000 | |||
4163 | @@ -0,0 +1,137 @@ | |||
4164 | 1 | <html> | ||
4165 | 2 | <head> | ||
4166 | 3 | <style type="text/css"> | ||
4167 | 4 | ${css} | ||
4168 | 5 | </style> | ||
4169 | 6 | </head> | ||
4170 | 7 | <body class = "data"> | ||
4171 | 8 | %for inv in objects : | ||
4172 | 9 | <% setLang(inv.partner_id.lang) %> | ||
4173 | 10 | <div id="wrapper"> | ||
4174 | 11 | <table width = "100%" class = "document_data"> | ||
4175 | 12 | <tr class = "title"> | ||
4176 | 13 | <td class = "document_data"> | ||
4177 | 14 | %if inv.type == 'out_invoice' and (inv.state == 'open' or inv.state == 'paid') : | ||
4178 | 15 | <span class="title">${_("Electronic Invoice")} ${inv.number or ''|entity}</span> | ||
4179 | 16 | %elif inv.type == 'out_invoice' and inv.state == 'proforma2' : | ||
4180 | 17 | <span class="title">${_("Proforma")} ${inv.number or ''|entity}</span> | ||
4181 | 18 | %elif inv.type == 'out_invoice' and inv.state == 'draft' : | ||
4182 | 19 | <span class="title">${_("Draft Inovice")} ${inv.number or ''|entity}</span> | ||
4183 | 20 | %elif inv.type == 'out_invoice' and inv.state == 'cancel': | ||
4184 | 21 | <span class="title">${_("Canceled Invoice")} ${inv.number or ''|entity}</span> | ||
4185 | 22 | %elif inv.type == 'in_invoice' : | ||
4186 | 23 | <span class="title">${_("Supplier Invoice")} ${inv.number or ''|entity}</span> | ||
4187 | 24 | %elif inv.type == 'out_refund' : | ||
4188 | 25 | <span class="title">${_("Refund")} ${inv.number or ''|entity}</span> | ||
4189 | 26 | %elif inv.type == 'in_refund' : | ||
4190 | 27 | <span class="title">${_("Supplier Refund")} ${inv.number or ''|entity}</span> | ||
4191 | 28 | %endif | ||
4192 | 29 | </td> | ||
4193 | 30 | <td> | ||
4194 | 31 | ${inv.partner_id.name} | ||
4195 | 32 | </td> | ||
4196 | 33 | </tr> | ||
4197 | 34 | <tr> | ||
4198 | 35 | <td>${inv.name or '-'}</td> | ||
4199 | 36 | <td>${_("ID Num.")}: ${inv.partner_id.ref or '-'}</td> | ||
4200 | 37 | </tr> | ||
4201 | 38 | <tr> | ||
4202 | 39 | <td>${_("Date:")} ${formatLang(inv.date_invoice, date=True)|entity}</td> | ||
4203 | 40 | <td>${_("Phone")}:${inv.partner_id.phone or '-'}</td> | ||
4204 | 41 | </tr> | ||
4205 | 42 | <tr> | ||
4206 | 43 | <td>${_("Due date")}: ${formatLang(inv.date_due, date=True)|entity}</td> | ||
4207 | 44 | <td>${_("Fax")}: ${inv.partner_id.fax or '-'}</td> | ||
4208 | 45 | </tr> | ||
4209 | 46 | <tr> | ||
4210 | 47 | <td>${_("Payment tems")}: ${inv.payment_term.name or '-'}</td> | ||
4211 | 48 | <td colspan = "2">${_("Email")}: ${inv.partner_id.email or '-'}</td><td> </td> | ||
4212 | 49 | </tr> | ||
4213 | 50 | <tr> | ||
4214 | 51 | <td>${_("Salesman")}: ${inv.partner_id.user_id.name or '-'}</td> | ||
4215 | 52 | <td> </td> | ||
4216 | 53 | </tr> | ||
4217 | 54 | <tr class = "zone_break"><td> </td><td> </td></tr> | ||
4218 | 55 | <tr class = "title"><td>${_("Address")}</td><td> </td></tr> | ||
4219 | 56 | <tr><td>${inv.partner_id.street or ''}</td><td> </td></tr> | ||
4220 | 57 | <tr><td>${inv.partner_id.street2 or ''}</td><td> </td></tr> | ||
4221 | 58 | <tr><td>${(inv.partner_id.zip and format(inv.partner_id.zip) + ((inv.partner_id.city or inv.partner_id.state_id or inv.partner_id.country_id) and ' ' or '') or '') + (inv.partner_id.city and format(inv.partner_id.city) + ((inv.partner_id.state_id or inv.partner_id.country_id) and ', ' or '') or '') + (inv.partner_id.state_id and format(inv.partner_id.state_id.name) + (inv.partner_id.country_id and ', ' or '') or '') + (inv.partner_id.country_id and format(inv.partner_id.country_id.name) or '')}</td><td> </td></tr> | ||
4222 | 59 | <tr><td> </td><td> </td></tr> | ||
4223 | 60 | </table> | ||
4224 | 61 | <table id ="data-table" cellspacing = "3"> | ||
4225 | 62 | %if inv.amount_discounted != 0: | ||
4226 | 63 | <thead><th>${_("Qty")}</th><th>${_("[Code] Description / (Taxes)")}</th><th>${_("Disc.(%)")}</th><th>${_("Unit Price")}</th><th>${_("Total Price")}</th></thead> | ||
4227 | 64 | %else: | ||
4228 | 65 | <thead><th>${_("Qty")}</th><th>${_("[Code] Description / (Taxes)")}</th><th>${_("Unit Price")}</th><th>${_("Total Price")}</th></thead> | ||
4229 | 66 | %endif | ||
4230 | 67 | <tbody> | ||
4231 | 68 | <%i = 0 %> | ||
4232 | 69 | %for line in inv.invoice_line : | ||
4233 | 70 | %if i% 2 == 0: | ||
4234 | 71 | <tr class = "even"> | ||
4235 | 72 | %else: | ||
4236 | 73 | <tr class = "odd"> | ||
4237 | 74 | %endif | ||
4238 | 75 | %if line.uos_id: | ||
4239 | 76 | <td valign = "top">${formatLang(line.quantity)} ${format(line.uos_id.name)}</td> | ||
4240 | 77 | %else: | ||
4241 | 78 | <td valign = "top">${formatLang(line.quantity)}</td> | ||
4242 | 79 | %endif | ||
4243 | 80 | <td valign = "top" id="desc_col">${line.name} | ||
4244 | 81 | %if line.invoice_line_tax_id != []: | ||
4245 | 82 | ${ ', '.join([ tax.name or '' for tax in line.invoice_line_tax_id ])|entity} | ||
4246 | 83 | %endif | ||
4247 | 84 | </td> | ||
4248 | 85 | %if inv.amount_discounted != 0: | ||
4249 | 86 | <td valign = "top" style="text-align:right;">${line.discount and formatLang(line.discount) + '%' or '-'}</td> | ||
4250 | 87 | %endif | ||
4251 | 88 | %if inv.currency_id.position == 'before': | ||
4252 | 89 | <td style="text-align:right;" valign = "top">${inv.currency_id.symbol or ''|entity } ${formatLang(line.price_unit)}</td> | ||
4253 | 90 | <td style="text-align:right;" valign = "top">${inv.currency_id.symbol or ''|entity } ${formatLang(line.price_subtotal_not_discounted)}</td> | ||
4254 | 91 | %else: | ||
4255 | 92 | <td style="text-align:right;" valign = "top">${formatLang(line.price_unit)} ${inv.currency_id.symbol or ''|entity } </td> | ||
4256 | 93 | <td style="text-align:right;" valign = "top">${formatLang(line.price_subtotal_not_discounted)} ${inv.currency_id.symbol or ''|entity }</td> | ||
4257 | 94 | %endif | ||
4258 | 95 | </tr> | ||
4259 | 96 | <%i += 1%> | ||
4260 | 97 | %endfor | ||
4261 | 98 | %if inv.amount_discounted != 0: | ||
4262 | 99 | %if inv.currency_id.position == 'before': | ||
4263 | 100 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Sub Total")}:</b></td><td style="border-top:2px solid;text-align:right">${inv.currency_id.symbol or ''|entity} ${formatLang(inv.amount_untaxed_not_discounted)}</td></tr> | ||
4264 | 101 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"><b>${_("Discount")}:</b></td><td style="text-align:right">${inv.currency_id.symbol or ''|entity} ${formatLang(inv.amount_discounted)}</td></tr> | ||
4265 | 102 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"><b>${_("Taxes")}:</b></td><td style="text-align:right">${inv.currency_id.symbol or ''|entity} ${formatLang(inv.amount_tax)}</td></tr> | ||
4266 | 103 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Total")}:</b></td><td style="border-top:2px solid;text-align:right">${inv.currency_id.symbol or ''|entity} ${formatLang(inv.amount_total)}</td></tr> | ||
4267 | 104 | %else: | ||
4268 | 105 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Sub Total")}:</b></td><td style="border-top:2px solid;text-align:right">${formatLang(inv.amount_untaxed_not_discounted)} ${inv.currency_id.symbol or ''|entity}</td></tr> | ||
4269 | 106 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"><b>${_("Discount")}:</b></td><td style="text-align:right">${formatLang(inv.amount_discounted)} ${inv.currency_id.symbol or ''|entity}</td></tr> | ||
4270 | 107 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"><b>${_("Taxes")}:</b></td><td style="text-align:right">${formatLang(inv.amount_tax)} ${inv.currency_id.symbol or ''|entity}</td></tr> | ||
4271 | 108 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Total")}:</b></td><td style="border-top:2px solid;text-align:right">${formatLang(inv.amount_total)} ${inv.currency_id.symbol or ''|entity}</td></tr> | ||
4272 | 109 | %endif | ||
4273 | 110 | %else: | ||
4274 | 111 | %if inv.currency_id.position == 'before': | ||
4275 | 112 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Sub Total")}:</b></td><td style="border-top:2px solid;text-align:right">${inv.currency_id.symbol or ''|entity} ${formatLang(inv.amount_untaxed_not_discounted)}</td></tr> | ||
4276 | 113 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"><b>${_("Taxes")}:</b></td><td style="text-align:right">${inv.currency_id.symbol or ''|entity} ${formatLang(inv.amount_tax)}</td></tr> | ||
4277 | 114 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Total")}:</b></td><td style="border-top:2px solid;text-align:right">${inv.currency_id.symbol or ''|entity} ${formatLang(inv.amount_total)}</td></tr> | ||
4278 | 115 | %else: | ||
4279 | 116 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Sub Total")}:</b></td><td style="border-top:2px solid;text-align:right">${formatLang(inv.amount_untaxed_not_discounted)} ${inv.currency_id.symbol or ''|entity}</td></tr> | ||
4280 | 117 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"><b>${_("Taxes")}:</b></td><td style="text-align:right">${formatLang(inv.amount_tax)} ${inv.currency_id.symbol or ''|entity}</td></tr> | ||
4281 | 118 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Total")}:</b></td><td style="border-top:2px solid;text-align:right">${formatLang(inv.amount_total)} ${inv.currency_id.symbol or ''|entity}</td></tr> | ||
4282 | 119 | %endif | ||
4283 | 120 | %endif | ||
4284 | 121 | </tbody> | ||
4285 | 122 | </table> | ||
4286 | 123 | <table id = "notes_table"> | ||
4287 | 124 | %if inv.comment: | ||
4288 | 125 | <tr><td><b>${_("Invoice Note")}:</b><br /> | ||
4289 | 126 | ${format(inv.comment)}</td></tr> | ||
4290 | 127 | %endif | ||
4291 | 128 | %if inv.payment_term and inv.payment_term.note: | ||
4292 | 129 | <tr><td><b>${_("Payment Note")}:</b><br /> | ||
4293 | 130 | ${format(inv.payment_term and inv.payment_term.note)}</td></tr> | ||
4294 | 131 | %endif | ||
4295 | 132 | </table> | ||
4296 | 133 | </div> | ||
4297 | 134 | <p style="page-break-after:always"></p> | ||
4298 | 135 | %endfor | ||
4299 | 136 | </body> | ||
4300 | 137 | </html> | ||
4301 | 0 | 138 | ||
4302 | === added file 'account_invoice_webkit_report/report/account_invoice_report.py' | |||
4303 | --- account_invoice_webkit_report/report/account_invoice_report.py 1970-01-01 00:00:00 +0000 | |||
4304 | +++ account_invoice_webkit_report/report/account_invoice_report.py 2013-11-06 21:08:00 +0000 | |||
4305 | @@ -0,0 +1,41 @@ | |||
4306 | 1 | # -*- coding: utf-8 -*- | ||
4307 | 2 | ############################################################################## | ||
4308 | 3 | # | ||
4309 | 4 | # OpenERP, Open Source Management Solution | ||
4310 | 5 | # Addons modules by CLEARCORP S.A. | ||
4311 | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). | ||
4312 | 7 | # | ||
4313 | 8 | # This program is free software: you can redistribute it and/or modify | ||
4314 | 9 | # it under the terms of the GNU Affero General Public License as | ||
4315 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
4316 | 11 | # License, or (at your option) any later version. | ||
4317 | 12 | # | ||
4318 | 13 | # This program is distributed in the hope that it will be useful, | ||
4319 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
4320 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
4321 | 16 | # GNU Affero General Public License for more details. | ||
4322 | 17 | # | ||
4323 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
4324 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
4325 | 20 | # | ||
4326 | 21 | ############################################################################## | ||
4327 | 22 | |||
4328 | 23 | import time | ||
4329 | 24 | import pooler | ||
4330 | 25 | import locale | ||
4331 | 26 | from report import report_sxw | ||
4332 | 27 | |||
4333 | 28 | class account_invoice_ccorp(report_sxw.rml_parse): | ||
4334 | 29 | def __init__(self, cr, uid, name, context): | ||
4335 | 30 | super(account_invoice_ccorp, self).__init__(cr, uid, name, context=context) | ||
4336 | 31 | self.localcontext.update({ | ||
4337 | 32 | 'time': time, | ||
4338 | 33 | 'cr' : cr, | ||
4339 | 34 | 'uid': uid, | ||
4340 | 35 | }) | ||
4341 | 36 | |||
4342 | 37 | report_sxw.report_sxw( | ||
4343 | 38 | 'report.account.invoice.layout_ccorp', | ||
4344 | 39 | 'account.invoice', | ||
4345 | 40 | 'addons/account_invoice_webkit_report/report/account_invoice_report.mako', | ||
4346 | 41 | parser=account_invoice_ccorp) | ||
4347 | 0 | 42 | ||
4348 | === removed file 'account_invoice_webkit_report/report/invoice.mako' | |||
4349 | --- account_invoice_webkit_report/report/invoice.mako 2012-12-03 20:31:03 +0000 | |||
4350 | +++ account_invoice_webkit_report/report/invoice.mako 1970-01-01 00:00:00 +0000 | |||
4351 | @@ -1,123 +0,0 @@ | |||
4352 | 1 | <html> | ||
4353 | 2 | <head> | ||
4354 | 3 | <style type="text/css"> | ||
4355 | 4 | ${css} | ||
4356 | 5 | </style> | ||
4357 | 6 | </head> | ||
4358 | 7 | <body class = "data"> | ||
4359 | 8 | %for inv in objects : | ||
4360 | 9 | <% setLang(inv.partner_id.lang) %> | ||
4361 | 10 | <div id="wrapper"> | ||
4362 | 11 | <table width = "100%" class = "document_data"> | ||
4363 | 12 | <tr class = "title"> | ||
4364 | 13 | <td class = "document_data"> | ||
4365 | 14 | %if inv.type == 'out_invoice' and (inv.state == 'open' or inv.state == 'paid') : | ||
4366 | 15 | <span class="title">${_("Electronic Invoice")} ${inv.number or ''|entity}</span> | ||
4367 | 16 | %elif inv.type == 'out_invoice' and inv.state == 'proforma2' : | ||
4368 | 17 | <span class="title">${_("PROFORMA")} ${inv.number or ''|entity}</span> | ||
4369 | 18 | %elif inv.type == 'out_invoice' and inv.state == 'draft' : | ||
4370 | 19 | <span class="title">${_("Draft Inovice")} ${inv.number or ''|entity}</span> | ||
4371 | 20 | %elif inv.type == 'out_invoice' and inv.state == 'cancel': | ||
4372 | 21 | <span class="title">${_("Canceled Invoice")} ${inv.number or ''|entity}</span> | ||
4373 | 22 | %elif inv.type == 'in_invoice' : | ||
4374 | 23 | <span class="title">${_("Supplier Invoice")} ${inv.number or ''|entity}</span> | ||
4375 | 24 | %elif inv.type == 'out_refund' : | ||
4376 | 25 | <span class="title">${_("Refund")} ${inv.number or ''|entity}</span> | ||
4377 | 26 | %elif inv.type == 'in_refund' : | ||
4378 | 27 | <span class="title">${_("Supplier Refund")} ${inv.number or ''|entity}</span> | ||
4379 | 28 | %endif | ||
4380 | 29 | </td> | ||
4381 | 30 | <td> | ||
4382 | 31 | ${inv.partner_id.name} | ||
4383 | 32 | </td> | ||
4384 | 33 | </tr> | ||
4385 | 34 | <tr> | ||
4386 | 35 | <td>${inv.name or '' |entity}</td> | ||
4387 | 36 | <td>${_("ID Num.")}: ${inv.partner_id.ref or '-'|entity}</td> | ||
4388 | 37 | </tr> | ||
4389 | 38 | <tr> | ||
4390 | 39 | <td>${_("Date:")} ${formatLang(inv.date_invoice, date=True)|entity}</td> | ||
4391 | 40 | <td>${_("Phone")}:${inv.address_invoice_id.phone or '-'|entity}</td> | ||
4392 | 41 | </tr> | ||
4393 | 42 | <tr> | ||
4394 | 43 | <td>${_("Due date")}: ${formatLang(inv.date_due, date=True)|entity}</td> | ||
4395 | 44 | <td>${_("Fax")}: ${inv.address_invoice_id.fax or '-' | entity}</td> | ||
4396 | 45 | </tr> | ||
4397 | 46 | <tr> | ||
4398 | 47 | <td>${_("Payment tems")}: ${inv.payment_term.name or '-' |entity}</td> | ||
4399 | 48 | <td colspan = "2">${_("Email")}: ${inv.address_invoice_id.email or '-'|entity}</td><td> </td> | ||
4400 | 49 | </tr> | ||
4401 | 50 | <tr> | ||
4402 | 51 | <td>${_("Salesman")}: ${inv.partner_id.user_id.name or ' '|entity}</td> | ||
4403 | 52 | <td> </td> | ||
4404 | 53 | </tr> | ||
4405 | 54 | <tr class = "zone_break"><td> </td><td> </td></tr> | ||
4406 | 55 | <tr class = "title"><td>${_("Address")}</td><td> </td></tr> | ||
4407 | 56 | <tr><td>${inv.address_invoice_id.street or ''}</td><td> </td></tr> | ||
4408 | 57 | <tr><td>${inv.address_invoice_id.street2 or ''}</td><td> </td></tr> | ||
4409 | 58 | <tr><td>${(inv.address_invoice_id.zip and format(inv.address_invoice_id.zip) + ((inv.address_invoice_id.city or inv.address_invoice_id.state_id or inv.address_invoice_id.country_id) and ' ' or '') or '') + (inv.address_invoice_id.city and format(inv.address_invoice_id.city) + ((inv.address_invoice_id.state_id or inv.address_invoice_id.country_id) and ', ' or '') or '') + (inv.address_invoice_id.state_id and format(inv.address_invoice_id.state_id.name) + (inv.address_invoice_id.country_id and ', ' or '') or '') + (inv.address_invoice_id.country_id and format(inv.address_invoice_id.country_id.name) or '')}</td><td> </td></tr> | ||
4410 | 59 | <tr><td> </td><td> </td></tr> | ||
4411 | 60 | </table> | ||
4412 | 61 | <table id ="data-table" cellspacing = "3"> | ||
4413 | 62 | %if inv.amount_discounted != 0: | ||
4414 | 63 | <thead><th>${_("Qty")}</th><th>${_("[Code] Description / (Taxes)")}</th><th>${_("Disc.(%)")}</th><th>${_("Unit Price")}</th><th>${_("Total Price")}</th></thead> | ||
4415 | 64 | %else: | ||
4416 | 65 | <thead><th>${_("Qty")}</th><th>${_("[Code] Description / (Taxes)")}</th><th>${_("Unit Price")}</th><th>${_("Total Price")}</th></thead> | ||
4417 | 66 | %endif | ||
4418 | 67 | <tbody> | ||
4419 | 68 | <%i = 0 %> | ||
4420 | 69 | %for line in inv.invoice_line : | ||
4421 | 70 | %if i% 2 == 0: | ||
4422 | 71 | <tr class = "even"> | ||
4423 | 72 | %else: | ||
4424 | 73 | <tr class = "odd"> | ||
4425 | 74 | %endif | ||
4426 | 75 | %if line.uos_id: | ||
4427 | 76 | <td valign = "top">${formatLang(line.quantity)} ${format(line.uos_id.name)}</td> | ||
4428 | 77 | %else: | ||
4429 | 78 | <td valign = "top">${formatLang(line.quantity)}</td> | ||
4430 | 79 | %endif | ||
4431 | 80 | <td valign = "top" id="desc_col">${line.name} | ||
4432 | 81 | %if line.invoice_line_tax_id != []: | ||
4433 | 82 | ${ ', '.join([ tax.name or '' for tax in line.invoice_line_tax_id ])|entity} | ||
4434 | 83 | %endif | ||
4435 | 84 | %if line.note : | ||
4436 | 85 | <br/><span class = "notes"><b>${_("Note")}:</b> ${format(line.note)}</span> | ||
4437 | 86 | %endif | ||
4438 | 87 | </td> | ||
4439 | 88 | %if inv.amount_discounted != 0: | ||
4440 | 89 | <td valign = "top" style="text-align:right;">${line.discount and formatLang(line.discount) + '%' or '-'}</td> | ||
4441 | 90 | %endif | ||
4442 | 91 | <td style="text-align:right;" valign = "top">${inv.currency_id.symbol_prefix or ''|entity } ${formatLang(line.price_unit)} ${inv.currency_id.symbol_suffix or ''|entity }</td> | ||
4443 | 92 | <td style="text-align:right;" valign = "top">${inv.currency_id.symbol_prefix or ''|entity } ${formatLang(line.price_subtotal_not_discounted)} ${inv.currency_id.symbol_suffix or ''|entity }</td> | ||
4444 | 93 | </tr> | ||
4445 | 94 | <%i += 1%> | ||
4446 | 95 | %endfor | ||
4447 | 96 | %if inv.amount_discounted != 0: | ||
4448 | 97 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Sub Total")}:</b></td><td style="border-top:2px solid;text-align:right">${inv.currency_id.symbol_prefix or ''|entity} ${formatLang(inv.amount_untaxed_not_discounted)} ${inv.currency_id.symbol_suffix or ''|entity}</td></tr> | ||
4449 | 98 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"><b>${_("Discount")}:</b></td><td style="text-align:right">${inv.currency_id.symbol_prefix or ''|entity} ${formatLang(inv.amount_discounted)} ${inv.currency_id.symbol_suffix or ''|entity}</td></tr> | ||
4450 | 99 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"><b>${_("Taxes")}:</b></td><td style="text-align:right">${inv.currency_id.symbol_prefix or ''|entity} ${formatLang(inv.amount_tax)} ${inv.currency_id.symbol_suffix or ''|entity}</td></tr> | ||
4451 | 100 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Total")}:</b></td><td style="border-top:2px solid;text-align:right">${inv.currency_id.symbol_prefix or ''|entity} ${formatLang(inv.amount_total)} ${inv.currency_id.symbol_suffix or ''|entity}</td></tr> | ||
4452 | 101 | %else: | ||
4453 | 102 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Sub Total")}:</b></td><td style="border-top:2px solid;text-align:right">${inv.currency_id.symbol_prefix or ''|entity} ${formatLang(inv.amount_untaxed_not_discounted)} ${inv.currency_id.symbol_suffix or ''|entity}</td></tr> | ||
4454 | 103 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-style:none"><b>${_("Taxes")}:</b></td><td style="text-align:right">${inv.currency_id.symbol_prefix or ''|entity} ${formatLang(inv.amount_tax)} ${inv.currency_id.symbol_suffix or ''|entity}</td></tr> | ||
4455 | 104 | <tr><td style="border-style:none"/><td style="border-style:none"/><td style="border-top:2px solid"><b>${_("Total")}:</b></td><td style="border-top:2px solid;text-align:right">${inv.currency_id.symbol_prefix or ''|entity} ${formatLang(inv.amount_total)} ${inv.currency_id.symbol_suffix or ''|entity}</td></tr> | ||
4456 | 105 | %endif | ||
4457 | 106 | |||
4458 | 107 | </tbody> | ||
4459 | 108 | </table> | ||
4460 | 109 | <table id = "notes_table"> | ||
4461 | 110 | %if inv.comment: | ||
4462 | 111 | <tr><td><b>${_("Invoice Note")}:</b><br /> | ||
4463 | 112 | ${format(inv.comment)}</td></tr> | ||
4464 | 113 | %endif | ||
4465 | 114 | %if inv.payment_term and inv.payment_term.note: | ||
4466 | 115 | <tr><td><b>${_("Payment Note")}:</b><br /> | ||
4467 | 116 | ${format(inv.payment_term and inv.payment_term.note)}</td></tr> | ||
4468 | 117 | %endif | ||
4469 | 118 | </table> | ||
4470 | 119 | </div> | ||
4471 | 120 | <p style="page-break-after:always"></p> | ||
4472 | 121 | %endfor | ||
4473 | 122 | </body> | ||
4474 | 123 | </html> | ||
4475 | 124 | 0 | ||
4476 | === removed file 'account_invoice_webkit_report/report/invoice.py' | |||
4477 | --- account_invoice_webkit_report/report/invoice.py 2012-06-30 22:41:06 +0000 | |||
4478 | +++ account_invoice_webkit_report/report/invoice.py 1970-01-01 00:00:00 +0000 | |||
4479 | @@ -1,54 +0,0 @@ | |||
4480 | 1 | # -*- encoding: utf-8 -*- | ||
4481 | 2 | ############################################################################## | ||
4482 | 3 | # | ||
4483 | 4 | # invoice.py | ||
4484 | 5 | # ccorp_account | ||
4485 | 6 | # First author: Carlos Vásquez <carlos.vasquez@clearcorp.co.cr> (ClearCorp S.A.) | ||
4486 | 7 | # Second author: Mag Guevara <mag.guevara@clearcorp.co.cr> (ClearCorp S.A.) | ||
4487 | 8 | # Copyright (c) 2010-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved. | ||
4488 | 9 | # | ||
4489 | 10 | # Redistribution and use in source and binary forms, with or without modification, are | ||
4490 | 11 | # permitted provided that the following conditions are met: | ||
4491 | 12 | # | ||
4492 | 13 | # 1. Redistributions of source code must retain the above copyright notice, this list of | ||
4493 | 14 | # conditions and the following disclaimer. | ||
4494 | 15 | # | ||
4495 | 16 | # 2. Redistributions in binary form must reproduce the above copyright notice, this list | ||
4496 | 17 | # of conditions and the following disclaimer in the documentation and/or other materials | ||
4497 | 18 | # provided with the distribution. | ||
4498 | 19 | # | ||
4499 | 20 | # THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED | ||
4500 | 21 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | ||
4501 | 22 | # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR | ||
4502 | 23 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
4503 | 24 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
4504 | 25 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
4505 | 26 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
4506 | 27 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
4507 | 28 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
4508 | 29 | # | ||
4509 | 30 | # The views and conclusions contained in the software and documentation are those of the | ||
4510 | 31 | # authors and should not be interpreted as representing official policies, either expressed | ||
4511 | 32 | # or implied, of ClearCorp S.A.. | ||
4512 | 33 | # | ||
4513 | 34 | ############################################################################## | ||
4514 | 35 | |||
4515 | 36 | import time | ||
4516 | 37 | import pooler | ||
4517 | 38 | from report import report_sxw | ||
4518 | 39 | import locale | ||
4519 | 40 | |||
4520 | 41 | class account_invoice_ccorp(report_sxw.rml_parse): | ||
4521 | 42 | def __init__(self, cr, uid, name, context): | ||
4522 | 43 | super(account_invoice_ccorp, self).__init__(cr, uid, name, context=context) | ||
4523 | 44 | self.localcontext.update({ | ||
4524 | 45 | 'time': time, | ||
4525 | 46 | 'cr' : cr, | ||
4526 | 47 | 'uid': uid, | ||
4527 | 48 | }) | ||
4528 | 49 | |||
4529 | 50 | report_sxw.report_sxw( | ||
4530 | 51 | 'report.account.invoice.layout_ccorp', | ||
4531 | 52 | 'account.invoice', | ||
4532 | 53 | 'addons/account_invoice_webkit_report/report/invoice.mako', | ||
4533 | 54 | parser=account_invoice_ccorp) | ||
4534 | 55 | 0 | ||
4535 | === added file 'account_invoice_webkit_report/report/report.xml' | |||
4536 | --- account_invoice_webkit_report/report/report.xml 1970-01-01 00:00:00 +0000 | |||
4537 | +++ account_invoice_webkit_report/report/report.xml 2013-11-06 21:08:00 +0000 | |||
4538 | @@ -0,0 +1,14 @@ | |||
4539 | 1 | <?xml version="1.0"?> | ||
4540 | 2 | <openerp> | ||
4541 | 3 | <data> | ||
4542 | 4 | <report | ||
4543 | 5 | auto = "False" | ||
4544 | 6 | id = "account.account_invoices" | ||
4545 | 7 | model = "account.invoice" | ||
4546 | 8 | name = "account.invoice.layout_ccorp" | ||
4547 | 9 | file = "account_invoice_webkit_report/report/account_invoice_report.mako" | ||
4548 | 10 | string = "Account Invoice" | ||
4549 | 11 | report_type = "webkit" | ||
4550 | 12 | webkit_header = "invoice_header_webkit"/> | ||
4551 | 13 | </data> | ||
4552 | 14 | </openerp> | ||
4553 | 0 | 15 | ||
4554 | === modified file 'account_journal_extended_code/__init__.py' | |||
4555 | --- account_journal_extended_code/__init__.py 2012-06-30 22:41:06 +0000 | |||
4556 | +++ account_journal_extended_code/__init__.py 2013-11-06 21:08:00 +0000 | |||
4557 | @@ -1,35 +1,25 @@ | |||
4559 | 1 | # -*- encoding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
4560 | 2 | ############################################################################## | 2 | ############################################################################## |
4561 | 3 | # | 3 | # |
4591 | 4 | # __init__.py | 4 | # OpenERP, Open Source Management Solution |
4592 | 5 | # account_journal_extended_code | 5 | # Addons modules by CLEARCORP S.A. |
4593 | 6 | # First author: Carlos Vásquez <carlos.vasquez@clearcorp.co.cr> (ClearCorp S.A.) | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). |
4594 | 7 | # Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved. | 7 | # |
4595 | 8 | # | 8 | # This program is free software: you can redistribute it and/or modify |
4596 | 9 | # Redistribution and use in source and binary forms, with or without modification, are | 9 | # it under the terms of the GNU Affero General Public License as |
4597 | 10 | # permitted provided that the following conditions are met: | 10 | # published by the Free Software Foundation, either version 3 of the |
4598 | 11 | # | 11 | # License, or (at your option) any later version. |
4599 | 12 | # 1. Redistributions of source code must retain the above copyright notice, this list of | 12 | # |
4600 | 13 | # conditions and the following disclaimer. | 13 | # This program is distributed in the hope that it will be useful, |
4601 | 14 | # | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
4602 | 15 | # 2. Redistributions in binary form must reproduce the above copyright notice, this list | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4603 | 16 | # of conditions and the following disclaimer in the documentation and/or other materials | 16 | # GNU Affero General Public License for more details. |
4604 | 17 | # provided with the distribution. | 17 | # |
4605 | 18 | # | 18 | # You should have received a copy of the GNU Affero General Public License |
4606 | 19 | # THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
4607 | 20 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | 20 | # |
4579 | 21 | # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR | ||
4580 | 22 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
4581 | 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
4582 | 24 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
4583 | 25 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
4584 | 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
4585 | 27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
4586 | 28 | # | ||
4587 | 29 | # The views and conclusions contained in the software and documentation are those of the | ||
4588 | 30 | # authors and should not be interpreted as representing official policies, either expressed | ||
4589 | 31 | # or implied, of ClearCorp S.A.. | ||
4590 | 32 | # | ||
4608 | 33 | ############################################################################## | 21 | ############################################################################## |
4609 | 34 | 22 | ||
4610 | 35 | import account_journal_extended_code | 23 | import account_journal_extended_code |
4611 | 24 | |||
4612 | 25 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
4613 | 36 | 26 | ||
4614 | === modified file 'account_journal_extended_code/__openerp__.py' | |||
4615 | --- account_journal_extended_code/__openerp__.py 2012-06-30 22:41:06 +0000 | |||
4616 | +++ account_journal_extended_code/__openerp__.py 2013-11-06 21:08:00 +0000 | |||
4617 | @@ -1,50 +1,40 @@ | |||
4619 | 1 | # -*- encoding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
4620 | 2 | ############################################################################## | 2 | ############################################################################## |
4621 | 3 | # | 3 | # |
4651 | 4 | # __openerp__.py | 4 | # OpenERP, Open Source Management Solution |
4652 | 5 | # account_journal_extended_code | 5 | # Addons modules by CLEARCORP S.A. |
4653 | 6 | # First author: Carlos Vásquez <carlos.vasquez@clearcorp.co.cr> (ClearCorp S.A.) | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). |
4654 | 7 | # Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved. | 7 | # |
4655 | 8 | # | 8 | # This program is free software: you can redistribute it and/or modify |
4656 | 9 | # Redistribution and use in source and binary forms, with or without modification, are | 9 | # it under the terms of the GNU Affero General Public License as |
4657 | 10 | # permitted provided that the following conditions are met: | 10 | # published by the Free Software Foundation, either version 3 of the |
4658 | 11 | # | 11 | # License, or (at your option) any later version. |
4659 | 12 | # 1. Redistributions of source code must retain the above copyright notice, this list of | 12 | # |
4660 | 13 | # conditions and the following disclaimer. | 13 | # This program is distributed in the hope that it will be useful, |
4661 | 14 | # | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
4662 | 15 | # 2. Redistributions in binary form must reproduce the above copyright notice, this list | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4663 | 16 | # of conditions and the following disclaimer in the documentation and/or other materials | 16 | # GNU Affero General Public License for more details. |
4664 | 17 | # provided with the distribution. | 17 | # |
4665 | 18 | # | 18 | # You should have received a copy of the GNU Affero General Public License |
4666 | 19 | # THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
4667 | 20 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | 20 | # |
4639 | 21 | # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR | ||
4640 | 22 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
4641 | 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
4642 | 24 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
4643 | 25 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
4644 | 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
4645 | 27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
4646 | 28 | # | ||
4647 | 29 | # The views and conclusions contained in the software and documentation are those of the | ||
4648 | 30 | # authors and should not be interpreted as representing official policies, either expressed | ||
4649 | 31 | # or implied, of ClearCorp S.A.. | ||
4650 | 32 | # | ||
4668 | 33 | ############################################################################## | 21 | ############################################################################## |
4669 | 34 | 22 | ||
4670 | 35 | { | 23 | { |
4685 | 36 | 'name': 'Journal code extended', | 24 | 'name': 'Journal code extended', |
4686 | 37 | 'version': '0.1', | 25 | 'version': '1.0', |
4687 | 38 | 'author': 'ClearCorp S.A.', | 26 | 'author': 'ClearCorp S.A.', |
4688 | 39 | 'website': 'http://clearcorp.co.cr', | 27 | 'website': 'http://clearcorp.co.cr', |
4689 | 40 | 'category': 'General Modules/Accounting', | 28 | 'category': 'General Modules/Accounting', |
4690 | 41 | 'description': """Enables up to 64 chars in a journal code | 29 | 'description': """Enables up to 64 chars in a journal code |
4691 | 42 | """, | 30 | """, |
4692 | 43 | 'depends': ['account'], | 31 | 'depends': ['account'], |
4693 | 44 | 'init_xml': [], | 32 | 'init_xml': [], |
4694 | 45 | 'demo_xml': [], | 33 | 'demo_xml': [], |
4695 | 46 | 'update_xml': [], | 34 | 'update_xml': [], |
4696 | 47 | 'license': 'Other OSI approved licence', | 35 | 'license': 'AGPL-3', |
4697 | 48 | 'installable': True, | 36 | 'installable': True, |
4698 | 49 | 'active': False, | 37 | 'active': False, |
4699 | 50 | } | 38 | } |
4700 | 39 | |||
4701 | 40 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
4702 | 51 | 41 | ||
4703 | === modified file 'account_journal_extended_code/account_journal_extended_code.py' | |||
4704 | --- account_journal_extended_code/account_journal_extended_code.py 2012-06-30 22:41:06 +0000 | |||
4705 | +++ account_journal_extended_code/account_journal_extended_code.py 2013-11-06 21:08:00 +0000 | |||
4706 | @@ -1,47 +1,36 @@ | |||
4708 | 1 | # -*- encoding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
4709 | 2 | ############################################################################## | 2 | ############################################################################## |
4710 | 3 | # | 3 | # |
4740 | 4 | # account_journal_extended_code.py | 4 | # OpenERP, Open Source Management Solution |
4741 | 5 | # account_journal_extended_code | 5 | # Addons modules by CLEARCORP S.A. |
4742 | 6 | # First author: Carlos Vásquez <carlos.vasquez@clearcorp.co.cr> (ClearCorp S.A.) | 6 | # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). |
4743 | 7 | # Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved. | 7 | # |
4744 | 8 | # | 8 | # This program is free software: you can redistribute it and/or modify |
4745 | 9 | # Redistribution and use in source and binary forms, with or without modification, are | 9 | # it under the terms of the GNU Affero General Public License as |
4746 | 10 | # permitted provided that the following conditions are met: | 10 | # published by the Free Software Foundation, either version 3 of the |
4747 | 11 | # | 11 | # License, or (at your option) any later version. |
4748 | 12 | # 1. Redistributions of source code must retain the above copyright notice, this list of | 12 | # |
4749 | 13 | # conditions and the following disclaimer. | 13 | # This program is distributed in the hope that it will be useful, |
4750 | 14 | # | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
4751 | 15 | # 2. Redistributions in binary form must reproduce the above copyright notice, this list | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4752 | 16 | # of conditions and the following disclaimer in the documentation and/or other materials | 16 | # GNU Affero General Public License for more details. |
4753 | 17 | # provided with the distribution. | 17 | # |
4754 | 18 | # | 18 | # You should have received a copy of the GNU Affero General Public License |
4755 | 19 | # THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
4756 | 20 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | 20 | # |
4728 | 21 | # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR | ||
4729 | 22 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
4730 | 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
4731 | 24 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
4732 | 25 | # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
4733 | 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
4734 | 27 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
4735 | 28 | # | ||
4736 | 29 | # The views and conclusions contained in the software and documentation are those of the | ||
4737 | 30 | # authors and should not be interpreted as representing official policies, either expressed | ||
4738 | 31 | # or implied, of ClearCorp S.A.. | ||
4739 | 32 | # | ||
4757 | 33 | ############################################################################## | 21 | ############################################################################## |
4758 | 34 | 22 | ||
4759 | 35 | from osv import osv,fields | 23 | from osv import osv,fields |
4760 | 36 | 24 | ||
4769 | 37 | class journal(osv.osv): | 25 | class AccountJournal(osv.osv): |
4770 | 38 | ''' | 26 | ''' |
4771 | 39 | Adds up to 64 chars to a journal code | 27 | Adds up to 64 chars to a journal code |
4772 | 40 | ''' | 28 | ''' |
4773 | 41 | _name = 'account.journal' | 29 | _name = 'account.journal' |
4774 | 42 | _inherit = 'account.journal' | 30 | _inherit = 'account.journal' |
4775 | 43 | 31 | ||
4776 | 44 | _columns = { | 32 | _columns = { |
4777 | 45 | 'code': fields.char('Code', size=64, required=True, help="The code will be used to generate the numbers of the journal entries of this journal."), | 33 | 'code': fields.char('Code', size=64, required=True, help="The code will be used to generate the numbers of the journal entries of this journal."), |
4780 | 46 | } | 34 | } |
4781 | 47 | journal() | 35 | |
4782 | 36 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
4783 | 48 | 37 | ||
4784 | === modified file 'account_journal_period_report/__openerp__.py' | |||
4785 | --- account_journal_period_report/__openerp__.py 2013-01-17 19:12:32 +0000 | |||
4786 | +++ account_journal_period_report/__openerp__.py 2013-11-06 21:08:00 +0000 | |||
4787 | @@ -29,11 +29,12 @@ | |||
4788 | 29 | 'complexity': 'normal', | 29 | 'complexity': 'normal', |
4789 | 30 | 'description': """This module modifies the account journal period report """, | 30 | 'description': """This module modifies the account journal period report """, |
4790 | 31 | 'depends': [ | 31 | 'depends': [ |
4792 | 32 | 'account', | 32 | 'account','account_report_lib', |
4793 | 33 | ], | 33 | ], |
4794 | 34 | 'init_xml': [], | 34 | 'init_xml': [], |
4795 | 35 | 'demo_xml': [], | 35 | 'demo_xml': [], |
4797 | 36 | 'update_xml': ['report/report.xml',], | 36 | 'update_xml': ['wizard/account_journal_period_report_wizard_view.xml', |
4798 | 37 | 'report/report.xml',], | ||
4799 | 37 | 'license': 'AGPL-3', | 38 | 'license': 'AGPL-3', |
4800 | 38 | 'installable': True, | 39 | 'installable': True, |
4801 | 39 | 'active': False, | 40 | 'active': False, |
4802 | 40 | 41 | ||
4803 | === added directory 'account_journal_period_report/i18n' | |||
4804 | === renamed directory 'account_journal_period_report/i18n' => 'account_journal_period_report/i18n.moved' | |||
4805 | === added file 'account_journal_period_report/i18n/es_CR.po' | |||
4806 | --- account_journal_period_report/i18n/es_CR.po 1970-01-01 00:00:00 +0000 | |||
4807 | +++ account_journal_period_report/i18n/es_CR.po 2013-11-06 21:08:00 +0000 | |||
4808 | @@ -0,0 +1,105 @@ | |||
4809 | 1 | # Translation of OpenERP Server. | ||
4810 | 2 | # This file contains the translation of the following modules: | ||
4811 | 3 | # * account_journal_period_report | ||
4812 | 4 | # | ||
4813 | 5 | msgid "" | ||
4814 | 6 | msgstr "" | ||
4815 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
4816 | 8 | "Report-Msgid-Bugs-To: \n" | ||
4817 | 9 | "POT-Creation-Date: 2013-05-05 03:02+0000\n" | ||
4818 | 10 | "PO-Revision-Date: 2013-05-05 03:02+0000\n" | ||
4819 | 11 | "Last-Translator: <>\n" | ||
4820 | 12 | "Language-Team: \n" | ||
4821 | 13 | "MIME-Version: 1.0\n" | ||
4822 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
4823 | 15 | "Content-Transfer-Encoding: \n" | ||
4824 | 16 | "Plural-Forms: \n" | ||
4825 | 17 | |||
4826 | 18 | #. module: account_journal_period_report | ||
4827 | 19 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:62 | ||
4828 | 20 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:70 | ||
4829 | 21 | msgid "Account" | ||
4830 | 22 | msgstr "Cuenta" | ||
4831 | 23 | |||
4832 | 24 | #. module: account_journal_period_report | ||
4833 | 25 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:108 | ||
4834 | 26 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:118 | ||
4835 | 27 | msgid "TOTAL" | ||
4836 | 28 | msgstr "TOTAL" | ||
4837 | 29 | |||
4838 | 30 | #. module: account_journal_period_report | ||
4839 | 31 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:31 | ||
4840 | 32 | msgid "Chart of Accounts: " | ||
4841 | 33 | msgstr "Catálogo contable: " | ||
4842 | 34 | |||
4843 | 35 | #. module: account_journal_period_report | ||
4844 | 36 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:33 | ||
4845 | 37 | msgid "Selected period: " | ||
4846 | 38 | msgstr "Períodos seleccionados: " | ||
4847 | 39 | |||
4848 | 40 | #. module: account_journal_period_report | ||
4849 | 41 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:34 | ||
4850 | 42 | msgid "Entries Sorted By:" | ||
4851 | 43 | msgstr "Apuntes ordenados por:" | ||
4852 | 44 | |||
4853 | 45 | #. module: account_journal_period_report | ||
4854 | 46 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:60 | ||
4855 | 47 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:68 | ||
4856 | 48 | msgid "Move" | ||
4857 | 49 | msgstr "Asiento" | ||
4858 | 50 | |||
4859 | 51 | #. module: account_journal_period_report | ||
4860 | 52 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:61 | ||
4861 | 53 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:69 | ||
4862 | 54 | msgid "Date" | ||
4863 | 55 | msgstr "Fecha" | ||
4864 | 56 | |||
4865 | 57 | #. module: account_journal_period_report | ||
4866 | 58 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:66 | ||
4867 | 59 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:74 | ||
4868 | 60 | msgid "Credit" | ||
4869 | 61 | msgstr "Crédito" | ||
4870 | 62 | |||
4871 | 63 | #. module: account_journal_period_report | ||
4872 | 64 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:75 | ||
4873 | 65 | msgid "Amount Currency" | ||
4874 | 66 | msgstr "Monto divisa" | ||
4875 | 67 | |||
4876 | 68 | #. module: account_journal_period_report | ||
4877 | 69 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:24 | ||
4878 | 70 | msgid "Journal Report " | ||
4879 | 71 | msgstr "Reporte de Diario(s) " | ||
4880 | 72 | |||
4881 | 73 | #. module: account_journal_period_report | ||
4882 | 74 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:35 | ||
4883 | 75 | msgid "Target Moves: " | ||
4884 | 76 | msgstr "Movimientos destino: " | ||
4885 | 77 | |||
4886 | 78 | #. module: account_journal_period_report | ||
4887 | 79 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:65 | ||
4888 | 80 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:73 | ||
4889 | 81 | msgid "Debit" | ||
4890 | 82 | msgstr "Débito" | ||
4891 | 83 | |||
4892 | 84 | #. module: account_journal_period_report | ||
4893 | 85 | #: model:ir.model,name:account_journal_period_report.model_account_print_journal | ||
4894 | 86 | msgid "Account Print Journal" | ||
4895 | 87 | msgstr "Contabilidad. Imprimir diario" | ||
4896 | 88 | |||
4897 | 89 | #. module: account_journal_period_report | ||
4898 | 90 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:63 | ||
4899 | 91 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:71 | ||
4900 | 92 | msgid "Partner" | ||
4901 | 93 | msgstr "Empresa" | ||
4902 | 94 | |||
4903 | 95 | #. module: account_journal_period_report | ||
4904 | 96 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:64 | ||
4905 | 97 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:72 | ||
4906 | 98 | msgid "Label" | ||
4907 | 99 | msgstr "Etiqueta" | ||
4908 | 100 | |||
4909 | 101 | #. module: account_journal_period_report | ||
4910 | 102 | #: report:addons/account_journal_period_report/report/account_journal_period_report.mako:32 | ||
4911 | 103 | msgid "Fiscal Year: " | ||
4912 | 104 | msgstr "Año fiscal: " | ||
4913 | 105 | |||
4914 | 0 | 106 | ||
4915 | === modified file 'account_journal_period_report/report/account_journal_period_report.mako' | |||
4916 | --- account_journal_period_report/report/account_journal_period_report.mako 2013-03-19 22:31:39 +0000 | |||
4917 | +++ account_journal_period_report/report/account_journal_period_report.mako 2013-11-06 21:08:00 +0000 | |||
4918 | @@ -7,7 +7,7 @@ | |||
4919 | 7 | </style> | 7 | </style> |
4920 | 8 | </head> | 8 | </head> |
4921 | 9 | <body> | 9 | <body> |
4923 | 10 | <%setLang(user.context_lang)%> | 10 | <%setLang(user.lang)%> |
4924 | 11 | <% | 11 | <% |
4925 | 12 | fiscalyear = get_fiscalyear(data) | 12 | fiscalyear = get_fiscalyear(data) |
4926 | 13 | company = get_account(data) | 13 | company = get_account(data) |
4927 | @@ -18,13 +18,14 @@ | |||
4928 | 18 | %> | 18 | %> |
4929 | 19 | <div class="table header"> | 19 | <div class="table header"> |
4930 | 20 | <div class="table-row"> | 20 | <div class="table-row"> |
4932 | 21 | <div class="table-cell logo">${helper.embed_logo_by_name('internal_reports_logo', height=100)|n}</div> | 21 | <div class="table-cell logo">${helper.embed_logo_by_name('default_logo', height=100)|n}</div> |
4933 | 22 | <br/> | 22 | <br/> |
4934 | 23 | <div class="table-cell text"> | 23 | <div class="table-cell text"> |
4935 | 24 | <p class="title">${_('Journal Report ')}</p> | 24 | <p class="title">${_('Journal Report ')}</p> |
4936 | 25 | </div> | 25 | </div> |
4937 | 26 | </div> | 26 | </div> |
4938 | 27 | </div> | 27 | </div> |
4939 | 28 | <br/><br/> | ||
4940 | 28 | <div class="table list"> | 29 | <div class="table list"> |
4941 | 29 | <div class="table-header"> | 30 | <div class="table-header"> |
4942 | 30 | <div class="table-row labels no-wrap"> | 31 | <div class="table-row labels no-wrap"> |
4943 | 31 | 32 | ||
4944 | === modified file 'account_journal_period_report/report/report.xml' | |||
4945 | --- account_journal_period_report/report/report.xml 2013-01-17 19:12:32 +0000 | |||
4946 | +++ account_journal_period_report/report/report.xml 2013-11-06 21:08:00 +0000 | |||
4947 | @@ -6,14 +6,12 @@ | |||
4948 | 6 | <field name="report_type">webkit</field> | 6 | <field name="report_type">webkit</field> |
4949 | 7 | <field name="report_name">account_journal_period_print_inherit</field> | 7 | <field name="report_name">account_journal_period_print_inherit</field> |
4950 | 8 | <field eval="[(6,0,[])]" name="groups_id"/> | 8 | <field eval="[(6,0,[])]" name="groups_id"/> |
4951 | 9 | <field eval="0" name="multi"/> | ||
4952 | 10 | <field eval="0" name="auto"/> | ||
4953 | 11 | <field eval="1" name="header"/> | ||
4954 | 12 | <field name="model">account.print.journal</field> | 9 | <field name="model">account.print.journal</field> |
4955 | 13 | <field name="type">ir.actions.report.xml</field> | 10 | <field name="type">ir.actions.report.xml</field> |
4956 | 14 | <field name="name">Journal</field> | 11 | <field name="name">Journal</field> |
4957 | 15 | <field name="report_rml">account_journal_period_report/report/account_journal_period_report.mako</field> | 12 | <field name="report_rml">account_journal_period_report/report/account_journal_period_report.mako</field> |
4958 | 16 | <field name="report_file">account_journal_period_report/report/account_journal_period_report.mako</field> | 13 | <field name="report_file">account_journal_period_report/report/account_journal_period_report.mako</field> |
4959 | 14 | <field name="webkit_header" ref="report_webkit_lib.webkit_header_clearcorp_official_portrait"/> | ||
4960 | 17 | </record> | 15 | </record> |
4961 | 18 | </data> | 16 | </data> |
4962 | 19 | </openerp> | 17 | </openerp> |
4963 | 20 | 18 | ||
4964 | === modified file 'account_journal_period_report/wizard/__init__.py' | |||
4965 | --- account_journal_period_report/wizard/__init__.py 2013-01-17 19:12:32 +0000 | |||
4966 | +++ account_journal_period_report/wizard/__init__.py 2013-11-06 21:08:00 +0000 | |||
4967 | @@ -20,5 +20,4 @@ | |||
4968 | 20 | # | 20 | # |
4969 | 21 | ############################################################################## | 21 | ############################################################################## |
4970 | 22 | 22 | ||
4971 | 23 | |||
4972 | 24 | import account_journal_period_report_wizard | 23 | import account_journal_period_report_wizard |
4973 | 25 | 24 | ||
4974 | === added file 'account_journal_period_report/wizard/account_journal_period_report_wizard_view.xml' | |||
4975 | --- account_journal_period_report/wizard/account_journal_period_report_wizard_view.xml 1970-01-01 00:00:00 +0000 | |||
4976 | +++ account_journal_period_report/wizard/account_journal_period_report_wizard_view.xml 2013-11-06 21:08:00 +0000 | |||
4977 | @@ -0,0 +1,18 @@ | |||
4978 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
4979 | 2 | <openerp> | ||
4980 | 3 | <data> | ||
4981 | 4 | <record id="account_report_print_journal_inherit" model="ir.ui.view"> | ||
4982 | 5 | <field name="name">account.report.print.journal.inherit</field> | ||
4983 | 6 | <field name="model">account.print.journal</field> | ||
4984 | 7 | <field name="type">form</field> | ||
4985 | 8 | <field name="inherit_id" ref="account.account_report_print_journal"/> | ||
4986 | 9 | <field name="arch" type="xml"> | ||
4987 | 10 | <data> | ||
4988 | 11 | <field name="fiscalyear_id" position="attributes"> | ||
4989 | 12 | <attribute name="required">True</attribute> | ||
4990 | 13 | </field> | ||
4991 | 14 | </data> | ||
4992 | 15 | </field> | ||
4993 | 16 | </record> | ||
4994 | 17 | </data> | ||
4995 | 18 | </openerp> | ||
4996 | 0 | 19 | ||
4997 | === removed directory 'account_journal_view_extended' | |||
4998 | === removed file 'account_journal_view_extended/__init__.py' | |||
4999 | --- account_journal_view_extended/__init__.py 2012-06-30 22:41:06 +0000 | |||
5000 | +++ account_journal_view_extended/__init__.py 1970-01-01 00:00:00 +0000 |
The diff has been truncated for viewing.