diff --git a/addons/account/account.py b/addons/account/account.py index 057993f0212..cbba0237c78 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -29,6 +29,8 @@ import pooler from osv import fields, osv import decimal_precision as dp from tools.translate import _ +from tools.float_utils import float_round + _logger = logging.getLogger(__name__) def check_cycle(self, cr, uid, ids, context=None): @@ -313,8 +315,8 @@ class account_account(osv.osv): cr.execute(request, params) _logger.debug('Status: %s',(cr.statusmessage)) - for res in cr.dictfetchall(): - accounts[res['id']] = res + for row in cr.dictfetchall(): + accounts[row['id']] = row # consolidate accounts with direct children children_and_consolidated.reverse() @@ -2090,7 +2092,7 @@ class account_tax(osv.osv): tax_compute_precision = precision if taxes and taxes[0].company_id.tax_calculation_rounding_method == 'round_globally': tax_compute_precision += 5 - totalin = totalex = round(price_unit * quantity, precision) + totalin = totalex = float_round(price_unit * quantity, precision) tin = [] tex = [] for tax in taxes: diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 1296d5c718a..393c468c952 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -196,7 +196,7 @@ - + @@ -344,7 +344,22 @@ - + + + + + + + + + + + + +
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 1e1f7b91851..d342dc5d3b9 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2601,7 +2601,7 @@ action = pool.get('res.config').next(cr, uid, [], context)

- + diff --git a/addons/account/company.py b/addons/account/company.py index 3bb241a42a6..1ec9b8c55da 100644 --- a/addons/account/company.py +++ b/addons/account/company.py @@ -45,7 +45,7 @@ class res_company(osv.osv): _defaults = { 'expects_chart_of_accounts': True, 'tax_calculation_rounding_method': 'round_per_line', - 'overdue_msg': '''Dear Sir, dear Madam, + 'overdue_msg': '''Dear Sir/Madam, Our records indicate that some payments on your account are still due. Please find details below. If the amount has already been paid, please disregard this notice. Otherwise, please forward us the total amount stated below. diff --git a/addons/account/i18n/es_EC.po b/addons/account/i18n/es_EC.po index 7eff1938061..fba1c8ed099 100644 --- a/addons/account/i18n/es_EC.po +++ b/addons/account/i18n/es_EC.po @@ -10,15 +10,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2012-02-08 00:35+0000\n" -"PO-Revision-Date: 2011-12-31 16:16+0000\n" -"Last-Translator: Christopher Ormaza - (Ecuadorenlinea.net) " -"\n" +"PO-Revision-Date: 2012-07-30 03:26+0000\n" +"Last-Translator: Cristian Salamea (Gnuthink) \n" "Language-Team: Spanish (Ecuador) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-07-14 05:58+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-31 04:58+0000\n" +"X-Generator: Launchpad (build 15702)\n" #. module: account #: view:account.invoice.report:0 @@ -446,7 +445,7 @@ msgstr "Total crédito" #. module: account #: view:account.move.line.unreconcile.select:0 msgid "Open for Unreconciliation" -msgstr "" +msgstr "Abrir para romper conciliación" #. module: account #: field:account.account.template,chart_template_id:0 @@ -1612,7 +1611,7 @@ msgstr "Base Imponible" #. module: account #: view:account.partner.reconcile.process:0 msgid "Go to Next Partner" -msgstr "" +msgstr "Ir a la siguiente empresa" #. module: account #: view:account.bank.statement:0 @@ -2859,7 +2858,7 @@ msgstr "" #: model:ir.actions.act_window,name:account.action_tax_code_list #: model:ir.ui.menu,name:account.menu_action_tax_code_list msgid "Tax Codes" -msgstr "" +msgstr "Códigos de impuestos" #. module: account #: view:account.account:0 @@ -3229,7 +3228,7 @@ msgstr "Plantillas para el plan contable" #. module: account #: model:ir.actions.act_window,name:account.action_wizard_multi_chart msgid "Set Your Accounting Options" -msgstr "" +msgstr "Configurar tu Contabilidad" #. module: account #: view:report.account.sales:0 @@ -4405,7 +4404,7 @@ msgstr "Reconcile Writeoff" #. module: account #: view:report.account.receivable:0 msgid "Accounts by Type" -msgstr "" +msgstr "Cuentas por tipo" #. module: account #: view:account.bank.statement:0 @@ -4447,7 +4446,7 @@ msgstr "res_config_contents" #. module: account #: view:account.unreconcile:0 msgid "Unreconciliate Transactions" -msgstr "" +msgstr "Transacciones no conciliadas" #. module: account #: help:account.chart.template,visible:0 @@ -4650,7 +4649,7 @@ msgstr "Fecha de realizacion" #. module: account #: view:account.unreconcile.reconcile:0 msgid "Unreconciliation Transactions" -msgstr "" +msgstr "Desconcialiación de Transacciones" #. module: account #: field:account.tax,ref_tax_code_id:0 @@ -4785,7 +4784,7 @@ msgstr "Pagado" #. module: account #: view:account.period.close:0 msgid "Are you sure?" -msgstr "" +msgstr "¿Está Seguro?" #. module: account #: help:account.move.line,statement_id:0 @@ -5183,7 +5182,7 @@ msgstr "Cuenta impuesto" #. module: account #: view:account.automatic.reconcile:0 msgid "Reconciliation Result" -msgstr "" +msgstr "Resultado de conciliación" #. module: account #: model:account.financial.report,name:account.account_financial_report_balancesheet0 @@ -6173,7 +6172,7 @@ msgstr "Impuesto de venta(%)" #. module: account #: view:account.addtmpl.wizard:0 msgid "Create an Account Based on this Template" -msgstr "" +msgstr "Crear una cuenta basada en esta plantilla" #. module: account #: view:account.account.type:0 diff --git a/addons/account/i18n/nl_BE.po b/addons/account/i18n/nl_BE.po index 770abf9dce5..6a19e582ed3 100644 --- a/addons/account/i18n/nl_BE.po +++ b/addons/account/i18n/nl_BE.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-02-08 00:35+0000\n" -"PO-Revision-Date: 2010-07-22 16:28+0000\n" -"Last-Translator: Niels Huylebroeck \n" +"PO-Revision-Date: 2012-07-27 12:48+0000\n" +"Last-Translator: Els Van Vossel (Agaplan) \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-07-14 05:58+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-28 04:57+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: account #: view:account.invoice.report:0 @@ -444,7 +444,7 @@ msgstr "Totaal credit" #. module: account #: view:account.move.line.unreconcile.select:0 msgid "Open for Unreconciliation" -msgstr "" +msgstr "Afpunting ongedaan maken" #. module: account #: field:account.account.template,chart_template_id:0 @@ -1611,7 +1611,7 @@ msgstr "Onbelast" #. module: account #: view:account.partner.reconcile.process:0 msgid "Go to Next Partner" -msgstr "" +msgstr "Naar volgende relatie" #. module: account #: view:account.bank.statement:0 @@ -2854,7 +2854,7 @@ msgstr "" #: model:ir.actions.act_window,name:account.action_tax_code_list #: model:ir.ui.menu,name:account.menu_action_tax_code_list msgid "Tax Codes" -msgstr "" +msgstr "Btw-codes" #. module: account #: view:account.account:0 @@ -3226,7 +3226,7 @@ msgstr "Sjablonen boekhoudplan" #. module: account #: model:ir.actions.act_window,name:account.action_wizard_multi_chart msgid "Set Your Accounting Options" -msgstr "" +msgstr "Stel uw boekhouding in" #. module: account #: view:report.account.sales:0 @@ -4402,7 +4402,7 @@ msgstr "Afpunten met afschrijving" #. module: account #: view:report.account.receivable:0 msgid "Accounts by Type" -msgstr "" +msgstr "Rekeningen per type" #. module: account #: view:account.bank.statement:0 @@ -4444,7 +4444,7 @@ msgstr "res_config_contents" #. module: account #: view:account.unreconcile:0 msgid "Unreconciliate Transactions" -msgstr "" +msgstr "Afpuntingen ongedaan maken" #. module: account #: help:account.chart.template,visible:0 @@ -4645,7 +4645,7 @@ msgstr "Bewerkingsdatum" #. module: account #: view:account.unreconcile.reconcile:0 msgid "Unreconciliation Transactions" -msgstr "" +msgstr "Afpuntingen ongedaan maken" #. module: account #: field:account.tax,ref_tax_code_id:0 @@ -4780,7 +4780,7 @@ msgstr "Betaald" #. module: account #: view:account.period.close:0 msgid "Are you sure?" -msgstr "" +msgstr "Bent u zeker?" #. module: account #: help:account.move.line,statement_id:0 @@ -5177,7 +5177,7 @@ msgstr "Btw-rekening" #. module: account #: view:account.automatic.reconcile:0 msgid "Reconciliation Result" -msgstr "" +msgstr "Afpuntresultaat" #. module: account #: model:account.financial.report,name:account.account_financial_report_balancesheet0 @@ -6169,7 +6169,7 @@ msgstr "Verkoop-btw (%)" #. module: account #: view:account.addtmpl.wizard:0 msgid "Create an Account Based on this Template" -msgstr "" +msgstr "Maak een rekening op basis van deze sjabloon" #. module: account #: view:account.account.type:0 @@ -7310,7 +7310,7 @@ msgstr "Hoofdrekeningsjabloon" #. module: account #: model:ir.actions.act_window,name:account.action_account_configuration_installer msgid "Configure your Chart of Accounts" -msgstr "" +msgstr "Installeer uw boekhoudplan" #. module: account #: view:account.bank.statement:0 @@ -8205,7 +8205,7 @@ msgstr "Omgekeerde analytische balans -" #. module: account #: view:account.move.bank.reconcile:0 msgid "Open for Bank Reconciliation" -msgstr "" +msgstr "Bank afpunten" #. module: account #: view:account.analytic.line:0 @@ -8394,7 +8394,7 @@ msgstr "" #. module: account #: view:account.tax.template:0 msgid "Compute Code for Taxes Included Prices" -msgstr "" +msgstr "Bereken code voor prijzen inclusief btw" #. module: account #: code:addons/account/account_invoice.py:1030 @@ -9071,7 +9071,7 @@ msgstr "Verkopen van dit jaar per type" #. module: account #: view:account.analytic.cost.ledger.journal.report:0 msgid "Cost Ledger for Period" -msgstr "" +msgstr "Analytisch dagboek voor periode" #. module: account #: help:account.tax,child_depend:0 @@ -9539,7 +9539,7 @@ msgstr "U moet een bankrekening instellen in het afpuntjournaal." #. module: account #: view:account.move.line.reconcile:0 msgid "Reconciliation Transactions" -msgstr "" +msgstr "Afpunttransacties" #. module: account #: model:ir.actions.act_window,name:account.action_account_common_menu @@ -9644,7 +9644,7 @@ msgstr "Vervaldatum" #. module: account #: view:account.move.journal:0 msgid "Standard Entries" -msgstr "" +msgstr "Standaardboekingen" #. module: account #: help:account.journal,type:0 @@ -10598,7 +10598,7 @@ msgstr "" #. module: account #: view:account.payment.term:0 msgid "Description on Invoices" -msgstr "" +msgstr "Omschrijving op facturen" #. module: account #: model:ir.model,name:account.model_account_analytic_chart diff --git a/addons/account/i18n/pt_BR.po b/addons/account/i18n/pt_BR.po index 48b27e67be2..885a88d84c4 100644 --- a/addons/account/i18n/pt_BR.po +++ b/addons/account/i18n/pt_BR.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-02-08 00:35+0000\n" -"PO-Revision-Date: 2012-06-20 16:26+0000\n" -"Last-Translator: Raphael Collet (OpenERP) \n" +"PO-Revision-Date: 2012-07-28 14:05+0000\n" +"Last-Translator: Fábio Martinelli \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-07-14 05:57+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-29 04:37+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: account #: view:account.invoice.report:0 @@ -3235,7 +3235,7 @@ msgstr "Modelo de plano de contas" #. module: account #: model:ir.actions.act_window,name:account.action_wizard_multi_chart msgid "Set Your Accounting Options" -msgstr "" +msgstr "Defina suas opções Contábeis" #. module: account #: view:report.account.sales:0 @@ -4222,6 +4222,10 @@ msgid "" "some non legal fields or you must unconfirm the journal entry first! \n" "%s" msgstr "" +"Você não pode fazer essa modificação em uma entrada confirmada! Você pode " +"apenas mudar alguns campos não legais ou você deve primeiro desconfirmar a " +"entrada de diário em primeiro lugar\" \n" +"%s" #. module: account #: field:res.company,paypal_account:0 @@ -4472,6 +4476,10 @@ msgid "" "you want to generate accounts of this template only when loading its child " "template." msgstr "" +"Marque como False se você não quer que este template seja usado no " +"configurador que gera o Plano de Contas dos modelos, isto é útil quando você " +"deseja criar as contas desse modelo somente quando for carregar os modelos " +"filhos." #. module: account #: view:account.use.model:0 @@ -4816,6 +4824,9 @@ msgid "" "You can not define children to an account with internal type different of " "\"View\"! " msgstr "" +"Erro de configuração!\n" +"Você não pode definir um filho a uma conta com tipo interno diferente de " +"\"Visualização\"! " #. module: account #: code:addons/account/account.py:923 @@ -5120,6 +5131,10 @@ msgid "" "encode the sale and purchase rates or choose from list of taxes. This last " "choice assumes that the set of tax defined on this template is complete" msgstr "" +"Esta lógica ajuda você a escolher se você quer propor para o usuário " +"codificar as taxas de compra e venda ou escolher de um conjunto de impostos. " +" Esta última escolha pressupõe que o conjunto de imposto definido para o " +"modelo escolhido está completa" #. module: account #: view:account.financial.report:0 @@ -5748,7 +5763,7 @@ msgstr "Sub-contas" #: code:addons/account/account_move_line.py:1214 #, python-format msgid "Move name (id): %s (%s)" -msgstr "" +msgstr "Mova nome (id) %s (%s)" #. module: account #: view:account.move.line.reconcile:0 @@ -6091,6 +6106,9 @@ msgid "" "You can not define children to an account with internal type different of " "\"View\"! " msgstr "" +"Erro de configuração!\n" +"Você não pode definir um filho a uma conta com tipo interno diferente de " +"\"Visualização\"! " #. module: account #: help:res.partner.bank,journal_id:0 @@ -6211,6 +6229,10 @@ msgid "" "choice assumes that the set of tax defined for the chosen template is " "complete" msgstr "" +"Este logica ajuda você a escolher se você quer propor ao usuário para " +"codificar as vendas e as taxas de compra ou use os campos usuais m2o. Esta " +"última escolha pressupõe que o conjunto de imposto definido para o modelo " +"escolhido está completa" #. module: account #: report:account.vat.declaration:0 @@ -6230,7 +6252,7 @@ msgstr "Faturas em Aberto e Pagos" #. module: account #: selection:account.financial.report,display_detail:0 msgid "Display children flat" -msgstr "" +msgstr "Mostrar plano filho" #. module: account #: code:addons/account/account.py:629 @@ -6662,7 +6684,7 @@ msgstr "Criar lançamentos recorrentes manuais no diário escolhido." #. module: account #: help:res.partner.bank,currency_id:0 msgid "Currency of the related account journal." -msgstr "" +msgstr "Moeda da conta do diário relacionada." #. module: account #: code:addons/account/account.py:1563 @@ -6787,7 +6809,7 @@ msgstr "Criar lançamento" #: code:addons/account/account.py:182 #, python-format msgid "Profit & Loss (Expense account)" -msgstr "" +msgstr "Ganhos e perdas (conta de Despesa)" #. module: account #: code:addons/account/account.py:622 @@ -6914,6 +6936,9 @@ msgid "" "some non legal fields or you must unreconcile first!\n" "%s" msgstr "" +"Você não pode fazer essa modificação em uma entrada reconciliada! Você pode " +"apenas mudar alguns campos não legais ou você deve desconciliar primeiro!\n" +"%s" #. module: account #: report:account.general.ledger:0 @@ -7054,6 +7079,9 @@ msgid "" "Please define BIC/Swift code on bank for bank type IBAN Account to make " "valid payments" msgstr "" +"\n" +"Por favor defina o BIC/Swift code no Banco para o tipo de conta IBAN para " +"fazer pagamentos válidos" #. module: account #: report:account.analytic.account.cost_ledger:0 @@ -7186,7 +7214,7 @@ msgstr "Documento de Origem" #: code:addons/account/account.py:1432 #, python-format msgid "You can not delete a posted journal entry \"%s\"!" -msgstr "" +msgstr "Você não pode excluir um lançamento do diário publicado \"%s\"!" #. module: account #: selection:account.partner.ledger,filter:0 @@ -7360,7 +7388,7 @@ msgstr "Entradas Postadas" #. module: account #: help:account.payment.term.line,value_amount:0 msgid "For percent enter a ratio between 0-1." -msgstr "" +msgstr "Para porcentagem introduzir um razão entre 0-1." #. module: account #: report:account.invoice:0 @@ -7590,7 +7618,7 @@ msgstr "Os prazos para gerar entradas de abertura não foram encontrados" #. module: account #: model:account.account.type,name:account.data_account_type_view msgid "Root/View" -msgstr "" +msgstr "Origem/Visualização" #. module: account #: code:addons/account/account.py:3121 @@ -7660,7 +7688,7 @@ msgstr "Multi-Moedas" #. module: account #: field:account.model.line,date_maturity:0 msgid "Maturity Date" -msgstr "" +msgstr "Data de Vencimento" #. module: account #: code:addons/account/account_move_line.py:1302 @@ -7706,6 +7734,11 @@ msgid "" "few new accounts (You don't need to define the whole structure that is " "common to both several times)." msgstr "" +"Este campo opcional te permite criar um link para um modelo específico de " +"plano de contas que pode ser diferente do que o superior pertence. Isto " +"permite a você definir o plano de contas que amplia e completa com algumas " +"novas contas (você não precisa definir toda uma estrutura que é comum aos " +"dois várias vezes)." #. module: account #: view:account.move:0 @@ -7758,6 +7791,7 @@ msgstr "Cancelar Faturas Selecionadas" msgid "" "This field is used to generate legal reports: profit and loss, balance sheet." msgstr "" +"Este campo é usado para gerar relatórios legais: de lucros e perdas, balanço." #. module: account #: model:ir.actions.act_window,help:account.action_review_payment_terms_installer @@ -7767,6 +7801,10 @@ msgid "" "terms for each letter. Each customer or supplier can be assigned to one of " "these payment terms." msgstr "" +"Termos de pagamento define as condições para pagamento de um cliente ou " +"fornecedor em um ou mais pagamentos. Lembretes periódicos irão usar os " +"termos de pagamento em cada aviso. Cada cliente ou fornecedor pode ser " +"associado para um desses termos de pagamento." #. module: account #: selection:account.entries.report,month:0 @@ -7897,7 +7935,7 @@ msgstr "Quantidade ideal de entradas." #. module: account #: view:account.financial.report:0 msgid "Parent Report" -msgstr "" +msgstr "Relatório" #. module: account #: view:account.state.open:0 @@ -7947,7 +7985,7 @@ msgstr " 7 Dias " #. module: account #: field:account.bank.statement,balance_end:0 msgid "Computed Balance" -msgstr "" +msgstr "Balanço computado" #. module: account #: field:account.account,parent_id:0 @@ -8032,7 +8070,7 @@ msgstr "Status da Linha de Movimento" #. module: account #: model:ir.model,name:account.model_account_move_line_reconcile msgid "Account move line reconcile" -msgstr "" +msgstr "Reconciliar movimentação de linha de conta" #. module: account #: view:account.subscription.generate:0 @@ -8075,7 +8113,7 @@ msgstr "Selecione uma moeda para ser usada na fatura" #, python-format msgid "" "The bank account defined on the selected chart of accounts hasn't a code." -msgstr "" +msgstr "A conta bancária definida no plano de contas não possui um código" #. module: account #: code:addons/account/wizard/account_invoice_refund.py:108 @@ -8092,7 +8130,7 @@ msgstr "Sem Linhas na Fatura !" #. module: account #: view:account.financial.report:0 msgid "Report Type" -msgstr "" +msgstr "Tipo de Relatório" #. module: account #: view:account.analytic.account:0 @@ -8121,6 +8159,8 @@ msgid "" "Select Fiscal Year which you want to remove entries for its End of year " "entries journal" msgstr "" +"Escolha o Ano Fiscal que você deseja remover entradas de diário de " +"Fechamento de ano" #. module: account #: field:account.tax.template,type_tax_use:0 @@ -8153,6 +8193,12 @@ msgid "" "Most of the OpenERP operations (invoices, timesheets, expenses, etc) " "generate analytic entries on the related account." msgstr "" +"Um plano de contas normal tem uma estrutura definida por uma legislação " +"mínima obrigatória no país. A estrutura do plano de contas analítico deve " +"refletir sua própria necessidade empresarial em termos de relatórios de " +"receitas/despesas. Eles são geralmente estruturados por contratos, projetos, " +"produtos ou departamentos. A maioria das operações do OpenErp (faturas, " +"planilhas de tempo, despesas, etc) geram uma entrada em uma conta relacionada" #. module: account #: field:account.account.type,close_method:0 @@ -8251,6 +8297,15 @@ msgid "" "related journal entries may or may not be reconciled. \n" "* The 'Cancelled' state is used when user cancel invoice." msgstr "" +" * 'Cotação' é usada quando um usuário está criando uma fatura nova e sem " +"confirmação. \n" +"* 'Pro-forma' quando uma fatura está em Pro-forma ela não possui um código " +"de fatura. \n" +"* 'Aberto' é quando um usuário cria uma fatura, um número de fatura é " +"gerado. Ficará em Aberto enquanto o usuário não pagar a fatura\n" +"* 'Pago' é definido automaticamente quando a fatura for paga. Suas entradas " +"nos diários podem ou não ser reconciliadas. \n" +"* 'Cancelado' é usado quando o usuário cancela a fatura." #. module: account #: view:account.invoice.report:0 @@ -8281,6 +8336,7 @@ msgstr "" msgid "" "Can not find a chart of accounts for this company, you should create one." msgstr "" +"Não encontramos um plano de contas para esta empresa, você deve criar um." #. module: account #: view:account.invoice:0 @@ -8290,7 +8346,7 @@ msgstr "Pro-forma" #. module: account #: report:account.analytic.account.cost_ledger:0 msgid "J.C. /Move name" -msgstr "" +msgstr "J.C. /Nome da movimentação" #. module: account #: model:ir.model,name:account.model_account_open_closed_fiscalyear @@ -8359,6 +8415,8 @@ msgid "" "Total amount (in Company currency) for transactions held in secondary " "currency for this account." msgstr "" +"Valor Total (na moeda da empresa) para as transações mantidas em uma moeda " +"secundária para esta conta." #. module: account #: report:account.invoice:0 @@ -8395,6 +8453,8 @@ msgid "" "You can not cancel an invoice which is partially paid! You need to " "unreconcile related payment entries first!" msgstr "" +"Você não pode cancelar uma fatura que foi parcialmente paga! Você precisa " +"desconciliar as entradas de pagamento primeiro!" #. module: account #: field:account.chart.template,property_account_income_categ:0 @@ -8425,7 +8485,7 @@ msgstr "Valor do Imposto/Base" #. module: account #: view:account.payment.term.line:0 msgid " Valuation: Percent" -msgstr "" +msgstr " Avaliação: Percentual" #. module: account #: model:ir.actions.act_window,help:account.action_invoice_tree3 @@ -8516,18 +8576,18 @@ msgstr "Conciliação parcial" #. module: account #: model:ir.model,name:account.model_account_analytic_inverted_balance msgid "Account Analytic Inverted Balance" -msgstr "" +msgstr "Balanço invertido da conta analítica" #. module: account #: model:ir.model,name:account.model_account_common_report msgid "Account Common Report" -msgstr "" +msgstr "Relatório de Conta Comum" #. module: account #: view:account.invoice.report:0 #: view:analytic.entries.report:0 msgid "current month" -msgstr "" +msgstr "mês atual" #. module: account #: code:addons/account/account.py:1052 @@ -8536,6 +8596,8 @@ msgid "" "No period defined for this date: %s !\n" "Please create one." msgstr "" +"Nenhum período definido para esta data: %s !\n" +"Por favor, crie um." #. module: account #: model:process.transition,name:account.process_transition_filestatement0 @@ -8563,7 +8625,7 @@ msgstr "Tipos de Conta" #. module: account #: view:account.payment.term.line:0 msgid " Value amount: n.a" -msgstr "" +msgstr " Valor total: n.a" #. module: account #: view:account.automatic.reconcile:0 @@ -8595,11 +8657,17 @@ msgid "" "You should press this button to re-open it and let it continue its normal " "process after having resolved the eventual exceptions it may have created." msgstr "" +"Este botão só aparece quando a situação da fatura for 'Paga' (mostrando que " +"foi paga e totalmente reconciliada) e o valor gerado automaticamente " +"'Reconciliado' for falso (representando que não é mais o caso). Em outras " +"palavras, a fatura foi desconciliada e não cabe mais usar a situação 'paga' " +". Você deve clicar neste botão e re-abrir e então continuar o processo " +"normal depois de resolver as exceções que possa ter gerado" #. module: account #: model:ir.model,name:account.model_account_fiscalyear_close_state msgid "Fiscalyear Close state" -msgstr "" +msgstr "Situação do Fechamento do Ano Fiscal" #. module: account #: field:account.invoice.refund,journal_id:0 @@ -8635,6 +8703,8 @@ msgstr "" msgid "" "In order to close a period, you must first post related journal entries." msgstr "" +"Para fechar um período você precisa primeiro criar as entradas de diário " +"relacionadas." #. module: account #: view:account.entries.report:0 @@ -8652,7 +8722,7 @@ msgstr "A conta do parceiro usada para esta fatura" #: code:addons/account/account.py:3296 #, python-format msgid "Tax %.2f%%" -msgstr "" +msgstr "Imposto %.2f%%" #. module: account #: view:account.analytic.account:0 @@ -8763,6 +8833,8 @@ msgstr "Faturas Não Pagas" #, python-format msgid "The payment term of supplier does not have a payment term line!" msgstr "" +"O termo de pagamento do fornecedor não possui uma linha de prazo de " +"pagamento!" #. module: account #: field:account.move.line.reconcile,debit:0 @@ -8827,17 +8899,17 @@ msgstr "Nome do diário" #. module: account #: view:account.move.line:0 msgid "Next Partner Entries to reconcile" -msgstr "" +msgstr "Próxima entrada a reconciliar" #. module: account #: selection:account.financial.report,style_overwrite:0 msgid "Smallest Text" -msgstr "" +msgstr "Menor Texto" #. module: account #: model:res.groups,name:account.group_account_invoice msgid "Invoicing & Payments" -msgstr "" +msgstr "Faturamento & Pagamentos" #. module: account #: help:account.invoice,internal_number:0 @@ -8889,6 +8961,9 @@ msgid "" "Make sure you have configured payment terms properly !\n" "The latest payment term line should be of the type \"Balance\" !" msgstr "" +"Você não pode validar uma entrada sem balanço!\n" +"Tenha certeza de que você configurou os termos de pagamento corretamente!\n" +"A última linha de prazo de pagamento deve ser do tipo \"Balanço\"!" #. module: account #: view:account.account:0 @@ -8966,7 +9041,7 @@ msgstr "Endereço do contato" #: code:addons/account/account.py:2256 #, python-format msgid "Wrong model !" -msgstr "" +msgstr "Modelo errado!" #. module: account #: field:account.invoice.refund,period:0 @@ -8987,6 +9062,11 @@ msgid "" "accounts that are typically more credited than debited and that you would " "like to print as positive amounts in your reports; e.g.: Income account." msgstr "" +"Para contas que são tipicamente mais debitadas do que creditadas e que você " +"deseja exibir como valores negativos nos relatórios, você deve inverter o " +"sinal do balanço; ex.: Conta de despesa. O mesmo aplica para contas que são " +"tipicamente mais creditadas do que debitadas e você deseja exibir como " +"valores positivos nos relatórios; ex.: Contas de recebimento." #. module: account #: field:res.partner,contract_ids:0 @@ -9028,7 +9108,7 @@ msgstr "" #: code:addons/account/account_invoice.py:808 #, python-format msgid "Please define sequence on the journal related to this invoice." -msgstr "" +msgstr "Defina a sequencia do diário referente a essa fatura." #. module: account #: view:account.move:0 @@ -9041,7 +9121,7 @@ msgstr "Nota Interna" #. module: account #: view:report.account.sales:0 msgid "This year's Sales by type" -msgstr "" +msgstr "Vendas deste ano, por tipo" #. module: account #: view:account.analytic.cost.ledger.journal.report:0 @@ -9095,7 +9175,7 @@ msgstr "Linhas de lançamentos" #. module: account #: model:ir.actions.act_window,name:account.action_view_financial_accounts_installer msgid "Review your Financial Accounts" -msgstr "" +msgstr "Reveja as suas contas financeiras" #. module: account #: model:ir.actions.act_window,name:account.action_open_journal_button @@ -9136,7 +9216,7 @@ msgstr "Pagamento registrado" #. module: account #: view:account.fiscalyear.close.state:0 msgid "Close states of Fiscal year and periods" -msgstr "" +msgstr "Situação do fechamento de Ano Fiscal e períodos" #. module: account #: view:account.analytic.line:0 @@ -9176,7 +9256,7 @@ msgstr "Caros Ser/Senhora," #. module: account #: field:account.vat.declaration,display_detail:0 msgid "Display Detail" -msgstr "" +msgstr "Mostrar Detalhes" #. module: account #: code:addons/account/account.py:3118 @@ -9221,7 +9301,7 @@ msgstr "Fim do Período" #: model:ir.actions.act_window,name:account.action_account_report_pl #: model:ir.ui.menu,name:account.menu_account_reports msgid "Financial Reports" -msgstr "" +msgstr "Relatórios Financeiros" #. module: account #: report:account.account.balance:0 @@ -9305,7 +9385,7 @@ msgstr "Documento: demonstrativo da conta cliente" #. module: account #: field:account.account.type,report_type:0 msgid "P&L / BS Category" -msgstr "" +msgstr "Categoria P&L / BS" #. module: account #: model:ir.actions.act_window,help:account.action_invoice_tree4 @@ -9481,12 +9561,12 @@ msgstr "" #. module: account #: view:analytic.entries.report:0 msgid "Analytic Entries of last 365 days" -msgstr "" +msgstr "Entradas analíticas dos últimos 365 dias" #. module: account #: report:account.central.journal:0 msgid "A/C No." -msgstr "" +msgstr "No. A/C" #. module: account #: model:ir.actions.act_window,name:account.act_account_journal_2_account_bank_statement @@ -9522,7 +9602,7 @@ msgstr "Conciliação de transações" #. module: account #: model:ir.actions.act_window,name:account.action_account_common_menu msgid "Common Report" -msgstr "" +msgstr "Relatório Comum" #. module: account #: view:account.account:0 @@ -9543,7 +9623,7 @@ msgstr "" #. module: account #: view:account.invoice.report:0 msgid "Customer And Supplier Invoices" -msgstr "" +msgstr "Faturas de clientes e fornecedores" #. module: account #: model:process.node,note:account.process_node_paymententries0 @@ -9583,6 +9663,8 @@ msgid "" "No opening/closing period defined, please create one to set the initial " "balance!" msgstr "" +"Nenhum período de abertura/fechamento definido, por favor crie um e defina o " +"balanço inicial!" #. module: account #: report:account.account.balance:0 @@ -9631,6 +9713,11 @@ msgid "" "journals. Select 'Opening/Closing Situation' for entries generated for new " "fiscal years." msgstr "" +"Escolha 'Venda' para diários de faturas de clientes. Escolha 'Compra' para " +"diários de faturas de fornecedores. Escolha 'Dinheiro' ou 'Banco' para " +"diários que são usados nos pagamentos de clientes ou fornecedores. Escolha " +"'Geral' para diários de operações diversas. Escolha 'Situação de " +"Abertura/Fechamento' para entradas geradas em um novo ano fiscal." #. module: account #: model:ir.model,name:account.model_account_subscription @@ -9683,6 +9770,8 @@ msgid "" "It indicates that the invoice has been paid and the journal entry of the " "invoice has been reconciled with one or several journal entries of payment." msgstr "" +"Indica que a fatura foi paga e a entrada do diário foi reconciliada com um " +"ou mais diários de pagamentos" #. module: account #: view:account.invoice:0 @@ -9720,6 +9809,13 @@ msgid "" "open period. Close a period when you do not want to record new entries and " "want to lock this period for tax related calculation." msgstr "" +"Um período é um período fiscal em que a contabilidade deve ser registrada " +"para atividades relacionadas. Períodos mensais costumam ser o padrão, mas " +"dependendo do seu pais ou necessidades da empresa, você também pode definir " +"períodos trimestrais. Após fechar um período é impossível adicionar novas " +"entradas, todas as novas entradas deverão ser feitas no período seguinte. " +"Feche um período quando você não desejar mais gravar novas entradas e quer " +"bloquear o período para o cálculo de impostos" #. module: account #: view:account.analytic.account:0 @@ -9755,7 +9851,7 @@ msgstr "Ativo" #. module: account #: view:accounting.report:0 msgid "Comparison" -msgstr "" +msgstr "Comparação" #. module: account #: code:addons/account/account_invoice.py:372 @@ -9828,7 +9924,7 @@ msgstr "" #: code:addons/account/account.py:181 #, python-format msgid "Profit & Loss (Income account)" -msgstr "" +msgstr "Ganhos e perdas (conta Lucro)" #. module: account #: constraint:account.account:0 @@ -9837,6 +9933,9 @@ msgid "" "You can not select an account type with a deferral method different of " "\"Unreconciled\" for accounts with internal type \"Payable/Receivable\"! " msgstr "" +"Erro de Configuração!\n" +"Você não pode selecionar um tipo de conta com um método de deferimento " +"diferente de \"Não conciliado\" para contas do tipo \"Pagáveis/Recebíveis\" " #. module: account #: view:account.model:0 @@ -9873,7 +9972,7 @@ msgstr "Geral" #. module: account #: view:analytic.entries.report:0 msgid "Analytic Entries of last 30 days" -msgstr "" +msgstr "Entradas analíticas dos últimos 30 dias" #. module: account #: selection:account.aged.trial.balance,filter:0 @@ -9930,7 +10029,7 @@ msgstr "Abril" #. module: account #: model:account.financial.report,name:account.account_financial_report_profitloss_toreport0 msgid "Profit (Loss) to report" -msgstr "" +msgstr "Lucro (Prejuízo) para relatório" #. module: account #: view:account.move.line.reconcile.select:0 @@ -9954,7 +10053,7 @@ msgstr "" #. module: account #: selection:account.financial.report,style_overwrite:0 msgid "Title 2 (bold)" -msgstr "" +msgstr "Título 2 (em negrito)" #. module: account #: model:ir.actions.act_window,name:account.action_invoice_tree2 @@ -9995,6 +10094,8 @@ msgid "" "When new statement is created the state will be 'Draft'.\n" "And after getting confirmation from the bank it will be in 'Confirmed' state." msgstr "" +"Quando um novo statement for criado, a situação será 'Rascunho'.\n" +"E após a confirmação do banco a situação será \"Confirmada\"." #. module: account #: model:ir.model,name:account.model_account_period @@ -10115,7 +10216,7 @@ msgstr "Sequências de ano fiscal" #. module: account #: selection:account.financial.report,display_detail:0 msgid "No detail" -msgstr "" +msgstr "Não há detalhes" #. module: account #: code:addons/account/account_analytic_line.py:102 @@ -10126,14 +10227,14 @@ msgstr "Não há conta de entrada definida para este produto:\"%s\" (id:%d)" #. module: account #: constraint:account.move.line:0 msgid "You can not create journal items on closed account." -msgstr "" +msgstr "Você não pode criar ítens de diário em uma conta fechada." #. module: account #: field:account.account,unrealized_gain_loss:0 #: model:ir.actions.act_window,name:account.action_account_gain_loss #: model:ir.ui.menu,name:account.menu_unrealized_gains_losses msgid "Unrealized Gain or Loss" -msgstr "" +msgstr "Perdas ou Ganhos não realizados" #. module: account #: view:account.fiscalyear:0 @@ -10146,12 +10247,12 @@ msgstr "Estado" #. module: account #: model:ir.actions.server,name:account.ir_actions_server_edi_invoice msgid "Auto-email confirmed invoices" -msgstr "" +msgstr "Enviar automaticamente as Faturas confirmadas" #. module: account #: field:account.invoice,check_total:0 msgid "Verification Total" -msgstr "" +msgstr "Verificação total" #. module: account #: report:account.analytic.account.balance:0 @@ -10279,7 +10380,7 @@ msgstr "Esvaziar as contas ? " #. module: account #: constraint:account.bank.statement:0 msgid "The journal and period chosen have to belong to the same company." -msgstr "" +msgstr "O diário e o período escolhido tem que pertencer à mesma empresa." #. module: account #: view:account.invoice:0 @@ -10303,11 +10404,13 @@ msgid "" "This account will be used to value outgoing stock for the current product " "category using cost price" msgstr "" +"Esta conta será usada para para estimar o estoque de saída da categoria de " +"produtos usando o preço de custo" #. module: account #: view:wizard.multi.charts.accounts:0 msgid "Generate Your Chart of Accounts from a Chart Template" -msgstr "" +msgstr "Crie seu Plano de Contas através de um modelo" #. module: account #: model:ir.actions.act_window,help:account.action_account_invoice_report_all @@ -10379,7 +10482,7 @@ msgstr "Débito" #. module: account #: selection:account.financial.report,style_overwrite:0 msgid "Title 3 (bold, smaller)" -msgstr "" +msgstr "Título 3 (em negrito, menor)" #. module: account #: field:account.invoice,invoice_line:0 @@ -10394,7 +10497,7 @@ msgstr "Erro ! Você não pode criar templates recursivos para contas." #. module: account #: selection:account.print.journal,sort_selection:0 msgid "Journal Entry Number" -msgstr "" +msgstr "Número da Entrada de Diário" #. module: account #: view:account.subscription:0 @@ -10408,6 +10511,8 @@ msgid "" "You cannot change the type of account from 'Closed' to any other type which " "contains journal items!" msgstr "" +"Você não pode mudar o tipo de conta de 'Fechado' para nenhum outro tipo que " +"contém entradas de diário!" #. module: account #: code:addons/account/account_move_line.py:832 @@ -10433,7 +10538,7 @@ msgstr "Intervalo" #. module: account #: view:account.analytic.line:0 msgid "Analytic Journal Items related to a purchase journal." -msgstr "" +msgstr "Itens de diário relacionados a um diário de compras." #. module: account #: help:account.account,type:0 @@ -10444,6 +10549,11 @@ msgid "" "payable/receivable are for partners accounts (for debit/credit " "computations), closed for depreciated accounts." msgstr "" +"O 'Tipo Interno' é usado para recursos disponíveis em diferentes tipo de " +"contas: visualizações não podem conter itens de diário, consolidações são " +"contas que possuem contas filhas de consolidações multi-empresas, " +"pagáveis/recebíveis são para contas de parceiros (para cálculo de " +"débito/crédito), fechado para contas de depreciação." #. module: account #: selection:account.balance.report,display_account:0 @@ -10485,7 +10595,7 @@ msgstr "Imprimir diários analíticos" #. module: account #: view:account.invoice.report:0 msgid "Group by month of Invoice Date" -msgstr "" +msgstr "Agrupar por mês da fatura" #. module: account #: view:account.analytic.line:0 @@ -10519,6 +10629,8 @@ msgstr "A outra moeda opcional se este for um lançamento multi-moeda" msgid "" "Import of the statement in the system from a supplier or customer invoice" msgstr "" +"Importar da declaração no sistema a partir de uma fatura do fornecedor ou " +"cliente" #. module: account #: model:ir.ui.menu,name:account.menu_finance_periodical_processing_billing @@ -10551,7 +10663,7 @@ msgstr "" #. module: account #: view:account.payment.term:0 msgid "Description on Invoices" -msgstr "" +msgstr "Descrição nas Faturas" #. module: account #: model:ir.model,name:account.model_account_analytic_chart @@ -10578,7 +10690,7 @@ msgstr "Conta inválida!" #. module: account #: field:account.print.journal,sort_selection:0 msgid "Entries Sorted by" -msgstr "" +msgstr "Entradas classificadas por" #. module: account #: help:account.move,state:0 @@ -10589,6 +10701,11 @@ msgid "" "created by the system on document validation (invoices, bank statements...) " "and will be created in 'Posted' state." msgstr "" +"Todas as entradas de diário criadas manualmente ficam na situação 'Não " +"publicadas', mas você pode definir uma opção para pular esta situação no " +"diário relacionado. Neste caso, elas se comportarão como entradas de diário " +"automaticamente pelo sistema na validação do documento (faturas, extratos " +"bancários...) e serão criadas na situação 'Publicadas'." #. module: account #: view:account.fiscal.position.template:0 @@ -10719,6 +10836,76 @@ msgid "" "% endif\n" " " msgstr "" +"\n" +"Olá ${object.address_invoice_id.name and ' ' or " +"''}${object.address_invoice_id.name or ''},\n" +"\n" +"Uma nova fatura está disponível para ${object.partner_id.name}:\n" +" | Número da Fatura: *${object.number}*\n" +" | Total da Fatura: *${object.amount_total} " +"${object.currency_id.name}*\n" +" | Data da Fatura: ${object.date_invoice}\n" +" % if object.origin:\n" +" | Referente a: ${object.origin}\n" +" % endif\n" +" | Seu contato: ${object.user_id.name} ${object.user_id.user_email and " +"'<%s>'%(object.user_id.user_email) or ''}\n" +"\n" +"Você pode ver a fatura, fazer o download e pagar online usando o seguinte " +"link:\n" +" ${ctx.get('edi_web_url_view') or 'n/a'}\n" +"\n" +"% if object.company_id.paypal_account and object.type in ('out_invoice', " +"'in_refund'):\n" +"<% \n" +"comp_name = quote(object.company_id.name)\n" +"inv_number = quote(object.number)\n" +"paypal_account = quote(object.company_id.paypal_account)\n" +"inv_amount = quote(str(object.amount_total))\n" +"cur_name = quote(object.currency_id.name)\n" +"paypal_url = \"https://www.paypal.com/cgi-" +"bin/webscr?cmd=_xclick&business=%s&item_name=%s%%20Invoice%%20%s\"\\\n" +" " +"\"&invoice=%s&amount=%s¤cy_code=%s&button_subtype=services&no_note=1&bn" +"=OpenERP_Invoice_PayNow_%s\" % \\\n" +" " +"(paypal_account,comp_name,inv_number,inv_number,inv_amount,cur_name,cur_name)" +"\n" +"%>\n" +"É possível pagar diretamente através do Paypal:\n" +" ${paypal_url}\n" +"% endif\n" +"\n" +"Se você tiver alguma dúvida por favor entre em contato conosco.\n" +"\n" +"\n" +"Obrigado por escolher ${object.company_id.name}!\n" +"\n" +"\n" +"--\n" +"${object.user_id.name} ${object.user_id.user_email and " +"'<%s>'%(object.user_id.user_email) or ''}\n" +"${object.company_id.name}\n" +"% if object.company_id.street:\n" +"${object.company_id.street or ''}\n" +"% endif\n" +"% if object.company_id.street2:\n" +"${object.company_id.street2}\n" +"% endif\n" +"% if object.company_id.city or object.company_id.zip:\n" +"${object.company_id.zip or ''} ${object.company_id.city or ''}\n" +"% endif\n" +"% if object.company_id.country_id:\n" +"${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) " +"or ''} ${object.company_id.country_id.name or ''}\n" +"% endif\n" +"% if object.company_id.phone:\n" +"Phone: ${object.company_id.phone}\n" +"% endif\n" +"% if object.company_id.website:\n" +"${object.company_id.website or ''}\n" +"% endif\n" +" " #. module: account #: model:ir.model,name:account.model_res_partner_bank @@ -13102,3 +13289,6 @@ msgstr "" #~ msgid "Install your Chart of Accounts" #~ msgstr "Instale o seu Plano de Contas" + +#~ msgid "Description On Invoices" +#~ msgstr "Descrição em Faturas" diff --git a/addons/account_accountant/__openerp__.py b/addons/account_accountant/__openerp__.py index ff4e3faa3b6..7c97112b875 100644 --- a/addons/account_accountant/__openerp__.py +++ b/addons/account_accountant/__openerp__.py @@ -24,7 +24,7 @@ "author" : "OpenERP SA", "category": 'Accounting & Finance', "sequence": 10, - "summary": "Accounts Moves, Journals, Chart of Accounts", + "summary": "Financial and Analytic Accounting", "description": """ Accounting Access Rights. ========================= diff --git a/addons/account_accountant/account_accountant_data.xml b/addons/account_accountant/account_accountant_data.xml index 3d665e680c3..7724dcb6774 100644 --- a/addons/account_accountant/account_accountant_data.xml +++ b/addons/account_accountant/account_accountant_data.xml @@ -1,20 +1,23 @@ - Accounting + - - + + + + + + Module Accounting and Finance has been installed + From the top menu Accounting, manage all of your accounting: + general accounting, cost/analytic accounting, third party + accounting, taxes, budgets, customer and supplier invoices, + bank statements, reconciliation process. + + diff --git a/addons/account_analytic_analysis/account_analytic_analysis.py b/addons/account_analytic_analysis/account_analytic_analysis.py index 93718a75211..c84b311f307 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis.py +++ b/addons/account_analytic_analysis/account_analytic_analysis.py @@ -455,7 +455,6 @@ class account_analytic_account(osv.osv): 'invoice_on_timesheets' : fields.boolean("Invoice On Timesheets"), 'month_ids': fields.function(_analysis_all, multi='analytic_analysis', type='many2many', relation='account_analytic_analysis.summary.month', string='Month'), 'user_ids': fields.function(_analysis_all, multi='analytic_analysis', type="many2many", relation='account_analytic_analysis.summary.user', string='User'), - 'template_id': fields.many2one('account.analytic.account', 'Template of Contract'), 'hours_qtt_est': fields.float('Estimation of Hours to Invoice'), 'est_total' : fields.function(_sum_of_fields, type="float",multi="sum_of_all", string="Total Estimation"), 'invoiced_total' : fields.function(_sum_of_fields, type="float",multi="sum_of_all", string="Total Invoiced"), @@ -483,18 +482,15 @@ class account_analytic_account(osv.osv): def on_change_template(self, cr, uid, ids, template_id, context=None): if not template_id: return {} - res = {'value':{}} - template = self.browse(cr, uid, template_id, context=context) - res['value']['date_start'] = template.date_start - res['value']['date'] = template.date - res['value']['fix_price_invoices'] = template.fix_price_invoices - res['value']['invoice_on_timesheets'] = template.invoice_on_timesheets - res['value']['quantity_max'] = template.quantity_max - res['value']['hours_qtt_est'] = template.hours_qtt_est - res['value']['amount_max'] = template.amount_max - res['value']['to_invoice'] = template.to_invoice.id - res['value']['pricelist_id'] = template.pricelist_id.id - res['value']['description'] = template.description + res = super(account_analytic_account, self).on_change_template(cr, uid, ids, template_id, context=context) + if template_id and 'value' in res: + template = self.browse(cr, uid, template_id, context=context) + res['value']['fix_price_invoices'] = template.fix_price_invoices + res['value']['invoice_on_timesheets'] = template.invoice_on_timesheets + res['value']['hours_qtt_est'] = template.hours_qtt_est + res['value']['amount_max'] = template.amount_max + res['value']['to_invoice'] = template.to_invoice.id + res['value']['pricelist_id'] = template.pricelist_id.id return res account_analytic_account() @@ -532,40 +528,25 @@ class account_analytic_account_summary_user(osv.osv): def init(self, cr): tools.sql.drop_view_if_exists(cr, 'account_analytic_analysis_summary_user') - cr.execute('CREATE OR REPLACE VIEW account_analytic_analysis_summary_user AS (' \ - 'SELECT ' \ - '(u.account_id * u.max_user) + u."user" AS id, ' \ - 'u.account_id AS account_id, ' \ - 'u."user" AS "user", ' \ - 'COALESCE(SUM(l.unit_amount), 0.0) AS unit_amount ' \ - 'FROM ' \ - '(SELECT ' \ - 'a.id AS account_id, ' \ - 'u1.id AS "user", ' \ - 'MAX(u2.id) AS max_user ' \ - 'FROM ' \ - 'res_users AS u1, ' \ - 'res_users AS u2, ' \ - 'account_analytic_account AS a ' \ - 'GROUP BY u1.id, a.id ' \ - ') AS u ' \ - 'LEFT JOIN ' \ - '(SELECT ' \ - 'l.account_id AS account_id, ' \ - 'l.user_id AS "user", ' \ - 'SUM(l.unit_amount) AS unit_amount ' \ - 'FROM account_analytic_line AS l, ' \ - 'account_analytic_journal AS j ' \ - 'WHERE (j.type = \'general\') and (j.id=l.journal_id) ' \ - 'GROUP BY l.account_id, l.user_id ' \ - ') AS l ' - 'ON (' \ - 'u.account_id = l.account_id ' \ - 'AND u."user" = l."user"' \ - ') ' \ - 'GROUP BY u."user", u.account_id, u.max_user' \ - ')') - + cr.execute('''CREATE OR REPLACE VIEW account_analytic_analysis_summary_user AS ( + with mu as + (select max(id) as max_user from res_users) + , lu AS + (SELECT + l.account_id AS account_id, + coalesce(l.user_id, 0) AS user_id, + SUM(l.unit_amount) AS unit_amount + FROM account_analytic_line AS l, + account_analytic_journal AS j + WHERE (j.type = 'general' ) and (j.id=l.journal_id) + GROUP BY l.account_id, l.user_id + ) + select (lu.account_id * mu.max_user) + lu.user_id as id, + lu.account_id as account_id, + lu.user_id as "user", + unit_amount + from lu, mu)''') + account_analytic_account_summary_user() class account_analytic_account_summary_month(osv.osv): diff --git a/addons/account_analytic_analysis/account_analytic_analysis_view.xml b/addons/account_analytic_analysis/account_analytic_analysis_view.xml index ead87c176e3..32839063f02 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis_view.xml +++ b/addons/account_analytic_analysis/account_analytic_analysis_view.xml @@ -20,9 +20,6 @@ - - -
- - - - diff --git a/addons/hr_timesheet/hr_timesheet.py b/addons/hr_timesheet/hr_timesheet.py index 66911f25ff5..53119853c31 100644 --- a/addons/hr_timesheet/hr_timesheet.py +++ b/addons/hr_timesheet/hr_timesheet.py @@ -198,6 +198,13 @@ class account_analytic_account(osv.osv): _columns = { 'use_timesheets': fields.boolean('Timesheets', help="Check this field if this project manages timesheets"), } + + def on_change_template(self, cr, uid, ids, template_id, context=None): + res = super(account_analytic_account, self).on_change_template(cr, uid, ids, template_id, context=context) + if template_id and 'value' in res: + template = self.browse(cr, uid, template_id, context=context) + res['value']['use_timesheets'] = template.use_timesheets + return res account_analytic_account() diff --git a/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py b/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py index ea4d286c89f..c9b2439596d 100644 --- a/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py +++ b/addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py @@ -90,32 +90,28 @@ class account_analytic_line(osv.osv): context2 = context.copy() context2['lang'] = partner.lang - cr.execute("SELECT product_id, to_invoice, sum(unit_amount), product_uom_id " \ + cr.execute("SELECT product_id, to_invoice, sum(unit_amount), product_uom_id, name " \ "FROM account_analytic_line as line " \ "WHERE account_id = %s " \ "AND id IN %s AND to_invoice IS NOT NULL " \ - "GROUP BY product_id,to_invoice,product_uom_id", (account.id, tuple(ids),)) + "GROUP BY product_id, to_invoice, product_uom_id, name", (account.id, tuple(ids),)) - for product_id, factor_id, qty, uom in cr.fetchall(): - product = product_obj.browse(cr, uid, product_id, context2) + for product_id, factor_id, qty, uom, line_name in cr.fetchall(): + if data.get('product'): + product_id = data['product'][0] + product = product_obj.browse(cr, uid, product_id, context=context2) if not product: - raise osv.except_osv(_('Error'), _('At least one line has no product !')) - factor_name = '' - factor = invoice_factor_obj.browse(cr, uid, factor_id, context2) - if not data.get('product', False): - if factor.customer_name: - factor_name = product.name+' - '+factor.customer_name - else: - factor_name = product.name - else: - data['product'] = data['product'][0] - factor_name = product_obj.name_get(cr, uid, [data['product']], context=context)[0][1] + raise osv.except_osv(_('Error'), _('There is no product defined for the line %s. Please select one or force the product through the wizard.') % (line_name)) + factor = invoice_factor_obj.browse(cr, uid, factor_id, context=context2) + factor_name = product_obj.name_get(cr, uid, [product_id], context=context2)[0][1] + if factor.customer_name: + factor_name += ' - ' + factor.customer_name ctx = context.copy() ctx.update({'uom':uom}) if account.pricelist_id: pl = account.pricelist_id.id - price = pro_price_obj.price_get(cr,uid,[pl], data.get('product', False) or product_id, qty or 1.0, account.partner_id.id, context=ctx)[pl] + price = pro_price_obj.price_get(cr,uid,[pl], product_id, qty or 1.0, account.partner_id.id, context=ctx)[pl] else: price = 0.0 @@ -131,7 +127,7 @@ class account_analytic_line(osv.osv): 'invoice_line_tax_id': [(6,0,tax )], 'invoice_id': last_invoice, 'name': factor_name, - 'product_id': data.get('product',product_id), + 'product_id': product_id, 'invoice_line_tax_id': [(6,0,tax)], 'uos_id': uom, 'account_id': account_id, @@ -179,7 +175,7 @@ class hr_timesheet_invoice_create(osv.osv_memory): 'time': fields.boolean('Time spent', help='The time of each work done will be displayed on the invoice'), 'name': fields.boolean('Description', help='The detail of each work done will be displayed on the invoice'), 'price': fields.boolean('Cost', help='The cost of each work done will be displayed on the invoice. You probably don\'t want to check this'), - 'product': fields.many2one('product.product', 'Product', help='Fill this field only if you want to force to use a specific product. Keep empty to use the real product that comes from the cost.'), + 'product': fields.many2one('product.product', 'Force Product', help='Fill this field only if you want to force to use a specific product. Keep empty to use the real product that comes from the cost.'), } _defaults = { diff --git a/addons/hr_timesheet_sheet/__openerp__.py b/addons/hr_timesheet_sheet/__openerp__.py index cc788d95a83..1acaa5780b8 100644 --- a/addons/hr_timesheet_sheet/__openerp__.py +++ b/addons/hr_timesheet_sheet/__openerp__.py @@ -21,11 +21,11 @@ { - 'name': 'Timesheets Validation', + 'name': 'Timesheets', 'version': '1.0', 'category': 'Human Resources', "sequence": 16, - "summary": "Attendances, Activities, Timing", + "summary": "Timesheets, Attendances, Activities", 'description': """ This module helps you to easily encode and validate timesheet and attendances within the same view. =================================================================================================== diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_data.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_data.xml index e66694223d2..c5839f886d3 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_data.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_data.xml @@ -1,6 +1,15 @@ + + + + + Module Timesheets Validation has been installed + From the top menu "Human Resources", encode and validate + timesheets and attendances. + + diff --git a/addons/hr_timesheet_sheet/i18n/pt_BR.po b/addons/hr_timesheet_sheet/i18n/pt_BR.po index 8ca428bafc5..b37c1f5577b 100644 --- a/addons/hr_timesheet_sheet/i18n/pt_BR.po +++ b/addons/hr_timesheet_sheet/i18n/pt_BR.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: pt_BR\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-02-08 01:37+0100\n" -"PO-Revision-Date: 2012-02-19 15:16+0000\n" +"PO-Revision-Date: 2012-07-28 22:13+0000\n" "Last-Translator: Joe Pimentel \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-07-14 06:05+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-29 04:37+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: hr_timesheet_sheet #: field:hr.analytic.timesheet,sheet_id:0 field:hr.attendance,sheet_id:0 @@ -746,7 +746,7 @@ msgstr "Dia" #: model:ir.actions.server,name:hr_timesheet_sheet.ir_actions_server_timsheet_sheet #: model:ir.ui.menu,name:hr_timesheet_sheet.menu_act_hr_timesheet_sheet_form_my_current msgid "My Current Timesheet" -msgstr "" +msgstr "Minha Planilha de Horas Atual" #. module: hr_timesheet_sheet #: view:timesheet.report:0 selection:timesheet.report,state:0 diff --git a/addons/import_google/i18n/pt_BR.po b/addons/import_google/i18n/pt_BR.po index 56654d0f9e7..e130a50e59a 100644 --- a/addons/import_google/i18n/pt_BR.po +++ b/addons/import_google/i18n/pt_BR.po @@ -8,19 +8,19 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2012-02-08 00:36+0000\n" -"PO-Revision-Date: 2012-07-16 20:10+0000\n" -"Last-Translator: Rafael \n" +"PO-Revision-Date: 2012-07-28 21:30+0000\n" +"Last-Translator: Fábio Martinelli \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-07-17 04:49+0000\n" -"X-Generator: Launchpad (build 15627)\n" +"X-Launchpad-Export-Date: 2012-07-29 04:38+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: import_google #: help:synchronize.google.import,group_name:0 msgid "Choose which group to import, By default it takes all." -msgstr "" +msgstr "Escolha qual grupo importar, por padrão todos são importados." #. module: import_google #: view:synchronize.google.import:0 @@ -30,7 +30,7 @@ msgstr "Importar o Calendário de Eventos da Google" #. module: import_google #: view:synchronize.google.import:0 msgid "_Import Events" -msgstr "" +msgstr "_Importar Eventos" #. module: import_google #: code:addons/import_google/wizard/import_google_data.py:71 @@ -39,6 +39,8 @@ msgid "" "No Google Username or password Defined for user.\n" "Please define in user view" msgstr "" +"Não foi definido nome de usuário ou senha para o usuário Google.\n" +"Por favor definir na visão de usuário" #. module: import_google #: code:addons/import_google/wizard/import_google_data.py:127 @@ -47,6 +49,8 @@ msgid "" "Invalid login detail !\n" " Specify Username/Password." msgstr "" +"Detalhes de acesso inválidos!\n" +" Especificar Usuário/Senha." #. module: import_google #: field:synchronize.google.import,supplier:0 @@ -66,7 +70,7 @@ msgstr "Nome do Grupo" #. module: import_google #: model:ir.model,name:import_google.model_crm_case_categ msgid "Category of Case" -msgstr "" +msgstr "Categoria de Caso" #. module: import_google #: model:ir.actions.act_window,name:import_google.act_google_login_contact_form @@ -77,12 +81,12 @@ msgstr "Importar Contatos do Google" #. module: import_google #: view:google.import.message:0 msgid "Import Google Data" -msgstr "" +msgstr "Importar Dados do Google" #. module: import_google #: view:crm.meeting:0 msgid "Meeting Type" -msgstr "" +msgstr "Tipo de Reunião" #. module: import_google #: code:addons/import_google/wizard/import_google.py:38 @@ -92,22 +96,24 @@ msgid "" "Please install gdata-python-client from http://code.google.com/p/gdata-" "python-client/downloads/list" msgstr "" +"Por favor instale gdata-python-client de http://code.google.com/p/gdata-" +"python-client/downloads/list" #. module: import_google #: model:ir.model,name:import_google.model_google_login msgid "Google Contact" -msgstr "" +msgstr "Contatos do Google" #. module: import_google #: view:synchronize.google.import:0 msgid "Import contacts from a google account" -msgstr "" +msgstr "Importar contatos de uma conta Google" #. module: import_google #: code:addons/import_google/wizard/import_google_data.py:133 #, python-format msgid "Please specify correct user and password !" -msgstr "" +msgstr "Por favor especificar usuário e senha corretos !" #. module: import_google #: field:synchronize.google.import,customer:0 @@ -117,7 +123,7 @@ msgstr "Cliente" #. module: import_google #: view:synchronize.google.import:0 msgid "_Cancel" -msgstr "" +msgstr "_Cancelar" #. module: import_google #: model:ir.model,name:import_google.model_synchronize_google_import @@ -127,7 +133,7 @@ msgstr "sincronizar.importação.google" #. module: import_google #: view:synchronize.google.import:0 msgid "_Import Contacts" -msgstr "" +msgstr "_Importar Contatos" #. module: import_google #: model:ir.actions.act_window,name:import_google.act_google_login_form @@ -139,7 +145,7 @@ msgstr "Importar Calendário do Google" #: code:addons/import_google/wizard/import_google_data.py:50 #, python-format msgid "Import google" -msgstr "" +msgstr "Importar do Google" #. module: import_google #: code:addons/import_google/wizard/import_google_data.py:127 @@ -169,12 +175,12 @@ msgstr "_Ok" #: code:addons/import_google/wizard/import_google_data.py:28 #, python-format msgid "Google Contacts Import Error!" -msgstr "" +msgstr "Erro de importação dos contatos Google!" #. module: import_google #: model:ir.model,name:import_google.model_google_import_message msgid "Import Message" -msgstr "" +msgstr "Importar Mensagem" #. module: import_google #: field:synchronize.google.import,calendar_name:0 @@ -184,12 +190,12 @@ msgstr "Nome do Calendário" #. module: import_google #: help:synchronize.google.import,supplier:0 msgid "Check this box to set newly created partner as Supplier." -msgstr "" +msgstr "Selecione para marcar este parceiro recém criado como Fornecedor." #. module: import_google #: selection:synchronize.google.import,create_partner:0 msgid "Import only address" -msgstr "" +msgstr "Importar somente endereços" #. module: import_google #: field:crm.case.categ,user_id:0 @@ -199,7 +205,7 @@ msgstr "Usuário" #. module: import_google #: view:synchronize.google.import:0 msgid "Partner Status for this Group:" -msgstr "" +msgstr "Situação do Parceiro para este grupo." #. module: import_google #: field:google.import.message,name:0 @@ -209,9 +215,12 @@ msgstr "Mensagem" #. module: import_google #: selection:synchronize.google.import,create_partner:0 msgid "Create partner for each contact" -msgstr "" +msgstr "Criar um parceiro para cada contato" #. module: import_google #: help:synchronize.google.import,customer:0 msgid "Check this box to set newly created partner as Customer." -msgstr "" +msgstr "Selecione para marcar o parceiro recém criado como Cliente" + +#~ msgid "Partner status for this group:" +#~ msgstr "Situação do Parceiro para este grupo" diff --git a/addons/l10n_ar/__init__.py b/addons/l10n_ar/__init__.py new file mode 100644 index 00000000000..92da5dbf966 --- /dev/null +++ b/addons/l10n_ar/__init__.py @@ -0,0 +1,32 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (c) 2011 Cubic ERP - Teradata SAC. (http://cubicerp.com). +# +# 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. +# +############################################################################## + + + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/l10n_ar/__openerp__.py b/addons/l10n_ar/__openerp__.py new file mode 100644 index 00000000000..8971ce94b22 --- /dev/null +++ b/addons/l10n_ar/__openerp__.py @@ -0,0 +1,51 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2011 Cubic ERP - Teradata SAC (). +# +# 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 . +# +############################################################################## +{ + "name": "Argentina Localization Chart Account", + "version": "1.0", + "description": """ +Argentinian accounting chart and tax localization. + +Plan contable argentino e impuestos de acuerdo a disposiciones vigentes + + """, + "author": ["Cubic ERP"], + "website": "http://cubicERP.com", + "category": "Localization/Account Charts", + "depends": [ + "account_chart", + ], + "data":[ + "account_tax_code.xml", + "l10n_ar_chart.xml", + "account_tax.xml", + "l10n_ar_wizard.xml", + ], + "demo_xml": [ + ], + "update_xml": [ + ], + "active": False, + "installable": True, + "certificate" : "", + 'images': ['images/config_chart_l10n_ar.jpeg','images/l10n_ar_chart.jpeg'], +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/l10n_ar/account_tax.xml b/addons/l10n_ar/account_tax.xml new file mode 100644 index 00000000000..8c8c648f0af --- /dev/null +++ b/addons/l10n_ar/account_tax.xml @@ -0,0 +1,101 @@ + + + + + + + IVA 21% Venta + 0.210000 + percent + sale + + + + + + + + + + IVA 21% Compra + 0.210000 + percent + purchase + + + + + + + + + + + IVA 27% Venta + 0.270000 + percent + sale + + + + + + + + + + IVA 27% Compra + 0.270000 + percent + purchase + + + + + + + + + + + IVA 10.5% Venta + 0.105000 + percent + sale + + + + + + + + + + IVA 10.5% Compra + 0.105000 + percent + purchase + + + + + + + + + + + Percepción IVA 2% + 0.02000 + percent + purchase + + + + + + + + + + diff --git a/addons/l10n_ar/account_tax_code.xml b/addons/l10n_ar/account_tax_code.xml new file mode 100644 index 00000000000..806a358f7cc --- /dev/null +++ b/addons/l10n_ar/account_tax_code.xml @@ -0,0 +1,106 @@ + + + + + + Argentina Impuestos + + + Base Imponible + + + + Base Imponible - Ventas + + + + Ventas Gravadas con IVA + + + + Ventas NO Gravadas (Exoneradas) + + + + Ventas Gravadas Fuera de Ámbito + + + + Base Imponible - Compras + + + + Compras Gravadas con IVA + + + + Compras NO Gravadas (Exoneradas) + + + + Compras Gravadas Fuera de Ámbito + + + + + Impuesto General a las Ventas (IVA) Total a Pagar + + + + Impuesto Pagado + + + + Impuesto Pagado IVA + + -1 + + + Impuesto Pagado de Exonerados al IVA + + -1 + + + Impuesto Pagado Fuera de Ámbito + + -1 + + + Impuesto Cobrado + + + + Impuesto Cobrado IVA + + + + Impuesto Cobrado de Exonerados al IVA + + + + Impuesto Cobrado Fuera de Ámbito + + + + + Impuesto Nacionales a Pagar + + + + Impuesto a las Ganancias a Pagar + + + + Impuesto a los Bienes Personales a Pagar + + + + Impuesto a la Ganancia Mínima Presunta a Pagar + + + + Monotributo a Pagar + + + + diff --git a/addons/l10n_ar/i18n/es.po b/addons/l10n_ar/i18n/es.po new file mode 100644 index 00000000000..097598864fe --- /dev/null +++ b/addons/l10n_ar/i18n/es.po @@ -0,0 +1,72 @@ +# Spanish translation for openobject-addons +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-01-11 11:15+0000\n" +"PO-Revision-Date: 2011-01-10 13:46+0000\n" +"Last-Translator: Yury Tello \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-01-15 05:56+0000\n" +"X-Generator: Launchpad (build 12177)\n" + +#. module: l10n_ar +#: model:ir.module.module,description:l10n_ar.module_meta_information +msgid "" +"\n" +" Argentinian Accounting : chart of Account\n" +" " +msgstr "" +"\n" +" Contabilidad Peruana : Plan de cuentas\n" +" " + +#. module: l10n_ar +#: model:ir.module.module,shortdesc:l10n_ar.module_meta_information +msgid "Argentinian Chart of Account" +msgstr "Plan de cuentas de Argentina" + +#. module: l10n_ar +#: model:ir.actions.todo,note:l10n_ar.config_call_account_template_in_minimal +msgid "" +"Generate Chart of Accounts from a Chart Template. You will be asked to pass " +"the name of the company, the chart template to follow, the no. of digits to " +"generate the code for your accounts and Bank account, currency to create " +"Journals. Thus,the pure copy of chart Template is generated.\n" +"\tThis is the same wizard that runs from Financial " +"Management/Configuration/Financial Accounting/Financial Accounts/Generate " +"Chart of Accounts from a Chart Template." +msgstr "" +"Generar el plan contable a partir de una plantilla de plan contable. Se le " +"pedirá el nombre de la compañia, la plantilla de plan contable a utilizar, " +"el número de dígitos para generar el código de las cuentas y de la cuenta " +"bancaria, la moneda para crear los diarios. Así pues, se genere una copia " +"exacta de la plantilla de plan contable.\n" +"\tEste es el mismo asistente que se ejecuta desde Contabilidad y finanzas / " +"Configuración / Contabilidad financiera / Cuentas financieras / Generar el " +"plan contable a partir de una plantilla de plan contable." + +#~ msgid "Liability" +#~ msgstr "Pasivo" + +#~ msgid "Asset" +#~ msgstr "Activo" + +#~ msgid "Closed" +#~ msgstr "Cerrado" + +#~ msgid "Income" +#~ msgstr "Ingreso" + +#~ msgid "Expense" +#~ msgstr "Gasto" + +#~ msgid "View" +#~ msgstr "Vista" diff --git a/addons/l10n_ar/i18n/es_AR.po b/addons/l10n_ar/i18n/es_AR.po new file mode 100644 index 00000000000..2260a43cf74 --- /dev/null +++ b/addons/l10n_ar/i18n/es_AR.po @@ -0,0 +1,54 @@ +# Spanish (Paraguay) translation for openobject-addons +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-01-11 11:15+0000\n" +"PO-Revision-Date: 2011-03-21 16:23+0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: Spanish (Paraguay) \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-03-22 04:36+0000\n" +"X-Generator: Launchpad (build 12559)\n" + +#. module: l10n_ar +#: model:ir.module.module,description:l10n_ar.module_meta_information +msgid "" +"\n" +" Argentinian Accounting : chart of Account\n" +" " +msgstr "" +"\n" +" Contabilidad Argentina : Plan de cuentas\n" +" " + +#. module: l10n_ar +#: model:ir.module.module,shortdesc:l10n_ar.module_meta_information +msgid "Argentinian Chart of Account" +msgstr "Plan de cuentas de la Argentina" + +#. module: l10n_ar +#: model:ir.actions.todo,note:l10n_ar.config_call_account_template_in_minimal +msgid "" +"Generate Chart of Accounts from a Chart Template. You will be asked to pass " +"the name of the company, the chart template to follow, the no. of digits to " +"generate the code for your accounts and Bank account, currency to create " +"Journals. Thus,the pure copy of chart Template is generated.\n" +"\tThis is the same wizard that runs from Financial " +"Management/Configuration/Financial Accounting/Financial Accounts/Generate " +"Chart of Accounts from a Chart Template." +msgstr "" +"Generar el plan contable a partir de una plantilla de plan contable. Se le " +"pedirá el nombre de la compañía, la plantilla de plan contable a utilizar, " +"el número de dígitos para generar el código de las cuentas y de la cuenta " +"bancaria, la moneda para crear los diarios. Así pues, se genere una copia " +"exacta de la plantilla de plan contable.\n" +"\tEste es el mismo asistente que se ejecuta desde Contabilidad y finanzas / " +"Configuración / Contabilidad financiera / Cuentas financieras / Generar el " +"plan contable a partir de una plantilla de plan contable." diff --git a/addons/l10n_ar/i18n/l10n_ar.pot b/addons/l10n_ar/i18n/l10n_ar.pot new file mode 100644 index 00000000000..8d117342eea --- /dev/null +++ b/addons/l10n_ar/i18n/l10n_ar.pot @@ -0,0 +1,35 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * l10n_ar +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.1.0-rc1\n" +"Report-Msgid-Bugs-To: soporte@cubicerp.com\n" +"POT-Creation-Date: 2011-01-11 11:15:31+0000\n" +"PO-Revision-Date: 2011-01-11 11:15:31+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: l10n_ar +#: model:ir.module.module,description:l10n_ar.module_meta_information +msgid "\n" +" Argentinian Accounting : chart of Account\n" +" " +msgstr "" + +#. module: l10n_ar +#: model:ir.module.module,shortdesc:l10n_ar.module_meta_information +msgid "Argentinian Chart of Account" +msgstr "" + +#. module: l10n_ar +#: model:ir.actions.todo,note:l10n_ar.config_call_account_template_in_minimal +msgid "Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated.\n" +" This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template." +msgstr "" + diff --git a/addons/l10n_ar/l10n_ar_chart.xml b/addons/l10n_ar/l10n_ar_chart.xml new file mode 100644 index 00000000000..062697d5aa6 --- /dev/null +++ b/addons/l10n_ar/l10n_ar_chart.xml @@ -0,0 +1,260 @@ + + + + + + + noneviewVistanone + + balanceBG_ACC_10Caja y Bancosasset + detailBG_ACC_20Inversionesasset + unreconciledBG_ACC_30Créditos por Ventasasset + unreconciledBG_ACC_50Otros Créditosasset + balanceBG_ACC_60Bienes de Cambioasset + + detailBG_ACN_10Otros Créditos No Corrientesasset + detailBG_ACN_40Inversiones Permanentesasset + balanceBG_ACN_50Bienes de Usoasset + + unreconciledBG_PAC_10Deudas Bancarias y Financierasliability + unreconciledBG_PAC_20Cuentas por Pagarliability + unreconciledBG_PAC_35Remuneraciones y Cargas Socialesliability + unreconciledBG_PAC_40Cargas Fiscalesliability + unreconciledBG_PAC_45Otros Pasivosliability + + unreconciledBG_PAN_10Deudas Bancarias y Financieras a Largo Plazoliability + unreconciledBG_PAN_20Otros Pasivos a Largo Plazoliability + unreconciledBG_PAN_40Previsionesliability + + balanceBG_PTN_10Patrimonio Netoliability + + noneEGP_FU_010Ventas Netas de Bienes y Serviciosincome + noneEGP_FU_030Costo Mercaderías y Servicios Vendidosexpense + noneEGP_FU_040Gastos de Administraciónexpense + noneEGP_FU_050Gastos de Comercializaciónexpense + unreconciledEGP_FU_060Ingresos Financieros y por tenenciaincome + noneEGP_FU_070Gastos Financieros y por tenenciaexpense + noneEGP_FU_080Otros Ingresosincome + noneEGP_FU_090Otros Gastosexpense + noneEGP_FU_120Impuesto a las Gananciasexpense + noneEGP_FU_160Ganancia (Pérdida) Neta del Ejercicioincome + + noneEGP_NA_010Compras de Bienes de Usonone + + noneORDCuentas de Ordennone + + noneNCLASIFICADOCuentas No Clasificadasnone + + + + + Argentina + pcge + + view + + + Cuentas Patrimoniales + .1.BG + + + view + + + ACTIVO1view + Caja y Bancos11view + Caja y Bancos - Caja111view + Caja y bancos - Caja / efectivo ARS111.001liquidity + Caja y Bancos - Moneda Extranjera112view + Caja y bancos - Caja / efectivo USD112.001liquidity + Caja y Bancos - Fondos fijos113view + Caja y ...- Fondos fijos / caja chica 01 ARS113.001liquidity + Caja y Bancos - Cuentas Corrientes114view + Caja y Bancos.../ BCO. CTA CTE ARS114.001liquidity + Caja y bancos - Valores a Depositar 115other + Caja y bancos - Recaudaciones a Depositar 116other + Créditos por Ventas12view + Créditos por Ventas / Deudores por Ventas121receivable1 + Créditos por Ventas / Deudores Morosos122receivable1 + Créditos por Ventas / Deudores en Gestión Judicial123receivable + Créditos por Ventas / Deudores Varios124receivable + Créditos por Ventas / (-) Previsión para Ds. Incobrables125receivable1 + Otros Créditos13view + Otros Créditos / Préstamos otorgados131receivable + Otros Créditos / Anticipos a Proveedores132receivable + Otros Créditos / Anticipo de Impuestos133receivable + Otros Créditos / Anticipo al Personal134receivable + Otros Créditos / Alquileres Pagados por Adelantado135receivable + Otros Créditos / Intereses Pagados por Adelantado136receivable + Otros Créditos / Accionistas137receivable + Otros Créditos / (-) Previsión para Descuentos138receivable + Otros Créditos / (-) Intereses (+) a Devengar139receivable + Inversiones14view + Inversiones / Acciones Transitorias141other + Inversiones / Acciones Permanentes142other + Inversiones / Títulos Públicos143other + Inversiones / (-) Previsión para Devalorización de Acciones144other + Bienes de Cambio15view + Bienes de Cambio - Mercaderías151view + Bienes de Cambio - Mercaderías / Categoria de productos 01151.01other + Bienes de Cambio - Mercaderías en Tránsito152other + Materias primas153other + Productos en Curso de Elaboración154other + Productos Elaborados155other + Materiales Varios 156other + (-) Previsión para Desvalorización de Bienes de Cambio157other + Bienes de Uso16view + Bienes de Uso / Inmuebles161other + Bienes de Uso / Maquinaria162other + Bienes de Uso / Equipos163other + Bienes de Uso / Rodados164other + Bienes de Uso / (-) Depreciación Acumulada165other + Bienes Inmateriales17view + Bienes Inmateriales / Marcas de Fábrica171other + Bienes Inmateriales / Concesiones y Franquicias172other + Bienes Inmateriales / Patentes de Invención173other + Bienes Inmateriales / (-) Amortización Acumulada174other + PASIVO2view + Deudas Comerciales21view + Deudas Comerciales / Proveedores211payable1 + Deudas Comerciales / Anticipos de Clientes212payable1 + Deudas Comerciales / (-) Intereses a Devengar por Compras al Crédito213payable1 + Deudas Bancarias y Financieras22view + Deudas Bancarias y Financieras / Adelantos en Cuenta Corriente221payable + Deudas Bancarias y Financieras / Prestamos222payable + Deudas Bancarias y Financieras / Obligaciones a Pagar223payable + Deudas Bancarias y Financieras / Intereses a Pagar224payable + Deudas Bancarias y Financieras / Debentures Emitidos225payable + Deudas Fiscales23view + Deudas Fiscales / IVA a Pagar231other + Deudas Fiscales / Impuesto a los Débitos y Créditos Bancarios a Pagar232other + Deudas Fiscales / Impuesto a las Ganancias a Pagar233other + Deudas Fiscales / Impuesto sobre los Bienes Personales a Pagar234other + Deudas Fiscales / Impuesto a la Ganancia Mínima Presunta a Pagar235other + Deudas Fiscales / Monotributo a Pagar236other + Deudas Sociales24view + Deudas Sociales / Sueldos a Pagar241payable + Deudas Sociales / Cargas Sociales a Pagar242payable + Deudas Sociales / Provisión para Sueldo Anual Complementario243payable + Deudas Sociales / Retenciones a Depositar244payable + Otras Deudas25view + Otras Deudas / Acreedores Varios251payable + Otras Deudas / Dividendos a Pagar252payable + Otras Deudas / Cobros por Adelantado253payable + Otras Deudas / Honorarios Directores y Síndicos a Pagar254payable + Previsiones26view + Previsiones / Previsión Indemnización por Despidos261payable + Previsiones / Previsión para juicios Pendientes262payable + Previsiones / Previsión para Garantías por Service263payable + PATRIMONIO NETO3view + Capital Social31view + Capital social / Capital Suscripto311other + Capital social / Acciones en Circulación312other + Capital social / Dividendos a Distribuir en Acciones313other + Capital social / (-) Descuento de Emisión de Acciones314other + Aportes No Capitalizados32view + Aportes No Capitalizados / Primas de Emsión321other + Aportes No Capitalizados / Aportes Irrevocables Futura Suscripción de Acciones322other + Ajustes al Patrimonio33view + Ajustes al Patrimonio / Revaluo Técnico de Bienes de Uso331other + Ganancias Reservadas34view + Reserva Legal341other + Reserva Estatutaria342other + Reserva Facultativa343other + Reserva para Renovación de Bienes de Uso344other + Resultados No Asignados35view + Resultados Acumulados351other + Resultados Acumulados del Ejercicio Anterior352other + Ganancias y Pérdidas del Ejercicio353other + Resultado del Ejercicio354other + + + Cuentas de Resultado + .2.GP + + + view + + + RESULTADOS POSITIVOS4view + Resultados Positivos Ordinarios41view + Resultados Positivos Ordinarios411view + Ventas - Categoria de productos 01411.01other + Intereses gananados, obtenidos, percibidos412other + Alquileres gananados, obtenidos, percibidos413other + Comisiones gananados, obtenidos, percibidos414other + Descuentos gananados, obtenidos, percibidos415other + Renta de Títulos Públicos416other + Honorarios gananados, obtenidos, percibidos417other + Ganancia Venta de Acciones418other + Resultados Positivos Extraordinarios42view + Recupero de Rezagos421other + Recupero de Deudores Incobrables422other + Ganancia Venta de Bienes de Uso423other + Donaciones obtenidas, ganandas, percibidas424other + Ganancia Venta Inversiones Permanentes425other + RESULTADOS NEGATIVOS5view + Resultados Negativos Ordinarios51view + Costo de Mercaderías Vendidas511view + Costo de Mercaderías Vendidas - Categoria de productos 01511.01other + Gastos en Depreciación de Bienes de Uso512other + Gastos en Amortización513other + Gastos en Sueldos y Jormales514other + Gastos en Cargas Sociales515other + Gastos en Impuestos516other + Gastos Bancarios517other + Gastos en Servicios Públicos518other + Gastos de Publicidad y Propaganda519other + Resultados Negativos Extraordinarios52view + Gastos en Siniestros521other + Donaciones Cedidas, Otorgadas522other + Pérdida Venta Bienes de Uso523other + + + Cuentas de Movimiento + .3.CC + + + view + + + Compras61view + Compras - Categoria de productos 0161.01other + Costos de Producción62other + Gastos de Administración63other + Gastos de Comercialización64other + + + Cuentas de Orden + .4.CO + + + view + + + CUENTAS DE ORDEN DEUDORAS71view + Mercaderias Recibidas en Consignación711other + Depósito de Valores Recibos en Garantía712other + Garantias Otorgadas713other + Documentos Descontados714other + Documentos Endosados715other + CUENTAS DE ORDEN ACREEDORAS72view + Comitente por Mercaderias Recibidas en Consignación721other + Acreedor por Garantías Otorgadas722other + Acreedor por Documentos Descontados723other + + + Argentina - Plan de Cuentas + + + + + + + + + + + + + diff --git a/addons/l10n_ar/l10n_ar_wizard.xml b/addons/l10n_ar/l10n_ar_wizard.xml new file mode 100644 index 00000000000..1180acb46e8 --- /dev/null +++ b/addons/l10n_ar/l10n_ar_wizard.xml @@ -0,0 +1,15 @@ + + + + + + Generate Chart of Accounts from a Chart Template + Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated. + This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template. + + + automatic + + + + diff --git a/addons/l10n_ca/__openerp__.py b/addons/l10n_ca/__openerp__.py index 800ca7937eb..bd5fe4e6ea0 100644 --- a/addons/l10n_ca/__openerp__.py +++ b/addons/l10n_ca/__openerp__.py @@ -33,13 +33,11 @@ Canadian accounting charts and localizations. "depends" : ['base', 'account', 'base_iban', 'base_vat', 'account_chart'], "init_xml" : [], "update_xml" : [ - 'account_types_en.xml', 'account_chart_en.xml', 'account_tax_code_en.xml', 'account_chart_template_en.xml', 'account_tax_en.xml', 'fiscal_templates_en.xml', - 'account_types_fr.xml', 'account_chart_fr.xml', 'account_tax_code_fr.xml', 'account_chart_template_fr.xml', diff --git a/addons/l10n_ca/account_chart_en.xml b/addons/l10n_ca/account_chart_en.xml index 103512b40b2..0d67e081d08 100644 --- a/addons/l10n_ca/account_chart_en.xml +++ b/addons/l10n_ca/account_chart_en.xml @@ -8,7 +8,7 @@ Account Chart CA EN view - + @@ -17,7 +17,7 @@ 1 view - + ASSETS @@ -25,7 +25,7 @@ 11 view - + CURRENT ASSETS @@ -33,7 +33,7 @@ 111 view - + CASH @@ -41,7 +41,7 @@ 1111 liquidity - + Checking Account @@ -49,7 +49,7 @@ 112 view - + TREASURY OR TREASURY EQUIVALENTS @@ -57,7 +57,7 @@ 113 view - + CERTIFICATES OF DEPOSITS @@ -65,7 +65,7 @@ 114 view - + STOCKS @@ -73,7 +73,7 @@ 115 view - + ACCOUNTS RECEIVABLES @@ -81,7 +81,7 @@ 1151 receivable - + Customers Account @@ -90,7 +90,7 @@ 1152 view - + ALLOWANCE FOR DOUBTFUL ACCOUNTS @@ -98,7 +98,7 @@ 116 view - + PREPAID EXPENSES @@ -106,7 +106,7 @@ 117 view - + INVESTMENTS HELD FOR TRADING @@ -114,15 +114,15 @@ 118 view - + TAXES RECEIVABLES 1181 - receivable - + other + GST receivable @@ -130,8 +130,8 @@ 1182 - receivable - + other + PST/QST receivable @@ -139,8 +139,8 @@ 1183 - receivable - + other + HST receivable @@ -149,7 +149,7 @@ 15 view - + NON-CURRENT ASSETS @@ -157,7 +157,7 @@ 151 view - + INVESTMENTS AVAILABLE FOR SALE @@ -165,7 +165,7 @@ 152 view - + TANGIBLE ASSETS @@ -173,7 +173,7 @@ 1527 view - + ACCUMULATED DEPRECIATIONS @@ -181,7 +181,7 @@ 153 view - + INTANGIBLE ASSETS @@ -189,7 +189,7 @@ 1531 view - + PATENTS, TRADEMARKS AND COPYRIGHTS @@ -199,7 +199,7 @@ 2 view - + LIABILITIES @@ -207,7 +207,7 @@ 21 view - + CURRENT LIABILITIES @@ -215,7 +215,7 @@ 211 view - + ACCOUNTS PAYABLES @@ -223,7 +223,7 @@ 2111 payable - + Suppliers Account @@ -232,15 +232,15 @@ 212 view - + TAXES PAYABLES 2121 - payable - + other + GST to pay @@ -248,8 +248,8 @@ 2122 - payable - + other + PST/QST to pay @@ -257,8 +257,8 @@ 2123 - payable - + other + HST to pay @@ -267,7 +267,7 @@ 213 view - + CURRENT FINANCIAL DEBTS @@ -275,7 +275,7 @@ 25 view - + NON-CURRENT LIABILITIES @@ -283,7 +283,7 @@ 251 view - + NON-CURRENT FINANCIAL DEBTS @@ -291,7 +291,7 @@ 252 view - + PROVISIONS FOR PENSIONS AND OTHER POST-EMPLOYMENT ADVANTAGES @@ -299,7 +299,7 @@ 253 view - + DEFERRED TAXES @@ -307,7 +307,7 @@ 259 view - + OTHER NON-CURRENT LIABILITIES @@ -317,7 +317,7 @@ 3 view - + EQUITY @@ -325,7 +325,7 @@ 31 view - + SHARE CAPITAL @@ -333,7 +333,7 @@ 32 view - + PREMIUMS @@ -341,7 +341,7 @@ 33 view - + RETAINED EARNINGS @@ -349,7 +349,7 @@ 34 view - + DIVIDENDS @@ -357,7 +357,7 @@ 35 view - + TRANSLATION ADJUSTMENTS @@ -365,7 +365,7 @@ 36 view - + CONTRIBUTED SURPLUS @@ -375,7 +375,7 @@ 4 view - + INCOMES @@ -383,7 +383,7 @@ 41 view - + OPERATING INCOMES @@ -391,7 +391,7 @@ 411 other - + Inside Sales @@ -399,7 +399,7 @@ 412 other - + Harmonized Provinces Sales @@ -407,7 +407,7 @@ 413 other - + Non-Harmonized Provinces Sales @@ -415,7 +415,7 @@ 414 other - + International Sales @@ -423,7 +423,7 @@ 419 view - + OTHER OPERATING INCOMES @@ -431,7 +431,7 @@ 42 view - + NON-OPERATING INCOMES @@ -439,7 +439,7 @@ 421 view - + INTERESTS @@ -447,7 +447,7 @@ 429 view - + OTHER NON-OPERATING INCOMES @@ -457,7 +457,7 @@ 5 view - + EXPENSES @@ -465,7 +465,7 @@ 51 view - + OPERATING EXPENSES @@ -473,7 +473,7 @@ 511 view - + COST OF GOODS SOLD @@ -481,7 +481,7 @@ 5111 other - + Inside Purchases @@ -489,7 +489,7 @@ 5112 other - + Purchases in harmonized provinces @@ -497,7 +497,7 @@ 5113 other - + Purchases in non-harmonized provinces @@ -505,7 +505,7 @@ 5114 other - + International Purchases @@ -513,7 +513,7 @@ 512 view - + LABOUR EXPENSES @@ -521,7 +521,7 @@ 5121 other - + Salaries, wages and commissions @@ -529,7 +529,7 @@ 5122 other - + Holidays @@ -537,7 +537,7 @@ 5123 other - + Employment Insurance @@ -545,7 +545,7 @@ 5124 other - + Health Services Fund @@ -553,7 +553,7 @@ 5125 other - + Annuities @@ -561,7 +561,7 @@ 5126 other - + Parental Insurance @@ -569,7 +569,7 @@ 5127 other - + Labour Health and Safety @@ -577,7 +577,7 @@ 5128 other - + Labour Standards @@ -585,7 +585,7 @@ 513 view - + SALES EXPENSES @@ -593,7 +593,7 @@ 514 view - + GENERAL EXPENSES @@ -601,7 +601,7 @@ 515 view - + RESEARCH AND DEVELOPMENT EXPENSES @@ -609,7 +609,7 @@ 519 view - + OTHER OPERATING EXPENSES @@ -617,7 +617,7 @@ 55 view - + NON-OPERATING EXPENSES @@ -625,7 +625,7 @@ 551 view - + INTEREST EXPENSES @@ -633,7 +633,7 @@ 559 view - + OTHER NON-OPERATING EXPENSES diff --git a/addons/l10n_ca/account_chart_fr.xml b/addons/l10n_ca/account_chart_fr.xml index fd22ba81b2e..dbf4f9aad7c 100644 --- a/addons/l10n_ca/account_chart_fr.xml +++ b/addons/l10n_ca/account_chart_fr.xml @@ -6,7 +6,7 @@ 0 view - + Account Chart CA FR @@ -16,7 +16,7 @@ 1 view - + ACTIF @@ -24,7 +24,7 @@ 11 view - + ACTIFS COURANTS @@ -32,7 +32,7 @@ 111 view - + ENCAISSE @@ -40,7 +40,7 @@ 1111 liquidity - + Compte chèque @@ -48,7 +48,7 @@ 1112 liquidity - + Petite caisse @@ -56,7 +56,7 @@ 112 view - + TRÉSORERIE OU ÉQUIVALENTS DE TRÉSORERIE @@ -64,7 +64,7 @@ 113 view - + CERTIFICATS DE DÉPÔTS @@ -72,7 +72,7 @@ 114 view - + STOCKS @@ -80,7 +80,7 @@ 115 view - + COMPTES CLIENTS @@ -88,7 +88,7 @@ 1151 receivable - + Comptes clients @@ -97,7 +97,7 @@ 1152 view - + PROVISION POUR CRÉANCES DOUTEUSES @@ -105,7 +105,7 @@ 116 view - + FRAIS PAYÉS D'AVANCE @@ -113,7 +113,7 @@ 117 view - + PLACEMENTS DÉTENUS À DES FINS DE TRANSACTION @@ -121,15 +121,15 @@ 118 view - + IMPÔTS À RECEVOIR 1181 - receivable - + other + TPS à recevoir @@ -137,8 +137,8 @@ 1182 - receivable - + other + TVP/TVQ à recevoir @@ -146,8 +146,8 @@ 1183 - receivable - + other + TVH à recevoir @@ -156,7 +156,7 @@ 15 view - + ACTIFS NON-COURANTS @@ -164,7 +164,7 @@ 151 view - + PLACEMENTS DISPONIBLES À LA VENTE @@ -172,7 +172,7 @@ 152 view - + IMMOBILISATIONS CORPORELLES @@ -180,7 +180,7 @@ 1527 view - + AMORTISSEMENTS CUMULÉS @@ -188,7 +188,7 @@ 153 view - + IMMOBILISATIONS INCORPORELLES @@ -196,7 +196,7 @@ 1531 view - + BREVETS, MARQUES DE COMMERCE ET DROITS D'AUTEURS @@ -206,7 +206,7 @@ 2 view - + PASSIF @@ -214,7 +214,7 @@ 21 view - + PASSIFS COURANTS @@ -222,7 +222,7 @@ 211 view - + FOURNISSEURS ET COMPTES RATTACHÉS @@ -230,7 +230,7 @@ 2111 payable - + Comptes fournisseurs @@ -239,7 +239,7 @@ 212 view - + AUTRES COMPTES CRÉDITEURS @@ -247,15 +247,15 @@ 213 view - + IMPÔTS À PAYER 2131 - payable - + other + TPS à payer @@ -263,8 +263,8 @@ 2132 - payable - + other + TVP/TVQ à payer @@ -272,8 +272,8 @@ 2133 - payable - + other + TVH à payer @@ -282,7 +282,7 @@ 214 view - + DETTES FINANCIÈRES COURANTES @@ -290,7 +290,7 @@ 215 view - + PASSIFS LIÉS AUX ACTIFS DÉTENUS EN VUE DE LEUR CESSION @@ -298,7 +298,7 @@ 25 view - + PASSIFS NON-COURANTS @@ -306,7 +306,7 @@ 251 view - + DETTES FINANCIÈRES NON-COURANTES @@ -314,7 +314,7 @@ 252 view - + PROVISIONS POUR RETRAITES ET AUTRES AVANTAGES POSTÉRIEURS À L'EMPLOI @@ -322,7 +322,7 @@ 253 view - + IMPÔTS DIFFÉRÉS @@ -330,7 +330,7 @@ 254 view - + AUTRES PASSIFS NON-COURANTS @@ -340,7 +340,7 @@ 3 view - + CAPITAUX PROPRES @@ -348,7 +348,7 @@ 31 view - + CAPITAL-ACTIONS @@ -356,7 +356,7 @@ 32 view - + PRIMES @@ -364,7 +364,7 @@ 33 view - + BÉNÉFICES NON RÉPARTIS @@ -372,7 +372,7 @@ 34 view - + DIVIDENDES @@ -380,7 +380,7 @@ 35 view - + ÉCARTS DE CONVERSION @@ -388,7 +388,7 @@ 36 view - + SURPLUS D'APPORT @@ -396,7 +396,7 @@ 39 view - + AUTRES ÉLÉMENTS DU RÉSULTAT GLOBAL @@ -406,7 +406,7 @@ 4 view - + PRODUITS @@ -414,7 +414,7 @@ 41 view - + PRODUITS D'EXPLOITATION @@ -422,7 +422,7 @@ 411 other - + Ventes @@ -430,7 +430,7 @@ 412 other - + Ventes avec des provinces harmonisées @@ -438,7 +438,7 @@ 413 other - + Ventes avec des provinces non-harmonisées @@ -446,7 +446,7 @@ 414 other - + Ventes à l'étranger @@ -454,7 +454,7 @@ 419 view - + AUTRES PRODUITS D'EXPLOITATION @@ -462,7 +462,7 @@ 42 view - + PRODUITS NON LIÉS À L'EXPLOITATION @@ -470,7 +470,7 @@ 425 view - + INTÉRÊTS @@ -478,7 +478,7 @@ 429 view - + AUTRES PRODUITS NON LIÉS À L'EXPLOITATION @@ -488,7 +488,7 @@ 5 view - + CHARGES @@ -496,7 +496,7 @@ 51 view - + CHARGES D'EXPLOITATION @@ -504,7 +504,7 @@ 511 view - + COÛT DES PRODUITS VENDUS @@ -512,7 +512,7 @@ 5111 other - + Achats @@ -520,7 +520,7 @@ 5112 other - + Achats dans des provinces harmonisées @@ -528,7 +528,7 @@ 5113 other - + Achats dans des provinces non-harmonisées @@ -536,7 +536,7 @@ 5114 other - + Achats à l'étranger @@ -544,7 +544,7 @@ 512 view - + SALAIRES ET CHARGES SOCIALES @@ -552,7 +552,7 @@ 51201 other - + Salaires @@ -560,7 +560,7 @@ 51202 other - + Vacances @@ -568,7 +568,7 @@ 51203 other - + Assurance Emploi @@ -576,7 +576,7 @@ 51204 other - + Fonds des services de santé @@ -584,7 +584,7 @@ 51205 other - + Rentes @@ -592,7 +592,7 @@ 51206 other - + Assurance parental @@ -600,7 +600,7 @@ 51207 other - + Santé et sécurité au travail @@ -608,7 +608,7 @@ 51208 other - + Normes du travail @@ -616,7 +616,7 @@ 513 view - + FRAIS SUR VENTE @@ -624,7 +624,7 @@ 514 view - + FRAIS GÉNÉRAUX @@ -632,7 +632,7 @@ 515 view - + FRAIS DE RECHERCHE ET DÉVELOPPEMENT @@ -640,7 +640,7 @@ 519 view - + AUTRES FRAIS D'EXPLOITATION @@ -648,7 +648,7 @@ 52 view - + FRAIS NON LIÉS À L'EXPLOITATION @@ -656,7 +656,7 @@ 521 view - + INTÉRÊTS DÉBITEURS @@ -664,7 +664,7 @@ 529 view - + AUTRES FRAIS NON LIÉS À L'EXPLOITATION diff --git a/addons/l10n_ca/account_tax_code_en.xml b/addons/l10n_ca/account_tax_code_en.xml index 36221e70a9b..d446f431c96 100644 --- a/addons/l10n_ca/account_tax_code_en.xml +++ b/addons/l10n_ca/account_tax_code_en.xml @@ -7,47 +7,47 @@ - Tax Balance to Pay + Tax Balance - Receivable Taxes + Taxes paid - GST to Receive + GST paid - PST to Receive + PST paid - HST to Receive + HST paid - Payable Taxes + Taxes received - GST to Pay + GST received - PST to Pay + PST received - HST to Pay + HST received diff --git a/addons/l10n_ca/account_tax_code_fr.xml b/addons/l10n_ca/account_tax_code_fr.xml index 389e5e5f8d9..2b6acd2b992 100644 --- a/addons/l10n_ca/account_tax_code_fr.xml +++ b/addons/l10n_ca/account_tax_code_fr.xml @@ -12,42 +12,42 @@ - Taxes à recevoir + Taxes payées - TPS à recevoir + TPS payée - TVP/TVQ à recevoir + TVP/TVQ payée - TVH à recevoir + TVH payée - Taxes à payer + Taxes reçues - TPS à payer + TPS reçue - TVP/TVQ à payer + TVP/TVQ reçue - TVH à payer + TVH reçue diff --git a/addons/l10n_ca/account_tax_en.xml b/addons/l10n_ca/account_tax_en.xml index 662ac4b52fc..f185f7f9198 100644 --- a/addons/l10n_ca/account_tax_en.xml +++ b/addons/l10n_ca/account_tax_en.xml @@ -2,263 +2,544 @@ + + - + - GST + PST (MB) - GSTPST_MB + GST + PST for sales (MB) + GSTPST_MB_SALE + sale 1 1 percent - + - GST - 5% (MB) + GST for sales - 5% (MB) GST + sale 0.050000 percent 1 - + - - + + - + - + - PST - 7% + PST for sales - 7% PST - 0.070000 + sale + 0.700000 percent - 1 - + 2 + - - + + - + - + - GST + PST (PE) - GSTPST_PE + GST + PST for sales (PE) + GSTPST_PE_SALE + sale 1 1 percent - + - GST - 5% (PE) + GST for sales - 5% (PE) GST + sale 0.050000 percent 1 - + - - + + - + - + - PST - 10% + PST for sale - 10% PST + sale 0.100000 percent - 1 - + 2 + - - + + - + - + - GST + PST (QC) - GSTPST_QC + GST + TVQ for sales + GSTTVQ_SALE + sale 1 1 percent - + - GST - 5% (QC) + GST for sales - 5% (QC) GST + sale 0.050000 percent 1 - + - - + + - + - + - PST - 9.5% - PST + TVQ for sales - 9.5% + TVQ + sale 0.095000 percent - 1 - + 2 + - - + + - + - + - GST + PST (SK) - GSTPST_SK + GST + PST for sales (SK) + GSTPST_SK_SALE + sale 1 1 percent - + - GST - 5% (SK) + GST for sales - 5% (SK) GST + sale 0.050000 percent 1 - + - - + + - + - + - PST - 5% + PST for sales - 5% (SK) PST + sale 0.050000 percent - 1 - + 2 + - - + + - + - + - HST - 12% - HST12 + TVH for sales - 12% + TVH12_SALE + sale 0.120000 percent - + - - + + - + - HST - 13% - HST13 + TVH for sales - 13% + TVH13_SALE + sale 0.130000 percent - + - - + + - + - HST - 13.5% - HST135 + TVH for sales - 13.5% + TVH135_SALE + sale 0.135000 percent - + - - + + - + - HST - 15% - HST15 + TVH for sales - 15% + TVH15_SALE + sale 0.150000 percent - + - - + + - + - GST - 5% - GST + GST for sales - 5% + GST_SALE + sale 0.050000 percent - + - - + + - + + + + + + - No tax - No tax - 0.00 + GST + PST for purchases (MB) + GSTPST_MB_PURC + purchase + 1 + 1 percent + + + GST for purchases - 5% (MB) + GST + purchase + 0.050000 + percent + 1 + + + + + + + + + + + + + PST for purchases - 7% + PST + purchase + 0.700000 + percent + 2 + + + + + + + + + + + + + + GST + PST for purchases (PE) + GSTPST_PE_PURC + purchase + 1 + 1 + percent + + + + + GST for purchases - 5% (PE) + GST + purchase + 0.050000 + percent + 1 + + + + + + + + + + + + + PST for purchases - 10% + PST + purchase + 0.100000 + percent + 2 + + + + + + + + + + + + + + GST + TVQ for purchases + GSTTVQ_PURC + purchase + 1 + 1 + percent + + + + + GST for purchases - 5% (QC) + GST + purchase + 0.050000 + percent + 1 + + + + + + + + + + + + + TVQ for purchases - 9.5% + TVQ + purchase + 0.095000 + percent + 2 + + + + + + + + + + + + + + GST + PST for purchases (SK) + GSTPST_SK_PURC + purchase + 1 + 1 + percent + + + + + GST for purchases - 5% (SK) + GST + purchase + 0.050000 + percent + 1 + + + + + + + + + + + + + PST for purchases - 5% (SK) + PST + purchase + 0.050000 + percent + 2 + + + + + + + + + + + + + + TVH for purchases - 12% + TVH12_PURC + purchase + 0.120000 + percent + + + + + + + + + + + TVH for purchases - 13% + TVH13_PURC + purchase + 0.130000 + percent + + + + + + + + + + + TVH for purchases - 13.5% + TVH135_PURC + purchase + 0.135000 + percent + + + + + + + + + + + TVH for purchases - 15% + TVH15_PURC + purchase + 0.150000 + percent + + + + + + + + + + + + + GST for purchases - 5% + GST_PURC + purchase + 0.050000 + percent + + + + + + + + diff --git a/addons/l10n_ca/account_tax_fr.xml b/addons/l10n_ca/account_tax_fr.xml index 5df4446c611..169bfe4f20b 100644 --- a/addons/l10n_ca/account_tax_fr.xml +++ b/addons/l10n_ca/account_tax_fr.xml @@ -2,263 +2,544 @@ + + - + - TPS + TVP (MB) - TPSTVP_MB + TPS + TVP sur les ventes (MB) + TPSTVP_MB_SALE + sale 1 1 percent - + - TPS - 5% (MB) + TPS sur les ventes - 5% (MB) TPS + sale 0.050000 percent 1 - + - - + + - + - + - TVP - 7% + TVP sur les ventes - 7% TVP + sale 0.700000 percent - 1 - + 2 + - - + + - + - + - TPS + TVP (PE) - TPSTVP_PE + TPS + TVP sur les ventes (PE) + TPSTVP_PE_SALE + sale 1 1 percent - + - TPS - 5% (PE) + TPS sur les ventes - 5% (PE) TPS + sale 0.050000 percent 1 - + - - + + - + - + - TVP - 10% + TVP for sale - 10% TVP + sale 0.100000 percent - 1 - + 2 + - - + + - + - + - TPS + TVQ - TPSTVQ + TPS + TVQ sur les ventes + TPSTVQ_SALE + sale 1 1 percent - + - TPS - 5% (QC) + TPS sur les ventes - 5% (QC) TPS + sale 0.050000 percent 1 - + - - + + - + - + - TVQ - 9.5% + TVQ sur les ventes - 9.5% TVQ + sale 0.095000 percent - 1 - + 2 + - - + + - + - + - TPS + TVP (SK) - TPSTVP_SK + TPS + TVP sur les ventes (SK) + TPSTVP_SK_SALE + sale 1 1 percent - + - TPS - 5% (SK) + TPS sur les ventes - 5% (SK) TPS + sale 0.050000 percent 1 - + - - + + - + - + - TVP - 5% (SK) + TVP sur les ventes - 5% (SK) TVP + sale 0.050000 percent - 1 - + 2 + - - + + - + - + - TVH - 12% - TVH12 + TVH sur les ventes - 12% + TVH12_SALE + sale 0.120000 percent - + - - + + - + - TVH - 13% - TVH13 + TVH sur les ventes - 13% + TVH13_SALE + sale 0.130000 percent - + - - + + - + - TVH - 13.5% - TVH135 + TVH sur les ventes - 13.5% + TVH135_SALE + sale 0.135000 percent - + - - + + - + - TVH - 15% - TVH15 + TVH sur les ventes - 15% + TVH15_SALE + sale 0.150000 percent - + - - + + - + - TPS - 5% - TPS + TPS sur les ventes - 5% + TPS_SALE + sale 0.050000 percent - + - - + + - + + + + + + - Pas de taxes - Pas de taxes - 0.00 + TPS + TVP sur les achats (MB) + TPSTVP_MB_PURC + purchase + 1 + 1 percent + + + TPS sur les achats - 5% (MB) + TPS + purchase + 0.050000 + percent + 1 + + + + + + + + + + + + + TVP sur les achats - 7% + TVP + purchase + 0.700000 + percent + 2 + + + + + + + + + + + + + + TPS + TVP sur les achats (PE) + TPSTVP_PE_PURC + purchase + 1 + 1 + percent + + + + + TPS sur les achats - 5% (PE) + TPS + purchase + 0.050000 + percent + 1 + + + + + + + + + + + + + TVP sur les achats - 10% + TVP + purchase + 0.100000 + percent + 2 + + + + + + + + + + + + + + TPS + TVQ sur les achats + TPSTVQ_PURC + purchase + 1 + 1 + percent + + + + + TPS sur les achats - 5% (QC) + TPS + purchase + 0.050000 + percent + 1 + + + + + + + + + + + + + TVQ sur les achats - 9.5% + TVQ + purchase + 0.095000 + percent + 2 + + + + + + + + + + + + + + TPS + TVP sur les achats (SK) + TPSTVP_SK_PURC + purchase + 1 + 1 + percent + + + + + TPS sur les achats - 5% (SK) + TPS + purchase + 0.050000 + percent + 1 + + + + + + + + + + + + + TVP sur les achats - 5% (SK) + TVP + purchase + 0.050000 + percent + 2 + + + + + + + + + + + + + + TVH sur les achats - 12% + TVH12_PURC + purchase + 0.120000 + percent + + + + + + + + + + + TVH sur les achats - 13% + TVH13_PURC + purchase + 0.130000 + percent + + + + + + + + + + + TVH sur les achats - 13.5% + TVH135_PURC + purchase + 0.135000 + percent + + + + + + + + + + + TVH sur les achats - 15% + TVH15_PURC + purchase + 0.150000 + percent + + + + + + + + + + + + + TPS sur les achats - 5% + TPS_PURC + purchase + 0.050000 + percent + + + + + + + + diff --git a/addons/l10n_ca/account_types_en.xml b/addons/l10n_ca/account_types_en.xml deleted file mode 100644 index cc155a792ae..00000000000 --- a/addons/l10n_ca/account_types_en.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - Receivable - receivable - unreconciled - - - - Payable - payable - unreconciled - - - - View - view - none - - - - Income - income - none - income - - - - Expense - expense - none - expense - - - - Tax - tax - unreconciled - - - - Cash - cash - balance - - - - Asset - asset - balance - asset - - - - Equity - equity - liability - balance - - - - diff --git a/addons/l10n_ca/account_types_fr.xml b/addons/l10n_ca/account_types_fr.xml deleted file mode 100644 index b7d82956195..00000000000 --- a/addons/l10n_ca/account_types_fr.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - Vue - view - none - - - - Capital - capital - asset - balance - - - - Immobilisation - immo - asset - balance - - - - Stock et Encours - stock - asset - balance - - - - Tiers - tiers - balance - - - - Tiers - Recevable - tiers -rec - asset - unreconciled - - - - Tiers - Payable - tiers - pay - liability - unreconciled - - - - Tax - tax - unreconciled - - - - Financier - financier - balance - - - - Charge - charge - expense - none - - - - Produit - produit - income - none - - - - diff --git a/addons/l10n_ca/fiscal_templates_en.xml b/addons/l10n_ca/fiscal_templates_en.xml index ba5c919a383..68e881c3541 100644 --- a/addons/l10n_ca/fiscal_templates_en.xml +++ b/addons/l10n_ca/fiscal_templates_en.xml @@ -39,354 +39,618 @@ + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - - - - - + + + + + + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - - - - + + + + + + - - - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + - - - - + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/l10n_ca/fiscal_templates_fr.xml b/addons/l10n_ca/fiscal_templates_fr.xml index 07608cdb261..722517366a8 100644 --- a/addons/l10n_ca/fiscal_templates_fr.xml +++ b/addons/l10n_ca/fiscal_templates_fr.xml @@ -39,278 +39,542 @@ + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/l10n_ch/report/report_webkit_html.py b/addons/l10n_ch/report/report_webkit_html.py index d930258f4a7..dffeedd0caa 100644 --- a/addons/l10n_ch/report/report_webkit_html.py +++ b/addons/l10n_ch/report/report_webkit_html.py @@ -20,22 +20,31 @@ ############################################################################## import time -from report import report_sxw -from report_webkit import webkit_report -from report_webkit import report_helper -from osv import osv -from tools import mod10r import sys 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 + import wizard import addons import pooler -from tools.config import config -from mako.template import Template -from mako import exceptions -from tools.translate import _ -from osv.osv import except_osv + + class l10n_ch_report_webkit_html(report_sxw.rml_parse): @@ -143,53 +152,26 @@ class l10n_ch_report_webkit_html(report_sxw.rml_parse): '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 setLang(self, lang): - if not lang: - lang = 'en_US' - self.localcontext['lang'] = lang - - def formatLang(self, value, digits=None, date=False, date_time=False, grouping=True, monetary=False): - """format using the know cursor, language from localcontext""" - if digits is None: - digits = self.parser_instance.get_digits(value) - if isinstance(value, (str, unicode)) and not value: - return '' - pool_lang = self.pool.get('res.lang') - lang = self.localcontext['lang'] - - lang_ids = pool_lang.search(self.parser_instance.cr, self.parser_instance.uid, [('code','=',lang)])[0] - lang_obj = pool_lang.browse(self.parser_instance.cr, self.parser_instance.uid, lang_ids) - - if date or date_time: - if not str(value): - return '' - - date_format = lang_obj.date_format - parse_format = '%Y-%m-%d' - if date_time: - value=value.split('.')[0] - date_format = date_format + " " + lang_obj.time_format - parse_format = '%Y-%m-%d %H:%M:%S' - if not isinstance(value, time.struct_time): - return time.strftime(date_format, time.strptime(value, parse_format)) - - else: - date = datetime(*value.timetuple()[:6]) - return date.strftime(date_format) - - return lang_obj.format('%.' + str(digits) + 'f', value, grouping=grouping, monetary=monetary) - def create_single_pdf(self, cursor, uid, ids, data, report_xml, context=None): """generate the PDF""" - self.parser_instance = self.parser( - cursor, + context = context or {} + if report_xml.report_type != 'webkit': + return super(WebKitParser,self).create_single_pdf(cursor, uid, ids, data, report_xml, context=context) + self.parser_instance = self.parser(cursor, uid, self.name2, - context=context - ) + 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) @@ -201,7 +183,7 @@ class BVRWebKitParser(webkit_report.WebKitParser): if not template and report_xml.report_webkit_data : template = report_xml.report_webkit_data if not template : - raise except_osv(_('Webkit Report template not found !'), _('')) + 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: @@ -210,43 +192,19 @@ class BVRWebKitParser(webkit_report.WebKitParser): _('Please set a header in company settings') ) if not report_xml.header : - #I know it could be cleaner ... - header = u""" - - - - - - - -""" - self.parser_instance.localcontext.update({'setLang':self.setLang}) - self.parser_instance.localcontext.update({'formatLang':self.formatLang}) + 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 - parse_template = template - #default_filters=['unicode', 'entity'] can be used to set global filter - body_mako_tpl = Template(parse_template ,input_encoding='utf-8', output_encoding='utf-8') + body_mako_tpl = mako_template(template) #BVR specific bvr_path = addons.get_module_resource(os.path.join('l10n_ch','report','bvr.mako')) - body_bvr_tpl = Template(file(bvr_path).read(), input_encoding='utf-8', output_encoding='utf-8') - + body_bvr_tpl = mako_template(file(bvr_path).read()) helper = report_helper.WebKitHelper(cursor, uid, report_xml.id, context) ##BVR Specific htmls = [] @@ -254,58 +212,48 @@ class BVRWebKitParser(webkit_report.WebKitParser): self.parser_instance.localcontext['objects'] = [obj] if not company.bvr_only: try: - html = body_mako_tpl.render( - helper=helper, + html = body_mako_tpl.render(helper=helper, css=css, _=self.translate_call, - **self.parser_instance.localcontext - ) + **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 - ) + 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, + head = head_mako_tpl.render(helper=helper, css=css, _debug=False, _=self.translate_call, - **self.parser_instance.localcontext - ) + **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, + foot = foot_mako_tpl.render(helper=helper, css=css, _=self.translate_call, - **self.parser_instance.localcontext - ) + **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, + deb = head_mako_tpl.render(helper=helper, css=css, _debug=html, _=self.translate_call, - **self.parser_instance.localcontext - ) + **self.parser_instance.localcontext) except Exception, e: raise Exception(exceptions.text_error_template().render()) return (deb, 'html') diff --git a/addons/l10n_cl/__init__.py b/addons/l10n_cl/__init__.py new file mode 100644 index 00000000000..92da5dbf966 --- /dev/null +++ b/addons/l10n_cl/__init__.py @@ -0,0 +1,32 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (c) 2011 Cubic ERP - Teradata SAC. (http://cubicerp.com). +# +# 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. +# +############################################################################## + + + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/l10n_cl/__openerp__.py b/addons/l10n_cl/__openerp__.py new file mode 100644 index 00000000000..8c1e1e45b50 --- /dev/null +++ b/addons/l10n_cl/__openerp__.py @@ -0,0 +1,51 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2011 Cubic ERP - Teradata SAC (). +# +# 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 . +# +############################################################################## +{ + "name": "Chile Localization Chart Account", + "version": "1.0", + "description": """ +Chilean accounting chart and tax localization. + +Plan contable chileno e impuestos de acuerdo a disposiciones vigentes + + """, + "author": "Cubic ERP", + "website": "http://cubicERP.com", + "category": "Localization/Account Charts", + "depends": [ + "account_chart", + ], + "data":[ + "account_tax_code.xml", + "l10n_cl_chart.xml", + "account_tax.xml", + "l10n_cl_wizard.xml", + ], + "demo_xml": [ + ], + "update_xml": [ + ], + "active": False, + "installable": True, + "certificate" : "", + 'images': ['images/config_chart_l10n_cl.jpeg','images/l10n_cl_chart.jpeg'], +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/l10n_cl/account_tax.xml b/addons/l10n_cl/account_tax.xml new file mode 100644 index 00000000000..1db0d2637f4 --- /dev/null +++ b/addons/l10n_cl/account_tax.xml @@ -0,0 +1,34 @@ + + + + + + + IVA 19% Venta + 0.190000 + percent + sale + + + + + + + + + + + IVA 19% Compra + 0.190000 + percent + purchase + + + + + + + + + + diff --git a/addons/l10n_cl/account_tax_code.xml b/addons/l10n_cl/account_tax_code.xml new file mode 100644 index 00000000000..95c91b60d78 --- /dev/null +++ b/addons/l10n_cl/account_tax_code.xml @@ -0,0 +1,94 @@ + + + + + + Chile Impuestos + + + Base Imponible + + + + Base Imponible - Ventas + + + + Ventas Gravadas con IVA + + + + Ventas NO Gravadas (Exoneradas) + + + + Ventas Gravadas Fuera de Ámbito + + + + Base Imponible - Compras + + + + Compras Gravadas con IVA + + + + Compras NO Gravadas (Exoneradas) + + + + Compras Gravadas Fuera de Ámbito + + + + + Impuesto General a las Ventas (IVA) Total a Pagar + + + + Impuesto Pagado + + + + Impuesto Pagado IVA + + -1 + + + Impuesto Pagado de Exonerados al IVA + + -1 + + + Impuesto Pagado Fuera de Ámbito + + -1 + + + Impuesto Cobrado + + + + Impuesto Cobrado IVA + + + + Impuesto Cobrado de Exonerados al IVA + + + + Impuesto Cobrado Fuera de Ámbito + + + + + Impuestos Directos a Pagar + + + + Impuesto a la Renta Primera Categoría a Pagar + + + + diff --git a/addons/l10n_cl/i18n/es.po b/addons/l10n_cl/i18n/es.po new file mode 100644 index 00000000000..f8b17197008 --- /dev/null +++ b/addons/l10n_cl/i18n/es.po @@ -0,0 +1,72 @@ +# Spanish translation for openobject-addons +# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-01-11 11:15+0000\n" +"PO-Revision-Date: 2011-01-10 13:46+0000\n" +"Last-Translator: Yury Tello \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-01-15 05:56+0000\n" +"X-Generator: Launchpad (build 12177)\n" + +#. module: l10n_cl +#: model:ir.module.module,description:l10n_cl.module_meta_information +msgid "" +"\n" +" Chilean Accounting : chart of Account\n" +" " +msgstr "" +"\n" +" Contabilidad Peruana : Plan de cuentas\n" +" " + +#. module: l10n_cl +#: model:ir.module.module,shortdesc:l10n_cl.module_meta_information +msgid "Chilean Chart of Account" +msgstr "Plan de cuentas de Chile" + +#. module: l10n_cl +#: model:ir.actions.todo,note:l10n_cl.config_call_account_template_in_minimal +msgid "" +"Generate Chart of Accounts from a Chart Template. You will be asked to pass " +"the name of the company, the chart template to follow, the no. of digits to " +"generate the code for your accounts and Bank account, currency to create " +"Journals. Thus,the pure copy of chart Template is generated.\n" +"\tThis is the same wizard that runs from Financial " +"Management/Configuration/Financial Accounting/Financial Accounts/Generate " +"Chart of Accounts from a Chart Template." +msgstr "" +"Generar el plan contable a partir de una plantilla de plan contable. Se le " +"pedirá el nombre de la compañia, la plantilla de plan contable a utilizar, " +"el número de dígitos para generar el código de las cuentas y de la cuenta " +"bancaria, la moneda para crear los diarios. Así pues, se genere una copia " +"exacta de la plantilla de plan contable.\n" +"\tEste es el mismo asistente que se ejecuta desde Contabilidad y finanzas / " +"Configuración / Contabilidad financiera / Cuentas financieras / Generar el " +"plan contable a partir de una plantilla de plan contable." + +#~ msgid "Liability" +#~ msgstr "Pasivo" + +#~ msgid "Asset" +#~ msgstr "Activo" + +#~ msgid "Closed" +#~ msgstr "Cerrado" + +#~ msgid "Income" +#~ msgstr "Ingreso" + +#~ msgid "Expense" +#~ msgstr "Gasto" + +#~ msgid "View" +#~ msgstr "Vista" diff --git a/addons/l10n_cl/i18n/es_CL.po b/addons/l10n_cl/i18n/es_CL.po new file mode 100644 index 00000000000..cd0a9f9c43e --- /dev/null +++ b/addons/l10n_cl/i18n/es_CL.po @@ -0,0 +1,53 @@ +# Spanish (Paraguay) translation for openobject-addons +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-01-11 11:15+0000\n" +"PO-Revision-Date: 2011-03-21 16:23+0000\n" +"Last-Translator: FULL NAME \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-03-22 04:36+0000\n" +"X-Generator: Launchpad (build 12559)\n" + +#. module: l10n_cl +#: model:ir.module.module,description:l10n_cl.module_meta_information +msgid "" +"\n" +" Chilean Accounting : chart of Account\n" +" " +msgstr "" +"\n" +" Contabilidad Chile : Plan de cuentas\n" +" " + +#. module: l10n_cl +#: model:ir.module.module,shortdesc:l10n_cl.module_meta_information +msgid "Chilean Chart of Account" +msgstr "Plan de cuentas de la Chile" + +#. module: l10n_cl +#: model:ir.actions.todo,note:l10n_cl.config_call_account_template_in_minimal +msgid "" +"Generate Chart of Accounts from a Chart Template. You will be asked to pass " +"the name of the company, the chart template to follow, the no. of digits to " +"generate the code for your accounts and Bank account, currency to create " +"Journals. Thus,the pure copy of chart Template is generated.\n" +"\tThis is the same wizard that runs from Financial " +"Management/Configuration/Financial Accounting/Financial Accounts/Generate " +"Chart of Accounts from a Chart Template." +msgstr "" +"Generar el plan contable a partir de una plantilla de plan contable. Se le " +"pedirá el nombre de la compañía, la plantilla de plan contable a utilizar, " +"el número de dígitos para generar el código de las cuentas y de la cuenta " +"bancaria, la moneda para crear los diarios. Así pues, se genere una copia " +"exacta de la plantilla de plan contable.\n" +"\tEste es el mismo asistente que se ejecuta desde Contabilidad y finanzas / " +"Configuración / Contabilidad financiera / Cuentas financieras / Generar el " +"plan contable a partir de una plantilla de plan contable." diff --git a/addons/l10n_cl/i18n/l10n_cl.pot b/addons/l10n_cl/i18n/l10n_cl.pot new file mode 100644 index 00000000000..9b3704b75e1 --- /dev/null +++ b/addons/l10n_cl/i18n/l10n_cl.pot @@ -0,0 +1,35 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * l10n_cl +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.1.0-rc1\n" +"Report-Msgid-Bugs-To: soporte@cubicerp.com\n" +"POT-Creation-Date: 2011-01-11 11:15:31+0000\n" +"PO-Revision-Date: 2011-01-11 11:15:31+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: l10n_cl +#: model:ir.module.module,description:l10n_cl.module_meta_information +msgid "\n" +" Chilean Accounting : chart of Account\n" +" " +msgstr "" + +#. module: l10n_cl +#: model:ir.module.module,shortdesc:l10n_cl.module_meta_information +msgid "Chilean Chart of Account" +msgstr "" + +#. module: l10n_cl +#: model:ir.actions.todo,note:l10n_cl.config_call_account_template_in_minimal +msgid "Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated.\n" +" This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template." +msgstr "" + diff --git a/addons/l10n_cl/l10n_cl_chart.xml b/addons/l10n_cl/l10n_cl_chart.xml new file mode 100644 index 00000000000..8bc4272c2eb --- /dev/null +++ b/addons/l10n_cl/l10n_cl_chart.xml @@ -0,0 +1,256 @@ + + + + + + + noneviewVistanone + + balanceBG_ACC_10Efectivo y Equivalentes al Efectivoasset + detailBG_ACC_20Otros Activos Financieros Corrientesasset + unreconciledBG_ACC_30Deudores Comercialesasset + unreconciledBG_ACC_50Otras Cuentas por Cobrarasset + balanceBG_ACC_60Inventariosasset + + detailBG_ACN_10Derechos por Cobrar No Corrienteasset + detailBG_ACN_40Otros Activos No Financierosasset + balanceBG_ACN_50Propiedades, Planta y Equipoasset + + unreconciledBG_PAC_10Otros Pasivos Financierosliability + unreconciledBG_PAC_20Cuentas por Pagar Comercialesliability + unreconciledBG_PAC_35Otras Cuentas por Pagarliability + unreconciledBG_PAC_40Otras Provisiones Corrientesliability + unreconciledBG_PAC_45Pasivos por Impuestos Corrientesliability + + unreconciledBG_PAN_10Otros Pasivos Financieros No Corrientesliability + unreconciledBG_PAN_20Otros Cuentas por Pagar No Corrientesliability + unreconciledBG_PAN_40Otras Provisiones No Corrientesliability + + balanceBG_PTN_10Patrimonio Netoliability + + noneEGP_FU_010Ingresos por Actividades Ordinariasincome + noneEGP_FU_030Costo de Ventasexpense + noneEGP_FU_040Gastos de Administraciónexpense + noneEGP_FU_050Costos por Distribuciónexpense + unreconciledEGP_FU_060Ingresos Financierosincome + noneEGP_FU_070Costos Financierosexpense + noneEGP_FU_080Otros Ingresosincome + noneEGP_FU_090Otros Gastosexpense + noneEGP_FU_120Gasto Impuesto a las Rentaexpense + noneEGP_FU_160Ganancia (Pérdida)income + + noneEGP_NA_010Compras de Activo Fijonone + + noneORDCuentas de Ordennone + + noneNCLASIFICADOCuentas No Clasificadasnone + + + + + Chile + pcge + + view + + + inventario del Balance General + .1.BG + + + view + + + ACTIVOS1view + Activo Circulante11view + Activo Circulante - Caja111view + Activo Circulante - Caja / efectivo CLP111.001liquidity + Activo Circulante - Moneda Extranjera112view + Activo Circulante - Caja / efectivo USD112.001liquidity + Activo Circulante - Fondos fijos113view + Activo Circulante - Fondos fijos / caja chica 01 CLP113.001liquidity + Activo Circulante - Bancos114view + Activo Circulante.../ BCO. CTA CTE CLP114.001liquidity + Activo Circulante - Valores a Depositar 115other + Activo Circulante - Recaudaciones a Depositar 116other + Documentos por Cobrar12view + Documentos por Cobrar / Deudores por Ventas121receivable1 + Documentos por Cobrar / Deudores Morosos122receivable1 + Documentos por Cobrar / Deudores en Gestión Judicial123receivable + Documentos por Cobrar / Deudores Varios124receivable + Documentos por Cobrar / (-) Previsión para Incobrables125receivable1 + Cuentas por Cobrar13view + Cuentas por Cobrar / Préstamos otorgados131receivable + Cuentas por Cobrar / Anticipos a Proveedores132receivable + Cuentas por Cobrar / Anticipo de Impuestos133receivable + Cuentas por Cobrar / Anticipo al Personal134receivable + Cuentas por Cobrar / Alquileres Pagados por Adelantado135receivable + Cuentas por Cobrar / Intereses Pagados por Adelantado136receivable + Cuentas por Cobrar / Accionistas137receivable + Cuentas por Cobrar / (-) Previsión para Descuentos138receivable + Cuentas por Cobrar / (-) Intereses (+) a Devengar139receivable + Inversiones Financieras14view + Inversiones / Acciones Transitorias141other + Inversiones / Acciones Permanentes142other + Inversiones / Títulos Públicos143other + Inversiones / (-) Previsión para Devalorización de Acciones144other + Existencias15view + Existencias - Mercaderías151view + Existencias - Mercaderías / Categoria de productos 01151.01other + Existencias - Mercaderías en Tránsito152other + Materias primas153other + Productos en Curso de Elaboración154other + Productos Elaborados155other + Materiales Varios 156other + (-) Previsión para Desvalorización de Existencias157other + Activo Fijo16view + Activo Fijo / Inmuebles161other + Activo Fijo / Maquinaria162other + Activo Fijo / Equipos163other + Activo Fijo / Material Rodante Motorizado164other + Activo Fijo / (-) Depreciación Acumulada165other + Activo Intangible17view + Activo Intangible / Derecho de Llaves171other + Activo Intangible / Concesiones y Franquicias172other + Activo Intangible / Marcas y Patentes de Invención173other + Activo Intangible / (-) Amortización Acumulada174other + PASIVOS2view + Cuentas por Pagar21view + Cuentas por Pagar / Proveedores211payable1 + Cuentas por Pagar / Anticipos de Clientes212payable1 + Cuentas por Pagar / (-) Intereses a Devengar por Compras al Crédito213payable1 + Pasivo Circulante22view + Pasivo Circulante / Adelantos en Cuenta Corriente221payable + Pasivo Circulante / Prestamos222payable + Pasivo Circulante / Obligaciones a Pagar223payable + Pasivo Circulante / Intereses a Pagar224payable + Pasivo Circulante / Debentures Emitidos225payable + Impuestos por Pagar23view + Impuestos por Pagar / IVA a Pagar231other + Impuestos por Pagar / Impuesto a la Renta a Pagar232other + Remuneraciones por Pagar24view + Remuneraciones por Pagar / Sueldos a Pagar241payable + Remuneraciones por Pagar / Cargas Sociales a Pagar242payable + Remuneraciones por Pagar / Provisión para Sueldo Anual Complementario243payable + Remuneraciones por Pagar / Retenciones a Depositar244payable + Otras Cuentas por Pagar25view + Otras Cuentas por Pagar / Acreedores Varios251payable + Otras Cuentas por Pagar / Dividendos a Pagar252payable + Otras Cuentas por Pagar / Cobros por Adelantado253payable + Otras Cuentas por Pagar / Honorarios Directores y Síndicos a Pagar254payable + Provisiones26view + Provisiones / Previsión Indemnización por Despidos261payable + Provisiones / Previsión para juicios Pendientes262payable + Provisiones / Previsión para Garantías por Service263payable + PATRIMONIO3view + Capital31view + Capital / Capital Propio311other + Capital / Acciones en Circulación312other + Capital / Dividendos a Distribuir en Acciones313other + Capital / (-) Descuento de Emisión de Acciones314other + Aportes No Capitalizados32view + Aportes No Capitalizados / Primas de Emsión321other + Aportes No Capitalizados / Aportes Irrevocables Futura Suscripción de Acciones322other + Ajustes al Patrimonio33view + Ajustes al Patrimonio / Revaluo Técnico de Activo Fijo331other + Futuras Eventualidades34view + Reserva Legal341other + Reserva Estatutaria342other + Reserva Facultativa343other + Reserva para Renovación de Activo Fijo344other + Resultados No Asignados35view + Resultados Acumulados351other + Resultados Acumulados del Ejercicio Anterior352other + Utilidades y Pérdidas del Ejercicio353other + Resultado del Ejercicio354other + + + Cuentas de Resultado + .2.GP + + + view + + + RESULTADO GANANCIA4view + Ingresos de Explotación41view + Ventas411view + Ventas - Categoria de productos 01411.01other + Intereses gananados, obtenidos, percibidos412other + Alquileres gananados, obtenidos, percibidos413other + Comisiones gananados, obtenidos, percibidos414other + Descuentos gananados, obtenidos, percibidos415other + Interese sobre Inversiones416other + Honorarios gananados, obtenidos, percibidos417other + Ganancia Venta de Acciones418other + Ingresos Fuera de Explotación42view + Recupero de Rezagos421other + Recupero de Deudores Incobrables422other + Ganancia Venta de Activo Fijo423other + Donaciones obtenidas, ganandas, percibidas424other + Ganancia Venta Inversiones Permanentes425other + RESULTADO PÉRDIDA5view + Egresos de Explotación51view + Costo de Mercaderías Vendidas511view + Costo de Mercaderías Vendidas - Categoria de productos 01511.01other + Gastos en Depreciación de Activo Fijo512other + Gastos en Amortización513other + Gastos en Sueldos y Jornales514other + Gastos en Cargas Sociales515other + Gastos en Impuestos516other + Gastos Bancarios517other + Gastos en Servicios Públicos518other + Gastos de Publicidad y Propaganda519other + Egresos Fuera de Explotación52view + Gastos en Siniestros521other + Donaciones Cedidas, Otorgadas522other + Pérdida Venta Activo Fijo523other + + + Cuentas de Movimiento + .3.CC + + + view + + + Compras61view + Compras - Categoria de productos 0161.01other + Costos de Producción62other + Gastos de Administración63other + Gastos de Comercialización64other + + + Cuentas de Orden + .4.CO + + + view + + + CUENTAS DE ORDEN DEUDORAS71view + Mercaderias Recibidas en Consignación711other + Depósito de Valores Recibos en Garantía712other + Garantias Otorgadas713other + Documentos Descontados714other + Documentos Endosados715other + CUENTAS DE ORDEN ACREEDORAS72view + Comitente por Mercaderias Recibidas en Consignación721other + Acreedor por Garantías Otorgadas722other + Acreedor por Documentos Descontados723other + + + Chile - Plan de Cuentas + + + + + + + + + + + + + diff --git a/addons/l10n_cl/l10n_cl_wizard.xml b/addons/l10n_cl/l10n_cl_wizard.xml new file mode 100644 index 00000000000..191230c5010 --- /dev/null +++ b/addons/l10n_cl/l10n_cl_wizard.xml @@ -0,0 +1,15 @@ + + + + + + Generate Chart of Accounts from a Chart Template + Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated. + This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template. + + + automatic + + + + diff --git a/addons/lunch/i18n/nl.po b/addons/lunch/i18n/nl.po new file mode 100644 index 00000000000..481e8a4f79a --- /dev/null +++ b/addons/lunch/i18n/nl.po @@ -0,0 +1,552 @@ +# Dutch translation for openobject-addons +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2012-02-08 01:37+0100\n" +"PO-Revision-Date: 2012-07-29 09:58+0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-07-30 04:55+0000\n" +"X-Generator: Launchpad (build 15702)\n" + +#. module: lunch +#: view:lunch.cashbox.clean:0 +msgid "Reset cashbox" +msgstr "Reset kas" + +#. module: lunch +#: view:report.lunch.amount:0 +msgid "Box amount in current year" +msgstr "Kasbedrag in huidig jaar" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_lunch_order_form +#: model:ir.ui.menu,name:lunch.menu_lunch_order_form +#: model:ir.ui.menu,name:lunch.menu_lunch_reporting_order +msgid "Lunch Orders" +msgstr "Lunch Orders" + +#. module: lunch +#: view:lunch.order.cancel:0 +msgid "Are you sure you want to cancel this order ?" +msgstr "Weet u zeker dat u deze order wilt annuleren?" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_lunch_cashmove_form +#: model:ir.ui.menu,name:lunch.menu_lunch_cashmove_form +msgid "Cash Moves" +msgstr "Kas mutaties" + +#. module: lunch +#: view:lunch.cashmove:0 view:lunch.order:0 view:report.lunch.amount:0 +#: view:report.lunch.order:0 +msgid "Group By..." +msgstr "Groepeer op.." + +#. module: lunch +#: model:ir.model,name:lunch.model_lunch_order_confirm +msgid "confirm Order" +msgstr "Bevestig order" + +#. module: lunch +#: view:report.lunch.order:0 +msgid " 7 Days " +msgstr " 7 Dagen " + +#. module: lunch +#: view:lunch.cashmove:0 view:lunch.order:0 +msgid "Today" +msgstr "Vandaag" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "March" +msgstr "Maart" + +#. module: lunch +#: report:lunch.order:0 +msgid "Total :" +msgstr "Totaal :" + +#. module: lunch +#: field:report.lunch.amount,day:0 view:report.lunch.order:0 +#: field:report.lunch.order,day:0 +msgid "Day" +msgstr "Dag" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_lunch_order_cancel +#: model:ir.actions.act_window,name:lunch.action_lunch_order_cancel_values +#: model:ir.model,name:lunch.model_lunch_order_cancel view:lunch.order:0 +#: view:lunch.order.cancel:0 +msgid "Cancel Order" +msgstr "Annuleer order" + +#. module: lunch +#: model:ir.actions.act_window,help:lunch.action_create_cashbox +msgid "" +"You can create on cashbox by employee if you want to keep track of the " +"amount due by employee according to what have been ordered." +msgstr "" + +#. module: lunch +#: field:lunch.cashmove,amount:0 field:report.lunch.amount,amount:0 +msgid "Amount" +msgstr "Bedrag" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_lunch_product_form +#: model:ir.ui.menu,name:lunch.menu_lunch_product_form view:lunch.product:0 +msgid "Products" +msgstr "Producten" + +#. module: lunch +#: model:ir.model,name:lunch.model_report_lunch_amount +msgid "Amount available by user and box" +msgstr "Bedrag beschikbaar per gebruiker en kas" + +#. module: lunch +#: view:report.lunch.amount:0 +msgid " Month " +msgstr " Maand " + +#. module: lunch +#: model:ir.model,name:lunch.model_report_lunch_order +msgid "Lunch Orders Statistics" +msgstr "Lunch order analyses" + +#. module: lunch +#: view:lunch.cashmove:0 field:lunch.order,cashmove:0 +msgid "CashMove" +msgstr "Kas muttatie" + +#. module: lunch +#: view:lunch.order:0 selection:lunch.order,state:0 +msgid "Confirmed" +msgstr "Bevestigd" + +#. module: lunch +#: view:lunch.order.confirm:0 +msgid "Confirm" +msgstr "Bevestig" + +#. module: lunch +#: view:lunch.order:0 +msgid "Search Lunch Order" +msgstr "Zoek lunchorders" + +#. module: lunch +#: field:lunch.order,state:0 +msgid "State" +msgstr "Status" + +#. module: lunch +#: selection:lunch.order,state:0 +msgid "New" +msgstr "Nieuw" + +#. module: lunch +#: field:report.lunch.order,price_total:0 +msgid "Total Price" +msgstr "Totaalprijs" + +#. module: lunch +#: view:report.lunch.amount:0 +msgid "Box Amount by User" +msgstr "" + +#. module: lunch +#: field:lunch.cashmove,create_date:0 +msgid "Creation Date" +msgstr "Aanmaakdatum" + +#. module: lunch +#: report:lunch.order:0 +msgid "Name/Date" +msgstr "Naam/Datum" + +#. module: lunch +#: field:lunch.order,descript:0 +msgid "Description Order" +msgstr "Order omschrijving" + +#. module: lunch +#: view:report.lunch.amount:0 +msgid "Box amount in last month" +msgstr "" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_lunch_order_confirm +#: model:ir.actions.act_window,name:lunch.action_lunch_order_confirm_values +#: view:lunch.order:0 view:lunch.order.confirm:0 +msgid "Confirm Order" +msgstr "Bevestig Order" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "July" +msgstr "Juli" + +#. module: lunch +#: view:lunch.cashmove:0 view:report.lunch.amount:0 view:report.lunch.order:0 +msgid "Box" +msgstr "" + +#. module: lunch +#: view:report.lunch.order:0 +msgid " 365 Days " +msgstr " 365 Dagen " + +#. module: lunch +#: view:report.lunch.amount:0 +msgid " Month-1 " +msgstr " Maand-1 " + +#. module: lunch +#: field:report.lunch.amount,date:0 +msgid "Created Date" +msgstr "Aanmaakdatum" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_lunch_category_form +msgid " Product Categories " +msgstr " Product categorieën " + +#. module: lunch +#: view:lunch.cashbox.clean:0 +msgid "Set to Zero" +msgstr "Zet op nul" + +#. module: lunch +#: model:ir.model,name:lunch.model_lunch_cashmove +msgid "Cash Move" +msgstr "Kas mutatie" + +#. module: lunch +#: view:report.lunch.order:0 +msgid "Tasks performed in last 365 days" +msgstr "Taken uitgevoert de laatste 365 dagen" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "April" +msgstr "April" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "September" +msgstr "September" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "December" +msgstr "December" + +#. module: lunch +#: field:report.lunch.amount,month:0 view:report.lunch.order:0 +#: field:report.lunch.order,month:0 +msgid "Month" +msgstr "Maand" + +#. module: lunch +#: field:lunch.order.confirm,confirm_cashbox:0 +msgid "Name of box" +msgstr "" + +#. module: lunch +#: view:lunch.order.cancel:0 +msgid "Yes" +msgstr "Ja" + +#. module: lunch +#: model:ir.model,name:lunch.model_lunch_category view:lunch.category:0 +#: view:lunch.order:0 field:lunch.order,category:0 +#: field:lunch.product,category_id:0 +msgid "Category" +msgstr "Categorie" + +#. module: lunch +#: view:report.lunch.amount:0 +msgid " Year " +msgstr " Jaar " + +#. module: lunch +#: model:ir.ui.menu,name:lunch.menu_lunch_category_form +msgid "Product Categories" +msgstr "Product categorieën" + +#. module: lunch +#: view:lunch.cashbox.clean:0 view:lunch.order.cancel:0 +msgid "No" +msgstr "Nee" + +#. module: lunch +#: view:lunch.order.confirm:0 +msgid "Orders Confirmation" +msgstr "Order bevestigen" + +#. module: lunch +#: view:lunch.cashbox.clean:0 +msgid "Are you sure you want to reset this cashbox ?" +msgstr "" + +#. module: lunch +#: model:ir.actions.act_window,help:lunch.view_lunch_product_form_installer +msgid "" +"Define all products that the employees can order for the lunch time. If you " +"order lunch at several places, you can use the product categories to split " +"by supplier. It will be easier for the lunch manager to filter lunch orders " +"by categories." +msgstr "" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "August" +msgstr "Augustus" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_report_lunch_order_all +#: view:report.lunch.order:0 +msgid "Lunch Order Analysis" +msgstr "Lunch orders analyse" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "June" +msgstr "Juni" + +#. module: lunch +#: field:lunch.cashmove,user_cashmove:0 field:lunch.order,user_id:0 +#: field:report.lunch.amount,user_id:0 field:report.lunch.order,user_id:0 +msgid "User Name" +msgstr "Gebruikersnaam" + +#. module: lunch +#: view:report.lunch.order:0 +msgid "Sales Analysis" +msgstr "Verkoopanalyse" + +#. module: lunch +#: model:ir.ui.menu,name:lunch.menu_lunch_category_root_configuration +msgid "Lunch" +msgstr "Lunch" + +#. module: lunch +#: view:lunch.cashmove:0 view:report.lunch.order:0 +msgid "User" +msgstr "Gebruiker" + +#. module: lunch +#: view:lunch.cashmove:0 field:lunch.order,date:0 +msgid "Date" +msgstr "Datum" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "November" +msgstr "November" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "October" +msgstr "Oktober" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "January" +msgstr "Januari" + +#. module: lunch +#: field:lunch.cashmove,box:0 field:report.lunch.amount,box:0 +msgid "Box Name" +msgstr "" + +#. module: lunch +#: model:ir.model,name:lunch.model_lunch_cashbox_clean +msgid "clean cashbox" +msgstr "" + +#. module: lunch +#: field:lunch.cashmove,active:0 field:lunch.product,active:0 +msgid "Active" +msgstr "Actief" + +#. module: lunch +#: field:report.lunch.order,date:0 +msgid "Date Order" +msgstr "Orderdatum" + +#. module: lunch +#: model:ir.model,name:lunch.model_lunch_cashbox +msgid "Cashbox for Lunch " +msgstr "" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_lunch_cashbox_clean +#: model:ir.actions.act_window,name:lunch.action_lunch_cashbox_clean_values +msgid "Set CashBox to Zero" +msgstr "" + +#. module: lunch +#: view:lunch.product:0 +msgid "General Information" +msgstr "Algemene informatie" + +#. module: lunch +#: view:lunch.order.confirm:0 +msgid "Cancel" +msgstr "Anulleren" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_lunch_cashbox_form +msgid " Cashboxes " +msgstr "" + +#. module: lunch +#: report:lunch.order:0 +msgid "Unit Price" +msgstr "Eenheidsprijs" + +#. module: lunch +#: field:lunch.order,product:0 +msgid "Product" +msgstr "Product" + +#. module: lunch +#: field:lunch.cashmove,name:0 report:lunch.order:0 view:lunch.product:0 +#: field:lunch.product,description:0 +msgid "Description" +msgstr "Omschrijving" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "May" +msgstr "Mei" + +#. module: lunch +#: field:lunch.order,price:0 field:lunch.product,price:0 +msgid "Price" +msgstr "Prijs" + +#. module: lunch +#: view:lunch.cashmove:0 +msgid "Search CashMove" +msgstr "" + +#. module: lunch +#: view:report.lunch.amount:0 +msgid "Total box" +msgstr "" + +#. module: lunch +#: model:ir.model,name:lunch.model_lunch_product +msgid "Lunch Product" +msgstr "Lunch product" + +#. module: lunch +#: field:lunch.cashbox,sum_remain:0 +msgid "Total Remaining" +msgstr "Totaal overgebleven" + +#. module: lunch +#: view:lunch.order:0 +msgid "Total price" +msgstr "" + +#. module: lunch +#: selection:report.lunch.amount,month:0 selection:report.lunch.order,month:0 +msgid "February" +msgstr "Februari" + +#. module: lunch +#: field:lunch.cashbox,name:0 field:lunch.category,name:0 +#: field:lunch.product,name:0 field:report.lunch.order,box_name:0 +msgid "Name" +msgstr "Naam" + +#. module: lunch +#: view:lunch.cashmove:0 +msgid "Total amount" +msgstr "Totaalbedrag" + +#. module: lunch +#: view:report.lunch.order:0 +msgid "Tasks performed in last 30 days" +msgstr "Taken uitgevoerd in de laatste 30 dagen" + +#. module: lunch +#: view:lunch.category:0 +msgid "Category Related to Products" +msgstr "" + +#. module: lunch +#: model:ir.ui.menu,name:lunch.menu_lunch_cashbox_form view:lunch.cashbox:0 +msgid "Cashboxes" +msgstr "" + +#. module: lunch +#: view:lunch.category:0 report:lunch.order:0 view:lunch.order:0 +msgid "Order" +msgstr "Order" + +#. module: lunch +#: model:ir.actions.report.xml,name:lunch.report_lunch_order +#: model:ir.model,name:lunch.model_lunch_order +#: model:ir.ui.menu,name:lunch.menu_lunch report:lunch.order:0 +msgid "Lunch Order" +msgstr "Luchorder" + +#. module: lunch +#: view:report.lunch.amount:0 +msgid "Box amount in current month" +msgstr "" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.view_lunch_product_form_installer +msgid "Define Your Lunch Products" +msgstr "Definieer uw lunch producten" + +#. module: lunch +#: view:report.lunch.order:0 +msgid "Tasks during last 7 days" +msgstr "Taken afgelopen 7 dagen" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_report_lunch_amount_tree +#: model:ir.ui.menu,name:lunch.menu_lunch_report_amount_tree +msgid "Cash Position by User" +msgstr "" + +#. module: lunch +#: field:lunch.cashbox,manager:0 +msgid "Manager" +msgstr "Manager" + +#. module: lunch +#: view:report.lunch.order:0 +msgid " 30 Days " +msgstr " 30 Dagen " + +#. module: lunch +#: view:lunch.order:0 +msgid "To Confirm" +msgstr "" + +#. module: lunch +#: field:report.lunch.amount,year:0 view:report.lunch.order:0 +#: field:report.lunch.order,year:0 +msgid "Year" +msgstr "Jaar" + +#. module: lunch +#: model:ir.actions.act_window,name:lunch.action_create_cashbox +msgid "Create Lunch Cash Boxes" +msgstr "" diff --git a/addons/mail/__openerp__.py b/addons/mail/__openerp__.py index ee22b0c153f..323a647c334 100644 --- a/addons/mail/__openerp__.py +++ b/addons/mail/__openerp__.py @@ -24,7 +24,7 @@ 'version': '1.0', 'category':'Social Network', "sequence": 2, - "summary": "Discussions, Feeds, Alerts", + "summary": "Discussions, Mailing Lists, News", 'description': """ A bussiness oriented Social Networking with a fully-integrated email and message management. diff --git a/addons/mail/data/mail_group_data.xml b/addons/mail/data/mail_group_data.xml index 11c259b3ee8..09a6ca29a2d 100644 --- a/addons/mail/data/mail_group_data.xml +++ b/addons/mail/data/mail_group_data.xml @@ -14,5 +14,17 @@ + + + + + Welcome to OpenERP! + Your homepage is a summary of messages you received and key information about documents you follow. + +The top menu bar contains all applications you installed. You can use this <i>Settings</i> menu to intall more applications, activate others features or give access to new users. + +To setup your preferences (name, email signature, avatar), click on the top right corner. + + diff --git a/addons/mail/mail_message_view.xml b/addons/mail/mail_message_view.xml index 634b5317d27..986bb4bef38 100644 --- a/addons/mail/mail_message_view.xml +++ b/addons/mail/mail_message_view.xml @@ -81,8 +81,7 @@ - - +
- +
@@ -129,7 +129,7 @@
  • Delete
  • -
  • Remove from Wall
  • +
  • Hide
  • - Attachment - Attachments () + 1 Attachment + Attachments
  • diff --git a/addons/membership/i18n/pt_BR.po b/addons/membership/i18n/pt_BR.po index d1197588eef..b1cc55bb0f9 100644 --- a/addons/membership/i18n/pt_BR.po +++ b/addons/membership/i18n/pt_BR.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-02-08 00:36+0000\n" -"PO-Revision-Date: 2012-07-16 19:47+0000\n" -"Last-Translator: Rafael \n" +"PO-Revision-Date: 2012-07-28 19:37+0000\n" +"Last-Translator: Fábio Martinelli \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-07-17 04:49+0000\n" -"X-Generator: Launchpad (build 15627)\n" +"X-Launchpad-Export-Date: 2012-07-29 04:37+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: membership #: model:process.transition,name:membership.process_transition_invoicetoassociate0 @@ -547,7 +547,8 @@ msgstr "Versão da lista de preço do membro." msgid "" "Error: The default UOM and the purchase UOM must be in the same category." msgstr "" -"Erro: A UdM padrão e a UdM de compra precisam estar na mesma categoria." +"Erro: A Unidade de Medida Padrão e a Unidade de Medida de compra precisam " +"estar na mesma categoria." #. module: membership #: view:report.membership:0 @@ -577,7 +578,7 @@ msgstr "Informações da Conta" #. module: membership #: help:report.membership,date_to:0 msgid "End membership date" -msgstr "" +msgstr "Data de término da Associação" #. module: membership #: view:res.partner:0 @@ -622,7 +623,7 @@ msgstr "Membro Faturado" #. module: membership #: help:membership.membership_line,date:0 msgid "Date on which member has joined the membership" -msgstr "" +msgstr "Data na qual o membro entrou para a associação" #. module: membership #: selection:membership.membership_line,state:0 @@ -650,12 +651,12 @@ msgstr "Novembro" #. module: membership #: help:product.product,membership:0 msgid "Select if a product is a membership product." -msgstr "" +msgstr "Selecionar se um produto é um produto da associação." #. module: membership #: field:membership.membership_line,state:0 msgid "Membership State" -msgstr "" +msgstr "Estado da Associação" #. module: membership #: selection:report.membership,month:0 @@ -675,12 +676,12 @@ msgstr "Janeiro" #. module: membership #: view:res.partner:0 msgid "Membership Partners" -msgstr "" +msgstr "Parceiros Membros" #. module: membership #: view:product.product:0 msgid "Membership Fee" -msgstr "" +msgstr "Taxa de Associação" #. module: membership #: field:res.partner,membership_amount:0 @@ -690,17 +691,17 @@ msgstr "Quantidade de adesões" #. module: membership #: help:res.partner,membership_amount:0 msgid "The price negotiated by the partner" -msgstr "" +msgstr "O preço negociado pelo Parceiro" #. module: membership #: sql_constraint:account.invoice:0 msgid "Invoice Number must be unique per Company!" -msgstr "" +msgstr "O número da fatura deve ser único por Empresa!" #. module: membership #: view:res.partner:0 msgid "None/Canceled/Old/Waiting" -msgstr "" +msgstr "Nenhum/Cancelado/Antigo/Aguardando" #. module: membership #: selection:membership.membership_line,state:0 @@ -724,7 +725,7 @@ msgstr "Estado atual da Associação" #. module: membership #: view:product.product:0 msgid "General" -msgstr "" +msgstr "Geral:" #. module: membership #: model:process.transition,note:membership.process_transition_waitingtoinvoice0 @@ -750,7 +751,7 @@ msgstr "Fechar" #. module: membership #: view:res.partner:0 msgid "All non Members" -msgstr "" +msgstr "Todos não Membros" #. module: membership #: view:product.product:0 @@ -788,12 +789,12 @@ msgstr "Descrição da compra" #. module: membership #: model:ir.model,name:membership.model_product_product msgid "Product" -msgstr "" +msgstr "Produto" #. module: membership #: view:product.product:0 msgid "Description" -msgstr "" +msgstr "Descrição" #. module: membership #: field:res.partner,free_member:0 @@ -808,12 +809,12 @@ msgstr "Maio" #. module: membership #: model:product.template,name:membership.membership_1_product_template msgid "Silver Membership" -msgstr "" +msgstr "Grupo de Membros Prata" #. module: membership #: view:product.product:0 msgid "Sale Taxes" -msgstr "" +msgstr "Impostos na Venda" #. module: membership #: field:report.membership,date_to:0 @@ -834,17 +835,17 @@ msgstr "Membro faturado" #. module: membership #: selection:report.membership,month:0 msgid "April" -msgstr "" +msgstr "Abril" #. module: membership #: view:res.partner:0 msgid "Starting Date Of Membership" -msgstr "" +msgstr "Data inicial da Associação" #. module: membership #: help:res.partner,membership_cancel:0 msgid "Date on which membership has been cancelled" -msgstr "" +msgstr "Data de cancelamento da associação" #. module: membership #: field:membership.membership_line,date_cancel:0 @@ -859,7 +860,7 @@ msgstr "Membro em espera" #. module: membership #: model:ir.actions.act_window,name:membership.action_membership_invoice_view msgid "Invoice Membership" -msgstr "" +msgstr "Fatura da Associação" #. module: membership #: model:process.node,name:membership.process_node_membershipproduct0 @@ -869,19 +870,19 @@ msgstr "Produto de adesão" #. module: membership #: help:membership.membership_line,member_price:0 msgid "Amount for the membership" -msgstr "" +msgstr "Quantia para a Associação." #. module: membership #: constraint:res.partner:0 msgid "Error ! You cannot create recursive associated members." -msgstr "" +msgstr "Erro! Você não pode criar recursivamente a membros associados." #. module: membership #: selection:membership.membership_line,state:0 #: selection:report.membership,membership_state:0 #: selection:res.partner,membership_state:0 msgid "Cancelled Member" -msgstr "" +msgstr "Membro cancelado" #. module: membership #: constraint:product.product:0 @@ -897,7 +898,7 @@ msgstr "Ano" #. module: membership #: view:report.membership:0 msgid "Revenue Done" -msgstr "" +msgstr "Receita Concluída" #~ msgid "Invalid XML for View Architecture!" #~ msgstr "Invalido XML para Arquitetura da View" diff --git a/addons/mrp/__openerp__.py b/addons/mrp/__openerp__.py index d7a14237eb0..eae0d004836 100644 --- a/addons/mrp/__openerp__.py +++ b/addons/mrp/__openerp__.py @@ -27,7 +27,7 @@ "website" : "http://www.openerp.com", "category" : "Manufacturing", "sequence": 18, - "summary": "Manufacturing, Production, Bill of Materials", + "summary": "Manufacturing Orders, Bill of Materials, Routing", "images" : ["images/bill_of_materials.jpeg", "images/manufacturing_order.jpeg", "images/planning_manufacturing_order.jpeg", "images/production_analysis.jpeg", "images/production_dashboard.jpeg","images/routings.jpeg","images/work_centers.jpeg"], "depends" : ["procurement", "stock", "resource", "purchase", "product","process"], "description": """ diff --git a/addons/mrp/i18n/pt_BR.po b/addons/mrp/i18n/pt_BR.po index 6d91705eaca..65fbae3a8e4 100644 --- a/addons/mrp/i18n/pt_BR.po +++ b/addons/mrp/i18n/pt_BR.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-02-08 00:49+0000\n" -"PO-Revision-Date: 2012-02-19 15:27+0000\n" -"Last-Translator: tamnil \n" +"PO-Revision-Date: 2012-07-28 22:20+0000\n" +"Last-Translator: Fábio Martinelli \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-07-14 05:40+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-29 04:37+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: mrp #: view:mrp.routing.workcenter:0 @@ -187,7 +187,7 @@ msgstr "Custo por hora" #. module: mrp #: model:product.template,name:mrp.product_orange_product_template msgid "Orange" -msgstr "" +msgstr "Laranja" #. module: mrp #: model:process.transition,note:mrp.process_transition_servicemts0 @@ -329,7 +329,7 @@ msgstr "Você tentou atribuir um lote que não é do mesmo produto" #. module: mrp #: model:product.template,name:mrp.product_cloth_product_template msgid "Cloth" -msgstr "" +msgstr "Tecido" #. module: mrp #: model:ir.model,name:mrp.model_mrp_product_produce @@ -409,6 +409,12 @@ msgid "" "sales person creates a sales order, he can relate it to several properties " "and OpenERP will automatically select the BoM to use according the needs." msgstr "" +"As propriedades do OpenErp são usadas para selecionar a lista de materiais " +"correta para a produção de um produto quando você tem diversas formas " +"diferentes de construir o mesmo produto. Você pode associar diversas " +"propriedades para cada Lista de Materiais. Quando um vendedor cria um pedido " +"de venda, ele pode relacionar isso a várias propriedades e o OpenErp irá " +"automaticamente selecionar o BoM de acordo com as necessidades." #. module: mrp #: help:mrp.production,picking_id:0 @@ -691,7 +697,7 @@ msgstr "Pronto" #. module: mrp #: model:product.template,name:mrp.product_buttons_product_template msgid "Shirt Buttons" -msgstr "" +msgstr "Botões de Camiseta" #. module: mrp #: help:mrp.production,routing_id:0 @@ -714,7 +720,7 @@ msgstr "Tempo em horas para fazer um ciclo." #. module: mrp #: constraint:mrp.bom:0 msgid "BoM line product should not be same as BoM product." -msgstr "" +msgstr "Produtos de linha BoM não devem ser os mesmo que produtos BoM" #. module: mrp #: view:mrp.production:0 @@ -844,6 +850,11 @@ msgid "" "resource leave are not taken into account in the time computation of the " "work center." msgstr "" +"Centro de Trabalho te permitem criar e gerenciar unidades de produção. Eles " +"consistem em trabalhadores e/ou máquinas, que são considerados como unidades " +"para capacidade e planejamento da previsão. Lembre se que o tempo de " +"trabalho e recursos não são levados em consideração no tempo de cálculo do " +"centro de trabalho." #. module: mrp #: model:ir.model,name:mrp.model_mrp_production @@ -899,7 +910,7 @@ msgstr "Pesquisar" #: code:addons/mrp/mrp.py:626 #, python-format msgid "Could not cancel manufacturing order !" -msgstr "" +msgstr "Não pode cancelar uma ordem de produção !" #. module: mrp #: field:report.workcenter.load,cycle:0 @@ -918,6 +929,8 @@ msgid "" "You must first cancel related internal picking attached to this " "manufacturing order." msgstr "" +"Voce deve primeiro cancelar as ordens de movimentação internas ligadas a " +"esta ordem de produção." #. module: mrp #: model:process.node,name:mrp.process_node_minimumstockrule0 @@ -929,7 +942,7 @@ msgstr "Estoque Mínimo" #: code:addons/mrp/mrp.py:503 #, python-format msgid "Cannot delete a manufacturing order in state '%s'" -msgstr "" +msgstr "Não é possível apagar uma ordem de produção no estado '%s'" #. module: mrp #: model:ir.ui.menu,name:mrp.menus_dash_mrp @@ -941,7 +954,7 @@ msgstr "Painel" #: code:addons/mrp/report/price.py:211 #, python-format msgid "Total Cost of %s %s" -msgstr "" +msgstr "Custo total de %s %s" #. module: mrp #: model:process.node,name:mrp.process_node_stockproduct0 @@ -1046,7 +1059,7 @@ msgstr "Painel de Produção" #. module: mrp #: model:res.groups,name:mrp.group_mrp_manager msgid "Manager" -msgstr "" +msgstr "Gerente" #. module: mrp #: view:mrp.production:0 @@ -1108,12 +1121,12 @@ msgstr "" #. module: mrp #: model:ir.actions.todo.category,name:mrp.category_mrp_config msgid "MRP Management" -msgstr "" +msgstr "Controle de Produção" #. module: mrp #: help:mrp.workcenter,costs_hour:0 msgid "Specify Cost of Work Center per hour." -msgstr "" +msgstr "Especifique o Custo do Centro de Trabalho por hora." #. module: mrp #: help:mrp.workcenter,capacity_per_cycle:0 @@ -1121,6 +1134,9 @@ msgid "" "Number of operations this Work Center can do in parallel. If this Work " "Center represents a team of 5 workers, the capacity per cycle is 5." msgstr "" +"Número de operações que este Centro de trabalho pode fazer em paralelo. Se " +"este Centro de Trabalho representa uma equipe de 5 funcionários, a " +"capacidade por ciclo é 5." #. module: mrp #: model:ir.actions.act_window,name:mrp.mrp_production_action3 @@ -1163,6 +1179,8 @@ msgid "" "Time in hours for this Work Center to achieve the operation of the specified " "routing." msgstr "" +"Tempo em horas para este Centro de Trabalho para concluir a operação da rota " +"especificada." #. module: mrp #: field:mrp.workcenter,costs_journal_id:0 @@ -1197,7 +1215,7 @@ msgstr "" #. module: mrp #: model:ir.actions.act_window,name:mrp.product_form_config_action msgid "Create or Import Products" -msgstr "" +msgstr "Cria ou Importa Produtos" #. module: mrp #: field:report.workcenter.load,hour:0 @@ -1217,7 +1235,7 @@ msgstr "Observações" #. module: mrp #: view:mrp.production:0 msgid "Manufacturing Orders which are ready to start production." -msgstr "" +msgstr "Ordens de produção que estao prontas para iniciar." #. module: mrp #: model:ir.model,name:mrp.model_mrp_bom @@ -1249,6 +1267,9 @@ msgid "" "Routing is indicated then,the third tab of a production order (Work Centers) " "will be automatically pre-completed." msgstr "" +"Roteamento indica todos os Centros de Trabalho usados, por quanto " +"tempo/ciclos. Se o Roteamento está indicado então, a terceira aba da ordem " +"de produção (Centros de Trabalho) será automaticamente completada." #. module: mrp #: model:process.transition,note:mrp.process_transition_producttostockrules0 @@ -1265,7 +1286,7 @@ msgstr "" #: code:addons/mrp/report/price.py:187 #, python-format msgid "Components Cost of %s %s" -msgstr "" +msgstr "Custos de Componentes de %s %s" #. module: mrp #: selection:mrp.workcenter.load,time_unit:0 @@ -1280,7 +1301,7 @@ msgstr "Revisões" #. module: mrp #: model:product.template,name:mrp.product_shirt_product_template msgid "Shirt" -msgstr "" +msgstr "Camisa" #. module: mrp #: field:mrp.production,priority:0 @@ -1318,7 +1339,7 @@ msgstr "Produção Agendada do Produto" #: code:addons/mrp/report/price.py:204 #, python-format msgid "Work Cost of %s %s" -msgstr "" +msgstr "Custos de Trabalho para %s %s" #. module: mrp #: help:res.company,manufacturing_lead:0 @@ -1328,12 +1349,12 @@ msgstr "Dias de segurança para cada operação de produção." #. module: mrp #: model:product.template,name:mrp.product_water_product_template msgid "Water" -msgstr "" +msgstr "Água" #. module: mrp #: view:mrp.bom:0 msgid "Component Name" -msgstr "" +msgstr "Nome do Componente" #. module: mrp #: model:process.node,name:mrp.process_node_mts0 @@ -1345,7 +1366,7 @@ msgstr "Avaliar Estoque" #. module: mrp #: constraint:mrp.production:0 msgid "Order quantity cannot be negative or zero!" -msgstr "" +msgstr "A quantidade do pedido não pode ser negativa ou zero!" #. module: mrp #: model:ir.actions.act_window,help:mrp.mrp_bom_form_action @@ -1438,7 +1459,7 @@ msgstr "Pendente" #: code:addons/mrp/mrp.py:603 #, python-format msgid "Couldn't find a bill of material for this product." -msgstr "" +msgstr "Não é possível localizar a lista de materiais para este produto." #. module: mrp #: field:mrp.bom,active:0 @@ -1521,7 +1542,7 @@ msgstr "Não urgente" #. module: mrp #: field:mrp.production,user_id:0 msgid "Responsible" -msgstr "" +msgstr "Responsável" #. module: mrp #: model:ir.actions.act_window,name:mrp.mrp_production_action2 @@ -1606,6 +1627,8 @@ msgid "" "Description of the Work Center. Explain here what's a cycle according to " "this Work Center." msgstr "" +"Descrição do Centro de Trabalho. Explica aqui o que é uma ciclo de acordo " +"com este Centro de Trabalho." #. module: mrp #: view:mrp.production.lot.line:0 @@ -1745,6 +1768,8 @@ msgid "" "You are going to consume total %s quantities of \"%s\".\n" "But you can only consume up to total %s quantities." msgstr "" +"Você vai consumir um total de %s quantidades de \"%s\".\n" +"Mas voce pode consumir até %s quantidades." #. module: mrp #: model:process.transition,note:mrp.process_transition_bom0 @@ -1881,7 +1906,7 @@ msgstr "Arredondamento do Produto" #. module: mrp #: selection:mrp.production,state:0 msgid "New" -msgstr "" +msgstr "Novo" #. module: mrp #: selection:mrp.product.produce,mode:0 @@ -1943,7 +1968,7 @@ msgstr "Configuração" #. module: mrp #: view:mrp.bom:0 msgid "Starting Date" -msgstr "" +msgstr "Data de Início" #. module: mrp #: field:mrp.workcenter,time_stop:0 @@ -1998,7 +2023,7 @@ msgstr "Tempo em horas para a configuração." #. module: mrp #: model:product.template,name:mrp.product_orangejuice_product_template msgid "Orange Juice" -msgstr "" +msgstr "Suco de Laranja" #. module: mrp #: field:mrp.bom.revision,bom_id:0 @@ -2048,7 +2073,7 @@ msgstr "Normal" #. module: mrp #: view:mrp.production:0 msgid "Production started late" -msgstr "" +msgstr "Produção iniciada com atraso" #. module: mrp #: model:process.node,note:mrp.process_node_routing0 @@ -2065,7 +2090,7 @@ msgstr "Estrutura de Custo" #. module: mrp #: model:res.groups,name:mrp.group_mrp_user msgid "User" -msgstr "" +msgstr "Usuário" #. module: mrp #: selection:mrp.product.produce,mode:0 @@ -2096,7 +2121,7 @@ msgstr "" #. module: mrp #: model:product.uom,name:mrp.product_uom_litre msgid "Litre" -msgstr "" +msgstr "Litro" #. module: mrp #: code:addons/mrp/mrp.py:762 @@ -2105,6 +2130,8 @@ msgid "" "You are going to produce total %s quantities of \"%s\".\n" "But you can only produce up to total %s quantities." msgstr "" +"Você precisa produzir um total de %s para a quantidade de \"%s\".\n" +"Mas você só pode produzir um total de até %s" #. module: mrp #: model:process.node,note:mrp.process_node_stockproduct0 @@ -2122,7 +2149,7 @@ msgstr "Erro" #. module: mrp #: selection:mrp.production,state:0 msgid "Production Started" -msgstr "" +msgstr "Produção Iniciada" #. module: mrp #: field:mrp.product.produce,product_qty:0 @@ -2281,7 +2308,7 @@ msgstr "" #: code:addons/mrp/mrp.py:954 #, python-format msgid "PROD: %s" -msgstr "" +msgstr "PROD: %s" #. module: mrp #: help:mrp.workcenter,time_stop:0 diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 4394dd3d3d4..ea219621ea6 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -448,6 +448,14 @@ class mrp_production(osv.osv): result[prod.id] = prod.date_planned[:10] return result + def _src_id_default(self, cr, uid, ids, context=None): + src_location_id = self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'stock_location_stock', context=context) + return src_location_id.id + + def _dest_id_default(self, cr, uid, ids, context=None): + dest_location_id = self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'stock_location_stock', context=context) + return dest_location_id.id + _columns = { 'name': fields.char('Reference', size=64, required=True), 'origin': fields.char('Source Document', size=64, help="Reference of the document that generated this production order request."), @@ -496,6 +504,8 @@ class mrp_production(osv.osv): 'product_qty': lambda *a: 1.0, 'name': lambda x, y, z, c: x.pool.get('ir.sequence').get(y, z, 'mrp.production') or '/', 'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'mrp.production', context=c), + 'location_src_id': _src_id_default, + 'location_dest_id': _dest_id_default } _sql_constraints = [ ('name_uniq', 'unique(name, company_id)', 'Reference must be unique per Company!'), @@ -567,10 +577,12 @@ class mrp_production(osv.osv): if bom_id: bom_point = bom_obj.browse(cr, uid, bom_id, context=context) routing_id = bom_point.routing_id.id or False + + product_uom_id = product.uom_id and product.uom_id.id or False result = { - 'product_uom': product.uom_id and product.uom_id.id or False, + 'product_uom': product_uom_id, 'bom_id': bom_id, - 'routing_id': routing_id + 'routing_id': routing_id, } return {'value': result} diff --git a/addons/mrp/mrp_data.xml b/addons/mrp/mrp_data.xml index 64dd9f2c9e5..7e98554a2ed 100644 --- a/addons/mrp/mrp_data.xml +++ b/addons/mrp/mrp_data.xml @@ -1,6 +1,20 @@ + + + + + Module MRP has been installed + Manage your manufacturing process in OpenERP by defining bill + of materials (BoM), routings and work centers. This module + supports complete integration and planification of stockable + goods, consumable, and services. + + From the Manufacturing Settings, you can choose to compute + production schedules periodically or just-in-time. + + Production order diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 2d3e90c341a..0449f590127 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -653,7 +653,7 @@
    - + @@ -223,11 +223,11 @@ - +
    +
    + +
    - + - + + + + + + + - - - - + + + + @@ -455,7 +471,7 @@ - + diff --git a/addons/sale/security/sale_security.xml b/addons/sale/security/sale_security.xml index 0cb55fb0d30..47a577e77c3 100644 --- a/addons/sale/security/sale_security.xml +++ b/addons/sale/security/sale_security.xml @@ -35,6 +35,11 @@ + + Properties on lines + + + Discount on lines diff --git a/addons/sale/stock_view.xml b/addons/sale/stock_view.xml index 928eebafcae..40de6872be0 100644 --- a/addons/sale/stock_view.xml +++ b/addons/sale/stock_view.xml @@ -10,6 +10,9 @@ + @@ -71,7 +74,7 @@ form tree,form,calendar [('type','=','out')] - {'default_type': 'out', 'contact_display': 'partner_address', 'search_default_to_invoice': 1, 'search_default_done': 1} + {'default_type': 'out', 'contact_display': 'partner_address', 'search_default_to_invoice': 1, 'search_default_done': 1, 'default_invoice_state': '2binvoiced'} diff --git a/addons/sale/test/manual_order_policy.yml b/addons/sale/test/manual_order_policy.yml index bb197763486..505ab0933d0 100644 --- a/addons/sale/test/manual_order_policy.yml +++ b/addons/sale/test/manual_order_policy.yml @@ -16,7 +16,7 @@ ctx = context.copy() ctx.update({"active_model": 'sale.order', "active_ids": [ref("order4")], "active_id":ref("order4")}) order_line = self.pool.get('sale.order.line').browse(cr, uid, ref("line7"), context=context) - pay_id = self.create(cr, uid, {'product_id': order_line.product_id.id, 'amount': order_line.price_subtotal, 'qtty': order_line.product_uom_qty}) + pay_id = self.create(cr, uid, {'advance_payment_method': 'fixed', 'product_id': order_line.product_id.id, 'amount': order_line.price_subtotal, 'qtty': order_line.product_uom_qty}) self.create_invoices(cr, uid, [pay_id], context=ctx) - I check Invoice which made advance diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index 08f67106870..39999a8d1b7 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -26,189 +26,198 @@ class sale_advance_payment_inv(osv.osv_memory): _name = "sale.advance.payment.inv" _description = "Sales Advance Payment Invoice" - def _default_product_id(self, cr, uid, context=None): - try: - product_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'sale', 'advance_product_0') - except ValueError: - #a ValueError is returned if the xml id given is not found in the table ir_model_data - return False - return product_id[1] - _columns = { - 'product_id': fields.many2one('product.product', 'Advance Product', help="Select a product of type service which is called 'Advance Product'. You may have to create it and set it as a default value on this field."), - 'amount': fields.float('Advance Amount', digits_compute= dp.get_precision('Sale Price'), required=True, help="The amount to be invoiced in advance."), + 'advance_payment_method':fields.selection( + [('all', 'All'), ('percentage','Percentage'), ('fixed','Fixed Price'), + ('lines', 'Some Order Lines')], + 'Type', required=True, + help="""Use All to create the final invoice. + Use Percentage to invoice a percentage of the total amount. + Use Fixed Price to invoice a specific amound in advance. + Use Some Order Lines to invoice a selection of the sale order lines."""), 'qtty': fields.float('Quantity', digits=(16, 2), required=True), - 'advance_payment_method':fields.selection([('percentage','Percentage'), ('fixed','Fixed Price')], 'Type', required=True, help="Use Fixed Price if you want to give specific amount in Advance. Use Percentage if you want to give percentage of Total Invoice Amount."), + 'product_id': fields.many2one('product.product', 'Advance Product', + help="""Select a product of type service which is called 'Advance Product'. + You may have to create it and set it as a default value on this field."""), + 'amount': fields.float('Advance Amount', digits_compute= dp.get_precision('Sale Price'), + help="The amount to be invoiced in advance."), } + def _get_advance_product(self, cr, uid, context=None): + try: + product = self.pool.get('ir.model.data').get_object(cr, uid, 'sale', 'advance_product_0') + except ValueError: + # a ValueError is returned if the xml id given is not found in the table ir_model_data + return False + return product.id + _defaults = { + 'advance_payment_method': 'all', 'qtty': 1.0, - 'advance_payment_method': 'fixed', - 'product_id': _default_product_id, + 'product_id': _get_advance_product, } - def onchange_advance_payment_method(self, cr, uid, ids, advance_payment_method, product_id, context=None): + def onchange_method(self, cr, uid, ids, advance_payment_method, product_id, context=None): if advance_payment_method == 'percentage': return {'value': {'amount':0, 'product_id':False }} - if not product_id: - return {'value': {'amount': 0}} - product = self.pool.get('product.product').browse(cr, uid, product_id, context=context) - return {'value': {'amount': product.list_price}} - + if product_id: + product = self.pool.get('product.product').browse(cr, uid, product_id, context=context) + return {'value': {'amount': product.list_price}} + return {'value': {'amount': 0}} def create_invoices(self, cr, uid, ids, context=None): - """ - To create invoices. - - @param self: The object pointer. - @param cr: A database cursor - @param uid: ID of the user currently logged in - @param ids: the ID or list of IDs if we want more than one - @param context: A standard dictionary - - @return: - - """ - list_inv = [] - obj_sale = self.pool.get('sale.order') - obj_lines = self.pool.get('account.invoice.line') - inv_obj = self.pool.get('account.invoice') + """ create invoices for the active sale orders """ if context is None: context = {} + wizard = self.browse(cr, uid, ids[0], context) + sale_ids = context.get('active_ids', []) - for sale_adv_obj in self.browse(cr, uid, ids, context=context): - for sale in obj_sale.browse(cr, uid, context.get('active_ids', []), context=context): - create_ids = [] - ids_inv = [] - if sale.order_policy == 'postpaid': - raise osv.except_osv( - _('Error'), - _("You cannot make an advance on a sales order \ - that is defined as 'Automatic Invoice after delivery'.")) - val = obj_lines.product_id_change(cr, uid, [], sale_adv_obj.product_id.id, - uom = False, partner_id = sale.partner_id.id, fposition_id = sale.fiscal_position.id) - res = val['value'] + if wizard.advance_payment_method == 'all': + # create the final invoices of the active sale orders + res = self.pool.get('sale.order').manual_invoice(cr, uid, sale_ids, context) + if context.get('open_invoices', False): + return res + return {'type': 'ir.actions.act_window_close'} - if not sale_adv_obj.product_id.id : - prop = self.pool.get('ir.property').get(cr, uid, - 'property_account_income_categ', 'product.category', - context=context) - account_id = prop and prop.id or False - account_id = self.pool.get('account.fiscal.position').map_account(cr, uid, sale.fiscal_position.id or False, account_id) - if not account_id: - raise osv.except_osv(_('Configuration Error !'), - _('There is no income account defined as global property.')) - res['account_id'] = account_id + if wizard.advance_payment_method == 'lines': + # open the list view of sale order lines to invoice + act_window = self.pool.get('ir.actions.act_window') + res = act_window.for_xml_id(cr, uid, 'sale', 'action_order_line_tree2', context) + res['context'] = { + 'search_default_uninvoiced': 1, + 'search_default_order_id': sale_ids and sale_ids[0] or False, + } + return res - if not res.get('account_id'): + assert wizard.advance_payment_method in ('fixed', 'percentage') + + sale_obj = self.pool.get('sale.order') + inv_obj = self.pool.get('account.invoice') + inv_line_obj = self.pool.get('account.invoice.line') + inv_ids = [] + + for sale in sale_obj.browse(cr, uid, sale_ids, context=context): + if sale.order_policy == 'postpaid': + raise osv.except_osv( + _('Error'), + _("You cannot make an advance on a sales order \ + that is defined as 'Automatic Invoice after delivery'.")) + + val = inv_line_obj.product_id_change(cr, uid, [], wizard.product_id.id, + uom=False, partner_id=sale.partner_id.id, fposition_id=sale.fiscal_position.id) + res = val['value'] + + # determine and check income account + if not wizard.product_id.id : + prop = self.pool.get('ir.property').get(cr, uid, + 'property_account_income_categ', 'product.category', context=context) + prop_id = prop and prop.id or False + account_id = self.pool.get('account.fiscal.position').map_account(cr, uid, sale.fiscal_position.id or False, prop_id) + if not account_id: raise osv.except_osv(_('Configuration Error !'), - _('There is no income account defined ' \ - 'for this product: "%s" (id:%d)') % \ - (sale_adv_obj.product_id.name, sale_adv_obj.product_id.id,)) + _('There is no income account defined as global property.')) + res['account_id'] = account_id + if not res.get('account_id'): + raise osv.except_osv(_('Configuration Error !'), + _('There is no income account defined for this product: "%s" (id:%d)') % \ + (wizard.product_id.name, wizard.product_id.id,)) - final_amount = 0 - if sale_adv_obj.amount <= 0.00: - raise osv.except_osv(_('Data Insufficient !'), - _('Please check the Advance Amount, it should not be 0 or less!')) - if sale_adv_obj.advance_payment_method == 'percentage': - final_amount = sale.amount_total * sale_adv_obj.amount / 100 - if not res.get('name'): - res['name'] = _("Advance of %s %%") % (sale_adv_obj.amount) - else: - final_amount = sale_adv_obj.amount - if not res.get('name'): - #TODO: should find a way to call formatLang() from rml_parse - if sale.pricelist_id.currency_id.position == 'after': - res['name'] = _("Advance of %s %s") % (final_amount, sale.pricelist_id.currency_id.symbol) - else: - res['name'] = _("Advance of %s %s") % (sale.pricelist_id.currency_id.symbol, final_amount) + # determine invoice amount + if wizard.amount <= 0.00: + raise osv.except_osv(_('Incorrect Data'), + _('The value of Advance Amount must be positive.')) + if wizard.advance_payment_method == 'percentage': + inv_amount = sale.amount_total * wizard.amount / 100 + if not res.get('name'): + res['name'] = _("Advance of %s %%") % (wizard.amount) + else: + inv_amount = wizard.amount + if not res.get('name'): + #TODO: should find a way to call formatLang() from rml_parse + symbol = sale.pricelist_id.currency_id.symbol + if sale.pricelist_id.currency_id.position == 'after': + res['name'] = _("Advance of %s %s") % (inv_amount, symbol) + else: + res['name'] = _("Advance of %s %s") % (symbol, inv_amount) - if res.get('invoice_line_tax_id'): - res['invoice_line_tax_id'] = [(6, 0, res.get('invoice_line_tax_id'))] - else: - res['invoice_line_tax_id'] = False + # determine taxes + if res.get('invoice_line_tax_id'): + res['invoice_line_tax_id'] = [(6, 0, res.get('invoice_line_tax_id'))] + else: + res['invoice_line_tax_id'] = False - line_id = obj_lines.create(cr, uid, { + # create the invoice + inv_line_values = { + 'name': res.get('name'), + 'account_id': res['account_id'], + 'price_unit': inv_amount, + 'quantity': wizard.qtty or 1.0, + 'discount': False, + 'uos_id': res.get('uos_id', False), + 'product_id': wizard.product_id.id, + 'invoice_line_tax_id': res.get('invoice_line_tax_id'), + 'account_analytic_id': sale.project_id.id or False, + } + inv_values = { + 'name': sale.client_order_ref or sale.name, + 'origin': sale.name, + 'type': 'out_invoice', + 'reference': False, + 'account_id': sale.partner_id.property_account_receivable.id, + 'partner_id': sale.partner_id.id, + 'invoice_line': [(0, 0, inv_line_values)], + 'currency_id': sale.pricelist_id.currency_id.id, + 'comment': '', + 'payment_term': sale.payment_term.id, + 'fiscal_position': sale.fiscal_position.id or sale.partner_id.property_account_position.id + } + inv_id = inv_obj.create(cr, uid, inv_values, context=context) + inv_obj.button_reset_taxes(cr, uid, [inv_id], context=context) + inv_ids.append(inv_id) + + # add the invoice to the sale order's invoices + sale.write({'invoice_ids': [(4, inv_id)]}) + + # If invoice on picking: add the cost on the SO + # If not, the advance will be deduced when generating the final invoice + if sale.order_policy == 'picking': + vals = { + 'order_id': sale.id, 'name': res.get('name'), - 'account_id': res['account_id'], - 'price_unit': final_amount, - 'quantity': sale_adv_obj.qtty or 1.0, + 'price_unit': -inv_amount, + 'product_uom_qty': wizard.qtty or 1.0, + 'product_uos_qty': wizard.qtty or 1.0, + 'product_uos': res.get('uos_id', False), + 'product_uom': res.get('uom_id', False), + 'product_id': wizard.product_id.id or False, 'discount': False, - 'uos_id': res.get('uos_id', False), - 'product_id': sale_adv_obj.product_id.id, - 'invoice_line_tax_id': res.get('invoice_line_tax_id'), - 'account_analytic_id': sale.project_id.id or False, - #'note':'', - }) - create_ids.append(line_id) - inv = { - 'name': sale.client_order_ref or sale.name, - 'origin': sale.name, - 'type': 'out_invoice', - 'reference': False, - 'account_id': sale.partner_id.property_account_receivable.id, - 'partner_id': sale.partner_id.id, - 'invoice_line': [(6, 0, create_ids)], - 'currency_id': sale.pricelist_id.currency_id.id, - 'comment': '', - 'payment_term': sale.payment_term.id, - 'fiscal_position': sale.fiscal_position.id or sale.partner_id.property_account_position.id + 'tax_id': res.get('invoice_line_tax_id'), } + self.pool.get('sale.order.line').create(cr, uid, vals, context=context) - inv_id = inv_obj.create(cr, uid, inv) - inv_obj.button_reset_taxes(cr, uid, [inv_id], context=context) - - for inv in sale.invoice_ids: - ids_inv.append(inv.id) - ids_inv.append(inv_id) - obj_sale.write(cr, uid, [sale.id], {'invoice_ids': [(6, 0, ids_inv)]}) - list_inv.append(inv_id) - # - # If invoice on picking: add the cost on the SO - # If not, the advance will be deduced when generating the final invoice - # - if sale.order_policy == 'picking': - vals = { - 'order_id': sale.id, - 'name': res.get('name'), - 'price_unit': -final_amount, - 'product_uom_qty': sale_adv_obj.qtty or 1.0, - 'product_uos_qty': sale_adv_obj.qtty or 1.0, - 'product_uos': res.get('uos_id', False), - 'product_uom': res.get('uom_id', False), - 'product_id': sale_adv_obj.product_id.id or False, - 'discount': False, - 'tax_id': res.get('invoice_line_tax_id'), - } - self.pool.get('sale.order.line').create(cr, uid, vals, context=context) - - context.update({'invoice_id':list_inv}) - - if context.get('open_invoices'): - return self.open_invoices( cr, uid, ids, context=context) + if context.get('open_invoices', False): + return self.open_invoices( cr, uid, ids, inv_ids, context=context) return {'type': 'ir.actions.act_window_close'} - def open_invoices(self, cr, uid, ids, context=None): - if context is None: - context = {} - mod_obj = self.pool.get('ir.model.data') - for advance_pay in self.browse(cr, uid, ids, context=context): - form_res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_form') - form_id = form_res and form_res[1] or False - tree_res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_tree') - tree_id = tree_res and tree_res[1] or False + def open_invoices(self, cr, uid, ids, invoice_ids, context=None): + """ open a view on one of the given invoice_ids """ + ir_model_data = self.pool.get('ir.model.data') + form_res = ir_model_data.get_object_reference(cr, uid, 'account', 'invoice_form') + form_id = form_res and form_res[1] or False + tree_res = ir_model_data.get_object_reference(cr, uid, 'account', 'invoice_tree') + tree_id = tree_res and tree_res[1] or False return { 'name': _('Advance Invoice'), 'view_type': 'form', 'view_mode': 'form,tree', 'res_model': 'account.invoice', - 'res_id': int(context['invoice_id'][0]), + 'res_id': invoice_ids[0], 'view_id': False, 'views': [(form_id, 'form'), (tree_id, 'tree')], 'context': "{'type': 'out_invoice'}", 'type': 'ir.actions.act_window', - } + } sale_advance_payment_inv() diff --git a/addons/sale/wizard/sale_make_invoice_advance.xml b/addons/sale/wizard/sale_make_invoice_advance.xml index 8d6b78e4f03..28f5dc093cd 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.xml +++ b/addons/sale/wizard/sale_make_invoice_advance.xml @@ -7,19 +7,35 @@ form
    -
    -
    - - - + + - - + + +
    +
    diff --git a/addons/sale_crm/i18n/ja.po b/addons/sale_crm/i18n/ja.po index 5a7e0b77495..44e1c1cc23a 100644 --- a/addons/sale_crm/i18n/ja.po +++ b/addons/sale_crm/i18n/ja.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2012-02-08 00:37+0000\n" -"PO-Revision-Date: 2012-07-06 21:31+0000\n" +"PO-Revision-Date: 2012-07-30 16:29+0000\n" "Last-Translator: Akira Hiyama \n" "Language-Team: Japanese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-31 04:58+0000\n" +"X-Generator: Launchpad (build 15702)\n" #. module: sale_crm #: field:sale.order,categ_id:0 @@ -31,12 +31,12 @@ msgstr "注文参照は、会社ごとに固有でなければなりません。 #: code:addons/sale_crm/wizard/crm_make_sale.py:112 #, python-format msgid "Converted to Sales Quotation(%s)." -msgstr "販売見積書(%s)を移動" +msgstr "受注見積(%s)に変換" #. module: sale_crm #: view:crm.make.sale:0 msgid "Convert to Quotation" -msgstr "見積りへ移動" +msgstr "見積に変換" #. module: sale_crm #: code:addons/sale_crm/wizard/crm_make_sale.py:89 @@ -48,7 +48,7 @@ msgstr "データ不足です。" #: code:addons/sale_crm/wizard/crm_make_sale.py:89 #, python-format msgid "Customer has no addresses defined!" -msgstr "顧客の住所が不明確です。" +msgstr "顧客の住所が定義されていません。" #. module: sale_crm #: model:ir.model,name:sale_crm.model_crm_make_sale @@ -58,7 +58,7 @@ msgstr "営業する。" #. module: sale_crm #: view:crm.make.sale:0 msgid "_Create" -msgstr "_作成" +msgstr "作成" #. module: sale_crm #: view:sale.order:0 @@ -69,22 +69,22 @@ msgstr "私の営業チーム" #: help:crm.make.sale,close:0 msgid "" "Check this to close the opportunity after having created the sale order." -msgstr "発注書を作成後、これをチェックしオポチュニティを終了します。" +msgstr "発注書を作成後、商談を終了するためにこれをチェックします。" #. module: sale_crm #: view:board.board:0 msgid "My Opportunities" -msgstr "私のオポチュニティ" +msgstr "私の商談" #. module: sale_crm #: view:crm.lead:0 msgid "Convert to Quote" -msgstr "見積りへ移動" +msgstr "見積に変換" #. module: sale_crm #: field:crm.make.sale,shop_id:0 msgid "Shop" -msgstr "お店" +msgstr "店" #. module: sale_crm #: field:crm.make.sale,partner_id:0 @@ -95,12 +95,12 @@ msgstr "顧客" #: code:addons/sale_crm/wizard/crm_make_sale.py:92 #, python-format msgid "Opportunity: %s" -msgstr "オポチュニティ: %s" +msgstr "商談:%s" #. module: sale_crm #: field:crm.make.sale,close:0 msgid "Close Opportunity" -msgstr "オポチュニティ成立" +msgstr "商談を閉じる" #. module: sale_crm #: view:board.board:0 @@ -111,7 +111,7 @@ msgstr "段階別私の計画売上高" #: code:addons/sale_crm/wizard/crm_make_sale.py:110 #, python-format msgid "Opportunity '%s' is converted to Quotation." -msgstr "オポチュニティの'%s' は、見積に変換されました。" +msgstr "商談 %s は見積に変換されました。" #. module: sale_crm #: view:sale.order:0 @@ -122,7 +122,7 @@ msgstr "営業チーム" #. module: sale_crm #: model:ir.actions.act_window,name:sale_crm.action_crm_make_sale msgid "Make Quotation" -msgstr "見積り作成" +msgstr "見積作成" #. module: sale_crm #: view:crm.make.sale:0 @@ -132,4 +132,4 @@ msgstr "キャンセル" #. module: sale_crm #: model:ir.model,name:sale_crm.model_sale_order msgid "Sales Order" -msgstr "受注" +msgstr "受注オーダー" diff --git a/addons/sale_crm/i18n/pt_BR.po b/addons/sale_crm/i18n/pt_BR.po index 4737b125eac..110bef65e51 100644 --- a/addons/sale_crm/i18n/pt_BR.po +++ b/addons/sale_crm/i18n/pt_BR.po @@ -7,30 +7,30 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-02-08 00:37+0000\n" -"PO-Revision-Date: 2011-01-29 10:47+0000\n" -"Last-Translator: Emerson \n" +"PO-Revision-Date: 2012-07-28 19:41+0000\n" +"Last-Translator: Fábio Martinelli \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-07-14 05:49+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-29 04:37+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: sale_crm #: field:sale.order,categ_id:0 msgid "Category" -msgstr "" +msgstr "Categoria" #. module: sale_crm #: sql_constraint:sale.order:0 msgid "Order Reference must be unique per Company!" -msgstr "" +msgstr "Referência de ordem deve ser única por empresa!" #. module: sale_crm #: code:addons/sale_crm/wizard/crm_make_sale.py:112 #, python-format msgid "Converted to Sales Quotation(%s)." -msgstr "" +msgstr "Convertido para Cotação (%s)." #. module: sale_crm #: view:crm.make.sale:0 @@ -62,7 +62,7 @@ msgstr "_Criar" #. module: sale_crm #: view:sale.order:0 msgid "My Sales Team(s)" -msgstr "" +msgstr "Minha Equipe de Vendas" #. module: sale_crm #: help:crm.make.sale,close:0 @@ -75,7 +75,7 @@ msgstr "" #. module: sale_crm #: view:board.board:0 msgid "My Opportunities" -msgstr "" +msgstr "Minhas Oportunidades" #. module: sale_crm #: view:crm.lead:0 @@ -106,13 +106,13 @@ msgstr "Fechar Oportunidade" #. module: sale_crm #: view:board.board:0 msgid "My Planned Revenues by Stage" -msgstr "" +msgstr "Minhas Receitas Planejadas por Estágio" #. module: sale_crm #: code:addons/sale_crm/wizard/crm_make_sale.py:110 #, python-format msgid "Opportunity '%s' is converted to Quotation." -msgstr "" +msgstr "A Oportunidade '%s' foi convertida para uma cotação." #. module: sale_crm #: view:sale.order:0 diff --git a/addons/sale_crm/sale_crm.py b/addons/sale_crm/sale_crm.py index 0072730ab4d..b6d5ec25ce1 100644 --- a/addons/sale_crm/sale_crm.py +++ b/addons/sale_crm/sale_crm.py @@ -26,7 +26,7 @@ class sale_order(osv.osv): _columns = { 'section_id': fields.many2one('crm.case.section', 'Sales Team'), - 'categ_id': fields.many2one('crm.case.categ', 'Category', \ + 'categ_ids': fields.many2many('crm.case.categ', 'sale_order_category_rel', 'order_id', 'category_id', 'Categories', \ domain="['|',('section_id','=',section_id),('section_id','=',False), ('object_id.model', '=', 'crm.lead')]") } diff --git a/addons/sale_crm/sale_crm_view.xml b/addons/sale_crm/sale_crm_view.xml index 0c46f0ae704..d6b7f28d049 100644 --- a/addons/sale_crm/sale_crm_view.xml +++ b/addons/sale_crm/sale_crm_view.xml @@ -24,7 +24,7 @@ - + diff --git a/addons/sale_crm/wizard/crm_make_sale.py b/addons/sale_crm/wizard/crm_make_sale.py index 823d8d6ab07..83d7a0a7783 100644 --- a/addons/sale_crm/wizard/crm_make_sale.py +++ b/addons/sale_crm/wizard/crm_make_sale.py @@ -86,11 +86,11 @@ class crm_make_sale(osv.osv_memory): pricelist = partner.property_product_pricelist.id if False in partner_addr.values(): raise osv.except_osv(_('Data Insufficient!'), _('Customer has no addresses defined!')) - + vals = { 'origin': _('Opportunity: %s') % str(case.id), 'section_id': case.section_id and case.section_id.id or False, - 'categ_id': case.categ_id and case.categ_id.id or False, + 'categ_ids': [(6, 0, [categ_id.id for categ_id in case.categ_ids])], 'shop_id': make.shop_id.id, 'partner_id': partner.id, 'pricelist_id': pricelist, diff --git a/addons/sale_journal/i18n/pt_BR.po b/addons/sale_journal/i18n/pt_BR.po index 31e94c023d1..0f8910c0e8e 100644 --- a/addons/sale_journal/i18n/pt_BR.po +++ b/addons/sale_journal/i18n/pt_BR.po @@ -7,19 +7,19 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2012-02-08 00:37+0000\n" -"PO-Revision-Date: 2011-01-14 09:27+0000\n" -"Last-Translator: Emerson \n" +"PO-Revision-Date: 2012-07-28 19:50+0000\n" +"Last-Translator: Fábio Martinelli \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-07-14 06:04+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-29 04:37+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: sale_journal #: sql_constraint:sale.order:0 msgid "Order Reference must be unique per Company!" -msgstr "" +msgstr "Referência de ordem deve ser única por empresa!" #. module: sale_journal #: field:sale_journal.invoice.type,note:0 @@ -29,7 +29,7 @@ msgstr "Nota" #. module: sale_journal #: field:res.partner,property_invoice_type:0 msgid "Invoicing Type" -msgstr "" +msgstr "Tipo de Fatura" #. module: sale_journal #: help:res.partner,property_invoice_type:0 @@ -37,11 +37,12 @@ msgid "" "This invoicing type will be used, by default, for invoicing the current " "partner." msgstr "" +"Este tipo de fatura será usada, por padrão, para faturar o parceiro atual." #. module: sale_journal #: constraint:res.partner:0 msgid "Error ! You cannot create recursive associated members." -msgstr "" +msgstr "Erro! Você não pode criar recursivamente a membros associados." #. module: sale_journal #: view:res.partner:0 @@ -99,7 +100,7 @@ msgstr "" #. module: sale_journal #: sql_constraint:stock.picking:0 msgid "Reference must be unique per Company!" -msgstr "" +msgstr "A referência deve ser única por empresa!" #. module: sale_journal #: field:sale.order,invoice_type_id:0 diff --git a/addons/sale_margin/i18n/ja.po b/addons/sale_margin/i18n/ja.po index 6d04bd6e6e0..e9c76e11755 100644 --- a/addons/sale_margin/i18n/ja.po +++ b/addons/sale_margin/i18n/ja.po @@ -8,19 +8,19 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2012-02-08 00:37+0000\n" -"PO-Revision-Date: 2012-04-20 04:29+0000\n" -"Last-Translator: Tomomi Mengelberg \n" +"PO-Revision-Date: 2012-07-30 16:32+0000\n" +"Last-Translator: Akira Hiyama \n" "Language-Team: Japanese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-07-14 06:17+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-31 04:58+0000\n" +"X-Generator: Launchpad (build 15702)\n" #. module: sale_margin #: sql_constraint:sale.order:0 msgid "Order Reference must be unique per Company!" -msgstr "発注参照は、会社ごとにユニークでなければなりません。" +msgstr "オーダー参照は、会社ごとに固有でなければなりません。" #. module: sale_margin #: field:sale.order.line,purchase_price:0 @@ -30,7 +30,7 @@ msgstr "原価" #. module: sale_margin #: model:ir.model,name:sale_margin.model_sale_order msgid "Sales Order" -msgstr "受注" +msgstr "受注オーダー" #. module: sale_margin #: help:sale.order,margin:0 @@ -48,4 +48,4 @@ msgstr "粗利益" #. module: sale_margin #: model:ir.model,name:sale_margin.model_sale_order_line msgid "Sales Order Line" -msgstr "受注明細" +msgstr "受注オーダー行" diff --git a/addons/sale_margin/i18n/pt_BR.po b/addons/sale_margin/i18n/pt_BR.po index aea579c2d60..4dd027ca579 100644 --- a/addons/sale_margin/i18n/pt_BR.po +++ b/addons/sale_margin/i18n/pt_BR.po @@ -8,19 +8,19 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2012-02-08 00:37+0000\n" -"PO-Revision-Date: 2011-01-14 10:12+0000\n" -"Last-Translator: Emerson \n" +"PO-Revision-Date: 2012-07-28 19:50+0000\n" +"Last-Translator: Fábio Martinelli \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-07-14 06:17+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-29 04:37+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: sale_margin #: sql_constraint:sale.order:0 msgid "Order Reference must be unique per Company!" -msgstr "" +msgstr "Referência de ordem deve ser única por empresa!" #. module: sale_margin #: field:sale.order.line,purchase_price:0 diff --git a/addons/sale_order_dates/i18n/pt_BR.po b/addons/sale_order_dates/i18n/pt_BR.po index 85462ecc6f6..b94f7b78657 100644 --- a/addons/sale_order_dates/i18n/pt_BR.po +++ b/addons/sale_order_dates/i18n/pt_BR.po @@ -8,19 +8,19 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2012-02-08 00:37+0000\n" -"PO-Revision-Date: 2011-01-14 10:07+0000\n" -"Last-Translator: Emerson \n" +"PO-Revision-Date: 2012-07-28 19:51+0000\n" +"Last-Translator: Fábio Martinelli \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-07-14 06:23+0000\n" -"X-Generator: Launchpad (build 15614)\n" +"X-Launchpad-Export-Date: 2012-07-29 04:37+0000\n" +"X-Generator: Launchpad (build 15694)\n" #. module: sale_order_dates #: sql_constraint:sale.order:0 msgid "Order Reference must be unique per Company!" -msgstr "" +msgstr "Referência de ordem deve ser única por empresa!" #. module: sale_order_dates #: help:sale.order,requested_date:0 diff --git a/addons/signup/__init__.py b/addons/signup/__init__.py new file mode 100644 index 00000000000..d70c1894925 --- /dev/null +++ b/addons/signup/__init__.py @@ -0,0 +1,2 @@ +import res_config +import signup diff --git a/addons/signup/__openerp__.py b/addons/signup/__openerp__.py new file mode 100644 index 00000000000..b899d5bc434 --- /dev/null +++ b/addons/signup/__openerp__.py @@ -0,0 +1,20 @@ +{ + 'name': 'Signup', + 'description': 'Allow users to sign up', + 'author': 'OpenERP SA', + 'version': '1.0', + 'category': 'Tools', + 'website': 'http://www.openerp.com', + 'installable': True, + 'depends': ['anonymous', 'base_setup'], + 'data': [ + 'res_config.xml', + 'signup.xml', + ], + 'js': [ + 'static/src/js/signup.js', + ], + 'qweb': [ + 'static/src/xml/signup.xml', + ], +} diff --git a/addons/signup/res_config.py b/addons/signup/res_config.py new file mode 100644 index 00000000000..53f0513b234 --- /dev/null +++ b/addons/signup/res_config.py @@ -0,0 +1,20 @@ +from openerp.osv import osv, fields + +class base_config_settings(osv.TransientModel): + _inherit = 'base.config.settings' + + _columns = { + 'signup_template_user_id': fields.many2one('res.users', 'Template user for signup') + } + + def get_default_signup(self, cr, uid, fields, context=None): + icp = self.pool.get('ir.config_parameter') + return { + 'signup_template_user_id': icp.get_param(cr, uid, 'signup.template_user_id', 0) or False + } + + def set_signup(self, cr, uid, ids, context=None): + config = self.browse(cr, uid, ids[0], context=context) + icp = self.pool.get('ir.config_parameter') + icp.set_param(cr, uid, 'signup.template_user_id', config.signup_user_template_id.id) + diff --git a/addons/signup/res_config.xml b/addons/signup/res_config.xml new file mode 100644 index 00000000000..d13f7002d17 --- /dev/null +++ b/addons/signup/res_config.xml @@ -0,0 +1,16 @@ + + + + base.config.settings.signup + base.config.settings + + form + + + + + + + + + diff --git a/addons/signup/signup.py b/addons/signup/signup.py new file mode 100644 index 00000000000..3819a63da85 --- /dev/null +++ b/addons/signup/signup.py @@ -0,0 +1,57 @@ +from openerp.osv import osv, fields + +class res_users(osv.Model): + _inherit = 'res.users' + + _sql_constraints = [ + ('email_uniq', 'UNIQUE (user_email)', 'You can not have two users with the same email!') + ] + +class signup_signup(osv.TransientModel): + _name = 'signup.signup' + _columns = { + 'name': fields.char('Name', size=64), + 'email': fields.char('Email', size=64), + 'password': fields.char('Password', size=64), + 'password_confirmation': fields.char('Confirm Password', size=64), + 'state': fields.selection([(x, x) for x in 'draft done missmatch'.split()], required=True), + } + _defaults = { + 'state': 'draft', + } + + def create(self, cr, uid, values, context=None): + # NOTE here, invalid values raises exceptions to avoid storing + # sensitive data into the database (which then are available to anyone) + if values['password'] != values['password_confirmation']: + raise osv.except_osv('Error', 'Passwords missmatch') + + new_user = { + 'name': values['name'], + 'login': values['email'], + 'user_email': values['email'], + 'password': values['password'], + 'active': True, + } + + user_template_id = self.pool.get('ir.config_parameter').get_param(cr, uid, 'signup.user_template_id', 0) + if user_template_id: + self.pool.get('res.users').copy(cr, 1, user_template_id, new_user, context=context) + else: + self.pool.get('res.users').create(cr, 1, new_user, context=context) + + # Dont store the password + values = {'state': 'done'} + return super(signup_signup, self).create(cr, uid, values, context) + + def signup(self, cr, uid, ids, context=None): + return { + 'type': 'ir.actions.client', + 'tag': 'login', + } + + def onchange_pw(self, cr, uid, ids, pw, cpw, context=None): + if pw != cpw: + return {'value': {'state': 'missmatch'}} + return {'value': {'state': 'draft'}} + diff --git a/addons/signup/signup.xml b/addons/signup/signup.xml new file mode 100644 index 00000000000..3dacf85feb4 --- /dev/null +++ b/addons/signup/signup.xml @@ -0,0 +1,41 @@ + + + + + signup.signup.form + signup.signup + form + +
    + + + + + + + +
    Passwords missmatch
    +
    + +