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

Subscribers

People subscribed via source and target branches