\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-10-30 05:22+0000\n"
-"X-Generator: Launchpad (build 16206)\n"
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_account_tax_code
-msgid "Tax Code"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.invoices.report:0
-msgid "BVR Invoices Report"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_intangible_asset
-msgid "Bilan : Immo incorporelles"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No bank name defined\n"
-"for the bank account: %s\n"
-"on the partner: %s\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_other_payable
-msgid "Bilan : Autres creanciers à CT"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_other_ope_exp
-msgid "PP : Autres charges d'exploitation"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.report:0
-msgid "Print BVR Report"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "No bank account for the company."
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Record found after total record!"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bvrpost
-msgid "DTA-BVRPOST"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_prov_reserve
-msgid "Bilan : Provisions et reserves"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.import.wizard:0
-#: model:ir.actions.act_window,name:l10n_ch.wizard_bvr_import
-msgid "BVR Import"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_equity
-msgid "Bilan : Capitaux propres"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_fixed_asset
-msgid "Bilan : Immo corporelles mobilieres"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_cash
-msgid "Bilan : Liquidites et titres"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "The Bank type %s of the bank account: %s is not supported"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No bank account defined\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_other_receivable
-msgid "Bilan : Autres créances"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.move.line:0
-msgid "You can not create move line on closed account."
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_adjusting_asset
-msgid "Bilan : Actif de regularisation"
-msgstr ""
-
-#. module: l10n_ch
-#: sql_constraint:account.move.line:0
-msgid "Wrong credit or debit value in accounting entry !"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_bvr_report
-msgid "bvr.report"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_bvbank
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_bvpost
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_bvrbank
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_bvrpost
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_iban
-msgid "bank"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_report.py:0
-#, python-format
-msgid "UserError"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.actions.act_window,name:l10n_ch.action_account_bvr_report
-msgid "BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.tax.code:0
-msgid "Error ! You can not create recursive accounts."
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.invoice:0
-msgid "Error: BVR reference is required."
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_lt_liability
-msgid "Bilan : Dettes à LT"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.move.line:0
-msgid ""
-"You can not create move line on receivable/payable account without partner"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Total record different from the computed!"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_res_partner
-msgid "Partner"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_report.py:0
-#, python-format
-msgid ""
-"No bank specified on invoice:\n"
-"%s"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,bvr_number:0
-msgid "BVR account number"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Number record different from the computed!"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.bank,clearing:0
-msgid "Clearing number"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bvbank
-msgid "DTA-BVBANK"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_financial_asset
-msgid "Bilan : Immobilisations financieres"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:res.company:0
-msgid "Error! You can not create recursive companies."
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "No IBAN for the company bank account."
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.invoices.report:0
-#: view:bvr.report:0
-msgid "Print"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "You must provide a Clearing Number for your bank account."
-msgstr ""
-
-#. module: l10n_ch
-#: view:create.dta.wizard:0
-msgid "Click on 'Save as' to save the DTA file :"
-msgstr ""
-
-#. module: l10n_ch
-#: view:create.dta.wizard:0
-msgid "DTA file creation - Results"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_sir
-#: model:res.partner.title,name:l10n_ch.res_partner_title_sir
-msgid "Monsieur"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a post number \n"
-"for the partner bank: %s\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_closed
-msgid "Autre : Closed"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_financial_result
-msgid "PP : Resultat financier"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "The properties account payable account receivable"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_mme_m
-#: model:res.partner.title,name:l10n_ch.res_partner_title_mme_m
-msgid "Madame, Monsieur,"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_payable
-msgid "Bilan : Fournisseurs"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide the bank city or the bic code for the partner bank: \n"
-" %d\n"
-"' + 'on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.report:0
-msgid "BVR Report"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,print_bank:0
-msgid "Print Bank on BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.iban_field
-#: model:res.partner.bank.type.field,name:l10n_ch.iban_field_iban
-msgid "iban"
-msgstr ""
-
-#. module: l10n_ch
-#: sql_constraint:res.partner.bank:0
-msgid "The BVR adherent number must be unique !"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "not implemented"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_madame
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_madame
-msgid "Mme."
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_bvr_invoices_report
-msgid "bvr.invoices.report"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_view
-msgid "Autre : Vue"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_report.py:0
-#, python-format
-msgid ""
-"Your bank BVR adherent number must contain exactly seven digits!\n"
-"Please check your company information for the invoice:\n"
-"%s"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a BVR number\n"
-"for the bank account: %son line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.actions.act_window,name:l10n_ch.action_account_bvr_invoices_report
-msgid "Invoices BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No address defined \n"
-"for the partner: %s \n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Recursive mod10 is invalid for reference: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: view:account.bank.statement:0
-msgid "Import BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_adj_liability
-msgid "Bilan : Passifs de regularisation"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:res.partner:0
-msgid "Error ! You can not create recursive associated members."
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "No payment mode"
-msgstr ""
-
-#. module: l10n_ch
-#: field:bvr.import.wizard,file:0
-msgid "BVR File"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.import.wizard:0
-msgid "Import"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.invoice:0
-msgid "Error: Invalid Bvr Number (wrong checksum)."
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_non_ope_debts
-msgid "Bilan : Dettes hors exploitation"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_depreciation
-msgid "PP : Amortissement"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_other
-msgid "Autre : Other"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,bvr_adherent_num:0
-msgid "BVR adherent number"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a bank number \n"
-"for the partner bank: %s\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_purchase
-msgid "PP : Achat de marchandise"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.company,bvr_delta_horz:0
-msgid "BVR Horz. Delta (mm)"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_receivable
-msgid "Bilan : Debiteurs"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_account_move_line
-msgid "Journal Items"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.move.line:0
-msgid "Company must be same for its related account and period."
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No IBAN defined \n"
-"for the bank account: %s\n"
-"' + 'on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_non_ope_asset
-msgid "Bilan : Actifs hors exploitation"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_mlle
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_mlle
-msgid "Mlle"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bank_dta
-msgid "Ordering party DTA"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_res_company
-msgid "Companies"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_madame
-#: model:res.partner.title,name:l10n_ch.res_partner_title_madame
-msgid "Madame"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bvpost
-msgid "DTA-BVPOST"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "Error"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_societe
-#: model:res.partner.title,name:l10n_ch.res_partner_title_societe
-msgid "Société"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_report.py:0
-#, python-format
-msgid ""
-"Your bank BVR number should be of the form 0X-XXX-X!\n"
-"Please check your company information for the invoice:\n"
-"%s"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,dta_code:0
-msgid "DTA code"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_mlle
-#: model:res.partner.title,name:l10n_ch.res_partner_title_mlle
-msgid "Mademoiselle"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.module.module,shortdesc:l10n_ch.module_meta_information
-msgid "Switzerland localisation corrected by Camptocamp"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_res_partner_bank
-msgid "Bank Accounts"
-msgstr ""
-
-#. module: l10n_ch
-#: view:create.dta.wizard:0
-#: model:ir.actions.act_window,name:l10n_ch.action_dta_create
-msgid "Create DTA"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,post_number:0
-msgid "Post number"
-msgstr ""
-
-#. module: l10n_ch
-#: field:create.dta.wizard,dta_file:0
-msgid "DTA File"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_account_invoice
-msgid "Invoice"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.import.wizard:0
-#: view:bvr.invoices.report:0
-#: view:bvr.report:0
-#: view:create.dta.wizard:0
-msgid "Cancel"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_inventory
-msgid "Bilan : Stocks"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_personnal_exp
-msgid "PP : Charge de personnel"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.post_field_bvpost
-msgid "post_number"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_payment_order
-msgid "Payment Order"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_report_result
-msgid "Bilan : Resultat reporte"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No bank defined\n"
-"for the bank account: %s\n"
-"on the partner: %s\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Too much total record found!"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_create_dta_wizard
-msgid "create.dta.wizard"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a Clearing Number\n"
-"for the partner bank: %s\n"
-"on line %s"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,print_account:0
-msgid "Print Account Number on BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_res_bank
-msgid "Bank"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_mme_m
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_mme_m
-msgid "Mme,m"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bvrbank
-msgid "DTA-BVRBANK"
-msgstr ""
-
-#. module: l10n_ch
-#: field:bvr.invoices.report,name:0
-#: field:bvr.report,name:0
-msgid "Name"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_consolidation
-msgid "Autre : Consolidation"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a valid BVR reference number \n"
-"for the line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.invoices.report:0
-msgid "Print BVR Invoice Report"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_societe
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_societe
-msgid "sc"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_income
-msgid "PP : Chiffre d'affaires"
-msgstr ""
-
-#. module: l10n_ch
-#: help:res.company,bvr_delta_vert:0
-msgid "vert. delta in mm 1.2 will print the bvz 1.2mm lefter"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_non_ope_result
-msgid "PP : Resultat activites annexes"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.dta_iban
-msgid "DTA-IBAN"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.acc_num_field_bvbank
-msgid "acc_number"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.company,bvr_delta_vert:0
-msgid "BVR Vert. Delta (mm)"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.actions.todo,note:l10n_ch.config_call_account_template_l10n_ch
-msgid ""
-"Generate Chart of Accounts from a Chart Template. You will be asked\n"
-" to pass the name of the company, the chart template to "
-"follow, the no. of digits to\n"
-" generate the code for your accounts and Bank account, "
-"currency to create Journals.\n"
-" Thus,the pure copy of chart Template is generated. This is "
-"the same wizard that runs\n"
-" from Financial Management/Configuration/Financial "
-"Accounting/Financial\n"
-" Accounts/Generate Chart of Accounts from a Chart Template."
-msgstr ""
-
-#. module: l10n_ch
-#: help:res.company,bvr_delta_horz:0
-msgid "horiz. delta in mm 1.2 will print the bvz 1.2mm lefter"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_building_asset
-msgid "Bilan : Immo corporelles immobilieres"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_bvr_import_wizard
-msgid "bvr.import.wizard"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.bvr_num_field_bvrbank
-#: model:res.partner.bank.type.field,name:l10n_ch.bvr_num_field_bvrpost
-msgid "bvr_number"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_sir
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_sir
-msgid "M. "
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_closing
-msgid "Autre : Cloture"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.move.line:0
-msgid "You can not create move line on view account."
-msgstr ""
diff --git a/addons/l10n_ch/i18n/zh_TW.po b/addons/l10n_ch/i18n/zh_TW.po
deleted file mode 100644
index 5097eb12869..00000000000
--- a/addons/l10n_ch/i18n/zh_TW.po
+++ /dev/null
@@ -1,780 +0,0 @@
-# Translation of OpenERP Server.
-# This file contains the translation of the following modules:
-# * l10n_ch
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 5.0.4\n"
-"Report-Msgid-Bugs-To: support@openerp.com\n"
-"POT-Creation-Date: 2010-12-10 17:15+0000\n"
-"PO-Revision-Date: 2009-04-10 14:08+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-10-30 05:22+0000\n"
-"X-Generator: Launchpad (build 16206)\n"
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_account_tax_code
-msgid "Tax Code"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.invoices.report:0
-msgid "BVR Invoices Report"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_intangible_asset
-msgid "Bilan : Immo incorporelles"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No bank name defined\n"
-"for the bank account: %s\n"
-"on the partner: %s\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_other_payable
-msgid "Bilan : Autres creanciers à CT"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_other_ope_exp
-msgid "PP : Autres charges d'exploitation"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.report:0
-msgid "Print BVR Report"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "No bank account for the company."
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Record found after total record!"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bvrpost
-msgid "DTA-BVRPOST"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_prov_reserve
-msgid "Bilan : Provisions et reserves"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.import.wizard:0
-#: model:ir.actions.act_window,name:l10n_ch.wizard_bvr_import
-msgid "BVR Import"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_equity
-msgid "Bilan : Capitaux propres"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_fixed_asset
-msgid "Bilan : Immo corporelles mobilieres"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_cash
-msgid "Bilan : Liquidites et titres"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "The Bank type %s of the bank account: %s is not supported"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No bank account defined\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_other_receivable
-msgid "Bilan : Autres créances"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.move.line:0
-msgid "You can not create move line on closed account."
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_adjusting_asset
-msgid "Bilan : Actif de regularisation"
-msgstr ""
-
-#. module: l10n_ch
-#: sql_constraint:account.move.line:0
-msgid "Wrong credit or debit value in accounting entry !"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_bvr_report
-msgid "bvr.report"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_bvbank
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_bvpost
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_bvrbank
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_bvrpost
-#: model:res.partner.bank.type.field,name:l10n_ch.bank_field_iban
-msgid "bank"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_report.py:0
-#, python-format
-msgid "UserError"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.actions.act_window,name:l10n_ch.action_account_bvr_report
-msgid "BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.tax.code:0
-msgid "Error ! You can not create recursive accounts."
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.invoice:0
-msgid "Error: BVR reference is required."
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_lt_liability
-msgid "Bilan : Dettes à LT"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.move.line:0
-msgid ""
-"You can not create move line on receivable/payable account without partner"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Total record different from the computed!"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_res_partner
-msgid "Partner"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_report.py:0
-#, python-format
-msgid ""
-"No bank specified on invoice:\n"
-"%s"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,bvr_number:0
-msgid "BVR account number"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Number record different from the computed!"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.bank,clearing:0
-msgid "Clearing number"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bvbank
-msgid "DTA-BVBANK"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_financial_asset
-msgid "Bilan : Immobilisations financieres"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:res.company:0
-msgid "Error! You can not create recursive companies."
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "No IBAN for the company bank account."
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.invoices.report:0
-#: view:bvr.report:0
-msgid "Print"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "You must provide a Clearing Number for your bank account."
-msgstr ""
-
-#. module: l10n_ch
-#: view:create.dta.wizard:0
-msgid "Click on 'Save as' to save the DTA file :"
-msgstr ""
-
-#. module: l10n_ch
-#: view:create.dta.wizard:0
-msgid "DTA file creation - Results"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_sir
-#: model:res.partner.title,name:l10n_ch.res_partner_title_sir
-msgid "Monsieur"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a post number \n"
-"for the partner bank: %s\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_closed
-msgid "Autre : Closed"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_financial_result
-msgid "PP : Resultat financier"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "The properties account payable account receivable"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_mme_m
-#: model:res.partner.title,name:l10n_ch.res_partner_title_mme_m
-msgid "Madame, Monsieur,"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_payable
-msgid "Bilan : Fournisseurs"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide the bank city or the bic code for the partner bank: \n"
-" %d\n"
-"' + 'on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.report:0
-msgid "BVR Report"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,print_bank:0
-msgid "Print Bank on BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.iban_field
-#: model:res.partner.bank.type.field,name:l10n_ch.iban_field_iban
-msgid "iban"
-msgstr ""
-
-#. module: l10n_ch
-#: sql_constraint:res.partner.bank:0
-msgid "The BVR adherent number must be unique !"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "not implemented"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_madame
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_madame
-msgid "Mme."
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_bvr_invoices_report
-msgid "bvr.invoices.report"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_view
-msgid "Autre : Vue"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_report.py:0
-#, python-format
-msgid ""
-"Your bank BVR adherent number must contain exactly seven digits!\n"
-"Please check your company information for the invoice:\n"
-"%s"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a BVR number\n"
-"for the bank account: %son line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.actions.act_window,name:l10n_ch.action_account_bvr_invoices_report
-msgid "Invoices BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No address defined \n"
-"for the partner: %s \n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Recursive mod10 is invalid for reference: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: view:account.bank.statement:0
-msgid "Import BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_adj_liability
-msgid "Bilan : Passifs de regularisation"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:res.partner:0
-msgid "Error ! You can not create recursive associated members."
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "No payment mode"
-msgstr ""
-
-#. module: l10n_ch
-#: field:bvr.import.wizard,file:0
-msgid "BVR File"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.import.wizard:0
-msgid "Import"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.invoice:0
-msgid "Error: Invalid Bvr Number (wrong checksum)."
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_non_ope_debts
-msgid "Bilan : Dettes hors exploitation"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_depreciation
-msgid "PP : Amortissement"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_other
-msgid "Autre : Other"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,bvr_adherent_num:0
-msgid "BVR adherent number"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a bank number \n"
-"for the partner bank: %s\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_purchase
-msgid "PP : Achat de marchandise"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.company,bvr_delta_horz:0
-msgid "BVR Horz. Delta (mm)"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_receivable
-msgid "Bilan : Debiteurs"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_account_move_line
-msgid "Journal Items"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.move.line:0
-msgid "Company must be same for its related account and period."
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No IBAN defined \n"
-"for the bank account: %s\n"
-"' + 'on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_non_ope_asset
-msgid "Bilan : Actifs hors exploitation"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_mlle
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_mlle
-msgid "Mlle"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bank_dta
-msgid "Ordering party DTA"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_res_company
-msgid "Companies"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_madame
-#: model:res.partner.title,name:l10n_ch.res_partner_title_madame
-msgid "Madame"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bvpost
-msgid "DTA-BVPOST"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid "Error"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_societe
-#: model:res.partner.title,name:l10n_ch.res_partner_title_societe
-msgid "Société"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_report.py:0
-#, python-format
-msgid ""
-"Your bank BVR number should be of the form 0X-XXX-X!\n"
-"Please check your company information for the invoice:\n"
-"%s"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,dta_code:0
-msgid "DTA code"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,name:l10n_ch.res_c_partner_title_mlle
-#: model:res.partner.title,name:l10n_ch.res_partner_title_mlle
-msgid "Mademoiselle"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.module.module,shortdesc:l10n_ch.module_meta_information
-msgid "Switzerland localisation corrected by Camptocamp"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_res_partner_bank
-msgid "Bank Accounts"
-msgstr ""
-
-#. module: l10n_ch
-#: view:create.dta.wizard:0
-#: model:ir.actions.act_window,name:l10n_ch.action_dta_create
-msgid "Create DTA"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,post_number:0
-msgid "Post number"
-msgstr ""
-
-#. module: l10n_ch
-#: field:create.dta.wizard,dta_file:0
-msgid "DTA File"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_account_invoice
-msgid "Invoice"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.import.wizard:0
-#: view:bvr.invoices.report:0
-#: view:bvr.report:0
-#: view:create.dta.wizard:0
-msgid "Cancel"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_inventory
-msgid "Bilan : Stocks"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_personnal_exp
-msgid "PP : Charge de personnel"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.post_field_bvpost
-msgid "post_number"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_payment_order
-msgid "Payment Order"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_report_result
-msgid "Bilan : Resultat reporte"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"No bank defined\n"
-"for the bank account: %s\n"
-"on the partner: %s\n"
-"on line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/bvr_import.py:0
-#, python-format
-msgid "Too much total record found!"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_create_dta_wizard
-msgid "create.dta.wizard"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a Clearing Number\n"
-"for the partner bank: %s\n"
-"on line %s"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.partner.bank,print_account:0
-msgid "Print Account Number on BVR"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_res_bank
-msgid "Bank"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_mme_m
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_mme_m
-msgid "Mme,m"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.bvrbank
-msgid "DTA-BVRBANK"
-msgstr ""
-
-#. module: l10n_ch
-#: field:bvr.invoices.report,name:0
-#: field:bvr.report,name:0
-msgid "Name"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_consolidation
-msgid "Autre : Consolidation"
-msgstr ""
-
-#. module: l10n_ch
-#: code:addons/l10n_ch/wizard/create_dta.py:0
-#, python-format
-msgid ""
-"You must provide a valid BVR reference number \n"
-"for the line: %s"
-msgstr ""
-
-#. module: l10n_ch
-#: view:bvr.invoices.report:0
-msgid "Print BVR Invoice Report"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_societe
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_societe
-msgid "sc"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_income
-msgid "PP : Chiffre d'affaires"
-msgstr ""
-
-#. module: l10n_ch
-#: help:res.company,bvr_delta_vert:0
-msgid "vert. delta in mm 1.2 will print the bvz 1.2mm lefter"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_non_ope_result
-msgid "PP : Resultat activites annexes"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type,name:l10n_ch.dta_iban
-msgid "DTA-IBAN"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.acc_num_field_bvbank
-msgid "acc_number"
-msgstr ""
-
-#. module: l10n_ch
-#: field:res.company,bvr_delta_vert:0
-msgid "BVR Vert. Delta (mm)"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.actions.todo,note:l10n_ch.config_call_account_template_l10n_ch
-msgid ""
-"Generate Chart of Accounts from a Chart Template. You will be asked\n"
-" to pass the name of the company, the chart template to "
-"follow, the no. of digits to\n"
-" generate the code for your accounts and Bank account, "
-"currency to create Journals.\n"
-" Thus,the pure copy of chart Template is generated. This is "
-"the same wizard that runs\n"
-" from Financial Management/Configuration/Financial "
-"Accounting/Financial\n"
-" Accounts/Generate Chart of Accounts from a Chart Template."
-msgstr ""
-
-#. module: l10n_ch
-#: help:res.company,bvr_delta_horz:0
-msgid "horiz. delta in mm 1.2 will print the bvz 1.2mm lefter"
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_building_asset
-msgid "Bilan : Immo corporelles immobilieres"
-msgstr ""
-
-#. module: l10n_ch
-#: model:ir.model,name:l10n_ch.model_bvr_import_wizard
-msgid "bvr.import.wizard"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.bank.type.field,name:l10n_ch.bvr_num_field_bvrbank
-#: model:res.partner.bank.type.field,name:l10n_ch.bvr_num_field_bvrpost
-msgid "bvr_number"
-msgstr ""
-
-#. module: l10n_ch
-#: model:res.partner.title,shortcut:l10n_ch.res_c_partner_title_sir
-#: model:res.partner.title,shortcut:l10n_ch.res_partner_title_sir
-msgid "M. "
-msgstr ""
-
-#. module: l10n_ch
-#: model:account.account.type,name:l10n_ch.account_type_closing
-msgid "Autre : Cloture"
-msgstr ""
-
-#. module: l10n_ch
-#: constraint:account.move.line:0
-msgid "You can not create move line on view account."
-msgstr ""
diff --git a/addons/l10n_ch/invoice.py b/addons/l10n_ch/invoice.py
deleted file mode 100644
index 3a65e9a0d2b..00000000000
--- a/addons/l10n_ch/invoice.py
+++ /dev/null
@@ -1,210 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Author: Nicolas Bessi. Copyright Camptocamp SA
-# Donors: Hasa Sàrl, Open Net Sàrl and Prisme Solutions Informatique SA
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-from datetime import datetime
-from osv import fields, osv
-from tools import mod10r
-
-class account_invoice(osv.osv):
- """Inherit account.invoice in order to add bvr
- printing functionnalites. BVR is a Swiss payment vector"""
- _inherit = "account.invoice"
-
- ## @param self The object pointer.
- ## @param cursor a psycopg cursor
- ## @param user res.user.id that is currently loged
- ## @parma context a standard dict
- ## @return a list of tuple (name,value)
- def _get_reference_type(self, cursor, user, context=None):
- """Function use by the function field reference_type in order to initalise available
- BVR Reference Types"""
- res = super(account_invoice, self)._get_reference_type(cursor, user,
- context=context)
- res.append(('bvr', 'BVR'))
- return res
-
- ## @param self The object pointer.
- ## @param cursor a psycopg cursor
- ## @param user res.user.id that is currently loged
- ## @parma context a standard dict
- ## @param name of the files
- ## @param args a list of diverse argument
- ## @parma context a standard dict
- ## @return a dict (invoice id,amount to pay)
- def _amount_to_pay(self, cursor, user, ids, name, args, context=None):
- '''Return the amount still to pay regarding all the payment orders'''
- if not ids:
- return {}
- res = {}
- for invoice in self.browse(cursor, user, ids, context=context):
- res[invoice.id] = 0.0
- if invoice.move_id:
- for line in invoice.move_id.line_id:
- if not line.date_maturity or \
- datetime.strptime(line.date_maturity, '%Y-%m-%d') \
- < datetime.now():
- res[invoice.id] += line.amount_to_pay
- return res
-
- _columns = {
- ### BVR reference type BVR or FREE
- 'reference_type': fields.selection(_get_reference_type,
- 'Payment Reference', required=True),
- ### Partner bank link between bank and partner id
- 'partner_bank_id': fields.many2one('res.partner.bank', 'Bank Account',
- help='The partner bank account to pay\nKeep empty to use the default'
- ),
- ### Amount to pay
- 'amount_to_pay': fields.function(_amount_to_pay,
- type='float',
- string='Amount to be paid',
- help='The amount which should be paid at the current date\n' \
- 'minus the amount which is already in payment order'),
- }
-
- ## @param self The object pointer.
- ## @param cursor a psycopg cursor
- ## @param user res.user.id that is currently loged
- ## @parma ids invoices id
- ## @return a boolean True if valid False if invalid
- def _check_bvr(self, cr, uid, ids, context=None):
- """
- Function to validate a bvr reference like :
- 0100054150009>132000000000000000000000014+ 1300132412>
- The validation is based on l10n_ch
- """
- invoices = self.browse(cr,uid,ids)
- for invoice in invoices:
- if invoice.reference_type == 'bvr':
- if not invoice.reference:
- return False
- ## I need help for this bug because in this case
- # <010001000060190> 052550152684006+ 43435>
- # the reference 052550152684006 do not match modulo 10
- #
- if mod10r(invoice.reference[:-1]) != invoice.reference and \
- len(invoice.reference) == 15:
- return True
- #
- if mod10r(invoice.reference[:-1]) != invoice.reference:
- return False
- return True
- ## @param self The object pointer.
- ## @param cursor a psycopg cursor
- ## @param user res.user.id that is currently loged
- ## @parma ids invoices id
- ## @return a boolean True if valid False if invalid
- def _check_reference_type(self, cursor, user, ids, context=None):
- """Check the customer invoice reference type depending
- on the BVR reference type and the invoice partner bank type"""
- for invoice in self.browse(cursor, user, ids):
- if invoice.type in 'in_invoice':
- if invoice.partner_bank_id and \
- invoice.partner_bank_id.state in \
- ('bvrbank', 'bvrpost') and \
- invoice.reference_type != 'bvr':
- return False
- return True
-
- _constraints = [
- (_check_bvr, 'Error: Invalid Bvr Number (wrong checksum).',
- ['reference']),
- (_check_reference_type, 'Error: BVR reference is required.',
- ['reference_type']),
- ]
-
- ## @param self The object pointer.
- ## @param cr a psycopg cursor
- ## @param uid res.user.id that is currently loged
- ## @parma ids invoices id
- ## @parma type the invoice type
- ## @param partner_id the partner linked to the invoice
- ## @parma date_invoice date of the invoice
- ## @parma payment_term inoice payment term
- ## @param partner_bank_id the partner linked invoice bank
- ## @return the dict of values with the partner_bank value updated
- def onchange_partner_id(self, cr, uid, ids, type, partner_id,
- date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False):
- """ Function that is call when the partner of the invoice is changed
- it will retrieve and set the good bank partner bank"""
- #context not define in signature of function in account module
- context = {}
- res = super(account_invoice, self).onchange_partner_id(cr,
- uid,
- ids,
- type,
- partner_id,
- date_invoice,
- payment_term,
- partner_bank_id,
- company_id)
- bank_id = False
- if partner_id:
- if type in ('in_invoice', 'in_refund'):
- p = self.pool.get('res.partner').browse(cr, uid, partner_id, context)
- if p.bank_ids:
- bank_id = p.bank_ids[0].id
- res['value']['partner_bank_id'] = bank_id
- else:
- user = self.pool.get('res.users').browse(cr, uid, uid, context)
- bank_ids = user.company_id.partner_id.bank_ids
- if bank_ids:
- #How to order bank ?
- for bank in bank_ids:
- if bank.my_bank:
- bank_id = bank.id
- res['value']['partner_bank_id'] = bank_id
-
- if partner_bank_id != bank_id:
- to_update = self.onchange_partner_bank(cr, uid, ids, bank_id)
- res['value'].update(to_update['value'])
- return res
-
- ## @param self The object pointer.
- ## @param cursor a psycopg cursor
- ## @param user res.user.id that is currently loged
- ## @parma ids invoices id
- ## @param partner_bank_id the partner linked invoice bank
- ## @return the dict of values with the reference type value updated
- def onchange_partner_bank(self, cursor, user, ids, partner_bank_id):
- """update the reference type depending of the partner bank"""
- res = {'value': {}}
- partner_bank_obj = self.pool.get('res.partner.bank')
- if partner_bank_id:
- partner_bank = partner_bank_obj.browse(cursor, user, partner_bank_id)
- if partner_bank.state in ('bvrbank', 'bvrpost'):
- res['value']['reference_type'] = 'bvr'
- return res
-
-account_invoice()
-
-class account_tax_code(osv.osv):
- """Inherit account tax code in order
- to add a Case code"""
- _name = 'account.tax.code'
- _inherit = "account.tax.code"
- _columns = {
- 'code': fields.char('Case Code', size=512),
- }
-
-account_tax_code()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_ch/journal_data.xml b/addons/l10n_ch/journal_data.xml
deleted file mode 100644
index 607273ed401..00000000000
--- a/addons/l10n_ch/journal_data.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
- Journal de frais
- EXPF
- purchase
-
-
-
-
-
-
- Banque CHF
- BCHF
- bank
-
-
-
-
-
-
-
- Banque EUR
- BEUR
- bank
-
-
-
-
-
-
-
- Caisse
- CAI
- cash
-
-
-
-
-
-
- Opérations Diverses
- OD
- general
-
-
-
-
-
-
- Journal d'ouverture
- JO
- situation
- True
-
-
-
-
-
diff --git a/addons/l10n_ch/partner.py b/addons/l10n_ch/partner.py
deleted file mode 100644
index aba9ea7b204..00000000000
--- a/addons/l10n_ch/partner.py
+++ /dev/null
@@ -1,33 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Author: Nicolas Bessi. Copyright Camptocamp SA
-# Donors: Hasa Sàrl, Open Net Sàrl and Prisme Solutions Informatique SA
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-from osv import fields, osv
-
-class res_partner(osv.osv):
- _inherit = 'res.partner'
-
- _columns = {
- 'ref_companies': fields.one2many('res.company', 'partner_id',
- 'Companies that refers to partner'),
- }
-
-res_partner()
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_ch/payment.py b/addons/l10n_ch/payment.py
deleted file mode 100644
index a681daf569d..00000000000
--- a/addons/l10n_ch/payment.py
+++ /dev/null
@@ -1,35 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Author: Nicolas Bessi. Copyright Camptocamp SA
-# Donors: Hasa Sàrl, Open Net Sàrl and Prisme Solutions Informatique SA
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-from osv import osv
-
-class payment_order(osv.osv):
- _inherit = 'payment.order'
-
- def get_wizard(self, mode):
- if mode == 'dta':
- return 'l10n_ch', 'action_dta_create'
-
- return super(payment_order,self).get_wizard(mode)
-
-payment_order()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_ch/readme.txt b/addons/l10n_ch/readme.txt
deleted file mode 100644
index c02e5d27103..00000000000
--- a/addons/l10n_ch/readme.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- encoding: utf-8 -*-
-#
-#
-# Created by Nicolas Bessi based on Credric Krier contribution
-#
-# Copyright (c) 2009 CamptoCamp. All rights reserved.
-##############################################################################
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
\ No newline at end of file
diff --git a/addons/l10n_ch/report/__init__.py b/addons/l10n_ch/report/__init__.py
deleted file mode 100644
index e8703f10d03..00000000000
--- a/addons/l10n_ch/report/__init__.py
+++ /dev/null
@@ -1,34 +0,0 @@
- #-*- coding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2010 Camptocamp SA (http://www.camptocamp.com)
-# All Right Reserved
-#
-# Author : Nicolas Bessi (Camptocamp)
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-import report_webkit_html
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_ch/report/bvr.jpg b/addons/l10n_ch/report/bvr.jpg
deleted file mode 100644
index fd63debd47c..00000000000
Binary files a/addons/l10n_ch/report/bvr.jpg and /dev/null differ
diff --git a/addons/l10n_ch/report/bvr.mako b/addons/l10n_ch/report/bvr.mako
deleted file mode 100644
index b3412032cba..00000000000
--- a/addons/l10n_ch/report/bvr.mako
+++ /dev/null
@@ -1,153 +0,0 @@
-
-
-
-
-
-
-
-
- %for inv in objects :
- <% setLang(inv.partner_id.lang) %>
-
-
- ${inv.partner_id.title.name or ''|entity} ${inv.partner_id.name |entity} |
- ${inv.partner_id.street or ''|entity} |
- ${inv.partner_id.street2 or ''|entity} |
- ${inv.partner_id.zip or ''|entity} ${inv.partner_id.city or ''|entity} |
- %if inv.partner_id.country_id :
- ${inv.partner_id.country_id.name or ''|entity} |
- %endif
- %if inv.partner_id.phone :
- ${_("Tel") |entity}: ${inv.partner_id.phone|entity} |
- %endif
- %if inv.partner_id.fax :
- ${_("Fax") |entity}: ${inv.partner_id.fax|entity} |
- %endif
- %if inv.partner_id.email :
- ${_("Email") |entity}: ${inv.partner_id.email|entity} |
- %endif
- %if inv.partner_id.vat :
- ${_("VAT") |entity}: ${inv.partner_id.vat|entity} |
- %endif
-
-
-
- ${_('Invoice')} - ${inv.number or ''|entity}
-
-
- ${_('Here is the BVR to allow you to pay the invoice %s - %s') % (inv.name or '', inv.number or '',)}
-
- ${_('Regards')}
-
-
- ${mod10r('01'+str('%.2f' % inv.amount_total).replace('.','').rjust(10,'0'))}>${_get_ref(inv)}+${inv.partner_bank_id.post_number.split('-')[0]+(str(inv.partner_bank_id.post_number.split('-')[1])).rjust(6,'0')+inv.partner_bank_id.post_number.split('-')[2]}>
-
-
-
- %if company.bvr_background:
-
- %endif
-
- ${inv.partner_bank_id and inv.partner_bank_id.print_bank and inv.partner_bank_id.bank and inv.partner_bank_id.bank.name or ''} | ${inv.partner_bank_id and inv.partner_bank_id.print_bank and inv.partner_bank_id.bank and inv.partner_bank_id.bank.name or ''} | |
- ${user.company_id.partner_id.name} | ${user.company_id.partner_id.name} | |
- ${user.company_id.partner_id.street} ${user.company_id.partner_id.zip} ${user.company_id.partner_id.city} | ${inv.partner_bank_id.print_account and inv.partner_bank_id.post_number or ''} |
| ${user.company_id.partner_id.street} ${user.company_id.partner_id.zip} ${user.company_id.partner_id.city} | ${inv.partner_bank_id.print_account and inv.partner_bank_id.post_number or ''} |
| ${_space(_get_ref(inv))} |
- | ${_space(('%.2f' % inv.amount_total)[:-3], 1)} | | ${ _space(('%.2f' % inv.amount_total)[-2:], 1)} | |
| | ${_space(('%.2f' % inv.amount_total)[:-3], 1)} | | ${ _space(('%.2f' % inv.amount_total)[-2:], 1)} | |
| |
- | | |
- | | |
- | |
-
- %endfor
-
-
\ No newline at end of file
diff --git a/addons/l10n_ch/report/bvr1.jpg b/addons/l10n_ch/report/bvr1.jpg
deleted file mode 100644
index 3882f86776a..00000000000
Binary files a/addons/l10n_ch/report/bvr1.jpg and /dev/null differ
diff --git a/addons/l10n_ch/report/ocrbb.ttf b/addons/l10n_ch/report/ocrbb.ttf
deleted file mode 100755
index ef8068be9c2..00000000000
Binary files a/addons/l10n_ch/report/ocrbb.ttf and /dev/null differ
diff --git a/addons/l10n_ch/report/report_webkit_html.mako b/addons/l10n_ch/report/report_webkit_html.mako
deleted file mode 100644
index cd6e2df6c26..00000000000
--- a/addons/l10n_ch/report/report_webkit_html.mako
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
- %for inv in objects :
- <% setLang(inv.partner_id.lang) %>
-
-
- ${inv.partner_id.title.name or ''|entity} ${inv.partner_id.name |entity} |
- ${inv.partner_id.street or ''|entity} |
- ${inv.partner_id.street2 or ''|entity} |
- ${inv.partner_id.zip or ''|entity} ${inv.partner_id.city or ''|entity} |
- %if inv.partner_id.country_id :
- ${inv.partner_id.country_id.name or ''|entity} |
- %endif
- %if inv.partner_id.phone :
- ${_("Tel") |entity}: ${inv.partner_id.phone|entity} |
- %endif
- %if inv.partner_id.fax :
- ${_("Fax") |entity}: ${inv.partner_id.fax|entity} |
- %endif
- %if inv.partner_id.email :
- ${_("Email") |entity}: ${inv.partner_id.email|entity} |
- %endif
- %if inv.partner_id.vat :
- ${_("VAT") |entity}: ${inv.partner_id.vat|entity} |
- %endif
-
-
- %if inv.type == 'out_invoice' :
-
${_("Invoice") |entity} ${inv.number or ''|entity}
- %elif inv.type == 'in_invoice' :
-
${_("Supplier Invoice") |entity} ${inv.number or ''|entity}
- %elif inv.type == 'out_refund' :
-
${_("Refund") |entity} ${inv.number or ''|entity}
- %elif inv.type == 'in_refund' :
-
${_("Supplier Refund") |entity} ${inv.number or ''|entity}
- %endif
-
-
-
- ${_("Document") |entity} | ${_("Invoice Date") |entity} | ${_("Partner Ref.") |entity} |
- ${inv.name} | ${formatLang(inv.date_invoice, date=True)|entity} | |
-
-
-
- ${_("Description") |entity} | ${_("Taxes") |entity} | ${_("QTY") |entity} | ${_("Unit Price") |entity} | ${_("Disc.(%)") |entity} | ${_("Price") |entity} |
- %for line in inv.invoice_line :
-
- ${line.name|entity} | ${ ', '.join([ tax.name or '' for tax in line.invoice_line_tax_id ])|entity} | ${line.quantity} | ${formatLang(line.price_unit)} | ${line.discount or 0.00} | ${formatLang(line.price_subtotal)} |
- %if line.note :
- ${line.note |entity} |
- %endif
- %endfor
- | | | | Net Total: | ${formatLang(inv.amount_untaxed)} |
- | | | | Taxes: | ${formatLang(inv.amount_tax)} |
- | | | | Total: | ${formatLang(inv.amount_total)} |
-
-
-
-
- Tax | ${_("Base") |entity} | ${_("Amount") |entity} |
- %if inv.tax_line :
- %for t in inv.tax_line :
-
- ${ t.name|entity } |
- ${ t.base|entity} |
- ${ formatLang(t.amount) } |
-
- %endfor
- %endif
-
- |
- ${_("Total") |entity} |
- ${ formatLang(inv.amount_tax) } |
-
-
-
- %endfor
-
-
\ No newline at end of file
diff --git a/addons/l10n_ch/report/report_webkit_html.py b/addons/l10n_ch/report/report_webkit_html.py
deleted file mode 100644
index 9f650227313..00000000000
--- a/addons/l10n_ch/report/report_webkit_html.py
+++ /dev/null
@@ -1,266 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Author: Nicolas Bessi. Copyright Camptocamp SA
-# Donors: Hasa Sàrl, Open Net Sàrl and Prisme Solutions Informatique SA
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-import time
-import os
-import re
-
-from mako.template import Template
-from mako.lookup import TemplateLookup
-from mako import exceptions
-
-
-from report import report_sxw
-from report_webkit import webkit_report
-from report_webkit import report_helper
-
-from osv import osv
-from osv.osv import except_osv
-
-from tools import mod10r
-from tools.translate import _
-from tools.config import config
-
-from openerp import addons
-import pooler
-
-
-class l10n_ch_report_webkit_html(report_sxw.rml_parse):
- def __init__(self, cr, uid, name, context):
- super(l10n_ch_report_webkit_html, self).__init__(cr, uid, name, context=context)
- self.localcontext.update({
- 'time': time,
- 'cr': cr,
- 'uid': uid,
- 'user':self.pool.get("res.users").browse(cr, uid, uid),
- 'mod10r': mod10r,
- '_space': self._space,
- '_get_ref': self._get_ref,
- 'comma_me': self.comma_me,
- 'police_absolute_path': self.police_absolute_path,
- 'bvr_absolute_path': self.bvr_absolute_path,
- 'headheight': self.headheight
- })
-
- _compile_get_ref = re.compile('[^0-9]')
- _compile_comma_me = re.compile("^(-?\d+)(\d{3})")
- _compile_check_bvr = re.compile('[0-9][0-9]-[0-9]{3,6}-[0-9]')
- _compile_check_bvr_add_num = re.compile('[0-9]*$')
-
- def set_context(self, objects, data, ids, report_type=None):
- user = self.pool.get('res.users').browse(self.cr, self.uid, self.uid)
- company = user.company_id
- if not company.invoice_only:
- self._check(ids)
- return super(l10n_ch_report_webkit_html, self).set_context(objects, data, ids, report_type=report_type)
-
- def police_absolute_path(self, inner_path):
- """Will get the ocrb police absolute path"""
- path = addons.get_module_resource('l10n_ch', 'report', inner_path)
- return path
-
- def bvr_absolute_path(self) :
- """Will get the ocrb police absolute path"""
- path = addons.get_module_resource('l10n_ch', 'report', 'bvr1.jpg')
- return path
-
- def headheight(self):
- report_id = self.pool.get('ir.actions.report.xml').search(self.cr, self.uid, [('name','=', 'BVR invoice')])[0]
- report = self.pool.get('ir.actions.report.xml').browse(self.cr, self.uid, report_id)
- return report.webkit_header.margin_top
-
- def comma_me(self, amount):
- """Fast swiss number formatting"""
- if isinstance(amount, float):
- amount = str('%.2f'%amount)
- else :
- amount = str(amount)
- orig = amount
- new = self._compile_comma_me.sub("\g<1>'\g<2>", amount)
- if orig == new:
- return new
- else:
- return self.comma_me(new)
-
- def _space(self, nbr, nbrspc=5):
- """Spaces * 5.
-
- Example:
- >>> self._space('123456789012345')
- '12 34567 89012 345'
- """
- return ''.join([' '[(i - 2) % nbrspc:] + c for i, c in enumerate(nbr)])
-
-
- def _get_ref(self, inv):
- """Retrieve ESR/BVR reference form invoice in order to print it"""
- res = ''
- if inv.partner_bank_id.bvr_adherent_num:
- res = inv.partner_bank_id.bvr_adherent_num
- invoice_number = ''
- if inv.number:
- invoice_number = self._compile_get_ref.sub('', inv.number)
- return mod10r(res + invoice_number.rjust(26-len(res), '0'))
-
- def _check(self, invoice_ids):
- """Check if the invoice is ready to be printed"""
- if not invoice_ids:
- invoice_ids = []
- cursor = self.cr
- pool = self.pool
- invoice_obj = pool.get('account.invoice')
- ids = invoice_ids
- for invoice in invoice_obj.browse(cursor, self.uid, ids):
- invoice_name = "%s %s" %(invoice.name, invoice.number)
- if not invoice.partner_bank_id:
- raise except_osv(_('User Error!'),
- _('No bank specified on invoice:\n%s.' %(invoice_name)))
- if not self._compile_check_bvr.match(
- invoice.partner_bank_id.post_number or ''):
- raise except_osv(_('User Error!'),
- _(('Your bank BVR number should be of the form 0X-XXX-X! '
- 'Please check your company '
- 'information for the invoice:\n%s.')
- %(invoice_name)))
- if invoice.partner_bank_id.bvr_adherent_num \
- and not self._compile_check_bvr_add_num.match(
- invoice.partner_bank_id.bvr_adherent_num):
- raise except_osv(_('User Error!'),
- _(('Your bank BVR adherent number must contain only '
- 'digits!\nPlease check your company '
- 'information for the invoice:\n%s.') %(invoice_name)))
- return ''
-
-def mako_template(text):
- """Build a Mako template.
-
- This template uses UTF-8 encoding
- """
- tmp_lookup = TemplateLookup() #we need it in order to allow inclusion and inheritance
- return Template(text, input_encoding='utf-8', output_encoding='utf-8', lookup=tmp_lookup)
-
-class BVRWebKitParser(webkit_report.WebKitParser):
-
- def create_single_pdf(self, cursor, uid, ids, data, report_xml, context=None):
- """generate the PDF"""
- context = context or {}
- if report_xml.report_type != 'webkit':
- return super(BVRWebKitParser,self).create_single_pdf(cursor, uid, ids, data, report_xml, context=context)
- self.parser_instance = self.parser(cursor,
- uid,
- self.name2,
- context=context)
- self.pool = pooler.get_pool(cursor.dbname)
- objs = self.getObjects(cursor, uid, ids, context)
- self.parser_instance.set_context(objs, data, ids, report_xml.report_type)
- template = False
- if report_xml.report_file :
- path = addons.get_module_resource(*report_xml.report_file.split(os.path.sep))
- if os.path.exists(path) :
- template = file(path).read()
- if not template and report_xml.report_webkit_data :
- template = report_xml.report_webkit_data
- if not template :
- raise except_osv(_('Error!'),_('Webkit Report template not found.'))
- header = report_xml.webkit_header.html
- footer = report_xml.webkit_header.footer_html
- if not header and report_xml.header:
- raise except_osv(
- _('No header defined for this Webkit report.'),
- _('Please set a header in company settings.')
- )
- if not report_xml.header :
- header = ''
- default_head = addons.get_module_resource('report_webkit', 'default_header.html')
- with open(default_head,'r') as f:
- header = f.read()
- css = report_xml.webkit_header.css
- if not css :
- css = ''
- user = self.pool.get('res.users').browse(cursor, uid, uid)
- company = user.company_id
- body_mako_tpl = mako_template(template)
- #BVR specific
- bvr_path = addons.get_module_resource('l10n_ch','report','bvr.mako')
- body_bvr_tpl = mako_template(file(bvr_path).read())
- helper = report_helper.WebKitHelper(cursor, uid, report_xml.id, context)
- ##BVR Specific
- htmls = []
- for obj in objs :
- self.parser_instance.localcontext['objects'] = [obj]
- if not company.bvr_only:
- try:
- html = body_mako_tpl.render(helper=helper,
- css=css,
- _=self.translate_call,
- **self.parser_instance.localcontext)
- except Exception, e:
- raise Exception(exceptions.text_error_template().render())
- htmls.append(html)
- if not company.invoice_only:
- try:
- bvr = body_bvr_tpl.render(helper=helper,
- css=css,
- _=self.translate_call,
- **self.parser_instance.localcontext)
- except Exception, e:
- raise Exception(exceptions.text_error_template().render())
- htmls.append(bvr)
- head_mako_tpl = Template(header, input_encoding='utf-8', output_encoding='utf-8')
- try:
- head = head_mako_tpl.render(helper=helper,
- css=css,
- _debug=False,
- _=self.translate_call,
- **self.parser_instance.localcontext)
- except Exception, e:
- raise Exception(exceptions.text_error_template().render())
- foot = False
- if footer and company.invoice_only :
- foot_mako_tpl = Template(footer, input_encoding='utf-8', output_encoding='utf-8')
- try:
- foot = foot_mako_tpl.render(helper=helper,
- css=css,
- _=self.translate_call,
- **self.parser_instance.localcontext)
- except Exception, e:
- raise Exception(exceptions.text_error_template().render())
- if report_xml.webkit_debug :
- try:
- deb = head_mako_tpl.render(helper=helper,
- css=css,
- _debug=html,
- _=self.translate_call,
- **self.parser_instance.localcontext)
- except Exception, e:
- raise Exception(exceptions.text_error_template().render())
- return (deb, 'html')
- bin = self.get_lib(cursor, uid)
- pdf = self.generate_pdf(bin, report_xml, head, foot, htmls)
- return (pdf, 'pdf')
-
-
-BVRWebKitParser('report.invoice_web_bvr',
- 'account.invoice',
- 'addons/l10n_ch/report/report_webkit_html.mako',
- parser=l10n_ch_report_webkit_html)
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_ch/report/report_webkit_html_view.xml b/addons/l10n_ch/report/report_webkit_html_view.xml
deleted file mode 100644
index 936837348e4..00000000000
--- a/addons/l10n_ch/report/report_webkit_html_view.xml
+++ /dev/null
@@ -1,164 +0,0 @@
-
-
-
-