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