Merge lp:~rr.clearcorp/openerp-ccorp-addons/7.0-base_import_exchange_rates into lp:openerp-ccorp-addons/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
Reviewer Review Type Date Requested Status
ClearCorp drivers Pending
Review via email: mp+194232@code.launchpad.net

Description of the change

[ADD] Add dependence res_currency_sequence in base_import_exchange_rates

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
=== removed directory 'TODO-6.1/company_webkit'
=== removed file 'TODO-6.1/company_webkit/__init__.py'
--- TODO-6.1/company_webkit/__init__.py 2012-06-30 22:41:06 +0000
+++ TODO-6.1/company_webkit/__init__.py 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1import company_webkit
20
=== removed file 'TODO-6.1/company_webkit/__openerp__.py'
--- TODO-6.1/company_webkit/__openerp__.py 2012-06-30 22:41:06 +0000
+++ TODO-6.1/company_webkit/__openerp__.py 1970-01-01 00:00:00 +0000
@@ -1,44 +0,0 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# account_rename.py
5# account_rename
6# First author: Mag Guevara <mag.guevara@clearcorp.co.cr> (ClearCorp S.A.)
7# Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.
8#
9# Redistribution and use in source and binary forms, with or without modification, are
10# permitted provided that the following conditions are met:
11#
12# 1. Redistributions of source code must retain the above copyright notice, this list of
13# conditions and the following disclaimer.
14#
15# 2. Redistributions in binary form must reproduce the above copyright notice, this list
16# of conditions and the following disclaimer in the documentation and/or other materials
17# provided with the distribution.
18#
19# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED
20# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# The views and conclusions contained in the software and documentation are those of the
30# authors and should not be interpreted as representing official policies, either expressed
31# or implied, of ClearCorp S.A..
32#
33##############################################################################
34{
35 "name" : "Company fields for report webkit",
36 "author" : "ClearCorp S.A.",
37 "version" : "1.0",
38 "depends" : ["base","report_webkit"],
39 "init_xml" : [],
40 "update_xml" : ["company_webkit_view.xml"],
41 "category" : "Report",
42 "active" : False,
43 "instalable" : True,
44}
450
=== removed file 'TODO-6.1/company_webkit/company_webkit.py'
--- TODO-6.1/company_webkit/company_webkit.py 2012-06-30 22:41:06 +0000
+++ TODO-6.1/company_webkit/company_webkit.py 1970-01-01 00:00:00 +0000
@@ -1,282 +0,0 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# company_webkit.py
5# company_webkit
6# First author: Mag Guevara <mag.guevara@clearcorp.co.cr> (ClearCorp S.A.)
7# Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.
8#
9# Redistribution and use in source and binary forms, with or without modification, are
10# permitted provided that the following conditions are met:
11#
12# 1. Redistributions of source code must retain the above copyright notice, this list of
13# conditions and the following disclaimer.
14#
15# 2. Redistributions in binary form must reproduce the above copyright notice, this list
16# of conditions and the following disclaimer in the documentation and/or other materials
17# provided with the distribution.
18#
19# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED
20# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# The views and conclusions contained in the software and documentation are those of the
30# authors and should not be interpreted as representing official policies, either expressed
31# or implied, of ClearCorp S.A..
32#
33##############################################################################
34from osv import osv, fields
35from tools import debug
36from tools.translate import _
37
38class company_webkit(osv.osv):
39 _name = "res.company"
40 _inherit = "res.company"
41
42 def _get_default_header(self,cr,uid,ids):
43 return """
44<html>
45 <head>
46 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
47 <script>
48 function subst() {
49 var vars={};
50 var x=document.location.search.substring(1).split('&');
51 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
52 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
53 for(var i in x) {
54 var y = document.getElementsByClassName(x[i]);
55 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
56 }
57 }
58 </script>
59 <style type="text/css">
60 ${css}
61 </style>
62 </head>
63 <body class = "header" onload="subst()">
64 <table class="header-table" cellspacing = "3">
65 <tbody>
66 <tr>
67 <td>
68 ${helper.embed_logo_by_name('company_logo')|n}
69 </td>
70 <td>
71 <table class="company_data">
72 <tr class = "title">
73 <td>${company.partner_id.name |entity}</td>
74 <td style = "text-align : right;">${_("Address")}</td>
75 </tr>
76 <tr>
77 <td>${_("ID Num")}: ${company.partner_id.ref | entity}</td>
78 <td style = "text-align : right;">${company.partner_id.address[0].street or ''|entity}</td>
79 </tr>
80 <tr>
81 <td>${_("Tel-fax")}: ${company.partner_id.address[0].phone or '-'|entity}</td>
82 <td style = "text-align : right;">${company.partner_id.address[0].street2 or ''|entity}</td>
83 </tr>
84 <tr>
85 <td>${_("E-mail")}: ${company.partner_id.address[0].email or '-'|entity}</td>
86 <td style = "text-align : right;">${company.partner_id.address[0].zip or ''|entity} ${company.partner_id.address[0].city or ''|entity}</td>
87 </tr>
88 <tr>
89 <td>${_("Web")}: ${company.partner_id.website or '-'|entity}</td>
90 %if company.partner_id.address[0].country_id :
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>
92 %else:
93 <td style = "text-align : right;">&nbsp;</td>
94 %endif
95 </tr>
96 </table>
97 </td>
98 </tr>
99 </tbody>
100 </table>
101
102 <p class = "slogan">${company.rml_header1}</p>
103 <hr />${_debug or ''|n} </body>
104</html>
105"""
106
107 def _get_default_footer(self,cr,uid,ids):
108 return """
109<html>
110 <head>
111 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
112 <script>
113 function subst() {
114 var vars={};
115 var x=document.location.search.substring(1).split('&');
116 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
117 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
118 for(var i in x) {
119 var y = document.getElementsByClassName(x[i]);
120 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
121 }
122 }
123 </script>
124 <style type="text/css">
125 ${css}
126 </style>
127 </head>
128 <body class = "footer" onload="subst()">
129 <table class = "footer_table">
130 <tr><td><p class ="company_footer">${company.webkit_footer1 or '&nbsp;'}</p></td></tr>
131 <tr><td><p class ="company_footer">${company.webkit_footer2 or '&nbsp;'}</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>
132 <tr><td><p class ="company_footer">${company.webkit_footer3 or '&nbsp;'}</p></td></tr>
133 </table>
134 </body>
135</html>
136 """
137 def _get_default_css(self,cr,uid,ids):
138 return """
139 .header {
140 padding : 200px 10px 5px 10px;
141 border:0; margin: 0;
142 }
143 .header-table {
144 width: 100%;
145 padding-top: 8%;
146 }
147 .partner-table {
148 width: 100%;
149 font-family: Arial,Verdana, Sans, Serif;
150 font-size: 12;
151 }
152
153 #data-table {
154 width: 100%;
155 padding-top: 20px;
156 font-family: Arial,Verdana, Sans, Serif;
157 font-size: 12;
158 }
159 #data-table th{
160 border-bottom:2px solid black;
161 text-align:center;
162 font-size:12;
163 font-weight:bold;
164 padding-right:3px;
165 padding-left:3px;
166 }
167 #data-table thead {
168 display:table-header-group;
169 }
170
171 .title {
172 font-size:16;
173 font-weight: bold;
174 }
175
176 .company_address{
177 width : 100%;
178 text-align: right;
179 font-family: Arial,Verdana, Sans, Serif;
180 font-size: 13;
181 }
182
183 .company_data {
184 width : 100%;
185 text-align: center;
186 font-family: Arial,Verdana, Sans, Serif;
187 font-size: 13;
188
189 }
190
191 .company_footer {
192 font-family: Arial,Verdana, Sans, Serif;
193 font-size: 8.4;
194 font-style : italic;
195 }
196 .footer {
197 border-top: 1px solid black;
198 width: 100%;
199 border:0; margin: 0;
200 padding-bottom: 300px;
201 }
202
203 .data {
204 padding : 5px 10px 10px 10px;
205 border:0; margin: 0;
206 }
207
208 .footer_table {
209 width: 100%;
210 padding-bottom: 150px;
211 border-top: 1px solid black;
212 }
213
214 .slogan {
215 font-family: Arial,Verdana, Sans, Serif;
216 font-size: 10;
217 font-style : italic;
218 color : #888888;
219 }
220
221 #notes_table {
222 font-family: Arial,Verdana, Sans, Serif;
223 font-size: 12;
224 font-style : italic;
225 width:65%;
226 border-collapse:separate;
227 border-spacing:10px;
228 }
229 #notes_table td{
230 background-color: #eee;
231 padding: 10px
232 }
233
234 .document_data {
235 font-family: Arial,Verdana, Sans, Serif;
236 font-size: 13;
237 width : 100%;
238 }
239
240 #data-table tbody tr.even td {
241 background-color: #eee;
242 }
243 #data-table tbody tr.odd td {
244 background-color: #fff;
245 }
246
247 .notes{
248 padding-top : 0px;
249 margin-left: 5px;
250 font-style : italic;
251 }
252 #desc_col{
253 width : 380px;
254 }
255
256 """
257 def create(self,cr,uid, vals,context=None):
258 company_id = super(company_webkit,self).create(cr,uid,vals,context)
259 obj_company = self.pool.get('res.company').browse(cr,uid,company_id)
260
261 vals = {
262 'name' : 'Base ' + obj_company.name,
263 'html': obj_company._get_default_header(),
264 'css' : obj_company._get_default_css(),
265 'footer_html' : obj_company._get_default_footer(),
266 'margin_top' : 55.00,
267 'margin_bottom' : 24.00,
268 'orientation' : 'Portrait',
269 'format' : 'Letter',
270 }
271 register_id = self.pool.get('ir.header_webkit').search(cr,uid,[('name','=', 'Base ' + obj_company.name)])
272 if not register_id:
273 #obj_header = super(rent_contract,self).create(cr,uid,vals,context)
274 obj_company.write({'header_webkit' : [(0,0, vals)]})
275 return obj_company.id
276
277 _columns = {
278 'webkit_footer1': fields.char('Report Footer 1', size=200),
279 'webkit_footer2': fields.char('Report Footer 2', size=200),
280 'webkit_footer3': fields.char('Report Footer 3', size=200),
281 }
282company_webkit()
2830
=== removed file 'TODO-6.1/company_webkit/company_webkit_view.xml'
--- TODO-6.1/company_webkit/company_webkit_view.xml 2012-06-30 22:41:06 +0000
+++ TODO-6.1/company_webkit/company_webkit_view.xml 1970-01-01 00:00:00 +0000
@@ -1,28 +0,0 @@
1<?xml version = "1.0" encoding = "UTF-8"?>
2<openerp>
3 <data>
4
5 <!--
6 ======================================
7 accounts
8 ======================================
9 -->
10
11 <record model = "ir.ui.view" id = "view_webkit_company_form">
12 <field name = "name">res.company.form</field>
13 <field name = "model">res.company</field>
14 <field name = "type">form</field>
15 <field name="inherit_id" ref="report_webkit.currency_del_img"/>
16 <field name = "arch" type = "xml">
17 <data>
18 <field name = "lib_path" position = "after">
19 <field name = "webkit_footer1"/>
20 <field name = "webkit_footer2"/>
21 <field name = "webkit_footer3"/>
22 </field>
23 </data>
24 </field>
25 </record>
26 </data>
27</openerp>
28
290
=== added directory 'TODO-7.0'
=== renamed directory 'account_account_rename' => 'TODO-7.0/account_account_rename'
=== renamed directory 'account_multicompany_relation' => 'TODO-7.0/account_multicompany_relation'
=== renamed directory 'account_parser_type' => 'TODO-7.0/account_parser_type'
=== renamed directory 'account_template_chart_name' => 'TODO-7.0/account_template_chart_name'
=== renamed directory 'account_webkit_report_library' => 'TODO-7.0/account_webkit_report_library'
=== renamed directory 'base_partner_code' => 'TODO-7.0/base_partner_code'
=== renamed directory 'base_partner_merge_ccorp' => 'TODO-7.0/base_partner_merge_ccorp'
=== renamed directory 'base_partner_search_extended' => 'TODO-7.0/base_partner_search_extended'
=== renamed directory 'base_partner_sequence_ccorp' => 'TODO-7.0/base_partner_sequence_ccorp'
=== renamed directory 'base_toolbar_custom_actions' => 'TODO-7.0/base_toolbar_custom_actions'
=== renamed directory 'bom_price_update' => 'TODO-7.0/bom_price_update'
=== renamed directory 'generic_instance_merge' => 'TODO-7.0/generic_instance_merge'
=== renamed directory 'hr_contract_name' => 'TODO-7.0/hr_contract_name'
=== renamed directory 'hr_payroll_sort_employees' => 'TODO-7.0/hr_payroll_sort_employees'
=== renamed directory 'magento_stadistic' => 'TODO-7.0/magento_stadistic'
=== renamed directory 'modules_magento_7' => 'TODO-7.0/modules_magento_7'
=== renamed directory 'mrp_production_sequence' => 'TODO-7.0/mrp_production_sequence'
=== renamed directory 'product_cost_group' => 'TODO-7.0/product_cost_group'
=== renamed directory 'product_search_improver' => 'TODO-7.0/product_search_improver'
=== renamed directory 'purchase_order_archive' => 'TODO-7.0/purchase_order_archive'
=== renamed directory 'purchase_order_sequence' => 'TODO-7.0/purchase_order_sequence'
=== renamed directory 'purchase_order_supplier_domain' => 'TODO-7.0/purchase_order_supplier_domain'
=== renamed directory 'rent' => 'TODO-7.0/rent'
=== renamed directory 'sale_order_line_ccorp' => 'TODO-7.0/sale_order_line_ccorp'
=== renamed directory 'sale_order_sequence' => 'TODO-7.0/sale_order_sequence'
=== renamed directory 'sneldev_magento' => 'TODO-7.0/sneldev_magento'
=== modified file 'TODO-7.0/sneldev_magento/wizard/export_tools.py'
--- sneldev_magento/wizard/export_tools.py 2012-09-10 15:35:49 +0000
+++ TODO-7.0/sneldev_magento/wizard/export_tools.py 2013-11-06 21:08:00 +0000
@@ -26,8 +26,6 @@
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.
27#27#
28##############################################################################28##############################################################################
29
30import wizard
31import pooler29import pooler
32import threading30import threading
3331
3432
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_export.py'
--- sneldev_magento/wizard/sneldev_magento_categories_export.py 2012-09-13 21:23:10 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_export.py 2013-11-06 21:08:00 +0000
@@ -21,8 +21,6 @@
2121
2222
23import pooler23import pooler
24import wizard
25import pooler
26import os24import os
2725
28from export_tools import *26from export_tools import *
2927
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_import.py'
--- sneldev_magento/wizard/sneldev_magento_categories_import.py 2012-09-10 15:35:49 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_categories_import.py 2013-11-06 21:08:00 +0000
@@ -19,9 +19,6 @@
19#19#
20##############################################################################20##############################################################################
2121
22
23import pooler
24import wizard
25import pooler22import pooler
26import os23import os
2724
@@ -46,4 +43,4 @@
4643
47wiz_sneldev_categories_import()44wiz_sneldev_categories_import()
4845
49# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
50\ No newline at end of file46\ No newline at end of file
47# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5148
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_customers_import.py'
--- sneldev_magento/wizard/sneldev_magento_customers_import.py 2012-10-03 21:45:53 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_customers_import.py 2013-11-06 21:08:00 +0000
@@ -20,8 +20,6 @@
20##############################################################################20##############################################################################
2121
22import pooler22import pooler
23import wizard
24import pooler
25import os23import os
2624
27from export_tools import *25from export_tools import *
2826
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_orders_import.py'
--- sneldev_magento/wizard/sneldev_magento_orders_import.py 2012-10-03 21:45:53 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_orders_import.py 2013-11-06 21:08:00 +0000
@@ -21,8 +21,6 @@
2121
2222
23import pooler23import pooler
24import wizard
25import pooler
26import os24import os
2725
28from export_tools import *26from export_tools import *
@@ -54,4 +52,4 @@
5452
55wiz_sneldev_orders_import()53wiz_sneldev_orders_import()
5654
57# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
58\ No newline at end of file55\ No newline at end of file
56# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5957
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_export.py'
--- sneldev_magento/wizard/sneldev_magento_products_export.py 2012-09-17 16:07:49 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_export.py 2013-11-06 21:08:00 +0000
@@ -21,8 +21,6 @@
2121
2222
23import pooler23import pooler
24import wizard
25import pooler
26import os24import os
2725
28from export_tools import *26from export_tools import *
2927
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_import.py'
--- sneldev_magento/wizard/sneldev_magento_products_import.py 2012-10-16 22:33:14 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_products_import.py 2013-11-06 21:08:00 +0000
@@ -19,9 +19,6 @@
19#19#
20##############################################################################20##############################################################################
2121
22
23import pooler
24import wizard
25import pooler22import pooler
26import os23import os
2724
2825
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_export.py'
--- sneldev_magento/wizard/sneldev_magento_stock_export.py 2012-09-11 15:05:32 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_export.py 2013-11-06 21:08:00 +0000
@@ -19,9 +19,6 @@
19#19#
20##############################################################################20##############################################################################
2121
22
23import pooler
24import wizard
25import pooler22import pooler
26import os23import os
2724
@@ -47,4 +44,4 @@
4744
48wiz_sneldev_stock_export()45wiz_sneldev_stock_export()
4946
50# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
51\ No newline at end of file47\ No newline at end of file
48# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5249
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_init.py'
--- sneldev_magento/wizard/sneldev_magento_stock_init.py 2012-09-10 15:35:49 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_stock_init.py 2013-11-06 21:08:00 +0000
@@ -21,8 +21,6 @@
2121
2222
23import pooler23import pooler
24import wizard
25import pooler
26import os24import os
2725
28from export_tools import *26from export_tools import *
2927
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_start.py'
--- sneldev_magento/wizard/sneldev_magento_sync_start.py 2012-09-10 15:35:49 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_start.py 2013-11-06 21:08:00 +0000
@@ -21,8 +21,6 @@
2121
2222
23import pooler23import pooler
24import wizard
25import pooler
26import os24import os
2725
28from export_tools import *26from export_tools import *
@@ -44,4 +42,4 @@
4442
45wiz_sneldev_sync_start()43wiz_sneldev_sync_start()
4644
47# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
48\ No newline at end of file45\ No newline at end of file
46# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4947
=== modified file 'TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_stop.py'
--- sneldev_magento/wizard/sneldev_magento_sync_stop.py 2012-09-10 15:35:49 +0000
+++ TODO-7.0/sneldev_magento/wizard/sneldev_magento_sync_stop.py 2013-11-06 21:08:00 +0000
@@ -21,8 +21,6 @@
2121
2222
23import pooler23import pooler
24import wizard
25import pooler
26import os24import os
2725
28from export_tools import *26from export_tools import *
@@ -44,4 +42,4 @@
4442
45wiz_sneldev_sync_stop()43wiz_sneldev_sync_stop()
4644
47# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
48\ No newline at end of file45\ No newline at end of file
46# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4947
=== renamed directory 'stock_extended' => 'TODO-7.0/stock_extended'
=== added directory 'account_account_extended_ccorp'
=== added file 'account_account_extended_ccorp/__init__.py'
--- account_account_extended_ccorp/__init__.py 1970-01-01 00:00:00 +0000
+++ account_account_extended_ccorp/__init__.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,26 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import account_account_extended_ccorp
24import account_move_line_extended
25
26# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
027
=== added file 'account_account_extended_ccorp/__openerp__.py'
--- account_account_extended_ccorp/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_account_extended_ccorp/__openerp__.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,47 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23{
24 'name': 'Account Account extended ccorp',
25 'version': '1.0',
26 'author' : 'CLEARCORP S.A.',
27 'complexity': 'normal',
28 'website': 'http://clearcorp.co.cr',
29 'category': 'Accounting & Finance',
30 'description': """
31Extends account account and account move line
32===============================================
33Adds a boolean attribute to diferentiate accounts that move cash.
34Adds filters to account move line: Currency and account type
35""",
36 'depends': ['account'],
37 'init_xml': [],
38 'demo_xml': [],
39 'data': [
40 'account_account_extended_ccorp_view.xml',
41 'account_move_line_extended.xml'],
42 'license': 'AGPL-3',
43 'installable': True,
44 'active': False,
45}
46
47# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
048
=== added file 'account_account_extended_ccorp/account_account_extended_ccorp.py'
--- account_account_extended_ccorp/account_account_extended_ccorp.py 1970-01-01 00:00:00 +0000
+++ account_account_extended_ccorp/account_account_extended_ccorp.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,31 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from osv import osv,fields
24
25class AccountAccount(osv.osv):
26
27 _inherit = 'account.account'
28 _columns = {
29 'moves_cash': fields.boolean('Moves cash'),
30 }
31# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
032
=== added file 'account_account_extended_ccorp/account_account_extended_ccorp_view.xml'
--- account_account_extended_ccorp/account_account_extended_ccorp_view.xml 1970-01-01 00:00:00 +0000
+++ account_account_extended_ccorp/account_account_extended_ccorp_view.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,20 @@
1<openerp>
2 <data>
3
4 <!--
5 Account
6 -->
7 <record id="view_account_ccorp_form" model="ir.ui.view">
8 <field name="name">view.account.ccorp.form</field>
9 <field name="model">account.account</field>
10 <field name="inherit_id" ref="account.view_account_form"/>
11 <field name="arch" type="xml">
12 <data>
13 <field name="reconcile" position="after">
14 <field name="moves_cash"/>
15 </field>
16 </data>
17 </field>
18 </record>
19 </data>
20</openerp>
021
=== added file 'account_account_extended_ccorp/account_move_line_extended.py'
--- account_account_extended_ccorp/account_move_line_extended.py 1970-01-01 00:00:00 +0000
+++ account_account_extended_ccorp/account_move_line_extended.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,55 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from osv import osv,fields, orm
24
25class accountMovelineInherit(orm.Model):
26
27 _inherit = "account.move.line"
28
29 #===== Add currency and account_type with two function fields
30
31 #===== Currency -> get currency_id from company_id or account_id
32 def _currency_filter(self, cr, uid, ids, field_name, arg, context=None):
33 result = {}
34 for rec in self.browse(cr, uid, ids, context=context):
35 if rec.account_id.currency_id:
36 result[rec.id] = (rec.account_id.currency_id.id,rec.account_id.currency_id.name)
37 else:
38 result[rec.id] = (rec.company_id.currency_id.id,rec.company_id.currency_id.name)
39 return result
40
41 #====== Account Type -> get user_type from account_id
42 def _account_type_filter(self, cr, uid, ids, field_name, arg, context=None):
43 result = {}
44 for rec in self.browse(cr, uid, ids, context=context):
45 result[rec.id] = (rec.account_id.user_type.id, rec.account_id.user_type.name)
46 return result
47
48 _columns = {
49 'currency_filter':fields.function(_currency_filter, string='Currency', type="many2one", relation='res.currency',store=True),
50 'account_type':fields.function(_account_type_filter, string='Account Type', type='many2one', relation='account.account.type',store=True)
51 }
52
53
54
55
0\ No newline at end of file56\ No newline at end of file
157
=== added file 'account_account_extended_ccorp/account_move_line_extended.xml'
--- account_account_extended_ccorp/account_move_line_extended.xml 1970-01-01 00:00:00 +0000
+++ account_account_extended_ccorp/account_move_line_extended.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,35 @@
1<?xml version="1.0" encoding="UTF-8" ?>
2<openerp>
3 <data>
4 <record id="view_move_line_filter_inherit" model="ir.ui.view">
5 <field name="name">view.move.line.filter.inherit</field>
6 <field name="model">account.move.line</field>
7 <field name="inherit_id" ref="account.view_account_move_line_filter"/>
8 <field name="arch" type="xml">
9 <data>
10 <field name="name" position="after">
11 <field name="account_type" context="{'account_type':self}" widget="selection"/>
12 </field>
13 <group string="Group By..." position="inside">
14 <filter string="Currency" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'currency_filter'}"/>
15 <filter string="Account Type" icon="terp-stock_symbol-selection" domain="" context="{'group_by':'account_type'}"/>
16 </group>
17 </data>
18 </field>
19 </record>
20
21 <record id="view_move_line_tree_inherit" model="ir.ui.view">
22 <field name="name">view.move.line.tree.inherit</field>
23 <field name="model">account.move.line</field>
24 <field name="inherit_id" ref="account.view_move_line_tree"/>
25 <field name="arch" type="xml">
26 <data>
27 <field name="reconcile" position="after">
28 <field name="currency_filter"/>
29 <field name="account_type"/>
30 </field>
31 </data>
32 </field>
33 </record>
34 </data>
35</openerp>
036
=== added directory 'account_account_extended_ccorp/i18n'
=== added file 'account_account_extended_ccorp/i18n/en_US.po'
--- account_account_extended_ccorp/i18n/en_US.po 1970-01-01 00:00:00 +0000
+++ account_account_extended_ccorp/i18n/en_US.po 2013-11-06 21:08:00 +0000
@@ -0,0 +1,27 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_account_extended_ccorp
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2013-08-16 20:51+0000\n"
10"PO-Revision-Date: 2013-08-16 20:51+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_account_extended_ccorp
19#: field:account.account,moves_cash:0
20msgid "Moves cash"
21msgstr "Moves cash"
22
23#. module: account_account_extended_ccorp
24#: model:ir.model,name:account_account_extended_ccorp.model_account_account
25msgid "Account"
26msgstr "Account"
27
028
=== added file 'account_account_extended_ccorp/i18n/es_CR.po'
--- account_account_extended_ccorp/i18n/es_CR.po 1970-01-01 00:00:00 +0000
+++ account_account_extended_ccorp/i18n/es_CR.po 2013-11-06 21:08:00 +0000
@@ -0,0 +1,49 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_account_extended_ccorp
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2013-09-20 22:09+0000\n"
10"PO-Revision-Date: 2013-09-20 22:09+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_account_extended_ccorp
19#: field:account.account,moves_cash:0
20msgid "Moves cash"
21msgstr "Mueve efectivo"
22
23#. module: account_account_extended_ccorp
24#: model:ir.model,name:account_account_extended_ccorp.model_account_account
25msgid "Account"
26msgstr "Cuenta"
27
28#. module: account_account_extended_ccorp
29#: view:account.move.line:0
30msgid "Group By..."
31msgstr "Agrupar por..."
32
33#. module: account_account_extended_ccorp
34#: view:account.move.line:0
35#: field:account.move.line,currency_filter:0
36msgid "Currency"
37msgstr "Divisa"
38
39#. module: account_account_extended_ccorp
40#: model:ir.model,name:account_account_extended_ccorp.model_account_move_line
41msgid "Journal Items"
42msgstr "Elementos diario"
43
44#. module: account_account_extended_ccorp
45#: view:account.move.line:0
46#: field:account.move.line,account_type:0
47msgid "Account Type"
48msgstr "Tipo de Cuenta"
49
050
=== added directory 'account_asset_extended_ccorp'
=== added file 'account_asset_extended_ccorp/__init__.py'
--- account_asset_extended_ccorp/__init__.py 1970-01-01 00:00:00 +0000
+++ account_asset_extended_ccorp/__init__.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,25 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import account_asset_extended_ccorp
24
25# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
026
=== added file 'account_asset_extended_ccorp/__openerp__.py'
--- account_asset_extended_ccorp/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_asset_extended_ccorp/__openerp__.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,46 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23{
24 'name': 'Account Asset extended ccorp',
25 'version': '1.0',
26 'author' : 'CLEARCORP S.A.',
27 'complexity': 'normal',
28 'website': 'http://clearcorp.co.cr',
29 'category': 'Accounting & Finance',
30 'description': """
31Extend account asset
32==========================================
33Create relation asset with invoice line.
34Add model, asset number and responsible in assets.
35Modify in the creation of several assets on an invoice line.
36 """,
37 'depends': ['account_asset'],
38 'init_xml': [],
39 'demo_xml': [],
40 'data': ['account_asset_extended_ccorp_view.xml'],
41 'license': 'AGPL-3',
42 'installable': True,
43 'active': False,
44}
45
46# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
047
=== added file 'account_asset_extended_ccorp/account_asset_extended_ccorp.py'
--- account_asset_extended_ccorp/account_asset_extended_ccorp.py 1970-01-01 00:00:00 +0000
+++ account_asset_extended_ccorp/account_asset_extended_ccorp.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,77 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from osv import osv,fields
24
25class AccountAssetAsset(osv.osv):
26
27 _inherit = 'account.asset.asset'
28 _columns = {
29 'account_invoice_line_id': fields.many2one('account.invoice.line', 'Invoice Line'),
30 'account_invoice_id': fields.related('account_invoice_line_id', 'invoice_id', type="many2one", relation="account.invoice", string="Invoice", store=False),
31 'responsible' : fields.many2one('res.partner', 'Responsible'),
32 'model': fields.char('Model', size=64),
33 'asset_number': fields.char('Asset Number', size=64),
34 }
35
36class AccountInvoiceLine(osv.osv):
37
38 _inherit = 'account.invoice.line'
39 _columns = {
40 'asset_ids': fields.one2many('account.asset.asset', 'account_invoice_line_id', 'Asset', readonly=True, states={'draft':[('readonly',False)]}),
41 }
42 def asset_create(self, cr, uid, lines, context=None):
43 context = context or {}
44 asset_obj = self.pool.get('account.asset.asset')
45 for line in lines:
46 if line.asset_category_id:
47 quantity = line.quantity
48 cont = 1
49 while cont <= quantity:
50 vals = {
51 'name': line.name,
52 'code': line.invoice_id.number or False,
53 'category_id': line.asset_category_id.id,
54 'purchase_value': line.price_subtotal/quantity,
55 'period_id': line.invoice_id.period_id.id,
56 'partner_id': line.invoice_id.partner_id.id,
57 'company_id': line.invoice_id.company_id.id,
58 'currency_id': line.invoice_id.currency_id.id,
59 'purchase_date' : line.invoice_id.date_invoice,
60 }
61 changed_vals = asset_obj.onchange_category_id(cr, uid, [], vals['category_id'], context=context)
62 vals.update(changed_vals['value'])
63 vals.update({'account_invoice_line_id': line.id})
64 asset_id = asset_obj.create(cr, uid, vals, context=context)
65 if line.asset_category_id.open_asset:
66 asset_obj.validate(cr, uid, [asset_id], context=context)
67 cont+=1
68 return True
69
70 def copy_data(self, cr, uid, id, default=None, context=None):
71 res = super(AccountInvoiceLine, self).copy_data(cr, uid, id, default=default, context=context)
72 res.update({
73 'asset_ids': [],
74 })
75 return res
76
77# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
078
=== added file 'account_asset_extended_ccorp/account_asset_extended_ccorp_view.xml'
--- account_asset_extended_ccorp/account_asset_extended_ccorp_view.xml 1970-01-01 00:00:00 +0000
+++ account_asset_extended_ccorp/account_asset_extended_ccorp_view.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,27 @@
1<openerp>
2 <data>
3
4 <!--
5 Asset
6 -->
7 <record id="view_account_asset_asset_ccorp_form" model="ir.ui.view">
8 <field name="name">view.account.asset.asset.ccorp.form</field>
9 <field name="model">account.asset.asset</field>
10 <field name="inherit_id" ref="account_asset.view_account_asset_asset_form"/>
11 <field name="arch" type="xml">
12 <data>
13 <xpath expr="/form/sheet/group/group/field[@name='parent_id']" position="after">
14 <field name="account_invoice_id" readonly="1"/>
15 </xpath>
16 <xpath expr="/form/sheet/group/group/field[@name='company_id']" position="after">
17 <field name="responsible"/>
18 </xpath>
19 <xpath expr="/form/sheet/notebook/page/group/group/field[@name='partner_id']" position="after">
20 <field name="model"/>
21 <field name="asset_number"/>
22 </xpath>
23 </data>
24 </field>
25 </record>
26 </data>
27</openerp>
028
=== added directory 'account_asset_extended_ccorp/i18n'
=== added file 'account_asset_extended_ccorp/i18n/account_asset_extended.pot'
--- account_asset_extended_ccorp/i18n/account_asset_extended.pot 1970-01-01 00:00:00 +0000
+++ account_asset_extended_ccorp/i18n/account_asset_extended.pot 2013-11-06 21:08:00 +0000
@@ -0,0 +1,49 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_asset_extended_ccorp
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2013-05-16 22:09+0000\n"
10"PO-Revision-Date: 2013-05-16 22:09+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_asset_extended_ccorp
19#: field:account.asset.asset,responsible:0
20msgid "Responsible"
21msgstr "Responsible"
22
23#. module: account_asset_extended_ccorp
24#: field:account.asset.asset,account_invoice_line_id:0
25#: model:ir.model,name:account_asset_extended_ccorp.model_account_invoice_line
26msgid "Invoice Line"
27msgstr "Línea factura"
28
29#. module: account_asset_extended_ccorp
30#: field:account.invoice.line,asset_ids:0
31#: model:ir.model,name:account_asset_extended_ccorp.model_account_asset_asset
32msgid "Asset"
33msgstr "Activo"
34
35#. module: account_asset_extended_ccorp
36#: field:account.asset.asset,account_invoice_id:0
37msgid "Invoice"
38msgstr "Invoice"
39
40#. module: account_asset_extended_ccorp
41#: field:account.asset.asset,asset_number:0
42msgid "Asset Number"
43msgstr "Asset Number"
44
45#. module: account_asset_extended_ccorp
46#: field:account.asset.asset,model:0
47msgid "Model"
48msgstr "Model"
49
050
=== added symlink 'account_asset_extended_ccorp/i18n/es.po'
=== target is u'es_CR.po'
=== added file 'account_asset_extended_ccorp/i18n/es_CR.po'
--- account_asset_extended_ccorp/i18n/es_CR.po 1970-01-01 00:00:00 +0000
+++ account_asset_extended_ccorp/i18n/es_CR.po 2013-11-06 21:08:00 +0000
@@ -0,0 +1,49 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_asset_extended_ccorp
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2013-05-16 22:09+0000\n"
10"PO-Revision-Date: 2013-05-16 22:09+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_asset_extended_ccorp
19#: field:account.asset.asset,responsible:0
20msgid "Responsible"
21msgstr "Responsable"
22
23#. module: account_asset_extended_ccorp
24#: field:account.asset.asset,account_invoice_line_id:0
25#: model:ir.model,name:account_asset_extended_ccorp.model_account_invoice_line
26msgid "Invoice Line"
27msgstr "Línea factura"
28
29#. module: account_asset_extended_ccorp
30#: field:account.invoice.line,asset_ids:0
31#: model:ir.model,name:account_asset_extended_ccorp.model_account_asset_asset
32msgid "Asset"
33msgstr "Activo"
34
35#. module: account_asset_extended_ccorp
36#: field:account.asset.asset,account_invoice_id:0
37msgid "Invoice"
38msgstr "Factura"
39
40#. module: account_asset_extended_ccorp
41#: field:account.asset.asset,asset_number:0
42msgid "Asset Number"
43msgstr "Número de Activo"
44
45#. module: account_asset_extended_ccorp
46#: field:account.asset.asset,model:0
47msgid "Model"
48msgstr "Modelo"
49
050
=== added directory 'account_general_ledger_report'
=== renamed directory 'account_general_ledger_report' => 'account_general_ledger_report.moved'
=== added file 'account_general_ledger_report/__init__.py'
--- account_general_ledger_report/__init__.py 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/__init__.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,24 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import report
24import wizard
0\ No newline at end of file25\ No newline at end of file
126
=== added file 'account_general_ledger_report/__openerp__.py'
--- account_general_ledger_report/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/__openerp__.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,47 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23{
24 'name': 'General Ledger Report Webkit',
25 'version': '1.0',
26 'url': 'http://launchpad.net/openerp-ccorp-addons',
27 'author': 'ClearCorp S.A.',
28 'website': 'http://clearcorp.co.cr',
29 'category': 'Accounting & Finance',
30 'complexity': 'normal',
31 'description': """This module modifies the general ledger report""",
32 'depends': [
33 'account',
34 'account_report_lib',
35 'account_report_signatures'
36 ],
37 'init_xml': [],
38 'demo_xml': [],
39 'update_xml': [
40 'report/report.xml',
41 'wizard/account_general_ledger_report_wizard.xml',
42 'report_menus.xml',
43 ],
44 'license': 'AGPL-3',
45 'installable': True,
46 'active': False,
47}
0\ No newline at end of file48\ No newline at end of file
149
=== added directory 'account_general_ledger_report/i18n'
=== added file 'account_general_ledger_report/i18n/es_CR.po'
--- account_general_ledger_report/i18n/es_CR.po 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/i18n/es_CR.po 2013-11-06 21:08:00 +0000
@@ -0,0 +1,280 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_general_ledger_report
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2013-06-07 21:22+0000\n"
10"PO-Revision-Date: 2013-06-07 21:22+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_general_ledger_report
19#: view:general.ledger.wiz:0
20msgid "This report allows you to print or generate a pdf of your General Ledger"
21msgstr "Este reporte permite imprimir o generar un pdf del Libro mayor"
22
23#. module: account_general_ledger_report
24#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:31
25msgid "Filter by: "
26msgstr "Filtrado por: "
27
28#. module: account_general_ledger_report
29#: field:general.ledger.wiz,amount_currency:0
30msgid "With Currency"
31msgstr "Con moneda"
32
33#. module: account_general_ledger_report
34#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:104
35msgid "Label"
36msgstr "Etiqueta"
37
38#. module: account_general_ledger_report
39#: field:general.ledger.wiz,period_from:0
40msgid "Start Period"
41msgstr "Período inicial"
42
43#. module: account_general_ledger_report
44#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:109
45msgid "Debit"
46msgstr "Débito"
47
48#. module: account_general_ledger_report
49#: view:general.ledger.wiz:0
50msgid "General Ledger"
51msgstr "Libro mayor"
52
53#. module: account_general_ledger_report
54#: help:general.ledger.wiz,historic_strict:0
55msgid "If selected, will display a historical unreconciled lines, taking into account the end of the period or date selected"
56msgstr "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"
57
58#. module: account_general_ledger_report
59#: field:general.ledger.wiz,special_period:0
60msgid "Special period"
61msgstr "Período especial"
62
63#. module: account_general_ledger_report
64#: field:general.ledger.wiz,company_id:0
65msgid "Company"
66msgstr "Compañía"
67
68#. module: account_general_ledger_report
69#: model:ir.model,name:account_general_ledger_report.model_general_ledger_wiz
70msgid "General Ledger Report Wizard"
71msgstr "Asistente para el Libro Mayor"
72
73#. module: account_general_ledger_report
74#: help:general.ledger.wiz,special_period:0
75msgid "Include special period"
76msgstr "Includir períodos especiales"
77
78#. module: account_general_ledger_report
79#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:44
80msgid "Period: "
81msgstr "Período: "
82
83#. module: account_general_ledger_report
84#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:100
85msgid "Period"
86msgstr "Período"
87
88#. module: account_general_ledger_report
89#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:59
90msgid "Target moves: "
91msgstr "Movimientos destino: "
92
93#. module: account_general_ledger_report
94#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:113
95msgid "Curr. Am."
96msgstr "Mon. M."
97
98#. module: account_general_ledger_report
99#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:99
100#: selection:general.ledger.wiz,filter:0
101msgid "Date"
102msgstr "Fecha"
103
104#. module: account_general_ledger_report
105#: field:general.ledger.wiz,chart_account_id:0
106msgid "Chart of Account"
107msgstr "Catálogo de Cuentas"
108
109#. module: account_general_ledger_report
110#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:162
111msgid "TOTAL"
112msgstr "TOTAL"
113
114#. module: account_general_ledger_report
115#: view:general.ledger.wiz:0
116#: field:general.ledger.wiz,journal_ids:0
117msgid "Journals"
118msgstr "Diarios"
119
120#. module: account_general_ledger_report
121#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:114
122msgid "Curr. Bal."
123msgstr "Bal. M."
124
125#. module: account_general_ledger_report
126#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:30
127msgid "Fiscal Year: "
128msgstr "Año fiscal: "
129
130#. module: account_general_ledger_report
131#: help:general.ledger.wiz,chart_account_id:0
132msgid "Select Charts of Accounts"
133msgstr "Selecccione el catálogo contable"
134
135#. module: account_general_ledger_report
136#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:50
137msgid "Accounts: "
138msgstr "Cuentas: "
139
140#. module: account_general_ledger_report
141#: field:general.ledger.wiz,date_to:0
142msgid "End Date"
143msgstr "Fecha final"
144
145#. module: account_general_ledger_report
146#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:15
147msgid "General Ledger Report "
148msgstr "Informe del libro mayor"
149
150#. module: account_general_ledger_report
151#: selection:general.ledger.wiz,target_move:0
152msgid "All Posted Entries"
153msgstr "Todos los apuntes publicados"
154
155
156#. module: account_general_ledger_report
157#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:88
158msgid "No move lines for this account"
159msgstr "No existen líneas de asiento para esta cuenta"
160
161#. module: account_general_ledger_report
162#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:47
163msgid "No filter"
164msgstr "Sin filtros"
165
166#. module: account_general_ledger_report
167#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:111
168msgid "Cumul. Bal."
169msgstr "Bal Acumul."
170
171#. module: account_general_ledger_report
172#: help:general.ledger.wiz,fiscalyear_id:0
173msgid "Keep empty for all open fiscal year"
174msgstr "Mantener vacío para todos los años fiscales abiertos"
175
176#. module: account_general_ledger_report
177#: field:general.ledger.wiz,period_to:0
178msgid "End Period"
179msgstr "Período final"
180
181#. module: account_general_ledger_report
182#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:110
183msgid "Credit"
184msgstr "Crédito"
185
186#. module: account_general_ledger_report
187#: field:general.ledger.wiz,fiscalyear_id:0
188msgid "Fiscal Year"
189msgstr "Año fiscal"
190
191#. module: account_general_ledger_report
192#: field:general.ledger.wiz,historic_strict:0
193msgid "Strict History"
194msgstr "Histórico estricto"
195
196#. module: account_general_ledger_report
197#: selection:general.ledger.wiz,filter:0
198msgid "No Filters"
199msgstr "Sin filtros"
200
201#. module: account_general_ledger_report
202#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:101
203msgid "Entry"
204msgstr "Asiento"
205
206#. module: account_general_ledger_report
207#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:56
208msgid "All"
209msgstr "Todo"
210
211#. module: account_general_ledger_report
212#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:29
213msgid "Chart of Accounts: "
214msgstr "Catálogo de cuentas: "
215
216#. module: account_general_ledger_report
217#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:107
218msgid "Reconcile"
219msgstr "Conciliación"
220
221#. module: account_general_ledger_report
222#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:37
223msgid "Dates: "
224msgstr "Fechas: "
225
226#. module: account_general_ledger_report
227#: help:general.ledger.wiz,amount_currency:0
228msgid "It adds the currency column on report if the currency differs from the company currency."
229msgstr "Añade una columna de moneda en el reporte si la moneda es diferente de la moneda de la compañía"
230
231#. module: account_general_ledger_report
232#: field:general.ledger.wiz,target_move:0
233msgid "Target Moves"
234msgstr "Movimientos destino"
235
236#. module: account_general_ledger_report
237#: model:ir.actions.act_window,name:account_general_ledger_report.action_general_ledger_report_wizard
238msgid "General Ledger Report"
239msgstr "Informe del libro mayor"
240
241#. module: account_general_ledger_report
242#: field:general.ledger.wiz,account_ids:0
243msgid "Accounts"
244msgstr "Cuentas"
245
246#. module: account_general_ledger_report
247#: selection:general.ledger.wiz,filter:0
248msgid "Periods"
249msgstr "Períodos"
250
251#. module: account_general_ledger_report
252#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:103
253msgid "Partner"
254msgstr "Empresa"
255
256#. module: account_general_ledger_report
257#: field:general.ledger.wiz,date_from:0
258msgid "Start Date"
259msgstr "Fecha inicial"
260
261#. module: account_general_ledger_report
262#: field:general.ledger.wiz,filter:0
263msgid "Filter by"
264msgstr "Filtrar por"
265
266#. module: account_general_ledger_report
267#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:84
268msgid "Initial balance:"
269msgstr "Balance inicial:"
270
271#. module: account_general_ledger_report
272#: selection:general.ledger.wiz,target_move:0
273msgid "All Entries"
274msgstr "Todos los apuntes"
275
276#. module: account_general_ledger_report
277#: report:addons/account_general_ledger_report/report/account_general_ledger_report.mako:102
278msgid "Journal"
279msgstr "Diario"
280
0281
=== added directory 'account_general_ledger_report/report'
=== added file 'account_general_ledger_report/report/__init__.py'
--- account_general_ledger_report/report/__init__.py 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/report/__init__.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,23 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import account_general_ledger_report
024
=== added file 'account_general_ledger_report/report/account_general_ledger_report.mako'
--- account_general_ledger_report/report/account_general_ledger_report.mako 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/report/account_general_ledger_report.mako 2013-11-06 21:08:00 +0000
@@ -0,0 +1,182 @@
1<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <link rel='stylesheet' href='addons/account_webkit_report_library/webkit_headers/main.css' />
5 <style>
6 ${css}
7 </style>
8 </head>
9 <body>
10 <div class="table header">
11 <div class="table-row">
12 <div class="table-cell logo">${helper.embed_logo_by_name('default_logo', height=70)|n}</div>
13 <br/>
14 <div class="table-cell text">
15 <p class="title">${_('General Ledger Report ')}</p>
16 </div>
17 </div>
18 </div>
19 <br/>
20 <%
21 chart_account = get_chart_account_id(data)
22 fiscalyear = get_fiscal_year(data)
23 filter = get_filter(data)
24 %>
25
26 <div class="table list">
27 <div class="table-header">
28 <div class="table-row labels no-wrap">
29 <div class="table-cell first-column" style="width: 70px">${_('Chart of Accounts: ')}<br/>${chart_account.name}</div>
30 <div class="table-cell" style="width: 70px">${_('Fiscal Year: ')}<br/>${fiscalyear.name}</div>
31 <div class="table-cell" style="width: 70px">${_('Filter by: ')}<br/>
32 %if filter == 'filter_date':
33 <%
34 start_date = get_date_from(data)
35 stop_date = get_date_to(data)
36 %>
37 ${_('Dates: ')}<br/>
38 ${formatLang(start_date, date=True) if start_date else u'' }&nbsp;-&nbsp;${formatLang(stop_date, date=True) if start_date else u'' }
39 %elif filter == 'filter_period':
40 <%
41 start_period = get_start_period(data)
42 stop_period = get_end_period(data)
43 %>
44 ${_('Period: ')}<br/>
45 ${start_period.name if start_period else u''}&nbsp;-&nbsp;${stop_period.name if stop_period else u'' }
46 %else:
47 ${_('No filter')}
48 %endif
49 </div>
50 <div class="table-cell" style="width: 70px">${_('Accounts: ')}<br/>
51 %if get_accounts_ids(cr, uid, data):
52 %for account in get_accounts_ids(cr, uid, data):
53 ${(account.code) + ','}<br/>
54 %endfor
55 %else:
56 ${_('All')}
57 %endif
58 </div>
59 <div class="table-cell" style="width: 70px">${_('Target moves: ')}<br/>${ display_target_move(data) }</div>
60 </div>
61 </div>
62 </div>
63 <%
64 account_list_obj, account_lines, account_conciliation, account_balance = get_data(cr, uid, data)
65 cumul_balance_curr = 0.0
66 %>
67 %for account in account_list_obj:
68 <%
69 cumul_balance = account_balance[account.id]['balance'] or 0.0
70
71 if 'foreign_balance' in account_balance[account.id].keys():
72 cumul_balance_curr = account_balance[account.id]['foreign_balance']
73
74 amount_total_debit = amount_total_credit = amount_total_curr = 0.0
75 print_column = False
76 move_lines = []
77 %>
78 %if account.type != 'view':
79 <br/><br/>
80 <div class="table header">
81 <div class="table-row">
82 <div class="table-cell text">
83 <p class="subtitle">${account.code +' - ' +account.name}</p>
84 <p class="subtitle">${_('Initial balance:')}&nbsp;&nbsp;${formatLang(cumul_balance)}&nbsp;&nbsp;
85 %if account.report_currency_id:
86 ${account.report_currency_id.position == 'before' and (account.report_currency_id.symbol+'&nbsp;') or ''}${formatLang(cumul_balance_curr)}${account.report_currency_id.position == 'after' and ('&nbsp;'+account.report_currency_id.symbol) or ''}&nbsp;&nbsp;
87 %endif
88 ${account.id not in account_lines.keys() and _('No move lines for this account') or ''}
89 </p>
90 </div>
91 </div>
92 </div>
93 %if account.id in account_lines.keys():
94 <% move_lines = account_lines[account.id] %>
95
96 <div class="table list">
97 <div class="table-header">
98 <div class="table-row labels no-wrap">
99 <div class="table-cell first-column" style="width: 55px">${_('Date')}</div>
100 <div class="table-cell" style="width: 70px">${_('Period')}</div>
101 <div class="table-cell" style="width: 100px">${_('Entry')}</div>
102 <div class="table-cell" style="width: 70px">${_('Journal')}</div>
103 <div class="table-cell" style="width: 100px">${_('Partner')}</div>
104 <div class="table-cell" style="width: 100px">${_('Label')}</div>
105 %if account.reconcile or (account.id in account_conciliation.keys() and account_conciliation[account.id]):
106 <% print_column = True %>
107 <div class="table-cell" style="width: 75px">${_('Reconcile')}</div>
108 %endif
109 <div class="table-cell amount" style="width: 60px">${_('Debit')}</div>
110 <div class="table-cell amount" style="width: 60px">${_('Credit')}</div>
111 <div class="table-cell amount" style="width: 60px">${_('Cumul. Bal.')}</div>
112 %if account.report_currency_id:
113 <div class="table-cell amount" style="width: 60px">${_('Curr. Am.')}</div>
114 <div class="table-cell amount last-column" style="width: 60px">${_('Curr. Bal.')}</div>
115 %endif
116 </div>
117 </div>
118 <div class="table-body">
119 %for line in move_lines:
120 <%
121 amount_total_debit += line.debit
122 amount_total_credit += line.credit
123
124 cumul_balance = cumul_balance + line.debit - line.credit
125 if line.amount_currency:
126 cumul_balance_curr = cumul_balance_curr + line.amount_currency
127 amount_total_curr += line.amount_currency
128 %>
129 <div class="table-row ${row_even and 'even' or 'odd'}">
130 <div class="table-cell first-column">${formatLang(line.date, date=True)}</div>
131 <div class="table-cell">${line.period_id.name or ''}</div>
132 <div class="table-cell">${line.move_id.name or ''}</div>
133 <div class="table-cell">${line.journal_id.name}</div>
134 <div class="table-cell">${line.partner_id.name or ''}</div>
135 <div class="table-cell">${line.name or ''}</div>
136 %if print_column:
137 <div class="table-cell">
138 ${line.id in account_conciliation[account.id].keys() and account_conciliation[account.id][line.id] or ''}
139 </div>
140 %endif
141 <div class="table-cell amount">${formatLang(line.debit)}</div>
142 <div class="table-cell amount">&nbsp;${formatLang(line.credit)}</div>
143 <div class="table-cell amount last-column">&nbsp;${formatLang(cumul_balance)}</div>
144 %if account.report_currency_id:
145 <div class="table-cell amount">&nbsp;${line.amount_currency and formatLang(line.amount_currency) or ''}</div>
146 <div class="table-cell amount last-column">&nbsp;${formatLang(cumul_balance_curr)}</div>
147 %endif
148 </div>
149 %endfor
150 <div class="table-row spacer">
151 <div class="table-cell">&nbsp;</div>
152 </div>
153 <div class="table-row subtotal">
154 <div class="table-cell first-column">&nbsp;</div>
155 <div class="table-cell">&nbsp;</div>
156 <div class="table-cell">&nbsp;</div>
157 <div class="table-cell">&nbsp;</div>
158 <div class="table-cell">&nbsp;</div>
159 %if print_column:
160 <div class="table-cell">&nbsp;</div>
161 %endif
162 <div class="table-cell">${_('TOTAL')}</div>
163 <div class="table-cell amount" >${formatLang(amount_total_debit)}</div>
164 <div class="table-cell amount" >&nbsp;${formatLang(amount_total_credit)}</div>
165 %if account.report_currency_id:
166 <div class="table-cell amount">&nbsp;${formatLang(cumul_balance)}</div>
167 <div class="table-cell amount">&nbsp;${formatLang(amount_total_curr)}</div>
168 <div class="table-cell amount last-column">&nbsp;${formatLang(cumul_balance_curr)}</div>
169 %else:
170 <div class="table-cell amount last-column">&nbsp;${formatLang(cumul_balance)}</div>
171 %endif
172 </div>
173 <%
174 amount_total_debit = amount_total_credit = 0.0
175 %>
176 </div>
177 </div>
178 %endif
179 %endif
180 %endfor
181 </body>
182</html>
0183
=== added file 'account_general_ledger_report/report/account_general_ledger_report.py'
--- account_general_ledger_report/report/account_general_ledger_report.py 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/report/account_general_ledger_report.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,179 @@
1#-*- coding:utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
6# d$
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import pooler
24from openerp.addons.account_report_lib.account_report_base import accountReportbase
25from report import report_sxw
26
27class GeneralLedgerReportWebkit(accountReportbase):
28
29 def __init__(self, cr, uid, name, context):
30 super(GeneralLedgerReportWebkit, self).__init__(cr, uid, name, context=context)
31 self.pool = pooler.get_pool(self.cr.dbname)
32 self.cursor = self.cr
33
34 self.localcontext.update({
35 'cr': cr,
36 'uid': uid,
37 'get_chart_account_id': self.get_chart_account_id,
38 'get_fiscalyear': self.get_fiscalyear,
39 'get_filter': self.get_filter,
40 'get_accounts_ids': self.get_accounts_ids,
41 'get_data':self.get_data,
42 })
43
44 def get_data(self, cr, uid, data):
45 filter_data = []
46 account_list = []
47 account_selected = []
48
49 account_lines = {}
50 account_balance = {}
51 account_conciliation = {}
52
53 library_obj = self.pool.get('account.webkit.report.library')
54
55 filter_type = self.get_filter(data)
56 chart_account = self.get_chart_account_id(data)
57
58 if filter_type == 'filter_date':
59 start_date = self.get_date_from(data)
60 stop_date = self.get_date_to(data)
61
62 filter_data.append(start_date)
63 filter_data.append(stop_date)
64
65 elif filter_type == 'filter_period':
66
67 start_period = self.get_start_period(data) #return the period object
68 stop_period = self.get_end_period(data)
69
70 filter_data.append(start_period)
71 filter_data.append(stop_period)
72
73 else:
74 filter_type = ''
75
76 fiscalyear = self.get_fiscalyear(data)
77 target_move = self.get_target_move(data)
78
79 #From the wizard can select specific account, extract this accounts
80 account_selected = self.get_accounts_ids(cr, uid, data)
81
82 if not account_selected:
83 account_selected = [chart_account.id]
84 account_list_ids = library_obj.get_account_child_ids(cr, uid, account_selected) #get all the accounts in the chart_account_id
85
86 #Extract the id for the browse record
87 else:
88 account_ids = []
89 for account in account_selected:
90 account_ids.append(account.id)
91 account_list_ids = library_obj.get_account_child_ids(cr, uid, account_ids) #get all the accounts in the chart_account_id
92
93 account_list_obj = self.pool.get('account.account').browse(cr, uid, account_list_ids)
94
95 #Get the move_lines for each account.
96 move_lines = library_obj.get_move_lines(cr, 1,
97 account_list_ids,
98 filter_type=filter_type,
99 filter_data=filter_data,
100 fiscalyear=fiscalyear,
101 target_move=target_move,
102 order_by='account_id asc, date asc, ref asc')
103
104
105 #Reconcile -> show reconcile in the mako.
106 '''
107 First, if the account permit reconcile (reconcile == True), add to the dictionary.
108 If the account don't allow the reconcile, search if the lines have reconcile_id or partial_reconcile_id
109 If the account allow the reconcile or the lines have reconcile_id or partial_reconcile_id, add in the dictionary
110 and show in the mako the column "Reconcile"
111
112 the final result is:
113 {account_id: {line.id: [conciliation_name]}}
114 '''
115 #Search if the move_lines have partial or reconcile id
116 for line in move_lines:
117 #If the account have reconcile, add to the dictionary
118 if line.account_id.id not in account_conciliation:
119 account_conciliation[line.account_id.id] = {}
120
121 if line.reconcile_id and line.reconcile_id.name != '':
122 account_conciliation[line.account_id.id][line.id] = line.reconcile_id.name
123
124 elif line.reconcile_partial_id and line.reconcile_partial_id.name != '':
125 str_name = 'P: ' + line.reconcile_partial_id.name
126 #conciliation_lines.append(str_name)
127 account_conciliation[line.account_id.id][line.id] = str_name
128
129 if line.account_id.id not in account_lines:
130 account_lines[line.account_id.id] = []
131
132 account_lines[line.account_id.id].append(line)
133
134 fields = ['balance']
135 if self.get_amount_currency(data):
136 fields.append('foreign_balance')
137
138 if filter_type == 'filter_date':
139 account_balance = library_obj.get_account_balance(cr, uid,
140 account_list_ids,
141 fields,
142 initial_balance=True,
143 company_id=chart_account.company_id.id,
144 fiscal_year_id = fiscalyear.id,
145 state = target_move,
146 start_date = start_date,
147 end_date = stop_date,
148 chart_account_id = chart_account.id,
149 filter_type=filter_type)
150 elif filter_type == 'filter_period':
151 account_balance = library_obj.get_account_balance(cr, uid,
152 account_list_ids,
153 fields,
154 initial_balance=True,
155 company_id=chart_account.company_id.id,
156 fiscal_year_id = fiscalyear.id,
157 state = target_move,
158 start_period_id = start_period.id,
159 end_period_id = stop_period.id,
160 chart_account_id = chart_account.id,
161 filter_type=filter_type)
162 else:
163 account_balance = library_obj.get_account_balance(cr, uid,
164 account_list_ids,
165 fields,
166 initial_balance=True,
167 company_id=chart_account.company_id.id,
168 fiscal_year_id = fiscalyear.id,
169 state = target_move,
170 chart_account_id = chart_account.id,
171 filter_type=filter_type)
172
173
174 return account_list_obj, account_lines, account_conciliation, account_balance
175
176report_sxw.report_sxw('report.account_general_ledger_webkit',
177 'account.account',
178 'addons/account_general_ledger_report/report/account_general_ledger_report.mako',
179 parser=GeneralLedgerReportWebkit)
0\ No newline at end of file180\ No newline at end of file
1181
=== added file 'account_general_ledger_report/report/report.xml'
--- account_general_ledger_report/report/report.xml 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/report/report.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,16 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4 <record id="account.account_general_ledger" model="ir.actions.report.xml">
5 <field name="report_type">webkit</field>
6 <field name="report_name">account_general_ledger_webkit</field>
7 <field eval="[(6,0,[])]" name="groups_id"/>
8 <field name="model">account.account</field>
9 <field name="type">ir.actions.report.xml</field>
10 <field name="name">General Ledger Webkit</field>
11 <field name="report_rml">account_general_ledger_report/report/account_general_ledger_report.mako</field>
12 <field name="report_file">account_general_ledger_report/report/account_general_ledger_report.mako</field>
13 <field name="webkit_header" ref="report_webkit_lib.webkit_header_clearcorp_official_portrait" />
14 </record>
15 </data>
16</openerp>
017
=== added file 'account_general_ledger_report/report_menus.xml'
--- account_general_ledger_report/report_menus.xml 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/report_menus.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,13 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4
5 <menuitem icon="STOCK_PRINT"
6 name="General Ledger"
7 parent="account.final_accounting_reports"
8 action="action_general_ledger_report_wizard"
9 groups="account.group_account_user,account.group_account_manager"
10 id="account.menu_general_ledger"/>
11
12 </data>
13</openerp>
014
=== added directory 'account_general_ledger_report/wizard'
=== added file 'account_general_ledger_report/wizard/__init__.py'
--- account_general_ledger_report/wizard/__init__.py 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/wizard/__init__.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,23 @@
1#-*- coding:utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
6# d$
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import account_general_ledger_report_wizard
0\ No newline at end of file24\ No newline at end of file
125
=== added file 'account_general_ledger_report/wizard/account_general_ledger_report_wizard.py'
--- account_general_ledger_report/wizard/account_general_ledger_report_wizard.py 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/wizard/account_general_ledger_report_wizard.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,39 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23from osv import fields, osv
24
25class AccountReportGeneralLedgerWizard(osv.osv_memory):
26
27 _inherit = "account.report.wiz"
28 _name = "general.ledger.wiz"
29 _description = "General Ledger Report Wizard"
30
31 def _print_report(self, cursor, uid, ids, data, context=None):
32 context = context or {}
33
34 return {
35 'type': 'ir.actions.report.xml',
36 'report_name': 'account_general_ledger_webkit',
37 'datas': data
38 }
39
0\ No newline at end of file40\ No newline at end of file
141
=== added file 'account_general_ledger_report/wizard/account_general_ledger_report_wizard.xml'
--- account_general_ledger_report/wizard/account_general_ledger_report_wizard.xml 1970-01-01 00:00:00 +0000
+++ account_general_ledger_report/wizard/account_general_ledger_report_wizard.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,62 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4 <record id ="account_report_general_ledger_report_inherit" model="ir.ui.view">
5 <field name="name">General Ledger Report </field>
6 <field name="model">general.ledger.wiz</field>
7 <field name="type">form</field>
8 <field name="inherit_id" ref="account_report_lib.account_report_lib_wizard_view"/>
9 <field name="arch" type="xml">
10 <data>
11 <xpath expr="/form/label[@string='']" position="replace">
12 <separator string="General Ledger" colspan="4"/>
13 <label nolabel="1" colspan="4" string="This report allows you to print or generate a pdf of your General Ledger"/>
14 </xpath>
15 <field name="chart_account_id" position="attributes">
16 <attribute name="attrs">{'required': True}</attribute>
17 </field>
18 <field name="fiscalyear_id" position="attributes">
19 <attribute name="attrs">{'required': True}</attribute>
20 </field>
21 <field name="target_move" position="attributes">
22 <attribute name="attrs">{'required': True}</attribute>
23 </field>
24 <field name="historic_strict" position="attributes">
25 <attribute name="attrs">{'invisible': True}</attribute>
26 </field>
27 <field name="period_from" position="replace">
28 <field name="period_from" domain="[('special', '=', False)]" attrs="{'required':[('filter', '=', 'filter_period')]}"/>
29 </field>
30 <field name="date_from" position="attributes">
31 <attribute name="attrs">{'required': [('filter', '=', 'filter_date')]}</attribute>
32 </field>
33 <field name="period_to" position="replace">
34 <field name="period_to" domain="[('special', '=', False)]" attrs="{'required':[('filter', '=', 'filter_period')]}"/>
35 </field>
36 <field name="date_to" position="attributes">
37 <attribute name="attrs">{'required': [('filter', '=', 'filter_date')]}</attribute>
38 </field>
39 <field name="special_period" position="attributes">
40 <attribute name="attrs">{'invisible': True}</attribute>
41 </field>
42 <group string="Journals" position="attributes">
43 <attribute name="attrs">{'invisible': True}</attribute>
44 </group>
45 <group string="Account Financial Report" position="attributes">
46 <attribute name="attrs">{'invisible': True}</attribute>
47 </group>
48 </data>
49 </field>
50 </record>
51
52 <record id="action_general_ledger_report_wizard" model="ir.actions.act_window">
53 <field name="name">General Ledger Report</field>
54 <field name="type">ir.actions.act_window</field>
55 <field name="res_model">general.ledger.wiz</field>
56 <field name="view_type">form</field>
57 <field name="view_mode">form</field>
58 <field name="view_id" ref="account_report_general_ledger_report_inherit"/>
59 <field name="target">new</field>
60 </record>
61 </data>
62</openerp>
063
=== modified file 'account_invoice_global_discount/__init__.py'
--- account_invoice_global_discount/__init__.py 2012-06-30 22:41:06 +0000
+++ account_invoice_global_discount/__init__.py 2013-11-06 21:08:00 +0000
@@ -22,3 +22,6 @@
2222
23import account_invoice_global_discount23import account_invoice_global_discount
24import wizard24import wizard
25
26# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
27
2528
=== modified file 'account_invoice_global_discount/__openerp__.py'
--- account_invoice_global_discount/__openerp__.py 2012-06-30 22:41:06 +0000
+++ account_invoice_global_discount/__openerp__.py 2013-11-06 21:08:00 +0000
@@ -24,7 +24,6 @@
24 "name" : 'Global invoice discount',24 "name" : 'Global invoice discount',
25 "version" : '1.0',25 "version" : '1.0',
26 "author" : 'CLEARCORP S.A',26 "author" : 'CLEARCORP S.A',
27 #easy, normal, expert
28 'complexity': 'normal',27 'complexity': 'normal',
29 "description": """28 "description": """
30Adds a discount feature for invoice.29Adds a discount feature for invoice.
@@ -37,16 +36,20 @@
37 "website" : "http://clearcorp.co.cr",36 "website" : "http://clearcorp.co.cr",
38 "images" : [],37 "images" : [],
39 "icon" : False,38 "icon" : False,
40 "depends" : ['account'],39 "depends" : ['account',
40 'product_visible_discount'],
41 "init_xml" : [],41 "init_xml" : [],
42 "demo_xml" : [],42 "demo_xml" : [],
43 "update_xml" : [43 "update_xml" : [],
44 'account_invoice_global_discount_wizard.xml',44 "data" : [
45 'account_invoice_global_discount_view.xml',45 'account_invoice_global_discount_view.xml',
46 ],46 'wizard/discount_wizard_view.xml',
47 ],
47 "test" : [],48 "test" : [],
48 "auto_install": False,49 "auto_install": False,
49 "application": False,50 "application": False,
50 "installable": True,51 "installable": True,
51 'license': 'AGPL-3',52 'license': 'AGPL-3',
52}53}
54
55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5356
=== modified file 'account_invoice_global_discount/account_invoice_global_discount.py'
--- account_invoice_global_discount/account_invoice_global_discount.py 2012-06-30 22:41:06 +0000
+++ account_invoice_global_discount/account_invoice_global_discount.py 2013-11-06 21:08:00 +0000
@@ -18,7 +18,6 @@
18# You should have received a copy of the GNU Affero General Public License18# You should have received a copy of the GNU Affero General Public License
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/>.
20#20#
21##############################################################################
2221
23from osv import osv,fields22from osv import osv,fields
24from tools import config23from tools import config
@@ -103,3 +102,5 @@
103 },102 },
104 multi='ccorp'),103 multi='ccorp'),
105 }104 }
105
106# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
106107
=== modified file 'account_invoice_global_discount/account_invoice_global_discount_view.xml'
--- account_invoice_global_discount/account_invoice_global_discount_view.xml 2012-06-30 22:41:06 +0000
+++ account_invoice_global_discount/account_invoice_global_discount_view.xml 2013-11-06 21:08:00 +0000
@@ -1,115 +1,157 @@
1<?xml version="1.0" encoding="utf-8"?>1<?xml version="1.0" encoding="utf-8"?>
2<openerp><data>2<openerp>
3 <!--3 <data>
4 Resource: account.invoice4
5 Adds fields with not discounted amounts5 <record id="account_invoice_supplier_form_ccorp_attributes" model="ir.ui.view">
6 -->6 <field name="name">account.invoice.supplier.form.ccorp.attributes</field>
7 <record id="invoice_tree_ccorp1" model="ir.ui.view">7 <field name="model">account.invoice</field>
8 <field name="name">account.invoice.tree_ccorp1</field>8 <field name="inherit_id" ref="account.invoice_supplier_form"/>
9 <field name="model">account.invoice</field>9 <field name="arch" type="xml">
10 <field name="inherit_id" ref="account.invoice_tree"/>10 <data>
11 <field name="type">tree</field>11 <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree[@string='Invoice lines']" position="attributes">
12 <field name="arch" type="xml">12 <attribute name="editable"></attribute>
13 <field name="amount_untaxed" position="replace">13 </xpath>
14 <field name="amount_untaxed_not_discounted" sum="Untaxed amount"/>14 </data>
15 </field>15 </field>
16 </field>16 </record>
17 </record>17
18 <record id="invoice_tree_ccorp2" model="ir.ui.view">18 <record id="account_invoice_form_ccorp_attributes" model="ir.ui.view">
19 <field name="name">account.invoice.tree_ccorp2</field>19 <field name="name">account.invoice.form.ccorp.attributes</field>
20 <field name="model">account.invoice</field>20 <field name="model">account.invoice</field>
21 <field name="inherit_id" ref="account.invoice_tree"/>21 <field name="inherit_id" ref="account.invoice_form"/>
22 <field name="type">tree</field>22 <field name="arch" type="xml">
23 <field name="arch" type="xml">23 <data>
24 <field name="amount_total" position="before">24 <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree[@string='Invoice Lines']" position="attributes">
25 <field name="invoice_discount"/>25 <attribute name="editable"></attribute>
26 <field name="amount_discounted" sum="Discounted amount"/>26 </xpath>
27 </field>27 </data>
28 </field>28 </field>
29 </record>29 </record>
30 30
31 <record id="invoice_supplier_form_ccorp_line1" model="ir.ui.view">31 <record id="invoice_tree_ccorp1" model="ir.ui.view">
32 <field name="name">account.invoice.supplier.form_ccorp1</field>32 <field name="name">account.invoice.tree_ccorp1</field>
33 <field name="model">account.invoice</field>33 <field name="model">account.invoice</field>
34 <field name="inherit_id" ref="account.invoice_supplier_form"/>34 <field name="inherit_id" ref="account.invoice_tree"/>
35 <field name="type">form</field>35 <field name="arch" type="xml">
36 <field name="arch" type="xml">36 <field name="amount_untaxed" position="replace">
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"/>
38 <field name="discount"/>38 </field>
39 </xpath>39 <field name="amount_total" position="before">
40 </field>40 <field name="invoice_discount"/>
41 </record>41 <field name="amount_discounted" sum="Discounted amount"/>
42 <record id="invoice_supplier_form_ccorp_line2" model="ir.ui.view">42 </field>
43 <field name="name">account.invoice.supplier.form_ccorp1</field>43 </field>
44 <field name="model">account.invoice</field>44 </record>
45 <field name="inherit_id" ref="account.invoice_supplier_form"/>45
46 <field name="type">form</field>46 <record id="account_invoice_supplier_form_ccorp_line1" model="ir.ui.view">
47 <field name="arch" type="xml">47 <field name="name">account.invoice.supplier.form.ccorp.line1</field>
48 <xpath expr="/form/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="after">48 <field name="model">account.invoice</field>
49 <field name="price_subtotal_not_discounted"/>49 <field name="inherit_id" ref="account.invoice_supplier_form"/>
50 </xpath>50 <field name="arch" type="xml">
51 </field>51 <data>
52 </record>52 <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="before">
53 53 <field name="discount"/>
54 <record id="invoice_supplier_form_ccorp1" model="ir.ui.view">54 </xpath>
55 <field name="name">account.invoice.supplier.form_ccorp1</field>55 </data>
56 <field name="model">account.invoice</field>56 </field>
57 <field name="inherit_id" ref="account.invoice_supplier_form"/>57 </record>
58 <field name="type">form</field>58
59 <field name="arch" type="xml">59 <record id="account_invoice_supplier_form_ccorp_line2" model="ir.ui.view">
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>
61 <button colspan="2" name="%(invoice_discount)d" states="draft" string="Apply Discount" type="action"/>61 <field name="model">account.invoice</field>
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"/>
63 </xpath>63 <field name="arch" type="xml">
64 </field>64 <data>
65 </record>65 <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="after">
66 <record id="invoice_supplier_form_ccorp2" model="ir.ui.view">66 <field name="price_subtotal_not_discounted"/>
67 <field name="name">account.invoice.supplier.form_ccorp2</field>67 </xpath>
68 <field name="model">account.invoice</field>68 </data>
69 <field name="inherit_id" ref="account.invoice_supplier_form"/>69 </field>
70 <field name="type">form</field>70 </record>
71 <field name="arch" type="xml">71
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">
73 <label colspan="2"/>73 <field name="name">account.invoice.supplier.form.ccorp1</field>
74 <field name="amount_untaxed_not_discounted"/>74 <field name="model">account.invoice</field>
75 <field name="invoice_discount"/>75 <field name="inherit_id" ref="account.invoice_supplier_form"/>
76 <field name="amount_discounted"/>76 <field name="arch" type="xml">
77 </xpath>77 <data>
78 </field>78 <xpath expr="//button[@name='button_reset_taxes']" position="replace">
79 </record>79 <button colspan="2" name="invoice_discount" states="draft" string="Apply Discount" type="action"/>
80 80 <button colspan="2" name="button_reset_taxes" states="draft" string="Compute Totals" type="object"/>
81 <record id="invoice_form_ccorp1" model="ir.ui.view">81 </xpath>
82 <field name="name">account.invoice.form_ccorp1</field>82 </data>
83 <field name="model">account.invoice</field>83 </field>
84 <field name="inherit_id" ref="account.invoice_form"/>84 </record>
85 <field name="type">form</field>85
86 <field name="arch" type="xml">86 <record id="account_invoice_supplier_form_ccorp2" model="ir.ui.view">
87 <xpath expr="/form/notebook/page/group/field[@name='amount_untaxed']" position="replace">87 <field name="name">account.invoice.supplier.form.ccorp2</field>
88 <field name="amount_untaxed_not_discounted"/>88 <field name="model">account.invoice</field>
89 <group colspan="2" col="1">89 <field name="inherit_id" ref="account.invoice_supplier_form"/>
90 <button colspan="2" name="%(invoice_discount)d" states="draft" string="Apply Discount" type="action"/>90 <field name="arch" type="xml">
91 </group>91 <data>
92 <field name="invoice_discount"/>92 <xpath expr="/form/sheet/notebook/page/group/field[@name='amount_untaxed']" position="replace">
93 <label colspan="2" string=""/>93 <field name="amount_untaxed_not_discounted"/>
94 <field name="amount_discounted"/>94 <field name="invoice_discount"/>
95 </xpath>95 <field name="amount_discounted"/>
96 </field>96 </xpath>
97 </record>97 </data>
9898 </field>
99 <!--99 </record>
100 Resource: account.invoice.line100
101 Adds the subtotal not discounted to tree and form views101 <record id="account_invoice_form_ccorp_line1" model="ir.ui.view">
102 -->102 <field name="name">account.invoice.form.ccorp.line1</field>
103 <record id="view_invoice_line_tree_ccorp" model="ir.ui.view">103 <field name="model">account.invoice</field>
104 <field name="name">account.invoice.line.tree_ccorp</field>104 <field name="inherit_id" ref="account.invoice_form"/>
105 <field name="model">account.invoice.line</field>105 <field name="arch" type="xml">
106 <field name="inherit_id" ref="account.view_invoice_line_tree"/>106 <data>
107 <field name="type">tree</field>107 <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="before">
108 <field name="arch" type="xml">108 <field name="discount"/>
109 <field name="price_subtotal" position="after">109 </xpath>
110 <field name="price_subtotal_not_discounted"/>110 </data>
111 </field>111 </field>
112 </field>112 </record>
113 </record>113
114</data>114 <record id="account_invoice_form_ccorp_line2" model="ir.ui.view">
115 <field name="name">account.invoice.form.ccorp.line2</field>
116 <field name="model">account.invoice</field>
117 <field name="inherit_id" ref="account.invoice_form"/>
118 <field name="arch" type="xml">
119 <data>
120 <xpath expr="/form/sheet/notebook/page/field[@name='invoice_line']/tree/field[@name='price_subtotal']" position="after">
121 <field name="price_subtotal_not_discounted"/>
122 </xpath>
123 </data>
124 </field>
125 </record>
126
127 <record id="account_invoice_form_ccorp1" model="ir.ui.view">
128 <field name="name">account.invoice.form.ccorp1</field>
129 <field name="model">account.invoice</field>
130 <field name="inherit_id" ref="account.invoice_form"/>
131 <field name="arch" type="xml">
132 <data>
133 <xpath expr="//button[@name='button_reset_taxes']" position="replace">
134 <button colspan="2" name="invoice_discount" states="draft" string="Apply Discount" type="action"/>
135 <button colspan="2" name="button_reset_taxes" states="draft" string="Compute Totals" type="object"/>
136 </xpath>
137 </data>
138 </field>
139 </record>
140
141 <record id="account_invoice_form_ccorp2" model="ir.ui.view">
142 <field name="name">account.invoice.form.ccorp2</field>
143 <field name="model">account.invoice</field>
144 <field name="inherit_id" ref="account.invoice_form"/>
145 <field name="arch" type="xml">
146 <data>
147 <xpath expr="/form/sheet/notebook/page/group/field[@name='amount_untaxed']" position="replace">
148 <field name="amount_untaxed_not_discounted"/>
149 <field name="invoice_discount"/>
150 <field name="amount_discounted"/>
151 </xpath>
152 </data>
153 </field>
154 </record>
155
156 </data>
115</openerp>157</openerp>
116158
=== removed file 'account_invoice_global_discount/account_invoice_global_discount_wizard.xml'
--- account_invoice_global_discount/account_invoice_global_discount_wizard.xml 2012-06-30 22:41:06 +0000
+++ account_invoice_global_discount/account_invoice_global_discount_wizard.xml 1970-01-01 00:00:00 +0000
@@ -1,9 +0,0 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data noupdate="1">
4 <!--
5 Resource: account.invoice
6 -->
7 <wizard string="Discount" model="account.invoice" name="invoice.discount" id="invoice_discount" menu="False"/>
8 </data>
9</openerp>
100
=== modified file 'account_invoice_global_discount/wizard/__init__.py'
--- account_invoice_global_discount/wizard/__init__.py 2012-06-30 22:41:06 +0000
+++ account_invoice_global_discount/wizard/__init__.py 2013-11-06 21:08:00 +0000
@@ -1,35 +1,25 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3#3#
4# __init__.py4# OpenERP, Open Source Management Solution
5# account_invoice_global_discount5# Addons modules by CLEARCORP S.A.
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>).
7# Copyright (c) 2010-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.7#
8# 8# This program is free software: you can redistribute it and/or modify
9# Redistribution and use in source and binary forms, with or without modification, are9# it under the terms of the GNU Affero General Public License as
10# permitted provided that the following conditions are met:10# published by the Free Software Foundation, either version 3 of the
11# 11# License, or (at your option) any later version.
12# 1. Redistributions of source code must retain the above copyright notice, this list of12#
13# conditions and the following disclaimer.13# This program is distributed in the hope that it will be useful,
14# 14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# 2. Redistributions in binary form must reproduce the above copyright notice, this list15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# of conditions and the following disclaimer in the documentation and/or other materials16# GNU Affero General Public License for more details.
17# provided with the distribution.17#
18# 18# You should have received a copy of the GNU Affero General Public License
19# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND20#
21# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# The views and conclusions contained in the software and documentation are those of the
30# authors and should not be interpreted as representing official policies, either expressed
31# or implied, of ClearCorp S.A..
32#
33##############################################################################21##############################################################################
3422
35import discount_wizard23import discount_wizard
24
25# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
3626
=== modified file 'account_invoice_global_discount/wizard/discount_wizard.py'
--- account_invoice_global_discount/wizard/discount_wizard.py 2012-06-30 22:41:06 +0000
+++ account_invoice_global_discount/wizard/discount_wizard.py 2013-11-06 21:08:00 +0000
@@ -1,87 +1,49 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3#3#
4# wizard_discount.py4# OpenERP, Open Source Management Solution
5# account_invoice_global_discount5# Addons modules by CLEARCORP S.A.
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>).
7# Copyright (c) 2010-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.7#
8# 8# This program is free software: you can redistribute it and/or modify
9# Redistribution and use in source and binary forms, with or without modification, are9# it under the terms of the GNU Affero General Public License as
10# permitted provided that the following conditions are met:10# published by the Free Software Foundation, either version 3 of the
11# 11# License, or (at your option) any later version.
12# 1. Redistributions of source code must retain the above copyright notice, this list of12#
13# conditions and the following disclaimer.13# This program is distributed in the hope that it will be useful,
14# 14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# 2. Redistributions in binary form must reproduce the above copyright notice, this list15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# of conditions and the following disclaimer in the documentation and/or other materials16# GNU Affero General Public License for more details.
17# provided with the distribution.17#
18# 18# You should have received a copy of the GNU Affero General Public License
19# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND20#
21# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR21##############################################################################
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR22
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR23from osv import osv, fields
24# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON24
25# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING25class DiscountWizard(osv.osv):
26# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF26
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.27 _name = "discount.wizard"
28# 28 _description = "Discount Wizard"
29# The views and conclusions contained in the software and documentation are those of the29
30# authors and should not be interpreted as representing official policies, either expressed30 _columns = {
31# or implied, of ClearCorp S.A..31 'discount': fields.float('Discount percentage', required=True),
32# 32 'period_from': fields.many2one('account.period', 'Start Period'),
33##############################################################################33 'period_to': fields.many2one('account.period', 'End Period'),
3434 }
35import pooler35
36import wizard36 _default = {
3737 'discount': lambda *args: 0
3838 }
39_form = """<?xml version="1.0"?>39
40<form string="Discount:">40
41 <field name="discount"/>41 def apply_discount(self, cr, uid, data, context):
42</form>42 invoice_obj = self.pool.get('account.invoice')
43"""43 invoice_line_obj = self.pool.get('account.invoice.line')
4444 for invoice in invoice_obj.browse(cr, uid, data['ids'], context=context):
45_fields = {45 invoice_line_obj.write(cr, uid, [line.id for line in invoice.invoice_line], {'discount': data['form']['discount']}, context=context,)
46 'discount': {46 return {}
47 'string': 'Discount percentage',47
48 'type': 'float',48# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
49 'required': True,49
50 'default': lambda *args: 0
51 },
52}
53
54
55def apply_discount(self, cr, uid, data, context):
56 pool = pooler.get_pool(cr.dbname)
57 invoice_obj = pool.get('account.invoice')
58 invoice_line_obj = pool.get('account.invoice.line')
59 for invoice in invoice_obj.browse(cr, uid, data['ids'], context=context):
60 invoice_line_obj.write(cr, uid, [line.id for line in invoice.invoice_line], {'discount': data['form']['discount']}, context=context,)
61 return {}
62
63
64class discount_wizard(wizard.interface):
65 states = {
66 'init': {
67 'actions': [],
68 'result': {
69 'type': 'form',
70 'arch': _form,
71 'fields': _fields,
72 'state': (('end', 'Cancel'),
73 ('apply_discount', 'Apply Discount', 'gtk-ok', True)
74 )
75 }
76 },
77 'apply_discount': {
78 'actions': [],
79 'result': {
80 'type': 'action',
81 'action': apply_discount,
82 'state': "end",
83 }
84 },
85 }
86
87discount_wizard('invoice.discount')
8850
=== added file 'account_invoice_global_discount/wizard/discount_wizard_view.xml'
--- account_invoice_global_discount/wizard/discount_wizard_view.xml 1970-01-01 00:00:00 +0000
+++ account_invoice_global_discount/wizard/discount_wizard_view.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,31 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data noupdate="1">
4
5 <record id="discount_wizard_view" model="ir.ui.view">
6 <field name="name">Discount Wizard View</field>
7 <field name="model">discount.wizard</field>
8 <field name="arch" type="xml">
9 <form string="Discount Wizard" version="7.0">
10 <field name="discount" />
11 <footer>
12 <button name="apply_discount" string="Discount" type="object"/>
13 or
14 <button string="Cancel" class="oe_link" special="cancel" />
15 </footer>
16 </form>
17 </field>
18 </record>
19
20 <record id="action_discount_wizard_view" model="ir.actions.act_window">
21 <field name="name">Action Discount Wizard View</field>
22 <field name="type">ir.actions.act_window</field>
23 <field name="res_model">discount.wizard</field>
24 <field name="view_type">form</field>
25 <field name="view_mode">form</field>
26 <field name="view_id" ref="discount_wizard_view"/>
27 <field name="target">new</field>
28 </record>
29
30 </data>
31</openerp>
032
=== modified file 'account_invoice_journal_defaults/__openerp__.py'
--- account_invoice_journal_defaults/__openerp__.py 2012-06-29 21:17:48 +0000
+++ account_invoice_journal_defaults/__openerp__.py 2013-11-06 21:08:00 +0000
@@ -25,14 +25,12 @@
25 'category': 'Accounting & Finance',25 'category': 'Accounting & Finance',
26 "sequence": 4,26 "sequence": 4,
27 'complexity': "normal",27 'complexity': "normal",
28 'description': """28 'description': '''
29account_invoice_journal_defaults.29 * account_id and journal_id added to onchange_partner
30=======================30 * account_id added in onchange_journal
31 * Currency changed to readonly31 * account_id associated with the journal or with the account in the partner
32 * Change button removed32 * account_id change to read-only
33 * account_id removed in onchange_partner33 ''',
34 * account_id added in onchange_journal
35 """,
36 "author" : 'CLEARCORP S.A',34 "author" : 'CLEARCORP S.A',
37 'website':'http://www.clearcorp.co.cr',35 'website':'http://www.clearcorp.co.cr',
38 "depends" : ['account'],36 "depends" : ['account'],
3937
=== modified file 'account_invoice_journal_defaults/account_invoice_journal_defaults.py'
--- account_invoice_journal_defaults/account_invoice_journal_defaults.py 2013-01-14 21:57:42 +0000
+++ account_invoice_journal_defaults/account_invoice_journal_defaults.py 2013-11-06 21:08:00 +0000
@@ -29,30 +29,88 @@
29 _inherit = 'account.invoice'29 _inherit = 'account.invoice'
3030
31 def onchange_partner_id(self, cr, uid, ids, type, partner_id,\31 def onchange_partner_id(self, cr, uid, ids, type, partner_id,\
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):
3333
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)
35 if 'account_id' in result['value']:35
36 #If the partner have account_id, but the journal doesn't have one, put the account that appears
37 #in result dictionary.
38
39 if not account_id:
40 journal = self.pool.get('account.journal').browse(cr, uid, journal_id)
41 acc_id = False
42
43 if journal.type == 'sale':
44 acc_id = journal.default_receivable_account_id
45 elif journal.type == 'purchase':
46 acc_id = journal.default_payable_account_id
47 elif journal.type == 'sale_refund':
48 acc_id = journal.default_payable_account_id
49 elif journal.type == 'purchase_refund':
50 acc_id = journal.default_receivable_account_id
51
52 if not acc_id:
53 if partner_id:
54 partner = self.pool.get('res.partner').browse(cr, uid, partner_id)
55
56 if partner.id != uid:
57 if journal.type == 'sale':
58 acc_id = partner.property_account_receivable
59 elif journal.type == 'purchase':
60 acc_id = partner.property_account_payable
61 elif journal.type == 'sale_refund':
62 acc_id = partner.property_account_payable
63 elif journal.type == 'purchase_refund':
64 acc_id = partner.property_account_receivable
65
66 else:
67 result['value']['account_id'] = False
68
69 result['value']['account_id'] = acc_id.id
70
71 else:
36 del result['value']['account_id']72 del result['value']['account_id']
3773
38 return result74 return result
3975
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):
77
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)
4279
43 journal = self.pool.get('account.journal').browse(cr, uid, journal_id, context=context)80 if journal_id is not False:
4481 journal = self.pool.get('account.journal').browse(cr, uid, journal_id, context=context)
45 if journal.type == 'sale':82
46 acc_id = journal.default_receivable_account_id.id83 if journal.type == 'sale':
47 elif journal.type == 'purchase':84 acc_id = journal.default_receivable_account_id
48 acc_id = journal.default_payable_account_id.id85 elif journal.type == 'purchase':
49 elif journal.type == 'sale_refund':86 acc_id = journal.default_payable_account_id
50 acc_id = journal.default_payable_account_id.id87 elif journal.type == 'sale_refund':
51 elif journal.type == 'purchase_refund':88 acc_id = journal.default_payable_account_id
52 acc_id = journal.default_receivable_account_id.id89 elif journal.type == 'purchase_refund':
5390 acc_id = journal.default_receivable_account_id
54 result['value']['account_id'] = acc_id91
5592 if not acc_id:
93 if partner_id:
94 partner = self.pool.get('res.partner').browse(cr, uid, partner_id['uid'], context)
95
96 if partner.id != uid:
97 if journal.type == 'sale':
98 acc_id = partner.property_account_receivable
99 elif journal.type == 'purchase':
100 acc_id = partner.property_account_payable
101 elif journal.type == 'sale_refund':
102 acc_id = partner.property_account_payable
103 elif journal.type == 'purchase_refund':
104 acc_id = partner.property_account_receivable
105
106 result['value']['account_id'] = acc_id.id
107
108 else:
109 result['value']['account_id'] = False
110
111 else:
112 result['value']['account_id'] = acc_id.id
113
56 return result114 return result
57115
58 def create(self, cr, uid, vals, context=None):116 def create(self, cr, uid, vals, context=None):
@@ -118,11 +176,8 @@
118 _inherit = 'account.journal'176 _inherit = 'account.journal'
119177
120 _columns = {178 _columns = {
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"),
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"),
123 }181 }
124182
125
126
127
128# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:183# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
129184
=== modified file 'account_invoice_journal_defaults/account_invoice_journal_defaults_view.xml'
--- account_invoice_journal_defaults/account_invoice_journal_defaults_view.xml 2012-06-29 21:17:48 +0000
+++ account_invoice_journal_defaults/account_invoice_journal_defaults_view.xml 2013-11-06 21:08:00 +0000
@@ -10,16 +10,22 @@
10 <field name="inherit_id" ref="account.invoice_supplier_form"/>10 <field name="inherit_id" ref="account.invoice_supplier_form"/>
11 <field name="arch" type="xml">11 <field name="arch" type="xml">
12 <data> 12 <data>
13 <field name = "journal_id" position = "replace">
14 <field name="journal_id" on_change="onchange_journal_id(journal_id, partner_id)" widget="selection"/>
15 </field>
16
17 <field name = "partner_id" position="replace">
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)]"/>
19 </field>
20
13 <field name = "currency_id" position = "replace">21 <field name = "currency_id" position = "replace">
14 <field name="currency_id" width="50" readonly="1"/>22 <field name="currency_id" width="50" readonly="1"/>
15 </field>23 </field>
24
16 <field name = "account_id" position = "replace">25 <field name = "account_id" position = "replace">
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"/>
18 </field>27 </field>
19 <button string="Change" position = "replace">28 </data>
20 <button invisible = "True" type="action" icon="terp-stock_effects-object-colorize" string="Change" groups="account.group_account_user"/>
21 </button>
22 </data>
23 </field>29 </field>
24 </record>30 </record>
25 <!-- End Supplier Invoice --> 31 <!-- End Supplier Invoice -->
@@ -31,16 +37,22 @@
31 <field name="type">form</field>37 <field name="type">form</field>
32 <field name="inherit_id" ref="account.invoice_form"/>38 <field name="inherit_id" ref="account.invoice_form"/>
33 <field name="arch" type="xml">39 <field name="arch" type="xml">
34 <data> 40 <data>
41 <field name="journal_id" position="replace">
42 <field name="journal_id" groups="base.group_user" on_change="onchange_journal_id(journal_id, context, partner_id)" widget="selection"/>
43 </field>
44
45 <field name="partner_id" positon="replace">
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)]"/>
47 </field>
48
35 <field name = "currency_id" position = "replace">49 <field name = "currency_id" position = "replace">
36 <field name="currency_id" width="50" readonly="1"/>50 <field name="currency_id" width="50" readonly="1"/>
37 </field>51 </field>
52
38 <field name = "account_id" position = "replace">53 <field name = "account_id" position = "replace">
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"/>
40 </field>55 </field>
41 <button string="Change" position = "replace">
42 <button invisible = "True" type="action" icon="terp-stock_effects-object-colorize" string="Change" groups="account.group_account_user"/>
43 </button>
44 </data>56 </data>
45 </field>57 </field>
46 </record>58 </record>
@@ -54,11 +66,11 @@
54 <field name="inherit_id" ref="account.view_account_journal_form"/>66 <field name="inherit_id" ref="account.view_account_journal_form"/>
55 <field name="arch" type="xml">67 <field name="arch" type="xml">
56 <data> 68 <data>
57 <field name="default_credit_account_id" position = "after">69 <field name="type" position = "after">
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'))]}">
59 <separator string="Default Accounts Receivable/Payable" colspan="4"/>71 <separator string="Default Accounts Receivable/Payable" colspan="4"/>
60 <field name="default_receivable_account_id" attrs="{'required':[('type','in', ('sale', 'purchase', 'sale_refund', 'purchase_refund'))]}" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>72 <field name="default_receivable_account_id" domain="[('type','=', 'receivable')]"/>
61 <field name="default_payable_account_id" attrs="{'required':[('type','in', ('sale', 'purchase', 'sale_refund', 'purchase_refund'))]}" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>73 <field name="default_payable_account_id" domain="[('type','=', 'payable')]"/>
62 </group>74 </group>
63 </field>75 </field>
64 </data>76 </data>
6577
=== modified file 'account_invoice_webkit_report/__openerp__.py'
--- account_invoice_webkit_report/__openerp__.py 2012-12-04 18:01:04 +0000
+++ account_invoice_webkit_report/__openerp__.py 2013-11-06 21:08:00 +0000
@@ -24,10 +24,9 @@
24 "name" : 'Invoice Webkit Report',24 "name" : 'Invoice Webkit Report',
25 "version" : '1.0',25 "version" : '1.0',
26 "author" : 'CLEARCORP S.A',26 "author" : 'CLEARCORP S.A',
27 #easy, normal, expert
28 'complexity': 'normal',27 'complexity': 'normal',
29 "description": """28 "description": """
30Invoice webkit report29 Invoice webkit report
31 """,30 """,
32 "category": 'Accounting & Finance',31 "category": 'Accounting & Finance',
33 "sequence": 4,32 "sequence": 4,
@@ -36,12 +35,16 @@
36 "icon" : False,35 "icon" : False,
37 "depends" : [36 "depends" : [
38 'base',37 'base',
39 'report_webkit',38 'account_report_lib',
40 'account_invoice_global_discount',39 'account_invoice_global_discount',
41 ],40 ],
42 "init_xml" : [],41 "init_xml" : [],
43 "demo_xml" : [],42 "demo_xml" : [],
44 "update_xml" : ['ccorp_account_webkit_report.xml'],43 "update_xml" : [
44 'data/account_invoice_webkit_report_header.xml',
45 'account_invoice_webkit_report.xml',
46 'report/report.xml'
47 ],
45 "test" : [],48 "test" : [],
46 "auto_install": False,49 "auto_install": False,
47 "application": False,50 "application": False,
4851
=== modified file 'account_invoice_webkit_report/account_invoice_webkit_report.py'
--- account_invoice_webkit_report/account_invoice_webkit_report.py 2012-12-04 18:01:04 +0000
+++ account_invoice_webkit_report/account_invoice_webkit_report.py 2013-11-06 21:08:00 +0000
@@ -29,4 +29,5 @@
29 _columns = {29 _columns = {
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"),
31 }31 }
32
32res_company()33res_company()
33\ No newline at end of file34\ No newline at end of file
3435
=== added file 'account_invoice_webkit_report/account_invoice_webkit_report.xml'
--- account_invoice_webkit_report/account_invoice_webkit_report.xml 1970-01-01 00:00:00 +0000
+++ account_invoice_webkit_report/account_invoice_webkit_report.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,21 @@
1<?xml version="1.0"?>
2<openerp>
3 <data>
4 <record id="view_company_form_inherit" model="ir.ui.view">
5 <field name="name">res.company.form.inherit</field>
6 <field name="model">res.company</field>
7 <field name="type">form</field>
8 <field name="inherit_id" ref="base.view_company_form"/>
9 <field name="arch" type="xml">
10 <data>
11 <page string="General Information" position="after">
12 <page string="Configuration Report" groups="base.group_extended">
13 <separator colspan="4" string="Invoices"/>
14 <field colspan="4" name="use_email_invoice"/>
15 </page>
16 </page>
17 </data>
18 </field>
19 </record>
20 </data>
21</openerp>
022
=== removed file 'account_invoice_webkit_report/ccorp_account_webkit_report.xml'
--- account_invoice_webkit_report/ccorp_account_webkit_report.xml 2013-01-17 15:31:51 +0000
+++ account_invoice_webkit_report/ccorp_account_webkit_report.xml 1970-01-01 00:00:00 +0000
@@ -1,34 +0,0 @@
1<?xml version="1.0"?>
2<openerp>
3 <data>
4
5 <record id="account.account_invoices" model="ir.actions.report.xml">
6 <field name="auto" eval="False" />
7 <field name="multi" eval="False" />
8 <field name="model">account.invoice</field>
9 <field name="name">account.invoice.layout_ccorp</field>
10 <field name="report_file">account_invoice_webkit_report/report/invoice.mako</field>
11 <field name="report_rml">account_invoice_webkit_report/report/invoice.mako</field>
12 <field name="report_type">webkit</field>
13 </record>
14
15
16 <record id="view_company_form_inherit" model="ir.ui.view">
17 <field name="name">res.company.form.inherit</field>
18 <field name="model">res.company</field>
19 <field name="type">form</field>
20 <field name="inherit_id" ref="base.view_company_form"/>
21 <field name="arch" type="xml">
22 <data>
23 <page string="General Information" position="after">
24 <page string="Configuration Report" groups="base.group_extended">
25 <separator colspan="4" string="Invoices"/>
26 <field colspan="4" name="use_email_invoice"/>
27 </page>
28 </page>
29 </data>
30 </field>
31 </record>
32
33 </data>
34</openerp>
350
=== added directory 'account_invoice_webkit_report/data'
=== added file 'account_invoice_webkit_report/data/account_invoice_webkit_report_header.xml'
--- account_invoice_webkit_report/data/account_invoice_webkit_report_header.xml 1970-01-01 00:00:00 +0000
+++ account_invoice_webkit_report/data/account_invoice_webkit_report_header.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,239 @@
1<?xml version="1.0"?>
2<openerp>
3 <data noupdate="1">
4 <record id="invoice_header_webkit" model="ir.header_webkit">
5 <field name="name">Invoice CLEARCORP official header</field>
6 <field name="orientation">Portrait</field>
7 <field name="format">Letter</field>
8 <field name="margin_top">70.00</field>
9 <field name="margin_bottom">24.00</field>
10 <field name="margin_left">0</field>
11 <field name="margin_right">0</field>
12 <field name="css"><![CDATA[
13 .header {
14 padding : 200px 10px 5px 10px;
15 border:0; margin: 0;
16 }
17 .header-table {
18 width: 100%;
19 padding-top: 8%;
20 }
21 .partner-table {
22 width: 100%;
23 font-family: Arial,Verdana, Sans, Serif;
24 font-size: 12;
25 }
26
27 #data-table {
28 width: 100%;
29 padding-top: 20px;
30 font-family: Arial,Verdana, Sans, Serif;
31 font-size: 12;
32 }
33 #data-table th{
34 border-bottom:2px solid black;
35 text-align:center;
36 font-size:12;
37 font-weight:bold;
38 padding-right:3px;
39 padding-left:3px;
40 }
41 #data-table thead {
42 display:table-header-group;
43 }
44
45 .title {
46 font-size:16;
47 font-weight: bold;
48 }
49
50 td.company_logo{
51 width : 100%;
52 padding-top: 20px;
53 padding-bottom: 5px;
54 }
55 .company_address{
56 width : 100%;
57 text-align: right;
58 font-family: Arial,Verdana, Sans, Serif;
59 font-size: 13;
60 }
61
62 .company_data {
63 width : 100%;
64 text-align: left;
65 font-family: Arial,Verdana, Sans, Serif;
66 font-size: 13;
67
68 }
69
70 .company_footer {
71 font-family: Arial,Verdana, Sans, Serif;
72 font-size: 8.4;
73 font-style : italic;
74 }
75 .footer {
76 border-top: 1px solid black;
77 width: 100%;
78 border:0; margin: 0;
79 padding-bottom: 300px;
80 }
81
82 .data {
83 padding : 5px 10px 10px 10px;
84 border:0; margin: 0;
85 }
86
87 .footer_table {
88 width: 100%;
89 padding-bottom: 150px;
90 border-top: 1px solid black;
91 }
92
93 .slogan {
94 font-family: Arial,Verdana, Sans, Serif;
95 font-size: 10;
96 font-style : italic;
97 color : #888888;
98 }
99
100 #notes_table {
101 font-family: Arial,Verdana, Sans, Serif;
102 font-size: 12;
103 font-style : italic;
104 width:65%;
105 border-collapse:separate;
106 border-spacing:10px;
107 }
108 #notes_table td{
109 background-color: #eee;
110 padding: 10px
111 }
112
113 .document_data {
114 font-family: Arial,Verdana, Sans, Serif;
115 font-size: 13;
116 }
117
118 #data-table tbody tr.even td {
119 background-color: #eee;
120 }
121 #data-table tbody tr.odd td {
122 background-color: #fff;
123 }
124
125 .notes{
126 padding-top : 0px;
127 margin-left: 5px;
128 font-style : italic;
129 }
130 #desc_col{
131 width : 440px;
132 }
133 #desc_col_po{
134 width : 380px;
135 }
136 ]]>
137 </field>
138 <field name="html"><![CDATA[
139<html>
140 <head>
141 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
142 <script>
143 function subst() {
144 var vars={};
145 var x=document.location.search.substring(1).split('&');
146 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
147 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
148 for(var i in x) {
149 var y = document.getElementsByClassName(x[i]);
150 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
151 }
152 }
153 </script>
154 <style type="text/css">
155 ${css}
156 </style>
157 </head>
158 <body class = "header" onload="subst()">
159 <table class="header-table" cellspacing = "3">
160 <tbody>
161 <tr>
162 <td class="company_logo">
163 ${helper.embed_logo_by_name('default_logo', height=40, width=150)|n}
164 </td>
165 </tr>
166 <tr>
167 <td>
168 <table class="company_data">
169 <tr class = "title">
170 <td>${company.partner_id.name or '-'}</td>
171 <td>${_("Address")}</td>
172 </tr>
173 <tr>
174 <td>${_("ID Num")}: ${company.company_registry or '-'}</td>
175 <td>${company.partner_id.street or '-'}</td>
176 </tr>
177 <tr>
178 <td>${_("Tel-fax")}: ${company.partner_id.phone or '-'}</td>
179 <td>${company.partner_id.zip or ''} ${company.partner_id.city or ''}</td>
180 </tr>
181 <tr>
182 <td>${_("E-mail")}: ${company.partner_id.email or '-'}</td>
183 %if company.partner_id.country_id :
184 <td>${company.partner_id.state_id.name or ''|entity}, ${company.partner_id.country_id.name or ''} </td>
185 %else:
186 <td>&nbsp;</td>
187 %endif
188 </tr>
189 <tr>
190 <td>${_("Web")}: ${company.website or '-'}</td>
191 <td></td>
192 </tr>
193 </table>
194 </td>
195 </tr>
196 </tbody>
197 </table>
198
199 <p class = "slogan">${company.rml_header1}</p>
200 <hr />${_debug or ''|n} </body>
201</html>]]></field>
202 <field name="footer_html"><![CDATA[
203<html>
204 <head>
205 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
206 <script>
207 function subst() {
208 var vars={};
209 var x=document.location.search.substring(1).split('&');
210 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
211 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
212 for(var i in x) {
213 var y = document.getElementsByClassName(x[i]);
214 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
215 }
216 }
217 </script>
218 <style type="text/css">
219 ${css}
220 </style>
221 </head>
222 <body class = "footer" onload="subst()">
223 <table class = "footer_table">
224 <tr>
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>
226 </tr>
227 <tr>
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>
229 </tr>
230 <tr>
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>
232 <td style="text-align:right;font-size:10;">Página&nbsp;<span class="page"/></td><td style="text-align:left;font-size:10;">&nbsp;de&nbsp;<span class="topage"/></td>
233 </tr>
234 </table>
235 </body>
236</html> ]]></field>
237 </record>
238 </data>
239</openerp>
0\ No newline at end of file240\ No newline at end of file
1241
=== removed file 'account_invoice_webkit_report/i18n/ccorp_account.pot'
--- account_invoice_webkit_report/i18n/ccorp_account.pot 2012-06-30 22:41:06 +0000
+++ account_invoice_webkit_report/i18n/ccorp_account.pot 1970-01-01 00:00:00 +0000
@@ -1,179 +0,0 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * ccorp_account
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 5.0.12\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2010-08-23 20:49:00+0000\n"
10"PO-Revision-Date: 2010-08-23 20:49:00+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: ccorp_account
19#: model:ir.module.module,description:ccorp_account.module_meta_information
20msgid "ClearCorp 'account' modifications:\n"
21" Reports:\n"
22" * Invoice\n"
23" "
24msgstr ""
25
26#. module: ccorp_account
27#: model:ir.module.module,shortdesc:ccorp_account.module_meta_information
28msgid "ClearCorp account module modifications"
29msgstr ""
30
31#. module: ccorp_account
32#: rml:account.invoice.layout_ccorp:0
33msgid "Electronic Invoice"
34msgstr ""
35
36#. module: ccorp_account
37#: rml:account.invoice.layout_ccorp:0
38msgid "PRO-FORMA"
39msgstr ""
40
41#. module: ccorp_account
42#: rml:account.invoice.layout_ccorp:0
43msgid "Draft Invoice"
44msgstr ""
45
46#. module: ccorp_account
47#: rml:account.invoice.layout_ccorp:0
48msgid "Cancelled Invoice"
49msgstr ""
50
51#. module: ccorp_account
52#: rml:account.invoice.layout_ccorp:0
53msgid "Supplier Refund"
54msgstr ""
55
56#. module: ccorp_account
57#: rml:account.invoice.layout_ccorp:0
58msgid "Supplier Invoice"
59msgstr ""
60
61#. module: ccorp_account
62#: rml:account.invoice.layout_ccorp:0
63msgid "Num.: "
64msgstr ""
65
66#. module: ccorp_account
67#: rml:account.invoice.layout_ccorp:0
68msgid "Date: "
69msgstr ""
70
71#. module: ccorp_account
72#: rml:account.invoice.layout_ccorp:0
73msgid "ID Num.: "
74msgstr ""
75
76#. module: ccorp_account
77#: rml:account.invoice.layout_ccorp:0
78msgid "Tel-fax: "
79msgstr ""
80
81#. module: ccorp_account
82#: rml:account.invoice.layout_ccorp:0
83msgid "Email: "
84msgstr ""
85
86#. module: ccorp_account
87#: rml:account.invoice.layout_ccorp:0
88msgid "Web: "
89msgstr ""
90
91#. module: ccorp_account
92#: rml:account.invoice.layout_ccorp:0
93msgid "Address:"
94msgstr ""
95
96#. module: ccorp_account
97#: rml:account.invoice.layout_ccorp:0
98msgid "Phone: "
99msgstr ""
100
101#. module: ccorp_account
102#: rml:account.invoice.layout_ccorp:0
103msgid "Fax: "
104msgstr ""
105
106#. module: ccorp_account
107#: rml:account.invoice.layout_ccorp:0
108msgid "Salesman: "
109msgstr ""
110
111#. module: ccorp_account
112#: rml:account.invoice.layout_ccorp:0
113msgid "Payment tems: "
114msgstr ""
115
116#. module: ccorp_account
117#: rml:account.invoice.layout_ccorp:0
118msgid "Due date: "
119msgstr ""
120
121#. module: ccorp_account
122#: rml:account.invoice.layout_ccorp:0
123msgid "Exchange rate: "
124msgstr ""
125
126#. module: ccorp_account
127#: rml:account.invoice.layout_ccorp:0
128msgid "Page: "
129msgstr ""
130
131#. module: ccorp_account
132#: rml:account.invoice.layout_ccorp:0
133msgid "Thank you for choosing us."
134msgstr ""
135
136#. module: ccorp_account
137#: rml:account.invoice.layout_ccorp:0
138msgid "Qty."
139msgstr ""
140
141#. module: ccorp_account
142#: rml:account.invoice.layout_ccorp:0
143msgid "Description / (Taxes)"
144msgstr ""
145
146#. module: ccorp_account
147#: rml:account.invoice.layout_ccorp:0
148msgid "Disc."
149msgstr ""
150
151#. module: ccorp_account
152#: rml:account.invoice.layout_ccorp:0
153msgid "Unit Price"
154msgstr ""
155
156#. module: ccorp_account
157#: rml:account.invoice.layout_ccorp:0
158msgid "Total Price"
159msgstr ""
160
161#. module: ccorp_account
162#: rml:account.invoice.layout_ccorp:0
163msgid "Subtotal"
164msgstr ""
165
166#. module: ccorp_account
167#: rml:account.invoice.layout_ccorp:0
168msgid "Discount"
169msgstr ""
170
171#. module: ccorp_account
172#: rml:account.invoice.layout_ccorp:0
173msgid "Taxes"
174msgstr ""
175
176#. module: ccorp_account
177#: rml:account.invoice.layout_ccorp:0
178msgid "TOTAL"
179msgstr ""
1800
=== removed file 'account_invoice_webkit_report/i18n/ccorp_account_webkit.pot'
--- account_invoice_webkit_report/i18n/ccorp_account_webkit.pot 2012-06-30 22:41:06 +0000
+++ account_invoice_webkit_report/i18n/ccorp_account_webkit.pot 1970-01-01 00:00:00 +0000
@@ -1,190 +0,0 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * ccorp_account
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.2\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-10-06 19:15+0000\n"
10"PO-Revision-Date: 2011-10-06 19:15+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: ccorp_account
19#: report:report.account.invoice.layout_ccorp:93
20#: report:report.account.invoice.layout_ccorp:98
21msgid "Sub Total"
22msgstr ""
23
24#. module: ccorp_account
25#: report:report.account.invoice.layout_ccorp:39
26msgid "Date:"
27msgstr ""
28
29#. module: ccorp_account
30#: report:report.account.invoice.layout_ccorp:36
31msgid "ID Num."
32msgstr ""
33
34#. module: ccorp_account
35#: report:report.account.invoice.layout_ccorp:47
36msgid "Payment tems"
37msgstr ""
38
39#. module: ccorp_account
40#: report:report.account.invoice.layout_ccorp:81
41msgid "Note"
42msgstr ""
43
44#. module: ccorp_account
45#: report:report.account.invoice.layout_ccorp:23
46msgid "Supplier Invoice"
47msgstr ""
48
49#. module: ccorp_account
50#: model:ir.module.module,description:ccorp_account.module_meta_information
51msgid "ClearCorp 'account' modifications:\n"
52" Reports:\n"
53" * Invoice\n"
54" "
55msgstr "ClearCorp 'account' modifications:\n"
56" Reports:\n"
57" * Invoice\n"
58" "
59
60#. module: ccorp_account
61#: report:report.account.invoice.layout_ccorp:63
62msgid "Disc.(%)"
63msgstr ""
64
65#. module: ccorp_account
66#: report:report.account.invoice.layout_ccorp:48
67msgid "Email"
68msgstr ""
69
70#. module: ccorp_account
71#: report:report.account.invoice.layout_ccorp:63
72#: report:report.account.invoice.layout_ccorp:65
73msgid "Total Price"
74msgstr ""
75
76#. module: ccorp_account
77#: report:report.account.invoice.layout_ccorp:17
78msgid "PROFORMA"
79msgstr ""
80
81#. module: ccorp_account
82#: report:report.account.invoice.layout_ccorp:44
83msgid "Fax"
84msgstr ""
85
86#. module: ccorp_account
87#: report:report.account.invoice.layout_ccorp:94
88msgid "Discount"
89msgstr ""
90
91#. module: ccorp_account
92#: model:ir.actions.report.xml,name:ccorp_account.account_invoice_ccorp
93msgid "Invoice HTML"
94msgstr ""
95
96#. module: ccorp_account
97#: report:report.account.invoice.layout_ccorp:21
98msgid "Canceled Invoice"
99msgstr ""
100
101#. module: ccorp_account
102#: report:report.account.invoice.layout_ccorp:40
103msgid "Phone"
104msgstr ""
105
106#. module: ccorp_account
107#: report:report.account.invoice.layout_ccorp:107
108msgid "Invoice Note"
109msgstr ""
110
111#. module: ccorp_account
112#: report:report.account.invoice.layout_ccorp:63
113#: report:report.account.invoice.layout_ccorp:65
114msgid "[Code] Description / (Taxes)"
115msgstr ""
116
117#. module: ccorp_account
118#: report:report.account.invoice.layout_ccorp:19
119msgid "Draft Inovice"
120msgstr ""
121
122#. module: ccorp_account
123#: report:report.account.invoice.layout_ccorp:55
124msgid "Address"
125msgstr ""
126
127#. module: ccorp_account
128#: report:report.account.invoice.layout_ccorp:15
129msgid "Electronic Invoice"
130msgstr ""
131
132#. module: ccorp_account
133#: report:report.account.invoice.layout_ccorp:95
134#: report:report.account.invoice.layout_ccorp:99
135msgid "Taxes"
136msgstr ""
137
138#. module: ccorp_account
139#: model:ir.module.module,shortdesc:ccorp_account.module_meta_information
140msgid "ClearCorp account module modifications"
141msgstr "ClearCorp account module modifications"
142
143#. module: ccorp_account
144#: report:report.account.invoice.layout_ccorp:110
145msgid "Payment Note"
146msgstr ""
147
148#. module: ccorp_account
149#: report:report.account.invoice.layout_ccorp:25
150msgid "Refund"
151msgstr ""
152
153#. module: ccorp_account
154#: report:report.account.invoice.layout_ccorp:43
155msgid "Due date"
156msgstr ""
157
158#. module: ccorp_account
159#: report:report.account.invoice.layout_ccorp:63
160#: report:report.account.invoice.layout_ccorp:65
161msgid "Qty"
162msgstr ""
163
164#. module: ccorp_account
165#: report:report.account.invoice.layout_ccorp:63
166#: report:report.account.invoice.layout_ccorp:65
167msgid "Unit Price"
168msgstr ""
169
170#. module: ccorp_account
171#: view:account.account:0
172msgid "Inactive Accounts"
173msgstr ""
174
175#. module: ccorp_account
176#: report:report.account.invoice.layout_ccorp:27
177msgid "Supplier Refund"
178msgstr ""
179
180#. module: ccorp_account
181#: report:report.account.invoice.layout_ccorp:96
182#: report:report.account.invoice.layout_ccorp:100
183msgid "Total"
184msgstr ""
185
186#. module: ccorp_account
187#: report:report.account.invoice.layout_ccorp:51
188msgid "Salesman"
189msgstr ""
190
1910
=== removed file 'account_invoice_webkit_report/i18n/es.po'
--- account_invoice_webkit_report/i18n/es.po 2012-06-30 22:41:06 +0000
+++ account_invoice_webkit_report/i18n/es.po 1970-01-01 00:00:00 +0000
@@ -1,182 +0,0 @@
1# Spanish translation for openerp-ccorp-addons
2# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011
3# This file is distributed under the same license as the openerp-ccorp-addons package.
4# FIRST AUTHOR <EMAIL@ADDRESS>, 2011.
5#
6msgid ""
7msgstr ""
8"Project-Id-Version: openerp-ccorp-addons\n"
9"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
10"POT-Creation-Date: 2010-08-23 20:49+0000\n"
11"PO-Revision-Date: 2011-11-16 05:10+0000\n"
12"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13"Language-Team: Spanish <es@li.org>\n"
14"MIME-Version: 1.0\n"
15"Content-Type: text/plain; charset=UTF-8\n"
16"Content-Transfer-Encoding: 8bit\n"
17"X-Launchpad-Export-Date: 2011-11-29 06:07+0000\n"
18"X-Generator: Launchpad (build 14399)\n"
19
20#. module: ccorp_account
21#: model:ir.module.module,description:ccorp_account.module_meta_information
22msgid ""
23"ClearCorp 'account' modifications:\n"
24" Reports:\n"
25" * Invoice\n"
26" "
27msgstr ""
28
29#. module: ccorp_account
30#: model:ir.module.module,shortdesc:ccorp_account.module_meta_information
31msgid "ClearCorp account module modifications"
32msgstr ""
33
34#. module: ccorp_account
35#: rml:account.invoice.layout_ccorp:0
36msgid "Electronic Invoice"
37msgstr "Factura Electrónica"
38
39#. module: ccorp_account
40#: rml:account.invoice.layout_ccorp:0
41msgid "PRO-FORMA"
42msgstr "Proforma"
43
44#. module: ccorp_account
45#: rml:account.invoice.layout_ccorp:0
46msgid "Draft Invoice"
47msgstr "Factura BORRADOR"
48
49#. module: ccorp_account
50#: rml:account.invoice.layout_ccorp:0
51msgid "Cancelled Invoice"
52msgstr "Factura CANCELADA"
53
54#. module: ccorp_account
55#: rml:account.invoice.layout_ccorp:0
56msgid "Supplier Refund"
57msgstr "Nota de crédito PROVEEDOR"
58
59#. module: ccorp_account
60#: rml:account.invoice.layout_ccorp:0
61msgid "Supplier Invoice"
62msgstr "Factura PROVEEDOR"
63
64#. module: ccorp_account
65#: rml:account.invoice.layout_ccorp:0
66msgid "Num.: "
67msgstr ""
68
69#. module: ccorp_account
70#: rml:account.invoice.layout_ccorp:0
71msgid "Date: "
72msgstr ""
73
74#. module: ccorp_account
75#: rml:account.invoice.layout_ccorp:0
76msgid "ID Num.: "
77msgstr ""
78
79#. module: ccorp_account
80#: rml:account.invoice.layout_ccorp:0
81msgid "Tel-fax: "
82msgstr "Tel-fax: "
83
84#. module: ccorp_account
85#: rml:account.invoice.layout_ccorp:0
86msgid "Email: "
87msgstr ""
88
89#. module: ccorp_account
90#: rml:account.invoice.layout_ccorp:0
91msgid "Web: "
92msgstr ""
93
94#. module: ccorp_account
95#: rml:account.invoice.layout_ccorp:0
96msgid "Address:"
97msgstr "Dirección:"
98
99#. module: ccorp_account
100#: rml:account.invoice.layout_ccorp:0
101msgid "Phone: "
102msgstr ""
103
104#. module: ccorp_account
105#: rml:account.invoice.layout_ccorp:0
106msgid "Fax: "
107msgstr ""
108
109#. module: ccorp_account
110#: rml:account.invoice.layout_ccorp:0
111msgid "Salesman: "
112msgstr ""
113
114#. module: ccorp_account
115#: rml:account.invoice.layout_ccorp:0
116msgid "Payment tems: "
117msgstr ""
118
119#. module: ccorp_account
120#: rml:account.invoice.layout_ccorp:0
121msgid "Due date: "
122msgstr ""
123
124#. module: ccorp_account
125#: rml:account.invoice.layout_ccorp:0
126msgid "Exchange rate: "
127msgstr ""
128
129#. module: ccorp_account
130#: rml:account.invoice.layout_ccorp:0
131msgid "Page: "
132msgstr ""
133
134#. module: ccorp_account
135#: rml:account.invoice.layout_ccorp:0
136msgid "Thank you for choosing us."
137msgstr "Gracias por escoger nuestros servicios."
138
139#. module: ccorp_account
140#: rml:account.invoice.layout_ccorp:0
141msgid "Qty."
142msgstr "Cant."
143
144#. module: ccorp_account
145#: rml:account.invoice.layout_ccorp:0
146msgid "Description / (Taxes)"
147msgstr ""
148
149#. module: ccorp_account
150#: rml:account.invoice.layout_ccorp:0
151msgid "Disc."
152msgstr "Desc."
153
154#. module: ccorp_account
155#: rml:account.invoice.layout_ccorp:0
156msgid "Unit Price"
157msgstr "Precio Unit."
158
159#. module: ccorp_account
160#: rml:account.invoice.layout_ccorp:0
161msgid "Total Price"
162msgstr "Precio Total"
163
164#. module: ccorp_account
165#: rml:account.invoice.layout_ccorp:0
166msgid "Subtotal"
167msgstr "Subtotal"
168
169#. module: ccorp_account
170#: rml:account.invoice.layout_ccorp:0
171msgid "Discount"
172msgstr "Descuento"
173
174#. module: ccorp_account
175#: rml:account.invoice.layout_ccorp:0
176msgid "Taxes"
177msgstr "Impuestos"
178
179#. module: ccorp_account
180#: rml:account.invoice.layout_ccorp:0
181msgid "TOTAL"
182msgstr "TOTAL"
1830
=== modified file 'account_invoice_webkit_report/i18n/es_CR.po'
--- account_invoice_webkit_report/i18n/es_CR.po 2012-12-04 18:01:04 +0000
+++ account_invoice_webkit_report/i18n/es_CR.po 2013-11-06 21:08:00 +0000
@@ -4,10 +4,10 @@
4#4#
5msgid ""5msgid ""
6msgstr ""6msgstr ""
7"Project-Id-Version: OpenERP Server 6.1\n"7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: \n"8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2012-12-04 17:11+0000\n"9"POT-Creation-Date: 2013-04-30 16:38+0000\n"
10"PO-Revision-Date: 2012-12-04 17:11+0000\n"10"PO-Revision-Date: 2013-04-30 16:38+0000\n"
11"Last-Translator: <>\n"11"Last-Translator: <>\n"
12"Language-Team: \n"12"Language-Team: \n"
13"MIME-Version: 1.0\n"13"MIME-Version: 1.0\n"
@@ -16,15 +16,15 @@
16"Plural-Forms: \n"16"Plural-Forms: \n"
1717
18#. module: account_invoice_webkit_report18#. module: account_invoice_webkit_report
19#: report:addons/account_invoice_webkit_report/report/invoice.mako:9319#: report:addons/account_invoice_webkit_report/report/invoice.mako:94
20#: report:addons/account_invoice_webkit_report/report/invoice.mako:9820#: report:addons/account_invoice_webkit_report/report/invoice.mako:99
21msgid "Sub Total"21msgid "Sub Total"
22msgstr "Sub Total"22msgstr "Subtotal"
2323
24#. module: account_invoice_webkit_report24#. module: account_invoice_webkit_report
25#: field:res.company,use_email_invoice:025#: field:res.company,use_email_invoice:0
26msgid "Use user email"26msgid "Use user email"
27msgstr "Usar email del usuario logueado"27msgstr "Usar email del usuario"
2828
29#. module: account_invoice_webkit_report29#. module: account_invoice_webkit_report
30#: report:addons/account_invoice_webkit_report/report/invoice.mako:3930#: report:addons/account_invoice_webkit_report/report/invoice.mako:39
@@ -32,19 +32,14 @@
32msgstr "Fecha:"32msgstr "Fecha:"
3333
34#. module: account_invoice_webkit_report34#. module: account_invoice_webkit_report
35#: constraint:res.company:035#: report:addons/account_invoice_webkit_report/report/invoice.mako:36
36msgid "Error! You can not create recursive companies."36msgid "ID Num."
37msgstr "¡Error! No puede crear compañías recursivas."37msgstr "Código cliente"
3838
39#. module: account_invoice_webkit_report39#. module: account_invoice_webkit_report
40#: report:addons/account_invoice_webkit_report/report/invoice.mako:4740#: report:addons/account_invoice_webkit_report/report/invoice.mako:47
41msgid "Payment tems"41msgid "Payment tems"
42msgstr "Plazo de pago"42msgstr "Condiciones de pago"
43
44#. module: account_invoice_webkit_report
45#: report:addons/account_invoice_webkit_report/report/invoice.mako:81
46msgid "Note"
47msgstr "Nota"
4843
49#. module: account_invoice_webkit_report44#. module: account_invoice_webkit_report
50#: report:addons/account_invoice_webkit_report/report/invoice.mako:2345#: report:addons/account_invoice_webkit_report/report/invoice.mako:23
@@ -65,7 +60,7 @@
65#. module: account_invoice_webkit_report60#. module: account_invoice_webkit_report
66#: report:addons/account_invoice_webkit_report/report/invoice.mako:4861#: report:addons/account_invoice_webkit_report/report/invoice.mako:48
67msgid "Email"62msgid "Email"
68msgstr "Email"63msgstr "Correo electrónico"
6964
70#. module: account_invoice_webkit_report65#. module: account_invoice_webkit_report
71#: report:addons/account_invoice_webkit_report/report/invoice.mako:6366#: report:addons/account_invoice_webkit_report/report/invoice.mako:63
@@ -86,12 +81,7 @@
86#. module: account_invoice_webkit_report81#. module: account_invoice_webkit_report
87#: report:addons/account_invoice_webkit_report/report/invoice.mako:4082#: report:addons/account_invoice_webkit_report/report/invoice.mako:40
88msgid "Phone"83msgid "Phone"
89msgstr "Phone"84msgstr "Teléfono"
90
91#. module: account_invoice_webkit_report
92#: model:ir.actions.report.xml,name:account_invoice_webkit_report.account_invoice_ccorp
93msgid "Invoice HTML"
94msgstr "Facturas"
9585
96#. module: account_invoice_webkit_report86#. module: account_invoice_webkit_report
97#: report:addons/account_invoice_webkit_report/report/invoice.mako:2187#: report:addons/account_invoice_webkit_report/report/invoice.mako:21
@@ -99,12 +89,12 @@
99msgstr "Factura cancelada"89msgstr "Factura cancelada"
10090
101#. module: account_invoice_webkit_report91#. module: account_invoice_webkit_report
102#: report:addons/account_invoice_webkit_report/report/invoice.mako:9492#: report:addons/account_invoice_webkit_report/report/invoice.mako:95
103msgid "Discount"93msgid "Discount"
104msgstr "Descuento"94msgstr "Descuento"
10595
106#. module: account_invoice_webkit_report96#. module: account_invoice_webkit_report
107#: report:addons/account_invoice_webkit_report/report/invoice.mako:10797#: report:addons/account_invoice_webkit_report/report/invoice.mako:108
108msgid "Invoice Note"98msgid "Invoice Note"
109msgstr "Nota de factura"99msgstr "Nota de factura"
110100
@@ -112,12 +102,7 @@
112#: report:addons/account_invoice_webkit_report/report/invoice.mako:63102#: report:addons/account_invoice_webkit_report/report/invoice.mako:63
113#: report:addons/account_invoice_webkit_report/report/invoice.mako:65103#: report:addons/account_invoice_webkit_report/report/invoice.mako:65
114msgid "[Code] Description / (Taxes)"104msgid "[Code] Description / (Taxes)"
115msgstr "[Cód.] Descripción / (Imp.)"105msgstr "[Código] Descripción / (Impuestos)"
116
117#. module: account_invoice_webkit_report
118#: sql_constraint:res.company:0
119msgid "The company name must be unique !"
120msgstr "¡El nombre de la compañía debe ser único!"
121106
122#. module: account_invoice_webkit_report107#. module: account_invoice_webkit_report
123#: report:addons/account_invoice_webkit_report/report/invoice.mako:19108#: report:addons/account_invoice_webkit_report/report/invoice.mako:19
@@ -125,11 +110,6 @@
125msgstr "Factura borrador"110msgstr "Factura borrador"
126111
127#. module: account_invoice_webkit_report112#. module: account_invoice_webkit_report
128#: report:addons/account_invoice_webkit_report/report/invoice.mako:36
129msgid "ID Num."
130msgstr "ID Num."
131
132#. module: account_invoice_webkit_report
133#: report:addons/account_invoice_webkit_report/report/invoice.mako:55113#: report:addons/account_invoice_webkit_report/report/invoice.mako:55
134msgid "Address"114msgid "Address"
135msgstr "Dirección"115msgstr "Dirección"
@@ -145,35 +125,35 @@
145msgstr "Factura electrónica"125msgstr "Factura electrónica"
146126
147#. module: account_invoice_webkit_report127#. module: account_invoice_webkit_report
148#: report:addons/account_invoice_webkit_report/report/invoice.mako:95128#: report:addons/account_invoice_webkit_report/report/invoice.mako:96
149#: report:addons/account_invoice_webkit_report/report/invoice.mako:99129#: report:addons/account_invoice_webkit_report/report/invoice.mako:100
150msgid "Taxes"130msgid "Taxes"
151msgstr "Impuestos"131msgstr "Impuestos"
152132
153#. module: account_invoice_webkit_report133#. module: account_invoice_webkit_report
154#: help:res.company,use_email_invoice:0134#: help:res.company,use_email_invoice:0
155msgid "In the invoice, if it is selected appears the user's mail is logged in. If not selected, do not appear any associated email"135msgid "In the invoice, if it is selected appears the user's mail is logged in. If not selected, do not appear any associated email"
156msgstr "En la factura, si está seleccionado aparece el email del usuario logueado. Si no está seleccionado no aparece ningún email"136msgstr "En la factura, si está seleccionada, aparece el correo del usuario logueado. Si no está seleccionado, no aparece ningún correo asociado."
157137
158#. module: account_invoice_webkit_report138#. module: account_invoice_webkit_report
159#: view:res.company:0139#: view:res.company:0
160msgid "Configuration Report"140msgid "Configuration Report"
161msgstr "Configuración de reportes"141msgstr "Configuración de reporte"
162142
163#. module: account_invoice_webkit_report143#. module: account_invoice_webkit_report
164#: report:addons/account_invoice_webkit_report/report/invoice.mako:111144#: report:addons/account_invoice_webkit_report/report/invoice.mako:112
165msgid "Payment Note"145msgid "Payment Note"
166msgstr "Nota de pago"146msgstr "Nota de pago"
167147
168#. module: account_invoice_webkit_report148#. module: account_invoice_webkit_report
169#: report:addons/account_invoice_webkit_report/report/invoice.mako:25149#: report:addons/account_invoice_webkit_report/report/invoice.mako:25
170msgid "Refund"150msgid "Refund"
171msgstr "Reembolso"151msgstr "Nota de crédito"
172152
173#. module: account_invoice_webkit_report153#. module: account_invoice_webkit_report
174#: report:addons/account_invoice_webkit_report/report/invoice.mako:43154#: report:addons/account_invoice_webkit_report/report/invoice.mako:43
175msgid "Due date"155msgid "Due date"
176msgstr "Vence"156msgstr "Fecha de vencimiento"
177157
178#. module: account_invoice_webkit_report158#. module: account_invoice_webkit_report
179#: view:res.company:0159#: view:res.company:0
@@ -194,11 +174,11 @@
194#. module: account_invoice_webkit_report174#. module: account_invoice_webkit_report
195#: report:addons/account_invoice_webkit_report/report/invoice.mako:27175#: report:addons/account_invoice_webkit_report/report/invoice.mako:27
196msgid "Supplier Refund"176msgid "Supplier Refund"
197msgstr "Reembolso de proveedor"177msgstr "Nota de débito"
198178
199#. module: account_invoice_webkit_report179#. module: account_invoice_webkit_report
200#: report:addons/account_invoice_webkit_report/report/invoice.mako:96180#: report:addons/account_invoice_webkit_report/report/invoice.mako:97
201#: report:addons/account_invoice_webkit_report/report/invoice.mako:100181#: report:addons/account_invoice_webkit_report/report/invoice.mako:101
202msgid "Total"182msgid "Total"
203msgstr "Total"183msgstr "Total"
204184
205185
=== modified file 'account_invoice_webkit_report/report/__init__.py'
--- account_invoice_webkit_report/report/__init__.py 2012-06-30 22:41:06 +0000
+++ account_invoice_webkit_report/report/__init__.py 2013-11-06 21:08:00 +0000
@@ -1,35 +1,23 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3#3#
4# __init__.py4# OpenERP, Open Source Management Solution
5# ccorp_account5# Addons modules by CLEARCORP S.A.
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>).
7# Copyright (c) 2010-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.7#
8# 8# This program is free software: you can redistribute it and/or modify
9# Redistribution and use in source and binary forms, with or without modification, are9# it under the terms of the GNU Affero General Public License as
10# permitted provided that the following conditions are met:10# published by the Free Software Foundation, either version 3 of the
11# 11# License, or (at your option) any later version.
12# 1. Redistributions of source code must retain the above copyright notice, this list of12#
13# conditions and the following disclaimer.13# This program is distributed in the hope that it will be useful,
14# 14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# 2. Redistributions in binary form must reproduce the above copyright notice, this list15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# of conditions and the following disclaimer in the documentation and/or other materials16# GNU Affero General Public License for more details.
17# provided with the distribution.17#
18# 18# You should have received a copy of the GNU Affero General Public License
19# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND20#
21# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# The views and conclusions contained in the software and documentation are those of the
30# authors and should not be interpreted as representing official policies, either expressed
31# or implied, of ClearCorp S.A..
32#
33##############################################################################21##############################################################################
3422
35import invoice23import account_invoice_report
3624
=== added file 'account_invoice_webkit_report/report/account_invoice_report.mako'
--- account_invoice_webkit_report/report/account_invoice_report.mako 1970-01-01 00:00:00 +0000
+++ account_invoice_webkit_report/report/account_invoice_report.mako 2013-11-06 21:08:00 +0000
@@ -0,0 +1,137 @@
1<html>
2<head>
3 <style type="text/css">
4 ${css}
5 </style>
6</head>
7<body class = "data">
8 %for inv in objects :
9 <% setLang(inv.partner_id.lang) %>
10 <div id="wrapper">
11 <table width = "100%" class = "document_data">
12 <tr class = "title">
13 <td class = "document_data">
14 %if inv.type == 'out_invoice' and (inv.state == 'open' or inv.state == 'paid') :
15 <span class="title">${_("Electronic Invoice")} ${inv.number or ''|entity}</span>
16 %elif inv.type == 'out_invoice' and inv.state == 'proforma2' :
17 <span class="title">${_("Proforma")} ${inv.number or ''|entity}</span>
18 %elif inv.type == 'out_invoice' and inv.state == 'draft' :
19 <span class="title">${_("Draft Inovice")} ${inv.number or ''|entity}</span>
20 %elif inv.type == 'out_invoice' and inv.state == 'cancel':
21 <span class="title">${_("Canceled Invoice")} ${inv.number or ''|entity}</span>
22 %elif inv.type == 'in_invoice' :
23 <span class="title">${_("Supplier Invoice")} ${inv.number or ''|entity}</span>
24 %elif inv.type == 'out_refund' :
25 <span class="title">${_("Refund")} ${inv.number or ''|entity}</span>
26 %elif inv.type == 'in_refund' :
27 <span class="title">${_("Supplier Refund")} ${inv.number or ''|entity}</span>
28 %endif
29 </td>
30 <td>
31 ${inv.partner_id.name}
32 </td>
33 </tr>
34 <tr>
35 <td>${inv.name or '-'}</td>
36 <td>${_("ID Num.")}: ${inv.partner_id.ref or '-'}</td>
37 </tr>
38 <tr>
39 <td>${_("Date:")} ${formatLang(inv.date_invoice, date=True)|entity}</td>
40 <td>${_("Phone")}:${inv.partner_id.phone or '-'}</td>
41 </tr>
42 <tr>
43 <td>${_("Due date")}: ${formatLang(inv.date_due, date=True)|entity}</td>
44 <td>${_("Fax")}: ${inv.partner_id.fax or '-'}</td>
45 </tr>
46 <tr>
47 <td>${_("Payment tems")}: ${inv.payment_term.name or '-'}</td>
48 <td colspan = "2">${_("Email")}: ${inv.partner_id.email or '-'}</td><td> </td>
49 </tr>
50 <tr>
51 <td>${_("Salesman")}: ${inv.partner_id.user_id.name or '-'}</td>
52 <td>&nbsp;</td>
53 </tr>
54 <tr class = "zone_break"><td>&nbsp;</td><td>&nbsp;</td></tr>
55 <tr class = "title"><td>${_("Address")}</td><td>&nbsp;</td></tr>
56 <tr><td>${inv.partner_id.street or ''}</td><td>&nbsp;</td></tr>
57 <tr><td>${inv.partner_id.street2 or ''}</td><td>&nbsp;</td></tr>
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>&nbsp;</td></tr>
59 <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
60 </table>
61 <table id ="data-table" cellspacing = "3">
62 %if inv.amount_discounted != 0:
63 <thead><th>${_("Qty")}</th><th>${_("[Code] Description / (Taxes)")}</th><th>${_("Disc.(%)")}</th><th>${_("Unit Price")}</th><th>${_("Total Price")}</th></thead>
64 %else:
65 <thead><th>${_("Qty")}</th><th>${_("[Code] Description / (Taxes)")}</th><th>${_("Unit Price")}</th><th>${_("Total Price")}</th></thead>
66 %endif
67 <tbody>
68 <%i = 0 %>
69 %for line in inv.invoice_line :
70 %if i% 2 == 0:
71 <tr class = "even">
72 %else:
73 <tr class = "odd">
74 %endif
75 %if line.uos_id:
76 <td valign = "top">${formatLang(line.quantity)} ${format(line.uos_id.name)}</td>
77 %else:
78 <td valign = "top">${formatLang(line.quantity)}</td>
79 %endif
80 <td valign = "top" id="desc_col">${line.name}
81 %if line.invoice_line_tax_id != []:
82 ${ ', '.join([ tax.name or '' for tax in line.invoice_line_tax_id ])|entity}
83 %endif
84 </td>
85 %if inv.amount_discounted != 0:
86 <td valign = "top" style="text-align:right;">${line.discount and formatLang(line.discount) + '%' or '-'}</td>
87 %endif
88 %if inv.currency_id.position == 'before':
89 <td style="text-align:right;" valign = "top">${inv.currency_id.symbol or ''|entity }&nbsp;${formatLang(line.price_unit)}</td>
90 <td style="text-align:right;" valign = "top">${inv.currency_id.symbol or ''|entity }&nbsp;${formatLang(line.price_subtotal_not_discounted)}</td>
91 %else:
92 <td style="text-align:right;" valign = "top">${formatLang(line.price_unit)}&nbsp;${inv.currency_id.symbol or ''|entity } </td>
93 <td style="text-align:right;" valign = "top">${formatLang(line.price_subtotal_not_discounted)}&nbsp;${inv.currency_id.symbol or ''|entity }</td>
94 %endif
95 </tr>
96 <%i += 1%>
97 %endfor
98 %if inv.amount_discounted != 0:
99 %if inv.currency_id.position == 'before':
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}&nbsp;${formatLang(inv.amount_untaxed_not_discounted)}</td></tr>
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}&nbsp;${formatLang(inv.amount_discounted)}</td></tr>
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}&nbsp;${formatLang(inv.amount_tax)}</td></tr>
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}&nbsp;${formatLang(inv.amount_total)}</td></tr>
104 %else:
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)}&nbsp;${inv.currency_id.symbol or ''|entity}</td></tr>
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)}&nbsp;${inv.currency_id.symbol or ''|entity}</td></tr>
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)}&nbsp;${inv.currency_id.symbol or ''|entity}</td></tr>
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)}&nbsp;${inv.currency_id.symbol or ''|entity}</td></tr>
109 %endif
110 %else:
111 %if inv.currency_id.position == 'before':
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>
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>
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>
115 %else:
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>
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>
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>
119 %endif
120 %endif
121 </tbody>
122 </table>
123 <table id = "notes_table">
124 %if inv.comment:
125 <tr><td><b>${_("Invoice Note")}:</b><br />
126 ${format(inv.comment)}</td></tr>
127 %endif
128 %if inv.payment_term and inv.payment_term.note:
129 <tr><td><b>${_("Payment Note")}:</b><br />
130 ${format(inv.payment_term and inv.payment_term.note)}</td></tr>
131 %endif
132 </table>
133 </div>
134 <p style="page-break-after:always"></p>
135 %endfor
136</body>
137</html>
0138
=== added file 'account_invoice_webkit_report/report/account_invoice_report.py'
--- account_invoice_webkit_report/report/account_invoice_report.py 1970-01-01 00:00:00 +0000
+++ account_invoice_webkit_report/report/account_invoice_report.py 2013-11-06 21:08:00 +0000
@@ -0,0 +1,41 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Addons modules by CLEARCORP S.A.
6# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23import time
24import pooler
25import locale
26from report import report_sxw
27
28class account_invoice_ccorp(report_sxw.rml_parse):
29 def __init__(self, cr, uid, name, context):
30 super(account_invoice_ccorp, self).__init__(cr, uid, name, context=context)
31 self.localcontext.update({
32 'time': time,
33 'cr' : cr,
34 'uid': uid,
35 })
36
37report_sxw.report_sxw(
38 'report.account.invoice.layout_ccorp',
39 'account.invoice',
40 'addons/account_invoice_webkit_report/report/account_invoice_report.mako',
41 parser=account_invoice_ccorp)
042
=== removed file 'account_invoice_webkit_report/report/invoice.mako'
--- account_invoice_webkit_report/report/invoice.mako 2012-12-03 20:31:03 +0000
+++ account_invoice_webkit_report/report/invoice.mako 1970-01-01 00:00:00 +0000
@@ -1,123 +0,0 @@
1<html>
2<head>
3 <style type="text/css">
4 ${css}
5 </style>
6</head>
7<body class = "data">
8 %for inv in objects :
9 <% setLang(inv.partner_id.lang) %>
10 <div id="wrapper">
11 <table width = "100%" class = "document_data">
12 <tr class = "title">
13 <td class = "document_data">
14 %if inv.type == 'out_invoice' and (inv.state == 'open' or inv.state == 'paid') :
15 <span class="title">${_("Electronic Invoice")} ${inv.number or ''|entity}</span>
16 %elif inv.type == 'out_invoice' and inv.state == 'proforma2' :
17 <span class="title">${_("PROFORMA")} ${inv.number or ''|entity}</span>
18 %elif inv.type == 'out_invoice' and inv.state == 'draft' :
19 <span class="title">${_("Draft Inovice")} ${inv.number or ''|entity}</span>
20 %elif inv.type == 'out_invoice' and inv.state == 'cancel':
21 <span class="title">${_("Canceled Invoice")} ${inv.number or ''|entity}</span>
22 %elif inv.type == 'in_invoice' :
23 <span class="title">${_("Supplier Invoice")} ${inv.number or ''|entity}</span>
24 %elif inv.type == 'out_refund' :
25 <span class="title">${_("Refund")} ${inv.number or ''|entity}</span>
26 %elif inv.type == 'in_refund' :
27 <span class="title">${_("Supplier Refund")} ${inv.number or ''|entity}</span>
28 %endif
29 </td>
30 <td>
31 ${inv.partner_id.name}
32 </td>
33 </tr>
34 <tr>
35 <td>${inv.name or '' |entity}</td>
36 <td>${_("ID Num.")}: ${inv.partner_id.ref or '-'|entity}</td>
37 </tr>
38 <tr>
39 <td>${_("Date:")} ${formatLang(inv.date_invoice, date=True)|entity}</td>
40 <td>${_("Phone")}:${inv.address_invoice_id.phone or '-'|entity}</td>
41 </tr>
42 <tr>
43 <td>${_("Due date")}: ${formatLang(inv.date_due, date=True)|entity}</td>
44 <td>${_("Fax")}: ${inv.address_invoice_id.fax or '-' | entity}</td>
45 </tr>
46 <tr>
47 <td>${_("Payment tems")}: ${inv.payment_term.name or '-' |entity}</td>
48 <td colspan = "2">${_("Email")}: ${inv.address_invoice_id.email or '-'|entity}</td><td> </td>
49 </tr>
50 <tr>
51 <td>${_("Salesman")}: ${inv.partner_id.user_id.name or ' '|entity}</td>
52 <td>&nbsp;</td>
53 </tr>
54 <tr class = "zone_break"><td>&nbsp;</td><td>&nbsp;</td></tr>
55 <tr class = "title"><td>${_("Address")}</td><td>&nbsp;</td></tr>
56 <tr><td>${inv.address_invoice_id.street or ''}</td><td>&nbsp;</td></tr>
57 <tr><td>${inv.address_invoice_id.street2 or ''}</td><td>&nbsp;</td></tr>
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>&nbsp;</td></tr>
59 <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
60 </table>
61 <table id ="data-table" cellspacing = "3">
62 %if inv.amount_discounted != 0:
63 <thead><th>${_("Qty")}</th><th>${_("[Code] Description / (Taxes)")}</th><th>${_("Disc.(%)")}</th><th>${_("Unit Price")}</th><th>${_("Total Price")}</th></thead>
64 %else:
65 <thead><th>${_("Qty")}</th><th>${_("[Code] Description / (Taxes)")}</th><th>${_("Unit Price")}</th><th>${_("Total Price")}</th></thead>
66 %endif
67 <tbody>
68 <%i = 0 %>
69 %for line in inv.invoice_line :
70 %if i% 2 == 0:
71 <tr class = "even">
72 %else:
73 <tr class = "odd">
74 %endif
75 %if line.uos_id:
76 <td valign = "top">${formatLang(line.quantity)} ${format(line.uos_id.name)}</td>
77 %else:
78 <td valign = "top">${formatLang(line.quantity)}</td>
79 %endif
80 <td valign = "top" id="desc_col">${line.name}
81 %if line.invoice_line_tax_id != []:
82 ${ ', '.join([ tax.name or '' for tax in line.invoice_line_tax_id ])|entity}
83 %endif
84 %if line.note :
85 <br/><span class = "notes"><b>${_("Note")}:</b> ${format(line.note)}</span>
86 %endif
87 </td>
88 %if inv.amount_discounted != 0:
89 <td valign = "top" style="text-align:right;">${line.discount and formatLang(line.discount) + '%' or '-'}</td>
90 %endif
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>
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>
93 </tr>
94 <%i += 1%>
95 %endfor
96 %if inv.amount_discounted != 0:
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>
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>
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>
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>
101 %else:
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>
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>
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>
105 %endif
106
107 </tbody>
108 </table>
109 <table id = "notes_table">
110 %if inv.comment:
111 <tr><td><b>${_("Invoice Note")}:</b><br />
112 ${format(inv.comment)}</td></tr>
113 %endif
114 %if inv.payment_term and inv.payment_term.note:
115 <tr><td><b>${_("Payment Note")}:</b><br />
116 ${format(inv.payment_term and inv.payment_term.note)}</td></tr>
117 %endif
118 </table>
119 </div>
120 <p style="page-break-after:always"></p>
121 %endfor
122</body>
123</html>
1240
=== removed file 'account_invoice_webkit_report/report/invoice.py'
--- account_invoice_webkit_report/report/invoice.py 2012-06-30 22:41:06 +0000
+++ account_invoice_webkit_report/report/invoice.py 1970-01-01 00:00:00 +0000
@@ -1,54 +0,0 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# invoice.py
5# ccorp_account
6# First author: Carlos Vásquez <carlos.vasquez@clearcorp.co.cr> (ClearCorp S.A.)
7# Second author: Mag Guevara <mag.guevara@clearcorp.co.cr> (ClearCorp S.A.)
8# Copyright (c) 2010-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.
9#
10# Redistribution and use in source and binary forms, with or without modification, are
11# permitted provided that the following conditions are met:
12#
13# 1. Redistributions of source code must retain the above copyright notice, this list of
14# conditions and the following disclaimer.
15#
16# 2. Redistributions in binary form must reproduce the above copyright notice, this list
17# of conditions and the following disclaimer in the documentation and/or other materials
18# provided with the distribution.
19#
20# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED
21# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
22# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
23# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
26# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29#
30# The views and conclusions contained in the software and documentation are those of the
31# authors and should not be interpreted as representing official policies, either expressed
32# or implied, of ClearCorp S.A..
33#
34##############################################################################
35
36import time
37import pooler
38from report import report_sxw
39import locale
40
41class account_invoice_ccorp(report_sxw.rml_parse):
42 def __init__(self, cr, uid, name, context):
43 super(account_invoice_ccorp, self).__init__(cr, uid, name, context=context)
44 self.localcontext.update({
45 'time': time,
46 'cr' : cr,
47 'uid': uid,
48 })
49
50report_sxw.report_sxw(
51 'report.account.invoice.layout_ccorp',
52 'account.invoice',
53 'addons/account_invoice_webkit_report/report/invoice.mako',
54 parser=account_invoice_ccorp)
550
=== added file 'account_invoice_webkit_report/report/report.xml'
--- account_invoice_webkit_report/report/report.xml 1970-01-01 00:00:00 +0000
+++ account_invoice_webkit_report/report/report.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,14 @@
1<?xml version="1.0"?>
2<openerp>
3 <data>
4 <report
5 auto = "False"
6 id = "account.account_invoices"
7 model = "account.invoice"
8 name = "account.invoice.layout_ccorp"
9 file = "account_invoice_webkit_report/report/account_invoice_report.mako"
10 string = "Account Invoice"
11 report_type = "webkit"
12 webkit_header = "invoice_header_webkit"/>
13 </data>
14</openerp>
015
=== modified file 'account_journal_extended_code/__init__.py'
--- account_journal_extended_code/__init__.py 2012-06-30 22:41:06 +0000
+++ account_journal_extended_code/__init__.py 2013-11-06 21:08:00 +0000
@@ -1,35 +1,25 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3#3#
4# __init__.py4# OpenERP, Open Source Management Solution
5# account_journal_extended_code5# Addons modules by CLEARCORP S.A.
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>).
7# Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.7#
8# 8# This program is free software: you can redistribute it and/or modify
9# Redistribution and use in source and binary forms, with or without modification, are9# it under the terms of the GNU Affero General Public License as
10# permitted provided that the following conditions are met:10# published by the Free Software Foundation, either version 3 of the
11# 11# License, or (at your option) any later version.
12# 1. Redistributions of source code must retain the above copyright notice, this list of12#
13# conditions and the following disclaimer.13# This program is distributed in the hope that it will be useful,
14# 14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# 2. Redistributions in binary form must reproduce the above copyright notice, this list15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# of conditions and the following disclaimer in the documentation and/or other materials16# GNU Affero General Public License for more details.
17# provided with the distribution.17#
18# 18# You should have received a copy of the GNU Affero General Public License
19# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND20#
21# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# The views and conclusions contained in the software and documentation are those of the
30# authors and should not be interpreted as representing official policies, either expressed
31# or implied, of ClearCorp S.A..
32#
33##############################################################################21##############################################################################
3422
35import account_journal_extended_code23import account_journal_extended_code
24
25# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
3626
=== modified file 'account_journal_extended_code/__openerp__.py'
--- account_journal_extended_code/__openerp__.py 2012-06-30 22:41:06 +0000
+++ account_journal_extended_code/__openerp__.py 2013-11-06 21:08:00 +0000
@@ -1,50 +1,40 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3#3#
4# __openerp__.py4# OpenERP, Open Source Management Solution
5# account_journal_extended_code5# Addons modules by CLEARCORP S.A.
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>).
7# Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.7#
8# 8# This program is free software: you can redistribute it and/or modify
9# Redistribution and use in source and binary forms, with or without modification, are9# it under the terms of the GNU Affero General Public License as
10# permitted provided that the following conditions are met:10# published by the Free Software Foundation, either version 3 of the
11# 11# License, or (at your option) any later version.
12# 1. Redistributions of source code must retain the above copyright notice, this list of12#
13# conditions and the following disclaimer.13# This program is distributed in the hope that it will be useful,
14# 14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# 2. Redistributions in binary form must reproduce the above copyright notice, this list15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# of conditions and the following disclaimer in the documentation and/or other materials16# GNU Affero General Public License for more details.
17# provided with the distribution.17#
18# 18# You should have received a copy of the GNU Affero General Public License
19# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND20#
21# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# The views and conclusions contained in the software and documentation are those of the
30# authors and should not be interpreted as representing official policies, either expressed
31# or implied, of ClearCorp S.A..
32#
33##############################################################################21##############################################################################
3422
35{23{
36 'name': 'Journal code extended',24 'name': 'Journal code extended',
37 'version': '0.1',25 'version': '1.0',
38 'author': 'ClearCorp S.A.',26 'author': 'ClearCorp S.A.',
39 'website': 'http://clearcorp.co.cr',27 'website': 'http://clearcorp.co.cr',
40 'category': 'General Modules/Accounting',28 'category': 'General Modules/Accounting',
41 'description': """Enables up to 64 chars in a journal code29 'description': """Enables up to 64 chars in a journal code
42 """,30 """,
43 'depends': ['account'],31 'depends': ['account'],
44 'init_xml': [],32 'init_xml': [],
45 'demo_xml': [],33 'demo_xml': [],
46 'update_xml': [],34 'update_xml': [],
47 'license': 'Other OSI approved licence',35 'license': 'AGPL-3',
48 'installable': True,36 'installable': True,
49 'active': False,37 'active': False,
50}38}
39
40# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5141
=== modified file 'account_journal_extended_code/account_journal_extended_code.py'
--- account_journal_extended_code/account_journal_extended_code.py 2012-06-30 22:41:06 +0000
+++ account_journal_extended_code/account_journal_extended_code.py 2013-11-06 21:08:00 +0000
@@ -1,47 +1,36 @@
1# -*- encoding: utf-8 -*-1# -*- coding: utf-8 -*-
2##############################################################################2##############################################################################
3#3#
4# account_journal_extended_code.py4# OpenERP, Open Source Management Solution
5# account_journal_extended_code5# Addons modules by CLEARCORP S.A.
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>).
7# Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.7#
8# 8# This program is free software: you can redistribute it and/or modify
9# Redistribution and use in source and binary forms, with or without modification, are9# it under the terms of the GNU Affero General Public License as
10# permitted provided that the following conditions are met:10# published by the Free Software Foundation, either version 3 of the
11# 11# License, or (at your option) any later version.
12# 1. Redistributions of source code must retain the above copyright notice, this list of12#
13# conditions and the following disclaimer.13# This program is distributed in the hope that it will be useful,
14# 14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# 2. Redistributions in binary form must reproduce the above copyright notice, this list15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# of conditions and the following disclaimer in the documentation and/or other materials16# GNU Affero General Public License for more details.
17# provided with the distribution.17#
18# 18# You should have received a copy of the GNU Affero General Public License
19# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND20#
21# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# The views and conclusions contained in the software and documentation are those of the
30# authors and should not be interpreted as representing official policies, either expressed
31# or implied, of ClearCorp S.A..
32#
33##############################################################################21##############################################################################
3422
35from osv import osv,fields23from osv import osv,fields
3624
37class journal(osv.osv):25class AccountJournal(osv.osv):
38 '''26 '''
39 Adds up to 64 chars to a journal code27 Adds up to 64 chars to a journal code
40 '''28 '''
41 _name = 'account.journal'29 _name = 'account.journal'
42 _inherit = 'account.journal'30 _inherit = 'account.journal'
43 31
44 _columns = {32 _columns = {
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."),
46 }34 }
47journal()35
36# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4837
=== modified file 'account_journal_period_report/__openerp__.py'
--- account_journal_period_report/__openerp__.py 2013-01-17 19:12:32 +0000
+++ account_journal_period_report/__openerp__.py 2013-11-06 21:08:00 +0000
@@ -29,11 +29,12 @@
29 'complexity': 'normal',29 'complexity': 'normal',
30 'description': """This module modifies the account journal period report """,30 'description': """This module modifies the account journal period report """,
31 'depends': [31 'depends': [
32 'account',32 'account','account_report_lib',
33 ],33 ],
34 'init_xml': [],34 'init_xml': [],
35 'demo_xml': [],35 'demo_xml': [],
36 'update_xml': ['report/report.xml',],36 'update_xml': ['wizard/account_journal_period_report_wizard_view.xml',
37 'report/report.xml',],
37 'license': 'AGPL-3',38 'license': 'AGPL-3',
38 'installable': True,39 'installable': True,
39 'active': False,40 'active': False,
4041
=== added directory 'account_journal_period_report/i18n'
=== renamed directory 'account_journal_period_report/i18n' => 'account_journal_period_report/i18n.moved'
=== added file 'account_journal_period_report/i18n/es_CR.po'
--- account_journal_period_report/i18n/es_CR.po 1970-01-01 00:00:00 +0000
+++ account_journal_period_report/i18n/es_CR.po 2013-11-06 21:08:00 +0000
@@ -0,0 +1,105 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * account_journal_period_report
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 7.0\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2013-05-05 03:02+0000\n"
10"PO-Revision-Date: 2013-05-05 03:02+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: account_journal_period_report
19#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:62
20#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:70
21msgid "Account"
22msgstr "Cuenta"
23
24#. module: account_journal_period_report
25#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:108
26#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:118
27msgid "TOTAL"
28msgstr "TOTAL"
29
30#. module: account_journal_period_report
31#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:31
32msgid "Chart of Accounts: "
33msgstr "Catálogo contable: "
34
35#. module: account_journal_period_report
36#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:33
37msgid "Selected period: "
38msgstr "Períodos seleccionados: "
39
40#. module: account_journal_period_report
41#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:34
42msgid "Entries Sorted By:"
43msgstr "Apuntes ordenados por:"
44
45#. module: account_journal_period_report
46#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:60
47#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:68
48msgid "Move"
49msgstr "Asiento"
50
51#. module: account_journal_period_report
52#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:61
53#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:69
54msgid "Date"
55msgstr "Fecha"
56
57#. module: account_journal_period_report
58#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:66
59#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:74
60msgid "Credit"
61msgstr "Crédito"
62
63#. module: account_journal_period_report
64#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:75
65msgid "Amount Currency"
66msgstr "Monto divisa"
67
68#. module: account_journal_period_report
69#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:24
70msgid "Journal Report "
71msgstr "Reporte de Diario(s) "
72
73#. module: account_journal_period_report
74#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:35
75msgid "Target Moves: "
76msgstr "Movimientos destino: "
77
78#. module: account_journal_period_report
79#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:65
80#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:73
81msgid "Debit"
82msgstr "Débito"
83
84#. module: account_journal_period_report
85#: model:ir.model,name:account_journal_period_report.model_account_print_journal
86msgid "Account Print Journal"
87msgstr "Contabilidad. Imprimir diario"
88
89#. module: account_journal_period_report
90#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:63
91#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:71
92msgid "Partner"
93msgstr "Empresa"
94
95#. module: account_journal_period_report
96#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:64
97#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:72
98msgid "Label"
99msgstr "Etiqueta"
100
101#. module: account_journal_period_report
102#: report:addons/account_journal_period_report/report/account_journal_period_report.mako:32
103msgid "Fiscal Year: "
104msgstr "Año fiscal: "
105
0106
=== modified file 'account_journal_period_report/report/account_journal_period_report.mako'
--- account_journal_period_report/report/account_journal_period_report.mako 2013-03-19 22:31:39 +0000
+++ account_journal_period_report/report/account_journal_period_report.mako 2013-11-06 21:08:00 +0000
@@ -7,7 +7,7 @@
7 </style>7 </style>
8 </head>8 </head>
9 <body>9 <body>
10 <%setLang(user.context_lang)%>10 <%setLang(user.lang)%>
11 <%11 <%
12 fiscalyear = get_fiscalyear(data)12 fiscalyear = get_fiscalyear(data)
13 company = get_account(data)13 company = get_account(data)
@@ -18,13 +18,14 @@
18 %>18 %>
19 <div class="table header">19 <div class="table header">
20 <div class="table-row">20 <div class="table-row">
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>
22 <br/>22 <br/>
23 <div class="table-cell text">23 <div class="table-cell text">
24 <p class="title">${_('Journal Report ')}</p>24 <p class="title">${_('Journal Report ')}</p>
25 </div>25 </div>
26 </div>26 </div>
27 </div>27 </div>
28 <br/><br/>
28 <div class="table list">29 <div class="table list">
29 <div class="table-header">30 <div class="table-header">
30 <div class="table-row labels no-wrap">31 <div class="table-row labels no-wrap">
3132
=== modified file 'account_journal_period_report/report/report.xml'
--- account_journal_period_report/report/report.xml 2013-01-17 19:12:32 +0000
+++ account_journal_period_report/report/report.xml 2013-11-06 21:08:00 +0000
@@ -6,14 +6,12 @@
6 <field name="report_type">webkit</field>6 <field name="report_type">webkit</field>
7 <field name="report_name">account_journal_period_print_inherit</field>7 <field name="report_name">account_journal_period_print_inherit</field>
8 <field eval="[(6,0,[])]" name="groups_id"/>8 <field eval="[(6,0,[])]" name="groups_id"/>
9 <field eval="0" name="multi"/>
10 <field eval="0" name="auto"/>
11 <field eval="1" name="header"/>
12 <field name="model">account.print.journal</field>9 <field name="model">account.print.journal</field>
13 <field name="type">ir.actions.report.xml</field>10 <field name="type">ir.actions.report.xml</field>
14 <field name="name">Journal</field>11 <field name="name">Journal</field>
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>
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>
14 <field name="webkit_header" ref="report_webkit_lib.webkit_header_clearcorp_official_portrait"/>
17 </record> 15 </record>
18 </data>16 </data>
19</openerp>17</openerp>
2018
=== modified file 'account_journal_period_report/wizard/__init__.py'
--- account_journal_period_report/wizard/__init__.py 2013-01-17 19:12:32 +0000
+++ account_journal_period_report/wizard/__init__.py 2013-11-06 21:08:00 +0000
@@ -20,5 +20,4 @@
20#20#
21##############################################################################21##############################################################################
2222
23
24import account_journal_period_report_wizard23import account_journal_period_report_wizard
2524
=== added file 'account_journal_period_report/wizard/account_journal_period_report_wizard_view.xml'
--- account_journal_period_report/wizard/account_journal_period_report_wizard_view.xml 1970-01-01 00:00:00 +0000
+++ account_journal_period_report/wizard/account_journal_period_report_wizard_view.xml 2013-11-06 21:08:00 +0000
@@ -0,0 +1,18 @@
1<?xml version="1.0" encoding="utf-8"?>
2<openerp>
3 <data>
4 <record id="account_report_print_journal_inherit" model="ir.ui.view">
5 <field name="name">account.report.print.journal.inherit</field>
6 <field name="model">account.print.journal</field>
7 <field name="type">form</field>
8 <field name="inherit_id" ref="account.account_report_print_journal"/>
9 <field name="arch" type="xml">
10 <data>
11 <field name="fiscalyear_id" position="attributes">
12 <attribute name="required">True</attribute>
13 </field>
14 </data>
15 </field>
16 </record>
17 </data>
18</openerp>
019
=== removed directory 'account_journal_view_extended'
=== removed file 'account_journal_view_extended/__init__.py'
--- account_journal_view_extended/__init__.py 2012-06-30 22:41:06 +0000
+++ account_journal_view_extended/__init__.py 1970-01-01 00:00:00 +0000
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches