[MERGE] merge from lp:~openerp/openobject-addons/trunk/
bzr revid: hmo@tinyerp.com-20100325052915-kn5nnwxk06yr9i68
This commit is contained in:
commit
1eeeda525e
|
@ -25,15 +25,19 @@
|
|||
"version" : "1.1",
|
||||
"depends" : ["product", "analytic", "process"],
|
||||
"author" : "Tiny",
|
||||
"category": 'Generic Modules/Accounting',
|
||||
"description": """Financial and accounting module that covers:
|
||||
General accounting
|
||||
General accountings
|
||||
Cost / Analytic accounting
|
||||
Third party accounting
|
||||
Taxes management
|
||||
Budgets
|
||||
Customer and Supplier Invoices
|
||||
Bank statements
|
||||
Account Balance Report
|
||||
|
||||
The processes like maintaining of general ledger is done through the defined financial Journals (entry move line or
|
||||
grouping is maintained through journal) for a particular financial year and for preparation of vouchers there is a
|
||||
module named account_voucherss
|
||||
""",
|
||||
'website': 'http://www.openerp.com',
|
||||
'init_xml': [],
|
||||
|
|
|
@ -2182,6 +2182,7 @@ class wizard_multi_charts_accounts(osv.osv_memory):
|
|||
|
||||
#create all the tax code
|
||||
children_tax_code_template = self.pool.get('account.tax.code.template').search(cr, uid, [('parent_id','child_of',[tax_code_root_id])], order='id')
|
||||
children_tax_code_template.sort()
|
||||
for tax_code_template in self.pool.get('account.tax.code.template').browse(cr, uid, children_tax_code_template):
|
||||
vals={
|
||||
'name': (tax_code_root_id == tax_code_template.id) and obj_multi.company_id.name or tax_code_template.name,
|
||||
|
|
|
@ -8,13 +8,13 @@ msgstr ""
|
|||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2010-03-18 14:20+0000\n"
|
||||
"PO-Revision-Date: 2010-03-22 15:02+0000\n"
|
||||
"Last-Translator: Henri Kovalainen <Unknown>\n"
|
||||
"Language-Team: Finnish <fi@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-19 07:50+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: account
|
||||
|
@ -824,7 +824,7 @@ msgstr "(Jätä tyhjäksi käyttääksesi kaikkia avoimia tilikausia)"
|
|||
#. module: account
|
||||
#: field:account.invoice,move_lines:0
|
||||
msgid "Move Lines"
|
||||
msgstr "Siirtymärivit"
|
||||
msgstr "Siirron rivit"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.model,name:account.model_account_config_wizard
|
||||
|
@ -1041,12 +1041,12 @@ msgstr "Talouskanta"
|
|||
#: field:account.analytic.line,product_uom_id:0
|
||||
#: field:account.move.line,product_uom_id:0
|
||||
msgid "UoM"
|
||||
msgstr "Yksikkö"
|
||||
msgstr "Mittayksikkö"
|
||||
|
||||
#. module: account
|
||||
#: wizard_field:account.third_party_ledger.report,init,page_split:0
|
||||
msgid "One Partner Per Page"
|
||||
msgstr "Yksi kumppani sivulla"
|
||||
msgstr "Yksi kumppani per sivu"
|
||||
|
||||
#. module: account
|
||||
#: field:account.account,child_parent_ids:0
|
||||
|
@ -1577,7 +1577,7 @@ msgstr "Luo tilikartta mallista"
|
|||
#. module: account
|
||||
#: model:ir.ui.menu,name:account.menu_finance_legal_statement
|
||||
msgid "Legal Statements"
|
||||
msgstr "Lailliset lausunnot"
|
||||
msgstr "Lakimääräiset tiliotteet"
|
||||
|
||||
#. module: account
|
||||
#: field:account.tax.code,parent_id:0
|
||||
|
@ -4759,7 +4759,7 @@ msgstr "Muuta"
|
|||
#. module: account
|
||||
#: field:account.journal.period,icon:0
|
||||
msgid "Icon"
|
||||
msgstr "Kuvake"
|
||||
msgstr "Icon"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.model,name:account.model_account_journal_period
|
||||
|
|
|
@ -7,13 +7,13 @@ msgstr ""
|
|||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2010-03-04 15:48+0000\n"
|
||||
"Last-Translator: JCF <Unknown>\n"
|
||||
"PO-Revision-Date: 2010-03-24 00:57+0000\n"
|
||||
"Last-Translator: Pedro_Maschio <pedro.bicudo@tgtconsult.com.br>\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: 2010-03-11 04:52+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: account
|
||||
|
@ -911,7 +911,7 @@ msgstr "Diário de Baixas"
|
|||
#: field:account.model.line,amount_currency:0
|
||||
#: field:account.move.line,amount_currency:0
|
||||
msgid "Amount Currency"
|
||||
msgstr ""
|
||||
msgstr "Moeda do valor"
|
||||
|
||||
#. module: account
|
||||
#: field:account.chart.template,property_account_expense_categ:0
|
||||
|
@ -1415,7 +1415,7 @@ msgstr "Crédito do cliente"
|
|||
#. module: account
|
||||
#: field:account.invoice,tax_line:0
|
||||
msgid "Tax Lines"
|
||||
msgstr "Linhas de taxa"
|
||||
msgstr "Linhas de Impostos"
|
||||
|
||||
#. module: account
|
||||
#: field:ir.sequence,fiscal_ids:0
|
||||
|
@ -1464,7 +1464,7 @@ msgstr "Exibir histórico"
|
|||
#. module: account
|
||||
#: wizard_field:account.third_party_ledger.report,init,date1:0
|
||||
msgid " Start date"
|
||||
msgstr " Data de inicío"
|
||||
msgstr " Data de início"
|
||||
|
||||
#. module: account
|
||||
#: wizard_field:account.account.balance.report,checktype,display_account:0
|
||||
|
@ -1475,13 +1475,13 @@ msgstr "Exibir contas "
|
|||
#. module: account
|
||||
#: model:ir.model,name:account.model_account_bank_statement_reconcile_line
|
||||
msgid "Statement reconcile line"
|
||||
msgstr "Linha de procecimentos de conciliação"
|
||||
msgstr "Linha de reconciliação do Demonstrativo"
|
||||
|
||||
#. module: account
|
||||
#: view:account.tax:0
|
||||
#: view:account.tax.template:0
|
||||
msgid "Keep empty to use the income account"
|
||||
msgstr "Manter vazio para usar a conta da fatura"
|
||||
msgstr "Manter vazio para usar a conta de receita"
|
||||
|
||||
#. module: account
|
||||
#: view:account.bank.statement.reconcile:0
|
||||
|
@ -1489,7 +1489,7 @@ msgstr "Manter vazio para usar a conta da fatura"
|
|||
#: wizard_view:account.move.line.reconcile,init_full:0
|
||||
#: wizard_view:account.move.line.reconcile,init_partial:0
|
||||
msgid "Write-Off"
|
||||
msgstr "Amortização"
|
||||
msgstr "Baixa ou exclusão"
|
||||
|
||||
#. module: account
|
||||
#: help:account.invoice,partner_bank:0
|
||||
|
@ -1543,7 +1543,7 @@ msgstr "Tel. :"
|
|||
#. module: account
|
||||
#: field:account.invoice.tax,tax_amount:0
|
||||
msgid "Tax Code Amount"
|
||||
msgstr "Quantia de taxa"
|
||||
msgstr "Valor do Código do Imposto"
|
||||
|
||||
#. module: account
|
||||
#: selection:account.account.type,sign:0
|
||||
|
@ -1566,7 +1566,7 @@ msgstr "Modelo de plano de contas"
|
|||
#. module: account
|
||||
#: field:account.invoice,move_id:0
|
||||
msgid "Invoice Movement"
|
||||
msgstr "Movimento da fatura"
|
||||
msgstr "Movimento de Faturas"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.actions.act_window,name:account.action_wizard_multi_chart
|
||||
|
@ -1578,18 +1578,18 @@ msgstr "Gerar plano de contas de um modelo de plano"
|
|||
#. module: account
|
||||
#: model:ir.ui.menu,name:account.menu_finance_legal_statement
|
||||
msgid "Legal Statements"
|
||||
msgstr "Procedimentos legais"
|
||||
msgstr "Demonstrativos Legais"
|
||||
|
||||
#. module: account
|
||||
#: field:account.tax.code,parent_id:0
|
||||
#: field:account.tax.code.template,parent_id:0
|
||||
msgid "Parent Code"
|
||||
msgstr "Código pai"
|
||||
msgstr "Código da Conta-pai"
|
||||
|
||||
#. module: account
|
||||
#: wizard_button:account.move.line.reconcile.select,init,open:0
|
||||
msgid "Open for reconciliation"
|
||||
msgstr "Abrir para conciliação"
|
||||
msgstr "Abrir para reconciliação"
|
||||
|
||||
#. module: account
|
||||
#: model:account.journal,name:account.bilan_journal
|
||||
|
@ -1600,7 +1600,7 @@ msgstr "Diário de abertura"
|
|||
#: selection:account.tax,tax_group:0
|
||||
#: selection:account.tax.template,tax_group:0
|
||||
msgid "VAT"
|
||||
msgstr "Imposto"
|
||||
msgstr "VAT (imposto europeu)"
|
||||
|
||||
#. module: account
|
||||
#: rml:account.analytic.account.journal:0
|
||||
|
@ -1629,7 +1629,7 @@ msgstr "Código parceiro"
|
|||
#: selection:account.partner.balance.report,init,result_selection:0
|
||||
#: selection:account.third_party_ledger.report,init,result_selection:0
|
||||
msgid "Receivable and Payable Accounts"
|
||||
msgstr "Contas a receber e a pagar"
|
||||
msgstr "Contas a Pagar e Receber"
|
||||
|
||||
#. module: account
|
||||
#: view:account.subscription:0
|
||||
|
@ -1643,7 +1643,7 @@ msgstr "Linhas de inscrição"
|
|||
#: selection:account.tax,type_tax_use:0
|
||||
#: selection:account.tax.template,type_tax_use:0
|
||||
msgid "Purchase"
|
||||
msgstr "Compras"
|
||||
msgstr "Compra"
|
||||
|
||||
#. module: account
|
||||
#: view:account.analytic.line:0
|
||||
|
@ -1674,12 +1674,12 @@ msgstr "Terceiros"
|
|||
#. module: account
|
||||
#: view:account.journal:0
|
||||
msgid "Accounts Type Allowed (empty for no control)"
|
||||
msgstr "Tipo de contas permitidas (vazio para não controlar)"
|
||||
msgstr "Tipos de contas permitidas (vazio para não controlar)"
|
||||
|
||||
#. module: account
|
||||
#: field:account.bank.statement,balance_start:0
|
||||
msgid "Starting Balance"
|
||||
msgstr "Iniciar balanço"
|
||||
msgstr "Saldo Inicial"
|
||||
|
||||
#. module: account
|
||||
#: wizard_field:account.analytic.account.quantity_cost_ledger.report,init,journal:0
|
||||
|
@ -1697,7 +1697,7 @@ msgstr "Qtd máx:"
|
|||
#. module: account
|
||||
#: wizard_button:account.invoice.refund,init,refund:0
|
||||
msgid "Refund Invoice"
|
||||
msgstr "Reembolso da fatura"
|
||||
msgstr "Fatura de Devolução"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.actions.act_window,name:account.action_account_period_tree
|
||||
|
@ -1734,7 +1734,7 @@ msgstr "Forçar período"
|
|||
#. module: account
|
||||
#: help:account.account.type,sequence:0
|
||||
msgid "Gives the sequence order when displaying a list of account types."
|
||||
msgstr "Dá a ordem da seqüência ao indicar uma lista de tipos de conta."
|
||||
msgstr "Dá a ordem sequencial ao mostrar uma lista de tipos de conta."
|
||||
|
||||
#. module: account
|
||||
#: view:account.invoice:0
|
||||
|
@ -1765,7 +1765,7 @@ msgstr "Desfazer reconciliação de Lançamentos"
|
|||
#. module: account
|
||||
#: model:process.node,note:account.process_node_supplierdraftinvoices0
|
||||
msgid "Pre-generated invoice from control"
|
||||
msgstr "Fatura pré-gerada pelo controle"
|
||||
msgstr "Fatura pré-gerada do controle"
|
||||
|
||||
#. module: account
|
||||
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
|
||||
|
@ -1776,7 +1776,7 @@ msgstr "Custo Razão para um período"
|
|||
#: model:ir.actions.act_window,name:account.action_bank_statement_tree2
|
||||
#: model:ir.ui.menu,name:account.menu_bank_statement_tree2
|
||||
msgid "New Statement"
|
||||
msgstr "Novo procedimento"
|
||||
msgstr "Novo Demonstrativo"
|
||||
|
||||
#. module: account
|
||||
#: wizard_field:account.analytic.account.chart,init,from_date:0
|
||||
|
@ -1788,7 +1788,7 @@ msgstr "De"
|
|||
#: model:process.node,note:account.process_node_reconciliation0
|
||||
#: model:process.node,note:account.process_node_supplierreconciliation0
|
||||
msgid "Reconciliation of entries from invoice(s) and payment(s)"
|
||||
msgstr "Conciliação de entradas de fatura(s) e pagamento(s)"
|
||||
msgstr "Reconciliação dos lançamentos das fatura(s) e pagamento(s)"
|
||||
|
||||
#. module: account
|
||||
#: wizard_view:account.central.journal.report,init:0
|
||||
|
@ -1820,7 +1820,7 @@ msgstr "Planos"
|
|||
#: selection:account.tax,type_tax_use:0
|
||||
#: selection:account.tax.template,type_tax_use:0
|
||||
msgid "Sale"
|
||||
msgstr "vender"
|
||||
msgstr "Venda"
|
||||
|
||||
#. module: account
|
||||
#: wizard_button:account.account.balance.report,account_selection,checktype:0
|
||||
|
@ -1834,7 +1834,7 @@ msgid ""
|
|||
"The fiscal position will determine taxes and the accounts used for the the "
|
||||
"partner."
|
||||
msgstr ""
|
||||
"A posição fiscal poderá determinar as taxas e as contas usadas para o "
|
||||
"A posição fiscal irá determinar os impostos e as contas usadas para o "
|
||||
"parceiro."
|
||||
|
||||
#. module: account
|
||||
|
@ -1845,7 +1845,7 @@ msgstr "Data ou Código"
|
|||
#. module: account
|
||||
#: field:account.analytic.account,user_id:0
|
||||
msgid "Account Manager"
|
||||
msgstr "Administrar contas"
|
||||
msgstr "Gerente de Contas"
|
||||
|
||||
#. module: account
|
||||
#: rml:account.analytic.account.journal:0
|
||||
|
@ -1856,7 +1856,7 @@ msgstr "para:"
|
|||
#: wizard_field:account.move.line.reconcile,init_full,debit:0
|
||||
#: wizard_field:account.move.line.reconcile,init_partial,debit:0
|
||||
msgid "Debit amount"
|
||||
msgstr "Quantia de débito"
|
||||
msgstr "Valor do débito"
|
||||
|
||||
#. module: account
|
||||
#: selection:account.subscription,period_type:0
|
||||
|
@ -1904,18 +1904,18 @@ msgstr "Tipo"
|
|||
#. module: account
|
||||
#: view:account.journal:0
|
||||
msgid "Accounts Allowed (empty for no control)"
|
||||
msgstr "Contas permitidas(Vazio para não controlar)"
|
||||
msgstr "Contas permitidas (Vazio para não controlar)"
|
||||
|
||||
#. module: account
|
||||
#: view:account.invoice:0
|
||||
msgid "Untaxed amount"
|
||||
msgstr "Quantia não taxada"
|
||||
msgstr "Valor não tributado"
|
||||
|
||||
#. module: account
|
||||
#: field:account.tax,account_collected_id:0
|
||||
#: field:account.tax.template,account_collected_id:0
|
||||
msgid "Invoice Tax Account"
|
||||
msgstr "Conta de taxa da fatura"
|
||||
msgstr "Conta de Impostos da Fatura"
|
||||
|
||||
#. module: account
|
||||
#: view:account.move.line:0
|
||||
|
@ -1937,7 +1937,7 @@ msgstr "Erro: Número Bvr Inválido (erro dígito verificador)."
|
|||
#: model:ir.actions.act_window,name:account.action_invoice_tree5
|
||||
#: model:ir.ui.menu,name:account.menu_invoice_draft
|
||||
msgid "Draft Customer Invoices"
|
||||
msgstr "Esboço de faturas de clientes"
|
||||
msgstr "Fatura de Clientes Provisória"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.model,name:account.model_account_subscription_line
|
||||
|
@ -2006,7 +2006,7 @@ msgstr "Este nome será exibido nos relatórios"
|
|||
#: rml:account.analytic.account.cost_ledger:0
|
||||
#: rml:account.analytic.account.quantity_cost_ledger:0
|
||||
msgid "Printing date"
|
||||
msgstr "Imprimindo data"
|
||||
msgstr "Data de impressão"
|
||||
|
||||
#. module: account
|
||||
#: constraint:ir.ui.view:0
|
||||
|
@ -2161,7 +2161,7 @@ msgstr "Conciliar pagamento"
|
|||
#: model:ir.actions.act_window,name:account.action_bank_statement_reconciliation_form
|
||||
#: model:ir.ui.menu,name:account.menu_action_account_bank_reconcile_tree
|
||||
msgid "Statements reconciliation"
|
||||
msgstr "Procedimento de conciliação"
|
||||
msgstr "Reconciliação dos Demonstrativos"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.actions.act_window,name:account.action_subscription_form_new
|
||||
|
@ -2198,7 +2198,7 @@ msgstr "Quantia"
|
|||
#. module: account
|
||||
#: model:ir.actions.act_window,name:account.act_account_acount_move_line_reconcile_open
|
||||
msgid "Reconciled entries"
|
||||
msgstr "Lançamentos conciliados"
|
||||
msgstr "Lançamentos reconciliados"
|
||||
|
||||
#. module: account
|
||||
#: field:account.invoice,address_contact_id:0
|
||||
|
@ -2219,7 +2219,7 @@ msgstr "(Mantenha vazio para usar o período atual)"
|
|||
#: model:ir.actions.act_window,name:account.action_invoice_tree8
|
||||
#: model:ir.ui.menu,name:account.menu_action_invoice_tree8
|
||||
msgid "Draft Supplier Invoices"
|
||||
msgstr "Esboço de faturas de fornecedores"
|
||||
msgstr "Fatura Provisória de Fornecedores"
|
||||
|
||||
#. module: account
|
||||
#: wizard_field:account.invoice.refund,init,period:0
|
||||
|
@ -2276,7 +2276,7 @@ msgstr "x Conferências diárias"
|
|||
#: model:ir.actions.wizard,name:account.wizard_generate_subscription
|
||||
#: model:ir.ui.menu,name:account.menu_generate_subscription
|
||||
msgid "Create subscription entries"
|
||||
msgstr "Crie entradas da subscrição"
|
||||
msgstr "Criar lançamentos de inscrição"
|
||||
|
||||
#. module: account
|
||||
#: wizard_field:account.fiscalyear.close,init,journal_id:0
|
||||
|
@ -2286,7 +2286,7 @@ msgstr "Diário de Abertura de Lançamentos"
|
|||
#. module: account
|
||||
#: view:account.config.wizard:0
|
||||
msgid "Create a Fiscal Year"
|
||||
msgstr "Criar ano fiscal"
|
||||
msgstr "Criar um ano fiscal"
|
||||
|
||||
#. module: account
|
||||
#: field:product.template,taxes_id:0
|
||||
|
@ -2369,7 +2369,7 @@ msgstr "Tipo de taxa"
|
|||
#. module: account
|
||||
#: model:process.transition,name:account.process_transition_statemententries0
|
||||
msgid "Statement Entries"
|
||||
msgstr "Procedimentos para lançamentos"
|
||||
msgstr "Lançamentos do Demonstrativo"
|
||||
|
||||
#. module: account
|
||||
#: field:account.analytic.line,user_id:0
|
||||
|
@ -2381,7 +2381,7 @@ msgstr "Usuário"
|
|||
#: model:ir.actions.act_window,name:account.action_account_template_form
|
||||
#: model:ir.ui.menu,name:account.menu_action_account_template_form
|
||||
msgid "Account Templates"
|
||||
msgstr "Modelos de contas"
|
||||
msgstr "Modelos de conta"
|
||||
|
||||
#. module: account
|
||||
#: view:account.chart.template:0
|
||||
|
@ -2523,7 +2523,7 @@ msgstr "Informação adicional"
|
|||
#: model:process.transition,name:account.process_transition_entriesreconcile0
|
||||
#: model:process.transition,name:account.process_transition_supplierentriesreconcile0
|
||||
msgid "Entries Reconcile"
|
||||
msgstr "Conciliar lançamentos"
|
||||
msgstr "Reconciliar lançamentos"
|
||||
|
||||
#. module: account
|
||||
#: help:account.bank.statement.reconcile,total_second_amount:0
|
||||
|
@ -2879,7 +2879,7 @@ msgstr "ID do parceiro"
|
|||
#: wizard_view:account.invoice.pay,addendum:0
|
||||
#: wizard_view:account.move.line.reconcile,addendum:0
|
||||
msgid "Write-Off Move"
|
||||
msgstr "Mover amortização"
|
||||
msgstr "Movimentação de Baixa ou Exclusão"
|
||||
|
||||
#. module: account
|
||||
#: view:account.move.line:0
|
||||
|
@ -2927,7 +2927,7 @@ msgstr "Abrir estado"
|
|||
#. module: account
|
||||
#: field:account.journal,entry_posted:0
|
||||
msgid "Skip 'Draft' State for Created Entries"
|
||||
msgstr "Saltar o estado 'Esboço' para criar novas entradas"
|
||||
msgstr "Pular a forma 'Provisório' para lançamentos criados"
|
||||
|
||||
#. module: account
|
||||
#: field:account.invoice.tax,account_id:0
|
||||
|
@ -2963,12 +2963,12 @@ msgstr "1cm 27.7cm 20cm 27.7cm"
|
|||
#: model:ir.actions.act_window,name:account.action_invoice_tree12
|
||||
#: model:ir.ui.menu,name:account.menu_action_invoice_tree12
|
||||
msgid "Draft Supplier Refunds"
|
||||
msgstr "Esboço de reembolso a fornecedor"
|
||||
msgstr "Reembolso a Fornecedores Provisório"
|
||||
|
||||
#. module: account
|
||||
#: model:process.node,name:account.process_node_accountingstatemententries0
|
||||
msgid "Accounting Statement"
|
||||
msgstr "Procedimento para contas"
|
||||
msgstr "Demonstrativo de Contas"
|
||||
|
||||
#. module: account
|
||||
#: rml:account.overdue:0
|
||||
|
@ -2997,7 +2997,7 @@ msgstr "Transações não conciliadas"
|
|||
#: model:process.transition,note:account.process_transition_paymentorderbank0
|
||||
#: model:process.transition,note:account.process_transition_paymentorderreconcilation0
|
||||
msgid "Reconcilation of entries from payment order."
|
||||
msgstr "Conciliação de lançamentos para ordem de pagamento"
|
||||
msgstr "Reconciliação de lançamentos da ordem de pagamento"
|
||||
|
||||
#. module: account
|
||||
#: field:account.bank.statement,move_line_ids:0
|
||||
|
@ -3050,7 +3050,7 @@ msgstr "Taxa de moedas correntes de partida"
|
|||
#: model:ir.actions.act_window,name:account.action_invoice_tree10
|
||||
#: model:ir.ui.menu,name:account.menu_action_invoice_tree10
|
||||
msgid "Draft Customer Refunds"
|
||||
msgstr "Esboço de reembolso a cliente"
|
||||
msgstr "Reembolso a Clientes Provisório"
|
||||
|
||||
#. module: account
|
||||
#: field:account.journal.column,readonly:0
|
||||
|
@ -3127,12 +3127,12 @@ msgstr "Diário analítico"
|
|||
#. module: account
|
||||
#: rml:account.general.ledger:0
|
||||
msgid "Entry Label"
|
||||
msgstr "Etiqueta de lançamento"
|
||||
msgstr "Aba de lançamento"
|
||||
|
||||
#. module: account
|
||||
#: model:process.transition,note:account.process_transition_paymentreconcile0
|
||||
msgid "Reconcilate the entries from payment"
|
||||
msgstr "Conciliação de lançamentos de pagamento"
|
||||
msgstr "Reconciliar os lançamentos do pagamento"
|
||||
|
||||
#. module: account
|
||||
#: rml:account.tax.code.entries:0
|
||||
|
@ -3144,7 +3144,7 @@ msgstr "("
|
|||
#: view:account.period:0
|
||||
#: view:account.subscription:0
|
||||
msgid "Set to Draft"
|
||||
msgstr "Definir como esboço"
|
||||
msgstr "Definir como Provisório"
|
||||
|
||||
#. module: account
|
||||
#: help:account.invoice,origin:0
|
||||
|
@ -3279,7 +3279,7 @@ msgstr "Taxa média"
|
|||
#: model:process.node,note:account.process_node_bankstatement0
|
||||
#: model:process.node,note:account.process_node_supplierbankstatement0
|
||||
msgid "Statement encoding produces payment entries"
|
||||
msgstr "Codificação de procedimentos de lançamentos de pagamento"
|
||||
msgstr "Codificação de demonstrativos para lançamentos de pagamento"
|
||||
|
||||
#. module: account
|
||||
#: field:account.account,code:0
|
||||
|
@ -3321,7 +3321,7 @@ msgstr "Gerar Lançamentos Iniciais de Abertura do Ano Fiscal"
|
|||
#. module: account
|
||||
#: model:ir.actions.wizard,name:account.wizard_reconcile
|
||||
msgid "Reconcile Entries"
|
||||
msgstr "Conciliar lançamentos"
|
||||
msgstr "Reconciliar lançamentos"
|
||||
|
||||
#. module: account
|
||||
#: wizard_view:account.wizard_paid_open,init:0
|
||||
|
@ -3460,7 +3460,7 @@ msgstr ""
|
|||
#. module: account
|
||||
#: view:account.bank.statement:0
|
||||
msgid "Real Entries"
|
||||
msgstr "Lançamento real"
|
||||
msgstr "Lançamentos Reais"
|
||||
|
||||
#. module: account
|
||||
#: model:process.node,name:account.process_node_importinvoice0
|
||||
|
@ -3518,7 +3518,7 @@ msgstr ""
|
|||
#: field:account.tax,parent_id:0
|
||||
#: field:account.tax.template,parent_id:0
|
||||
msgid "Parent Tax Account"
|
||||
msgstr "Conta pai da taxa"
|
||||
msgstr "Conta-pai de Impostos"
|
||||
|
||||
#. module: account
|
||||
#: field:account.account,user_type:0
|
||||
|
@ -3649,7 +3649,7 @@ msgstr "Linha do projeto"
|
|||
#. module: account
|
||||
#: wizard_field:account.automatic.reconcile,init,max_amount:0
|
||||
msgid "Maximum write-off amount"
|
||||
msgstr "Monante máximo de amortização"
|
||||
msgstr "Valor máximo da Baixa ou Exclusão"
|
||||
|
||||
#. module: account
|
||||
#: field:account.invoice.tax,manual:0
|
||||
|
@ -3732,7 +3732,7 @@ msgstr "Definir ano fiscal e selecionar plano de contas"
|
|||
#. module: account
|
||||
#: wizard_field:account.move.line.reconcile,addendum,period_id:0
|
||||
msgid "Write-Off Period"
|
||||
msgstr "Amortização do período"
|
||||
msgstr "Período de Baixa ou Exclusão"
|
||||
|
||||
#. module: account
|
||||
#: selection:account.config.wizard,period:0
|
||||
|
@ -3756,7 +3756,7 @@ msgstr ""
|
|||
#. module: account
|
||||
#: model:ir.model,name:account.model_account_payment_term_line
|
||||
msgid "Payment Term Line"
|
||||
msgstr "Linha do termo de pagamento"
|
||||
msgstr "Linha da forma de pagamento"
|
||||
|
||||
#. module: account
|
||||
#: selection:account.config.wizard,period:0
|
||||
|
@ -3789,7 +3789,7 @@ msgstr "Por data"
|
|||
#. module: account
|
||||
#: model:ir.actions.act_window,name:account.action_account_config_wizard_form
|
||||
msgid "Account Configure Wizard "
|
||||
msgstr "Assistente de configurção de conga "
|
||||
msgstr "Assistente de configuração de conta "
|
||||
|
||||
#. module: account
|
||||
#: field:account.config.wizard,date1:0
|
||||
|
@ -3813,7 +3813,7 @@ msgstr "Todos lançamentos"
|
|||
#: model:process.node,name:account.process_node_draftinvoices0
|
||||
#: model:process.node,name:account.process_node_supplierdraftinvoices0
|
||||
msgid "Draft Invoices"
|
||||
msgstr "Esboço de faturas"
|
||||
msgstr "Faturas Provisórias"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.model,name:account.model_account_fiscal_position_tax_template
|
||||
|
@ -3909,7 +3909,7 @@ msgstr "Outro"
|
|||
#: model:ir.actions.wizard,name:account.wizard_general_ledger_report
|
||||
#: model:ir.ui.menu,name:account.menu_general_ledger
|
||||
msgid "General Ledger"
|
||||
msgstr "Ficha geral"
|
||||
msgstr "Livro Razão"
|
||||
|
||||
#. module: account
|
||||
#: field:account.journal.view,columns_id:0
|
||||
|
@ -3938,7 +3938,7 @@ msgstr ""
|
|||
#. module: account
|
||||
#: model:process.node,note:account.process_node_manually0
|
||||
msgid "Encode manually the statement"
|
||||
msgstr "Codifique manualmente o procedimento"
|
||||
msgstr "Codifique manualmente o demonstrativo"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.actions.act_window,name:account.action_account_journal_form
|
||||
|
@ -4152,7 +4152,7 @@ msgstr ""
|
|||
#: model:ir.actions.act_window,name:account.action_invoice_tree1
|
||||
#: model:ir.ui.menu,name:account.menu_action_invoice_tree1
|
||||
msgid "Customer Invoices"
|
||||
msgstr "Faturas de clients"
|
||||
msgstr "Faturas de Clientes"
|
||||
|
||||
#. module: account
|
||||
#: field:res.partner,debit_limit:0
|
||||
|
@ -4502,7 +4502,7 @@ msgstr "Linha Modelo de lançamento"
|
|||
#. module: account
|
||||
#: view:account.tax.template:0
|
||||
msgid "Account Tax Template"
|
||||
msgstr "Modelo de conta de taxa"
|
||||
msgstr "Modelo de conta de impostos"
|
||||
|
||||
#. module: account
|
||||
#: help:account.model,name:0
|
||||
|
@ -4517,7 +4517,7 @@ msgstr "Abrir fatura"
|
|||
#. module: account
|
||||
#: model:process.node,note:account.process_node_draftstatement0
|
||||
msgid "Set starting and ending balance for control"
|
||||
msgstr "Definir início e fim para o controle do balanço"
|
||||
msgstr "Defina o saldo inicial e final para controle"
|
||||
|
||||
#. module: account
|
||||
#: wizard_view:account.wizard_paid_open,init:0
|
||||
|
@ -4556,7 +4556,7 @@ msgstr "Estado"
|
|||
#: model:process.node,name:account.process_node_accountingentries0
|
||||
#: model:process.node,name:account.process_node_supplieraccountingentries0
|
||||
msgid "Accounting Entries"
|
||||
msgstr "Lançando contas"
|
||||
msgstr "Lançamentos Contábeis"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.actions.act_window,name:account.act_account_partner_account_move_unreconciled
|
||||
|
@ -4566,7 +4566,7 @@ msgstr "Receber & Pagar"
|
|||
#. module: account
|
||||
#: rml:account.general.ledger:0
|
||||
msgid "General Ledger -"
|
||||
msgstr "Ficha geral -"
|
||||
msgstr "Livro Razão -"
|
||||
|
||||
#. module: account
|
||||
#: field:report.hr.timesheet.invoice.journal,quantity:0
|
||||
|
@ -4592,20 +4592,20 @@ msgstr "Total"
|
|||
#: model:process.transition,note:account.process_transition_customerinvoice0
|
||||
#: model:process.transition,note:account.process_transition_suppliercustomerinvoice0
|
||||
msgid "Number of entries are generated"
|
||||
msgstr "Numero de lançamentos a ser gerado"
|
||||
msgstr "Numero de lançamentos são gerados"
|
||||
|
||||
#. module: account
|
||||
#: model:process.transition,name:account.process_transition_suppliervalidentries0
|
||||
#: model:process.transition,name:account.process_transition_validentries0
|
||||
msgid "Valid Entries"
|
||||
msgstr "Validar lançamentos"
|
||||
msgstr "Lançamentos Válidos"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.actions.wizard,name:account.wizard_account_use_model
|
||||
#: model:ir.actions.wizard,name:account.wizard_line_account_use_model
|
||||
#: model:ir.ui.menu,name:account.menu_account_use_model
|
||||
msgid "Create Entries From Models"
|
||||
msgstr "Criar lançamentos de modelos"
|
||||
msgstr "Criar lançamentos dos modelos"
|
||||
|
||||
#. module: account
|
||||
#: field:account.account.template,reconcile:0
|
||||
|
@ -4624,7 +4624,7 @@ msgstr "Por data"
|
|||
#: model:ir.actions.act_window,name:account.action_invoice_tree4
|
||||
#: model:ir.ui.menu,name:account.menu_action_invoice_tree4
|
||||
msgid "Supplier Refunds"
|
||||
msgstr "reembolsos do fornecedor"
|
||||
msgstr "Reembolsos de Fornecedor"
|
||||
|
||||
#. module: account
|
||||
#: help:account.model.line,date:0
|
||||
|
@ -4737,7 +4737,7 @@ msgstr ""
|
|||
#. module: account
|
||||
#: model:process.node,name:account.process_node_draftstatement0
|
||||
msgid "Draft statement"
|
||||
msgstr "Procedimento de esboço"
|
||||
msgstr "Demonstrativo provisório"
|
||||
|
||||
#. module: account
|
||||
#: field:account.analytic.journal,name:0
|
||||
|
@ -4843,7 +4843,7 @@ msgstr "Cancelado"
|
|||
#: model:ir.actions.act_window,name:account.action_bank_statement_draft_tree
|
||||
#: model:ir.ui.menu,name:account.menu_bank_statement_draft_tree
|
||||
msgid "Draft statements"
|
||||
msgstr "Esboço de procedimentos"
|
||||
msgstr "Demonstrativos provisórios"
|
||||
|
||||
#. module: account
|
||||
#: wizard_field:populate_statement_from_inv,init,date:0
|
||||
|
@ -4959,7 +4959,7 @@ msgstr "Selecione a conta-pai"
|
|||
#. module: account
|
||||
#: field:account.account.template,parent_id:0
|
||||
msgid "Parent Account Template"
|
||||
msgstr "Modelo de conta pai"
|
||||
msgstr "Modelo de conta-pai"
|
||||
|
||||
#. module: account
|
||||
#: help:account.tax,domain:0
|
||||
|
@ -5224,7 +5224,7 @@ msgstr "Modelo de codificação da conta de impostos"
|
|||
#. module: account
|
||||
#: view:account.subscription:0
|
||||
msgid "Subscription Periods"
|
||||
msgstr "Inscrever períodos"
|
||||
msgstr "Períodos de Inscrição"
|
||||
|
||||
#. module: account
|
||||
#: model:process.node,name:account.process_node_manually0
|
||||
|
@ -5286,7 +5286,7 @@ msgstr "Taxa de troca"
|
|||
#: model:process.transition,note:account.process_transition_invoicemanually0
|
||||
msgid "Encode manually statement comes into the draft statement"
|
||||
msgstr ""
|
||||
"Codifique manualmente o procedimento dentro do procedimento de esboço"
|
||||
"O demonstrativo codificado manualmente entra no demonstrativo provisório"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.ui.menu,name:account.next_id_43
|
||||
|
@ -5359,7 +5359,7 @@ msgstr "Escolha diário e data de pagamento"
|
|||
#: selection:account.period,state:0
|
||||
#: selection:account.subscription,state:0
|
||||
msgid "Draft"
|
||||
msgstr "Esboço"
|
||||
msgstr "Provisório"
|
||||
|
||||
#. module: account
|
||||
#: rml:account.overdue:0
|
||||
|
@ -5774,7 +5774,7 @@ msgstr "Contas financeiras"
|
|||
#. module: account
|
||||
#: model:ir.model,name:account.model_account_chart_template
|
||||
msgid "Templates for Account Chart"
|
||||
msgstr "Modelo de plano de contas"
|
||||
msgstr "Modelos para plano de contas"
|
||||
|
||||
#. module: account
|
||||
#: view:account.config.wizard:0
|
||||
|
@ -5912,7 +5912,7 @@ msgstr "Futuro"
|
|||
#: help:account.partner.balance.report,init,fiscalyear:0
|
||||
#: help:account.third_party_ledger.report,init,fiscalyear:0
|
||||
msgid "Keep empty for all open fiscal year"
|
||||
msgstr "Mantenha vazia para abrir todos os anos fiscais"
|
||||
msgstr "Mantenha vazia para todos os anos fiscais abertos"
|
||||
|
||||
#. module: account
|
||||
#: rml:account.invoice:0
|
||||
|
@ -6072,4 +6072,4 @@ msgstr ""
|
|||
#. module: account
|
||||
#: wizard_button:account.subscription.generate,init,generate:0
|
||||
msgid "Compute Entry Dates"
|
||||
msgstr "Calcular datas de entrada"
|
||||
msgstr "Processar Datas de Lançamento"
|
||||
|
|
|
@ -7,13 +7,13 @@ msgstr ""
|
|||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2010-03-15 14:11+0000\n"
|
||||
"Last-Translator: Anders Wallenquist <anders.wallenquist@vertel.se>\n"
|
||||
"PO-Revision-Date: 2010-03-23 16:02+0000\n"
|
||||
"Last-Translator: djn (Xclude) <Unknown>\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: 2010-03-16 04:46+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: account
|
||||
|
@ -272,6 +272,10 @@ msgid ""
|
|||
"in which order. You can create your own view for a faster encoding in each "
|
||||
"journal."
|
||||
msgstr ""
|
||||
"Ger vyn som används när du skriver eller surfar poster i journalen. Vyn "
|
||||
"berättar för Open ERP vilka fält som ska synas, krävs eller skrivskyddas och "
|
||||
"i vilken ordning. Du kan skapa din egen vy för en snabbare kodning i varje "
|
||||
"journal."
|
||||
|
||||
#. module: account
|
||||
#: help:account.invoice,date_due:0
|
||||
|
@ -282,6 +286,11 @@ msgid ""
|
|||
"date empty, it means direct payment. The payment term may compute several "
|
||||
"due dates, for example 50% now, 50% in one month."
|
||||
msgstr ""
|
||||
"Om du använder betalningsvillkor, förfallodagen kommer att beräknas "
|
||||
"automatiskt vid generering av bokföringsposter. Om du håller "
|
||||
"betalningsvillkor och förfallodagen tom betyder det direkt betalning. "
|
||||
"Betalningsvillkor kan beräkna flera förfallodatum, till exempel 50% nu, 50% "
|
||||
"efter en månad."
|
||||
|
||||
#. module: account
|
||||
#: selection:account.tax,type:0
|
||||
|
@ -446,7 +455,7 @@ msgstr "Status"
|
|||
#: model:ir.actions.act_window,name:account.action_invoice_tree13
|
||||
#: model:ir.ui.menu,name:account.menu_action_invoice_tree13
|
||||
msgid "Unpaid Supplier Refunds"
|
||||
msgstr ""
|
||||
msgstr "Obetald Leverantörskredit"
|
||||
|
||||
#. module: account
|
||||
#: view:account.tax:0
|
||||
|
@ -573,6 +582,8 @@ msgid ""
|
|||
"Number of days to add before computation of the day of month.If Date=15/01, "
|
||||
"Number of Days=22, Day of Month=-1, then the due date is 28/02."
|
||||
msgstr ""
|
||||
"Antal dagar för att lägga före beräkning av dagen i månaden. Om Datum = "
|
||||
"15/01, antal dagar = 22, Dag i månaden =- 1, blir sedan förfallodagen 28/02."
|
||||
|
||||
#. module: account
|
||||
#: model:ir.model,name:account.model_account_tax
|
||||
|
@ -1337,7 +1348,7 @@ msgstr "Meddelande"
|
|||
#. module: account
|
||||
#: model:process.node,note:account.process_node_supplierpaymentorder0
|
||||
msgid "Select invoices you want to pay and manages advances"
|
||||
msgstr ""
|
||||
msgstr "Välj fakturor du vill betala och hantera förväg"
|
||||
|
||||
#. module: account
|
||||
#: selection:account.account,type:0
|
||||
|
@ -1674,7 +1685,7 @@ msgstr "Max antal:"
|
|||
#. module: account
|
||||
#: wizard_button:account.invoice.refund,init,refund:0
|
||||
msgid "Refund Invoice"
|
||||
msgstr ""
|
||||
msgstr "Kreditera Faktura"
|
||||
|
||||
#. module: account
|
||||
#: model:ir.actions.act_window,name:account.action_account_period_tree
|
||||
|
@ -2190,7 +2201,7 @@ msgstr "(lämna blank för aktuell period)"
|
|||
#: model:ir.actions.act_window,name:account.action_invoice_tree8
|
||||
#: model:ir.ui.menu,name:account.menu_action_invoice_tree8
|
||||
msgid "Draft Supplier Invoices"
|
||||
msgstr ""
|
||||
msgstr "Preliminära kundfakturor"
|
||||
|
||||
#. module: account
|
||||
#: wizard_field:account.invoice.refund,init,period:0
|
||||
|
@ -3057,6 +3068,8 @@ msgid ""
|
|||
"If this box is checked, the system will try to group the accounting lines "
|
||||
"when generating them from invoices."
|
||||
msgstr ""
|
||||
"Om denna ruta är markerad, kommer systemet att försöka gruppera redovisning "
|
||||
"raderna när du skapar dem från fakturor."
|
||||
|
||||
#. module: account
|
||||
#: wizard_field:account.move.line.reconcile,init_full,trans_nbr:0
|
||||
|
@ -3316,7 +3329,7 @@ msgstr ""
|
|||
#: field:account.tax.code,notprintable:0
|
||||
#: field:account.tax.code.template,notprintable:0
|
||||
msgid "Not Printable in Invoice"
|
||||
msgstr ""
|
||||
msgstr "Inte utskrivbar i faktura"
|
||||
|
||||
#. module: account
|
||||
#: field:account.move.line,move_id:0
|
||||
|
@ -3637,6 +3650,8 @@ msgid ""
|
|||
"Check this box if you don't want any VAT related to this Tax Code to appear "
|
||||
"on invoices"
|
||||
msgstr ""
|
||||
"Markera rutan om du inte vill att någon moms i samband med detta skattelagen "
|
||||
"att visas på fakturor"
|
||||
|
||||
#. module: account
|
||||
#: field:account.account.type,sequence:0
|
||||
|
@ -4053,7 +4068,7 @@ msgstr "Nettobelopp"
|
|||
#. module: account
|
||||
#: field:account.invoice.line,invoice_id:0
|
||||
msgid "Invoice Ref"
|
||||
msgstr ""
|
||||
msgstr "Fakturaref"
|
||||
|
||||
#. module: account
|
||||
#: field:account.analytic.line,general_account_id:0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,9 +24,14 @@
|
|||
'name': 'report_account_analytic',
|
||||
'version': '1.0',
|
||||
'category': 'Generic Modules/Accounting',
|
||||
'description': """Modify account analytic view to show
|
||||
important data for project manager of services companies.
|
||||
Add menu to show relevant information for each manager.""",
|
||||
'description': """
|
||||
This module is for modifying account analytic view to show
|
||||
important data to project manager of services companies.
|
||||
Adds menu to show relevant information to each manager..
|
||||
|
||||
You can also view the report of account analytic summary
|
||||
user-wise as well as month wise.
|
||||
""",
|
||||
"version" : "1.1",
|
||||
"author" : "Camptocamp",
|
||||
"category" : "Generic Modules/Accounting",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -51,6 +51,8 @@ Plan2:
|
|||
|
||||
So when this line of invoice will be confirmed, it will generate 3 analytic lines,
|
||||
for one account entry.
|
||||
The analytic plan validates the minimum and maximum percentage at the time of creation
|
||||
of distribution models.
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'website': 'http://www.openerp.com',
|
||||
|
|
|
@ -95,6 +95,18 @@ class account_analytic_plan_instance(osv.osv):
|
|||
'account6_ids':one2many_mod2('account.analytic.plan.instance.line','plan_id','Account6 Id'),
|
||||
'plan_id':fields.many2one('account.analytic.plan', "Model's Plan"),
|
||||
}
|
||||
|
||||
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
|
||||
if context.get('journal_id', False):
|
||||
journal = self.pool.get('account.journal').browse(cr, user, [context['journal_id']], context=context)[0]
|
||||
analytic_journal = journal.analytic_journal_id and journal.analytic_journal_id.id or False
|
||||
args.append('|')
|
||||
args.append(('journal_id', '=', analytic_journal))
|
||||
args.append(('journal_id', '=', False))
|
||||
res = super(account_analytic_plan_instance, self).search(cr, user, args, offset=offset, limit=limit, order=order,
|
||||
context=context, count=count)
|
||||
return res
|
||||
|
||||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
if not default:
|
||||
default = {}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="analytic_account_id" position="replace">
|
||||
<field name="analytics_id" />
|
||||
<field name="analytics_id" context="{'journal_id':journal_id}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<field name="inherit_id" ref="account.view_move_line_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="move_id" position="after">
|
||||
<field name="analytics_id" />
|
||||
<field name="analytics_id" context="{'journal_id':journal_id}" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -38,7 +38,7 @@ class wizard_report(wizard.interface):
|
|||
states = {
|
||||
'init': {
|
||||
'actions': [],
|
||||
'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel'),('report','Print')]}
|
||||
'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel', 'gtk-cancel'),('report','Print', 'gtk-print', True)]}
|
||||
},
|
||||
'report': {
|
||||
'actions': [],
|
||||
|
|
|
@ -47,7 +47,7 @@ class wizard_report(wizard.interface):
|
|||
states = {
|
||||
'init': {
|
||||
'actions': [_default],
|
||||
'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel'),('report','Print')]}
|
||||
'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel', 'gtk-cancel'),('report','Print', 'gtk-print', True)]}
|
||||
},
|
||||
'report': {
|
||||
'actions': [],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -43,7 +43,7 @@ class wizard_budget_spread(wizard.interface):
|
|||
states = {
|
||||
'init': {
|
||||
'actions': [],
|
||||
'result': {'type':'form', 'arch':_spread_form, 'fields':_spread_fields, 'state':[('end','Cancel'),('spread','Spread')]}
|
||||
'result': {'type':'form', 'arch':_spread_form, 'fields':_spread_fields, 'state':[('end','Cancel'),('spread','Spread','',True)]}
|
||||
},
|
||||
'spread': {
|
||||
'actions': [_spread],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -43,7 +43,7 @@ class wizard_report(wizard.interface):
|
|||
states = {
|
||||
'init': {
|
||||
'actions': [_default],
|
||||
'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel'),('report','Print')]}
|
||||
'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel', 'gtk-cancel'),('report','Print', 'gtk-print', True)]}
|
||||
},
|
||||
'report': {
|
||||
'actions': [],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -42,7 +42,7 @@ class wizard_report_summary(wizard.interface):
|
|||
states = {
|
||||
'init': {
|
||||
'actions': [_default],
|
||||
'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel'),('report','Print')]}
|
||||
'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel', 'gtk-cancel'),('report','Print', 'gtk-print', True)]}
|
||||
},
|
||||
'report': {
|
||||
'actions': [],
|
||||
|
|
|
@ -7,16 +7,16 @@ msgstr ""
|
|||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2009-09-08 13:47+0000\n"
|
||||
"PO-Revision-Date: 2010-03-24 01:00+0000\n"
|
||||
"Last-Translator: Pedro_Maschio <pedro.bicudo@tgtconsult.com.br>\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: 2010-03-11 05:05+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: account_chart
|
||||
#: model:ir.module.module,description:account_chart.module_meta_information
|
||||
msgid "Remove minimal account chart"
|
||||
msgstr ""
|
||||
msgstr "Remover plano de contas mínimo"
|
||||
|
|
|
@ -7,26 +7,26 @@ msgstr ""
|
|||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2009-11-09 16:21+0000\n"
|
||||
"Last-Translator: Fabien (Open ERP) <fp@tinyerp.com>\n"
|
||||
"PO-Revision-Date: 2010-03-24 01:05+0000\n"
|
||||
"Last-Translator: Pedro_Maschio <pedro.bicudo@tgtconsult.com.br>\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: 2010-03-11 04:57+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: account_date_check
|
||||
#: constraint:ir.ui.view:0
|
||||
msgid "Invalid XML for View Architecture!"
|
||||
msgstr "Invalido XML para Arquitetura da View"
|
||||
msgstr "XML inválido para Arquitetura da View"
|
||||
|
||||
#. module: account_date_check
|
||||
#: field:account.journal,allow_date:0
|
||||
msgid "Allows date not in the period"
|
||||
msgstr ""
|
||||
msgstr "Permite datas fora do período"
|
||||
|
||||
#. module: account_date_check
|
||||
#: model:ir.module.module,shortdesc:account_date_check.module_meta_information
|
||||
msgid "Account Date check"
|
||||
msgstr ""
|
||||
msgstr "Verificação de Data de Conta"
|
||||
|
|
|
@ -7,13 +7,13 @@ msgstr ""
|
|||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2010-03-04 16:01+0000\n"
|
||||
"Last-Translator: JCF <Unknown>\n"
|
||||
"PO-Revision-Date: 2010-03-24 01:02+0000\n"
|
||||
"Last-Translator: Pedro_Maschio <pedro.bicudo@tgtconsult.com.br>\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: 2010-03-11 04:56+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: account_payment
|
||||
|
@ -335,7 +335,7 @@ msgstr "Parceiro"
|
|||
#. module: account_payment
|
||||
#: help:payment.line,communication2:0
|
||||
msgid "The successor message of Communication."
|
||||
msgstr ""
|
||||
msgstr "A mensagem que segue a Comunicação."
|
||||
|
||||
#. module: account_payment
|
||||
#: help:payment.line,info_partner:0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,20 +24,25 @@
|
|||
"version" : "1.0",
|
||||
"author" : 'Tiny & Axelor',
|
||||
"description": """
|
||||
India Accounting module includes all the basic requirenment of
|
||||
Basic Accounting, like
|
||||
* Bank Payment, Receipt
|
||||
* Cash Payent, Receipt
|
||||
India Accounting module includes all the basic requirenment of
|
||||
Basic Accounting, plus new things which available are
|
||||
* Indian Account Chart
|
||||
* New Invoice - (Local, Retail)
|
||||
* Invoice Report
|
||||
* Tax structure
|
||||
* Journals
|
||||
* VAT Declaration report
|
||||
* Accounting Periods
|
||||
""",
|
||||
"category" : "Generic Modules/Indian Accounting",
|
||||
"category" : "Generic Modules/Accounting",
|
||||
"website" : "http://tinyerp.com",
|
||||
"depends" : ["base", "account"],
|
||||
"init_xml" : [
|
||||
],
|
||||
|
||||
|
||||
"demo_xml" : [
|
||||
],
|
||||
|
||||
|
||||
"update_xml" : [
|
||||
"security/ir.model.access.csv",
|
||||
"voucher_sequence.xml",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
|||
'name': 'Association profile',
|
||||
'version': '0.1',
|
||||
'category': 'Profile',
|
||||
'description': """Profile for Associates""",
|
||||
'description': """This module is to create Profile for Associates""",
|
||||
'author': 'Tiny',
|
||||
'depends': ['membership', 'board_association'],
|
||||
'update_xml': ['security/ir.model.access.csv', 'profile_association.xml'],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,10 +24,14 @@
|
|||
'name': 'Auction Management',
|
||||
'version': '1.0',
|
||||
'category': 'Generic Modules/Auction',
|
||||
'description': """This module provides functionality to
|
||||
manage artists, articles, sellers, buyers and auction.
|
||||
Manage bids, track of sold, paid and unpaid objects.
|
||||
Delivery Management.
|
||||
'description': """
|
||||
This module manages the records of the artists,
|
||||
the articles to be put up for auction,the buyers and
|
||||
sellers.
|
||||
|
||||
It completely manages an auction such as managing bids,
|
||||
keeping track of the sold articles along with the paid
|
||||
and unpaid objects including delivery of the articles.
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'depends': ['base', 'account', 'hr_attendance'],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,8 +24,14 @@
|
|||
'name': 'Audit Trail',
|
||||
'version': '1.0',
|
||||
'category': 'Generic Modules/Others',
|
||||
'description': """Allows the administrator to track every user operations on all objects of the system.
|
||||
Subscribe Rules for read, write, create and delete on objects and check logs""",
|
||||
'description': """
|
||||
This module gives the administrator the right
|
||||
to track every user operation on all the objects
|
||||
of the system.
|
||||
|
||||
Administrator can subscribe rules for read,write and
|
||||
delete on objects and can check logs.
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'website': 'http://www.openerp.com',
|
||||
'depends': ['base'],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,36 +15,36 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
||||
{
|
||||
"name" : "Basic Calendar Functionality",
|
||||
"version" : "1.0",
|
||||
"name" : "Basic Calendar Functionality",
|
||||
"version" : "1.0",
|
||||
"depends" : [
|
||||
"base",
|
||||
],
|
||||
"base",
|
||||
],
|
||||
'description': """
|
||||
Full featured calendar system that support:
|
||||
- Alerts (create requests)
|
||||
- Recurring events (*)
|
||||
- Invitations to others people
|
||||
""",
|
||||
"author" : "Tiny",
|
||||
'category': 'Generic Modules/Others',
|
||||
'website': 'http://www.openerp.com',
|
||||
- Invitations to other people
|
||||
""",
|
||||
"author" : "Tiny",
|
||||
'category': 'Generic Modules/Others',
|
||||
'website': 'http://www.openerp.com',
|
||||
"init_xml" : [
|
||||
'base_calendar_data.xml'
|
||||
],
|
||||
"demo_xml" : [],
|
||||
],
|
||||
"demo_xml" : [],
|
||||
"update_xml" : [
|
||||
'security/ir.model.access.csv',
|
||||
'security/ir.model.access.csv',
|
||||
'base_calendar_view.xml'
|
||||
],
|
||||
"installable" : True,
|
||||
"active" : False,
|
||||
],
|
||||
"installable" : True,
|
||||
"active" : False,
|
||||
}
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
|||
'version': '1.0',
|
||||
'category': 'Generic Modules/Base',
|
||||
'description': """
|
||||
This module install the base for IBAN bank accounts.
|
||||
This module install the base for IBAN (International Bank Account Number) bank accounts and checks for its validity
|
||||
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
|
|
|
@ -72,6 +72,40 @@ def doc_createXElement(xdoc, tagName):
|
|||
e.ownerDocument = xdoc
|
||||
return e
|
||||
|
||||
import yaml
|
||||
|
||||
class record(yaml.YAMLObject):
|
||||
yaml_tag = u'!record'
|
||||
def __init__(self, model, id=None, attrs={}):
|
||||
self.model = model
|
||||
self.id = id
|
||||
self.attrs=attrs
|
||||
def __repr__(self):
|
||||
return '!record {model: %s, id: %s}:' % (str(self.model,), str(self.id,))
|
||||
|
||||
class workflow(yaml.YAMLObject):
|
||||
yaml_tag = u'!workflow'
|
||||
def __init__(self, model, action, ref=None):
|
||||
self.model = model
|
||||
self.ref = ref
|
||||
self.action=action
|
||||
def __repr__(self):
|
||||
return '!workflow {model: %s, action: %s, ref: %s}' % (str(self.model,), str(self.action,), str(self.ref,))
|
||||
|
||||
class ref(yaml.YAMLObject):
|
||||
yaml_tag = u'!ref'
|
||||
def __init__(self, expr="False"):
|
||||
self.expr = expr
|
||||
def __repr__(self):
|
||||
return 'ref(%s)' % (str(self.expr,))
|
||||
|
||||
class eval(yaml.YAMLObject):
|
||||
yaml_tag = u'!eval'
|
||||
def __init__(self, expr="False"):
|
||||
self.expr = expr
|
||||
def __repr__(self):
|
||||
return 'eval(%s)' % (str(self.expr,))
|
||||
|
||||
class base_module_record(osv.osv):
|
||||
_name = "ir.module.record"
|
||||
_columns = {
|
||||
|
@ -105,7 +139,7 @@ class base_module_record(osv.osv):
|
|||
dt = self.pool.get('ir.model.data')
|
||||
dtids = dt.search(cr, uid, [('model','=',model), ('res_id','=',id)])
|
||||
if not dtids:
|
||||
return None, None
|
||||
return False, None
|
||||
obj = dt.browse(cr, uid, dtids[0])
|
||||
self.depends[obj.module] = True
|
||||
return obj.module+'.'+obj.name, obj.noupdate
|
||||
|
@ -379,6 +413,10 @@ class base_module_record(osv.osv):
|
|||
data['action'] = rec[3]
|
||||
data['ref'] = id
|
||||
return data
|
||||
if self.mode=="write":
|
||||
id,update = self._get_id(cr, uid, rec[2],rec[4][0])
|
||||
record = self._create_yaml_record(cr, uid, rec[2], rec[5], id)
|
||||
return record
|
||||
data=self.get_copy_data(cr,uid,rec[2],rec[4],rec[5])
|
||||
copy_rec=(rec[0],rec[1],rec[2],rec[3],rec[4],data,rec[5])
|
||||
rec=copy_rec
|
||||
|
@ -429,44 +467,13 @@ class base_module_record(osv.osv):
|
|||
def generate_yaml(self, cr, uid):
|
||||
self.ids = {}
|
||||
if len(self.recording_data):
|
||||
strg='''import yaml
|
||||
|
||||
class record(yaml.YAMLObject):
|
||||
yaml_tag = u'!record'
|
||||
def __init__(self, model, id=None, attrs={}):
|
||||
self.model = model
|
||||
self.id = id
|
||||
self.attrs=attrs
|
||||
def __repr__(self):
|
||||
return '!record {model: %s, id: %s}:' % (str(self.model,), str(self.id,))
|
||||
|
||||
class workflow(yaml.YAMLObject):
|
||||
yaml_tag = u'!workflow'
|
||||
def __init__(self, model, action, ref=None):
|
||||
self.model = model
|
||||
self.ref = ref
|
||||
self.action=action
|
||||
def __repr__(self):
|
||||
return '!workflow {model: %s, action: %s, ref: %s}' % (str(self.model,), str(self.action,), str(self.ref,))
|
||||
|
||||
class ref(yaml.YAMLObject):
|
||||
yaml_tag = u'!ref'
|
||||
def __init__(self, expr="False"):
|
||||
self.expr = expr
|
||||
def __repr__(self):
|
||||
return 'ref(%s)' % (str(self.expr,))
|
||||
|
||||
class eval(yaml.YAMLObject):
|
||||
yaml_tag = u'!eval'
|
||||
def __init__(self, expr="False"):
|
||||
self.expr = expr
|
||||
def __repr__(self):
|
||||
return 'eval(%s)' % (str(self.expr,))
|
||||
\n'''
|
||||
yaml_file='''\n'''
|
||||
|
||||
for rec in self.recording_data:
|
||||
if rec[1][3] == 'create':
|
||||
self.mode="create"
|
||||
elif rec[1][3] == 'write':
|
||||
self.mode="write"
|
||||
elif rec[1][3] == 'copy':
|
||||
self.mode="copy"
|
||||
elif rec[0] == 'workflow':
|
||||
|
@ -475,47 +482,30 @@ class eval(yaml.YAMLObject):
|
|||
continue
|
||||
if self.mode == "workflow":
|
||||
record= self._generate_object_yaml(cr, uid, rec[1],rec[0])
|
||||
strg+="object=yaml.load(unicode('''\n !workflow %s \n''','iso-8859-1'))"%record
|
||||
strg+='''
|
||||
print object
|
||||
'''
|
||||
object=yaml.load(unicode('''\n !workflow %s \n'''%record,'iso-8859-1'))
|
||||
yaml_file += str(object) + '''\n'''
|
||||
else:
|
||||
record= self._generate_object_yaml(cr, uid, rec[1],rec[3])
|
||||
strg+="object=yaml.load(unicode('''\n !record %s \n''','iso-8859-1'))"%record
|
||||
strg+='''
|
||||
print object
|
||||
attrs=yaml.dump(object.attrs, default_flow_style=False)
|
||||
print attrs \n\n'''
|
||||
|
||||
import os
|
||||
py_path = os.path.join(os.getcwd(), 'records.py')
|
||||
txt_path = os.path.join(os.getcwd(), 'records.txt')
|
||||
f = open(py_path, 'w')
|
||||
f.write(strg)
|
||||
f.close()
|
||||
os.system('python %s > %s'%(py_path,txt_path))
|
||||
f = open(txt_path, 'r+')
|
||||
lines=f.readlines()
|
||||
f.seek(0)
|
||||
for line in lines:
|
||||
line=line.replace("''","'")
|
||||
if line.find('!record') == 0:
|
||||
line = "- \n" + " " + line
|
||||
elif line.find('!workflow') == 0:
|
||||
line = "- \n" + " " + line
|
||||
elif line.find('- -') != -1:
|
||||
line=line.replace('- -',' -')
|
||||
line = " " + line
|
||||
else:
|
||||
line = " " + line
|
||||
f.write(line)
|
||||
f.close()
|
||||
f = open(txt_path, 'r')
|
||||
strg = ''.join(f.readlines())
|
||||
f.close()
|
||||
os.system('rm %s'%py_path)
|
||||
os.system('rm %s'%txt_path)
|
||||
return strg
|
||||
object= yaml.load(unicode('''\n !record %s \n'''%record,'iso-8859-1'))
|
||||
yaml_file += str(object) + '''\n'''
|
||||
attrs=yaml.dump(object.attrs, default_flow_style=False)
|
||||
yaml_file += attrs + '''\n\n'''
|
||||
|
||||
yaml_result=''''''
|
||||
for line in yaml_file.split('\n'):
|
||||
line=line.replace("''","'")
|
||||
if line.find('!record') == 0:
|
||||
line = "- \n" + " " + line
|
||||
elif line.find('!workflow') == 0:
|
||||
line = "- \n" + " " + line
|
||||
elif line.find('- -') != -1:
|
||||
line=line.replace('- -',' -')
|
||||
line = " " + line
|
||||
else:
|
||||
line = " " + line
|
||||
yaml_result += line + '''\n'''
|
||||
|
||||
return yaml_result
|
||||
|
||||
base_module_record()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -25,8 +25,13 @@
|
|||
'version': '0.1',
|
||||
'category': 'Generic Modules/Base',
|
||||
'description': """
|
||||
This module adds wizards to import/export documents to be edited in
|
||||
OpenOffice.
|
||||
This module is used along with openerp OpenOffice plugin.
|
||||
You have to first install the plugin which is available at
|
||||
http://www.openerp.com
|
||||
|
||||
This module adds wizards to import/export .SXW report that
|
||||
you can modify in OpenOffice.Once you have modified it you can
|
||||
upload the report using the same wizard.
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'website': 'http://www.openerp.com',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,7 +24,12 @@
|
|||
'name': 'Base VAT - To check VAT number validity',
|
||||
'version': '1.0',
|
||||
'category': 'Generic Modules/Base',
|
||||
'description': """Enable the VAT Number for the partner. Check the validity of that VAT Number.""",
|
||||
'description': """
|
||||
Enable the VAT Number for the partner. Check the validity of that VAT Number.
|
||||
|
||||
This module follows the methods stated at http://sima-pc.com/nif.php for
|
||||
checking the validity of VAT Number assinged to partners in European countries.
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'depends': ['base', 'account'],
|
||||
'update_xml': ['base_vat_data.xml'],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -25,7 +25,12 @@
|
|||
'version': '1.0',
|
||||
'category': 'Board/Associations',
|
||||
'description': """
|
||||
This module implements a dashboard for associations.
|
||||
This module implements a dashboard for associations that includes:
|
||||
* New Members (graph)
|
||||
* Registration by Events (graph)
|
||||
* Next Events (list)
|
||||
* My Tasks (list)
|
||||
* Unpaid Invoices (list)
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'depends': ['event', 'membership', 'board', 'project'],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -26,7 +26,10 @@
|
|||
'category': 'Board/Auction',
|
||||
'description': """
|
||||
This module creates a dashboards for auction that includes:
|
||||
|
||||
* My Latest Objects (list)
|
||||
* My Latest Deposits (list)
|
||||
* Objects Statistics (list)
|
||||
* My Objects By Day (list)
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'depends': ['board', 'auction'],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,7 +24,13 @@
|
|||
'name': 'Dashboard for Document Management',
|
||||
'version': '1.0',
|
||||
'category': 'Board/Document',
|
||||
'description': """ This module implements a dashboard for Document """,
|
||||
'description': """
|
||||
This module implements a dashboard for Document that includes:
|
||||
* New Files (list)
|
||||
* Files by Resource Type (graph)
|
||||
* Files by Partner (graph)
|
||||
* Files by Month (graph)
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'depends': ['board', 'document', 'report_document'],
|
||||
'update_xml': ['board_document_view.xml'],
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
{
|
||||
'name': 'Board for Human Reasources Management',
|
||||
'version': '1.0',
|
||||
'category': '',
|
||||
'category': 'Board/Human Resources',
|
||||
'description': """
|
||||
This module implements a dashboard for human resource management that includes:
|
||||
* My Current Timesheet
|
||||
|
|
|
@ -7,19 +7,19 @@ msgstr ""
|
|||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2010-01-05 05:59+0000\n"
|
||||
"PO-Revision-Date: 2009-11-22 19:06+0000\n"
|
||||
"PO-Revision-Date: 2010-03-22 09:17+0000\n"
|
||||
"Last-Translator: Ferdinand @ ChriCar <Unknown>\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: 2010-03-11 04:46+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.email.add.cc,name:0
|
||||
msgid "Send to"
|
||||
msgstr ""
|
||||
msgstr "gesendet an"
|
||||
|
||||
#. module: crm
|
||||
#: help:crm.meeting,exdate:0
|
||||
|
@ -37,17 +37,17 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: view:crm.meeting:0
|
||||
msgid "Title"
|
||||
msgstr ""
|
||||
msgstr "Titel"
|
||||
|
||||
#. module: crm
|
||||
#: model:ir.model,name:crm.model_report_crm_case_section_categ2
|
||||
msgid "Cases by section and category2"
|
||||
msgstr ""
|
||||
msgstr "Fälle nach Sektionen und Kategorie 2"
|
||||
|
||||
#. module: crm
|
||||
#: wizard_field:crm.lead.partner_create,init,close:0
|
||||
msgid "Close Lead"
|
||||
msgstr ""
|
||||
msgstr "Beende Interessent"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.job:0
|
||||
|
@ -55,17 +55,17 @@ msgstr ""
|
|||
#: view:crm.opportunity:0
|
||||
#: view:crm.phonecall:0
|
||||
msgid " 7 Days "
|
||||
msgstr ""
|
||||
msgstr " 7 Tage "
|
||||
|
||||
#. module: crm
|
||||
#: help:crm.menu.config_wizard,helpdesk:0
|
||||
msgid "Manages an Helpdesk service."
|
||||
msgstr ""
|
||||
msgstr "Managt einen Anwendersupport."
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.job:0
|
||||
msgid "Pending Jobs"
|
||||
msgstr ""
|
||||
msgstr "offene Jobangebote"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.case.rule,trg_state_to:0
|
||||
|
@ -80,7 +80,7 @@ msgstr "Plankosten"
|
|||
#. module: crm
|
||||
#: wizard_field:crm.job.partner_create,init,close:0
|
||||
msgid "Close job request"
|
||||
msgstr ""
|
||||
msgstr "Schliesse Job Anfrage"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.case.stage,name:0
|
||||
|
|
|
@ -8,13 +8,13 @@ msgstr ""
|
|||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2010-01-05 05:59+0000\n"
|
||||
"PO-Revision-Date: 2010-03-12 20:47+0000\n"
|
||||
"Last-Translator: Mauri Latvala <Unknown>\n"
|
||||
"PO-Revision-Date: 2010-03-22 18:16+0000\n"
|
||||
"Last-Translator: smii <Unknown>\n"
|
||||
"Language-Team: Finnish <fi@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-13 04:51+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: crm
|
||||
|
@ -130,7 +130,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: view:crm.fundraising:0
|
||||
msgid "Amount"
|
||||
msgstr ""
|
||||
msgstr "Määrä"
|
||||
|
||||
#. module: crm
|
||||
#: model:process.transition,note:crm.process_transition_opportunitymeeting0
|
||||
|
@ -141,7 +141,7 @@ msgstr ""
|
|||
#: model:crm.case.stage,name:crm.stage_claim2
|
||||
#: model:crm.case.stage,name:crm.stage_meet1
|
||||
msgid "Fixed"
|
||||
msgstr ""
|
||||
msgstr "Ennalta määrätty"
|
||||
|
||||
#. module: crm
|
||||
#: code:addons/crm/crm.py:0
|
||||
|
@ -310,7 +310,7 @@ msgstr "Viimeisin Tapahtumapäivämäärä"
|
|||
#. module: crm
|
||||
#: view:crm.job:0
|
||||
msgid "Appreciation"
|
||||
msgstr ""
|
||||
msgstr "Arvonnousu"
|
||||
|
||||
#. module: crm
|
||||
#: model:crm.case.stage,name:crm.stage_job3
|
||||
|
@ -342,7 +342,7 @@ msgstr "Varoitus!"
|
|||
#: view:crm.lead:0
|
||||
#: view:crm.opportunity:0
|
||||
msgid "Dates"
|
||||
msgstr ""
|
||||
msgstr "Päiväykset"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.segmentation:0
|
||||
|
@ -404,7 +404,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: model:process.transition,name:crm.process_transition_opportunitymeeting0
|
||||
msgid "Opportunity Meeting"
|
||||
msgstr ""
|
||||
msgstr "Mahdollisuuskokous"
|
||||
|
||||
#. module: crm
|
||||
#: help:crm.case,canal_id:0
|
||||
|
@ -456,7 +456,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: model:crm.case.stage,name:crm.stage_lead6
|
||||
msgid "Dead"
|
||||
msgstr ""
|
||||
msgstr "Kuollut"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.meeting:0
|
||||
|
@ -499,11 +499,12 @@ msgid ""
|
|||
"Check this if you want the rule to mark CC(mail to any other person defined "
|
||||
"in actions)."
|
||||
msgstr ""
|
||||
"Valitse tämä jos haluat säännön liittävän sähköpostille muita vastaanottajia."
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.meeting,class:0
|
||||
msgid "Privacy"
|
||||
msgstr ""
|
||||
msgstr "Yksityisyys"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.case.rule:0
|
||||
|
@ -574,7 +575,7 @@ msgstr "Elokuu"
|
|||
#. module: crm
|
||||
#: view:crm.meeting:0
|
||||
msgid "Meetings Tree"
|
||||
msgstr ""
|
||||
msgstr "Kokouspuu"
|
||||
|
||||
#. module: crm
|
||||
#: code:addons/crm/crm.py:0
|
||||
|
@ -643,7 +644,7 @@ msgstr "Lokakuu"
|
|||
#. module: crm
|
||||
#: model:crm.case.stage,name:crm.stage_oppor3
|
||||
msgid "Value Proposition"
|
||||
msgstr ""
|
||||
msgstr "Arvoesitys"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.case.rule:0
|
||||
|
@ -712,7 +713,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: view:crm.phonecall:0
|
||||
msgid "Assigned to"
|
||||
msgstr ""
|
||||
msgstr "Annettu toimeksi"
|
||||
|
||||
#. module: crm
|
||||
#: view:res.partner.events:0
|
||||
|
@ -763,7 +764,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: view:crm.meeting:0
|
||||
msgid "Meetings Form"
|
||||
msgstr ""
|
||||
msgstr "Kokouslomake"
|
||||
|
||||
#. module: crm
|
||||
#: model:crm.case.stage,name:crm.stage_oppor5
|
||||
|
@ -784,7 +785,7 @@ msgstr "Tapahtumat mahdollisuuksien ja vaiheen mukaan"
|
|||
#. module: crm
|
||||
#: view:crm.claim:0
|
||||
msgid "Date of Claim"
|
||||
msgstr ""
|
||||
msgstr "Vaateen päivämäärä"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.segmentation.line:0
|
||||
|
@ -831,7 +832,7 @@ msgstr "Todennäköisyys (%)"
|
|||
#. module: crm
|
||||
#: model:ir.model,name:crm.model_crm_lead
|
||||
msgid "Leads Cases"
|
||||
msgstr ""
|
||||
msgstr "Vihjetapaukset"
|
||||
|
||||
#. module: crm
|
||||
#: help:crm.case.section,reply_to:0
|
||||
|
@ -929,7 +930,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: field:crm.segmentation,exclusif:0
|
||||
msgid "Exclusive"
|
||||
msgstr ""
|
||||
msgstr "Poissulkeva"
|
||||
|
||||
#. module: crm
|
||||
#: help:crm.case,categ_id:0
|
||||
|
@ -952,7 +953,7 @@ msgstr "Sähköposti!"
|
|||
#. module: crm
|
||||
#: model:crm.case.category2,name:crm.category_lead6
|
||||
msgid "Radio"
|
||||
msgstr ""
|
||||
msgstr "Radio"
|
||||
|
||||
#. module: crm
|
||||
#: model:ir.model,name:crm.model_crm_opportunity_assign_wizard
|
||||
|
@ -1082,7 +1083,7 @@ msgstr "%(tapahtuma_kuvaus) = Tapahtuma kuvaus"
|
|||
#. module: crm
|
||||
#: view:crm.fundraising:0
|
||||
msgid "My Funds"
|
||||
msgstr ""
|
||||
msgstr "Omat rahastot"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.case,partner_mobile:0
|
||||
|
@ -1201,7 +1202,7 @@ msgstr "Kumppanisegmentoinnit"
|
|||
#. module: crm
|
||||
#: view:crm.meeting:0
|
||||
msgid "Recurrency Rule"
|
||||
msgstr ""
|
||||
msgstr "Toistumissääntö"
|
||||
|
||||
#. module: crm
|
||||
#: model:ir.model,name:crm.model_crm_case_categ
|
||||
|
@ -1351,7 +1352,7 @@ msgstr "Luontipäivämäärä"
|
|||
#: view:crm.phonecall:0
|
||||
#: model:process.node,name:crm.process_node_meeting0
|
||||
msgid "Meeting"
|
||||
msgstr ""
|
||||
msgstr "Kokous"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.case.rule:0
|
||||
|
@ -1440,7 +1441,7 @@ msgstr "Odotettu tuotto"
|
|||
#. module: crm
|
||||
#: view:crm.meeting:0
|
||||
msgid "Meeting Date"
|
||||
msgstr ""
|
||||
msgstr "Kokouksen päivämäärä"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.job:0
|
||||
|
@ -1452,7 +1453,7 @@ msgstr "Muunna kumppaniksi"
|
|||
#. module: crm
|
||||
#: model:ir.actions.act_window,name:crm.crm_case_category_act_meetall3
|
||||
msgid "Next Meetings"
|
||||
msgstr ""
|
||||
msgstr "Seuraavat kokoukset"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.segmentation,partner_id:0
|
||||
|
@ -1468,7 +1469,7 @@ msgstr "Et voi poistaa tätä kohtaa. Sinun olisi parempi peruuttaa se."
|
|||
#. module: crm
|
||||
#: wizard_button:caldav.crm.subscribe,init,open:0
|
||||
msgid "_Subscribe"
|
||||
msgstr ""
|
||||
msgstr "_Tilaa"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.case.rule,trg_priority_from:0
|
||||
|
@ -1483,7 +1484,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: model:crm.case.categ,name:crm.categ_claim2
|
||||
msgid "Value Claims"
|
||||
msgstr ""
|
||||
msgstr "Arvovaateet"
|
||||
|
||||
#. module: crm
|
||||
#: wizard_view:caldav.crm.subscribe,display:0
|
||||
|
@ -1560,7 +1561,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: view:crm.fundraising:0
|
||||
msgid "Funds"
|
||||
msgstr ""
|
||||
msgstr "Rahastot"
|
||||
|
||||
#. module: crm
|
||||
#: code:addons/crm/crm.py:0
|
||||
|
@ -1586,23 +1587,23 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: view:crm.job:0
|
||||
msgid "Candidate Name"
|
||||
msgstr ""
|
||||
msgstr "Ehdokkaan nimi"
|
||||
|
||||
#. module: crm
|
||||
#: model:crm.case.categ,name:crm.categ_lead2
|
||||
#: model:crm.case.categ,name:crm.categ_oppor2
|
||||
msgid "Self Generated"
|
||||
msgstr ""
|
||||
msgstr "Itsestään luotu"
|
||||
|
||||
#. module: crm
|
||||
#: model:crm.case.stage,name:crm.stage_claim3
|
||||
msgid "Won't fix"
|
||||
msgstr ""
|
||||
msgstr "Ei korjaa"
|
||||
|
||||
#. module: crm
|
||||
#: model:crm.case.stage,name:crm.stage_lead4
|
||||
msgid "Converted"
|
||||
msgstr ""
|
||||
msgstr "Muunnettu"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.case:0
|
||||
|
@ -1632,7 +1633,7 @@ msgstr ""
|
|||
#: view:crm.lead:0
|
||||
#: view:crm.opportunity:0
|
||||
msgid "History"
|
||||
msgstr ""
|
||||
msgstr "Historia"
|
||||
|
||||
#. module: crm
|
||||
#: model:ir.model,name:crm.model_crm_job
|
||||
|
@ -1642,7 +1643,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: view:crm.job:0
|
||||
msgid "Jobs - Recruitment Tree"
|
||||
msgstr ""
|
||||
msgstr "Työpaikat - Rekrytointipuu"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.case.rule,regex_name:0
|
||||
|
@ -1656,7 +1657,7 @@ msgstr ""
|
|||
#: field:report.crm.case.section.categ2,state:0
|
||||
#: field:report.crm.case.section.stage,state:0
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
msgstr "Tila"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.case:0
|
||||
|
@ -1670,7 +1671,7 @@ msgstr "Lähetä muistutus"
|
|||
#: view:crm.lead:0
|
||||
#: view:crm.opportunity:0
|
||||
msgid "References"
|
||||
msgstr ""
|
||||
msgstr "Viittaukset"
|
||||
|
||||
#. module: crm
|
||||
#: code:addons/crm/crm.py:0
|
||||
|
@ -1701,7 +1702,7 @@ msgstr ""
|
|||
#: wizard_button:crm.send.mail,init,end:0
|
||||
#, python-format
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
msgstr "Peruuta"
|
||||
|
||||
#. module: crm
|
||||
#: code:addons/crm/crm.py:0
|
||||
|
@ -1717,7 +1718,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: view:crm.claim:0
|
||||
msgid "Type of claim"
|
||||
msgstr ""
|
||||
msgstr "Vaateen tyyppi"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.case:0
|
||||
|
@ -1727,17 +1728,17 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: view:res.partner.events:0
|
||||
msgid "General Description"
|
||||
msgstr ""
|
||||
msgstr "Yleinen kuvaus"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.meeting:0
|
||||
msgid "Other Info"
|
||||
msgstr ""
|
||||
msgstr "Muut tiedot"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.claim:0
|
||||
msgid "Claim Cost"
|
||||
msgstr ""
|
||||
msgstr "Vaadi kustannus"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.job:0
|
||||
|
@ -1748,7 +1749,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: field:crm.case,ref:0
|
||||
msgid "Reference"
|
||||
msgstr ""
|
||||
msgstr "Viittaus"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.meeting,exrule:0
|
||||
|
@ -1763,7 +1764,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: model:crm.case.category2,name:crm.category_lead2
|
||||
msgid "Mail"
|
||||
msgstr ""
|
||||
msgstr "Posti"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.case.rule,act_priority:0
|
||||
|
@ -1773,7 +1774,7 @@ msgstr "Aseta prioriteetti"
|
|||
#. module: crm
|
||||
#: model:crm.case.stage,name:crm.stage_oppor2
|
||||
msgid "Needs Analysis"
|
||||
msgstr ""
|
||||
msgstr "Tarvitsee analysoinnin"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.claim:0
|
||||
|
@ -1788,7 +1789,7 @@ msgstr "Viestirunko"
|
|||
#. module: crm
|
||||
#: help:crm.menu.config_wizard,meeting:0
|
||||
msgid "Manages the calendar of meetings of the users."
|
||||
msgstr ""
|
||||
msgstr "Hallinnoi käyttäjien tapaamiskalenteria"
|
||||
|
||||
#. module: crm
|
||||
#: selection:crm.segmentation.line,expr_name:0
|
||||
|
@ -1808,7 +1809,7 @@ msgstr ""
|
|||
#. module: crm
|
||||
#: selection:crm.segmentation.line,expr_operator:0
|
||||
msgid "="
|
||||
msgstr ""
|
||||
msgstr "="
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.fundraising:0
|
||||
|
@ -1816,17 +1817,17 @@ msgstr ""
|
|||
#: field:crm.menu.config_wizard,name:0
|
||||
#: field:crm.segmentation,name:0
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
msgstr "Nimi"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.opportunity:0
|
||||
msgid "Sales Stage"
|
||||
msgstr ""
|
||||
msgstr "Myyntivaihe"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.meeting,alarm_id:0
|
||||
msgid "Alarm"
|
||||
msgstr ""
|
||||
msgstr "Hälytys"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.case.rule,act_mail_to_watchers:0
|
||||
|
@ -1837,7 +1838,7 @@ msgstr ""
|
|||
#: view:crm.fundraising:0
|
||||
#: view:crm.meeting:0
|
||||
msgid "Next Meeting"
|
||||
msgstr ""
|
||||
msgstr "Seuraava kokous"
|
||||
|
||||
#. module: crm
|
||||
#: code:addons/crm/crm.py:0
|
||||
|
@ -1855,12 +1856,12 @@ msgstr "Sallii luonnoksettomien tapahtumien poiston"
|
|||
#. module: crm
|
||||
#: model:crm.case.stage,name:crm.stage_oppor7
|
||||
msgid "Closed Lost"
|
||||
msgstr ""
|
||||
msgstr "Suljettu menetys"
|
||||
|
||||
#. module: crm
|
||||
#: field:crm.menu.config_wizard,bugs:0
|
||||
msgid "Bug Tracking"
|
||||
msgstr ""
|
||||
msgstr "Ohjelmointivirheiden jäljitys"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.case:0
|
||||
|
@ -1871,7 +1872,7 @@ msgstr ""
|
|||
#: view:crm.lead:0
|
||||
#: view:crm.opportunity:0
|
||||
msgid "Actions"
|
||||
msgstr ""
|
||||
msgstr "Toimenpiteet"
|
||||
|
||||
#. module: crm
|
||||
#: selection:crm.case,priority:0
|
||||
|
@ -1879,12 +1880,12 @@ msgstr ""
|
|||
#: selection:crm.case.rule,trg_priority_from:0
|
||||
#: selection:crm.case.rule,trg_priority_to:0
|
||||
msgid "High"
|
||||
msgstr ""
|
||||
msgstr "Suuri"
|
||||
|
||||
#. module: crm
|
||||
#: model:process.node,note:crm.process_node_partner0
|
||||
msgid "Convert to prospect to business partner"
|
||||
msgstr ""
|
||||
msgstr "Muunna ehdokas liiketoimintakumppaniksi"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.claim:0
|
||||
|
@ -1909,12 +1910,12 @@ msgstr "Viive asetetun päivämäärän jälkeen"
|
|||
#. module: crm
|
||||
#: model:crm.case.category2,name:crm.category_lead5
|
||||
msgid "Web"
|
||||
msgstr ""
|
||||
msgstr "Web"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.lead:0
|
||||
msgid "Campaign Type"
|
||||
msgstr ""
|
||||
msgstr "Kampanjatyyppi"
|
||||
|
||||
#. module: crm
|
||||
#: view:crm.segmentation:0
|
||||
|
@ -1926,7 +1927,7 @@ msgstr "Mielentilanlaskenta"
|
|||
#: code:addons/crm/wizard/wizard_crm_send_email.py:0
|
||||
#, python-format
|
||||
msgid "Error"
|
||||
msgstr ""
|
||||
msgstr "Virhe"
|
||||
|
||||
#. module: crm
|
||||
#: model:ir.model,name:crm.model_crm_meeting_generic_wizard
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,131 +1,132 @@
|
|||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * crm_profiling
|
||||
#
|
||||
# * crm_profiling
|
||||
# Drazen Bosak <drazen.bosak@gmail.com>, 2010.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 5.0.4\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2009-02-03 06:26+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"PO-Revision-Date: 2010-03-22 00:55+0000\n"
|
||||
"Last-Translator: Drazen Bosak <Unknown>\n"
|
||||
"Language-Team: Vinteh\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-11 05:01+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
"Language: hr\n"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: constraint:ir.model:0
|
||||
msgid ""
|
||||
"The Object name must start with x_ and not contain any special character !"
|
||||
msgstr ""
|
||||
msgstr "Ime Objekta mora početi s x_ i ne smije sadržavati posebne znakove"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm_profiling.answer,question_id:0
|
||||
#: field:crm_profiling.question,name:0
|
||||
#: model:ir.model,name:crm_profiling.model_crm_profiling_question
|
||||
msgid "Question"
|
||||
msgstr ""
|
||||
msgstr "Pitanje"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: wizard_button:open_questionnaire,init,open:0
|
||||
msgid "Open Questionnaire"
|
||||
msgstr ""
|
||||
msgstr "Otvori Upitnik"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm.segmentation,child_ids:0
|
||||
msgid "Child Profiles"
|
||||
msgstr ""
|
||||
msgstr "Ishodni profili"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: model:ir.module.module,shortdesc:crm_profiling.module_meta_information
|
||||
msgid "crm_profiling management"
|
||||
msgstr ""
|
||||
msgstr "crm_profiling upravljanje"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: constraint:ir.actions.act_window:0
|
||||
msgid "Invalid model name in the action definition."
|
||||
msgstr ""
|
||||
msgstr "Nepravilno ime modela u definiciji radnje."
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm_profiling.answer,name:0
|
||||
#: model:ir.model,name:crm_profiling.model_crm_profiling_answer
|
||||
msgid "Answer"
|
||||
msgstr ""
|
||||
msgstr "Odgovor"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: view:res.partner:0
|
||||
msgid "Profiling"
|
||||
msgstr ""
|
||||
msgstr "Profiliranje"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm_profiling.questionnaire,description:0
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
msgstr "Opis"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm.segmentation,answer_no:0
|
||||
msgid "Excluded Answers"
|
||||
msgstr ""
|
||||
msgstr "Isključeni Odgovori"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: view:crm_profiling.answer:0
|
||||
#: view:crm_profiling.question:0
|
||||
#: field:res.partner,answers_ids:0
|
||||
msgid "Answers"
|
||||
msgstr ""
|
||||
msgstr "Odgovori"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: wizard_field:open_questionnaire,init,questionnaire_name:0
|
||||
msgid "Questionnaire name"
|
||||
msgstr ""
|
||||
msgstr "Ime Upitnka"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: view:res.partner:0
|
||||
msgid "Use a questionnaire"
|
||||
msgstr ""
|
||||
msgstr "Koristi Upitnik"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: constraint:ir.ui.view:0
|
||||
msgid "Invalid XML for View Architecture!"
|
||||
msgstr ""
|
||||
msgstr "Nepravilan XML format za View Architecture!"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: view:crm_profiling.questionnaire:0
|
||||
#: model:ir.actions.act_window,name:crm_profiling.open_questionnaires
|
||||
#: model:ir.ui.menu,name:crm_profiling.menu_segm_questionnaire
|
||||
msgid "Questionnaires"
|
||||
msgstr ""
|
||||
msgstr "Upitnici"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm_profiling.questionnaire,name:0
|
||||
#: model:ir.model,name:crm_profiling.model_crm_profiling_questionnaire
|
||||
#: wizard_view:open_questionnaire,init:0
|
||||
msgid "Questionnaire"
|
||||
msgstr ""
|
||||
msgstr "Upitnik"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: constraint:crm.segmentation:0
|
||||
msgid "Error ! You can not create recursive profiles."
|
||||
msgstr ""
|
||||
msgstr "Greška ! Ne možete kreirati rekurzivne profile."
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm.segmentation,profiling_active:0
|
||||
msgid "Use The Profiling Rules"
|
||||
msgstr ""
|
||||
msgstr "Koristi Pravila Profiliranja"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: view:crm_profiling.question:0
|
||||
#: field:crm_profiling.question,answers_ids:0
|
||||
msgid "Avalaible answers"
|
||||
msgstr ""
|
||||
msgstr "Raspoloživi odgovori"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm.segmentation,answer_yes:0
|
||||
msgid "Included Answers"
|
||||
msgstr ""
|
||||
msgstr "Uključeni Odgovori"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: help:crm.segmentation,profiling_active:0
|
||||
|
@ -133,6 +134,8 @@ msgid ""
|
|||
"Check this box if you want to use this tab as part of the segmentation rule. "
|
||||
"If not checked, the criteria beneath will be ignored"
|
||||
msgstr ""
|
||||
"Označite ako želite koristiti ovu karticu (Tab) kao dio pravila "
|
||||
"segmentacije. Ako ne označite, kriterij koji slijedi biti će zanemaren"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: view:crm_profiling.question:0
|
||||
|
@ -140,30 +143,30 @@ msgstr ""
|
|||
#: model:ir.actions.act_window,name:crm_profiling.open_questions
|
||||
#: model:ir.ui.menu,name:crm_profiling.menu_segm_answer
|
||||
msgid "Questions"
|
||||
msgstr ""
|
||||
msgstr "Pitanja"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm.segmentation,parent_id:0
|
||||
msgid "Parent Profile"
|
||||
msgstr ""
|
||||
msgstr "Prethodni Profil"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: wizard_button:open_questionnaire,init,end:0
|
||||
#: wizard_button:open_questionnaire,open,end:0
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
msgstr "Odustani"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: view:crm.segmentation:0
|
||||
msgid "Partner Segmentations"
|
||||
msgstr ""
|
||||
msgstr "Segmentacije Partnera"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: model:ir.actions.wizard,name:crm_profiling.wizard_open_questionnaire
|
||||
msgid "Using a questionnaire"
|
||||
msgstr ""
|
||||
msgstr "Korištenje Upitnika"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: wizard_button:open_questionnaire,open,compute:0
|
||||
msgid "Save Data"
|
||||
msgstr ""
|
||||
msgstr "Spremi podatke"
|
||||
|
|
|
@ -7,13 +7,13 @@ msgstr ""
|
|||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2009-12-12 00:07+0000\n"
|
||||
"Last-Translator: Fabio Henrique de Souza <fabiohsouza@gmail.com>\n"
|
||||
"PO-Revision-Date: 2010-03-24 01:15+0000\n"
|
||||
"Last-Translator: Pedro_Maschio <pedro.bicudo@tgtconsult.com.br>\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: 2010-03-11 05:01+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: crm_profiling
|
||||
|
@ -44,12 +44,12 @@ msgstr "Perfis Filhos"
|
|||
#. module: crm_profiling
|
||||
#: model:ir.module.module,shortdesc:crm_profiling.module_meta_information
|
||||
msgid "crm_profiling management"
|
||||
msgstr ""
|
||||
msgstr "gerenciamento perfil_crm (profiling)"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: constraint:ir.actions.act_window:0
|
||||
msgid "Invalid model name in the action definition."
|
||||
msgstr ""
|
||||
msgstr "Nome de modelo inválido na definição da ação"
|
||||
|
||||
#. module: crm_profiling
|
||||
#: field:crm_profiling.answer,name:0
|
||||
|
|
|
@ -1,22 +1,23 @@
|
|||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * crm_vertical
|
||||
#
|
||||
# * crm_vertical
|
||||
# Drazen Bosak <drazen.bosak@gmail.com>, 2010.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 5.0.4\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2009-12-22 12:14+0000\n"
|
||||
"Last-Translator: Jožek Prikratki <Unknown>\n"
|
||||
"Language-Team: \n"
|
||||
"PO-Revision-Date: 2010-03-22 00:55+0000\n"
|
||||
"Last-Translator: Drazen Bosak <Unknown>\n"
|
||||
"Language-Team: Vinteh\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-11 05:04+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
"Language: hr\n"
|
||||
|
||||
#. module: crm_vertical
|
||||
#: model:ir.module.module,description:crm_vertical.module_meta_information
|
||||
msgid "Simplification of the interface for CRM."
|
||||
msgstr "Pojednostavljenje sučelja za CRM"
|
||||
msgstr "Pojednostavljenje sučelja za CRM."
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -23,8 +23,9 @@
|
|||
"name": "Decimal Precision Configuration",
|
||||
"description": """
|
||||
This module allows to configure the price accuracy you need for different kind
|
||||
of usage: accounting, sales, purchases, ... The decimal precision is configured
|
||||
per company.
|
||||
of usage: accounting, sales, purchases, ...
|
||||
|
||||
The decimal precision is configured per company.
|
||||
""",
|
||||
"author": "Tiny",
|
||||
"version": "0.1",
|
||||
|
@ -32,8 +33,8 @@ per company.
|
|||
"category" : "Generic Modules/Others",
|
||||
"init_xml": [],
|
||||
"update_xml": [
|
||||
'decimal_precision_view.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'decimal_precision_view.xml',
|
||||
'security/ir.model.access.csv',
|
||||
],
|
||||
"demo_xml": [],
|
||||
"installable": True,
|
||||
|
|
|
@ -24,7 +24,11 @@
|
|||
'name': 'Carriers and deliveries',
|
||||
'version': '1.0',
|
||||
'category': 'Generic Modules/Sales & Purchases',
|
||||
'description': """Allows you to add delivery methods in sales orders and picking. You can define your own carrier and delivery grids for prices. When creating invoices from picking, Open ERP is able to add and compute the shipping line.""",
|
||||
'description': """Allows you to add delivery methods in sales orders and picking.
|
||||
You can define your own carrier and delivery grids for prices.
|
||||
When creating invoices from picking, Open ERP is able to add and compute the shipping line.
|
||||
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'depends': ['sale', 'purchase', 'stock'],
|
||||
'init_xml': ['delivery_data.xml'],
|
||||
|
|
|
@ -7,13 +7,13 @@ msgstr ""
|
|||
"Project-Id-Version: OpenERP Server 5.0.0\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2009-12-07 18:08+0000\n"
|
||||
"PO-Revision-Date: 2010-03-24 01:21+0000\n"
|
||||
"Last-Translator: Pedro_Maschio <pedro.bicudo@tgtconsult.com.br>\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: 2010-03-11 04:43+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: delivery
|
||||
|
@ -21,8 +21,7 @@ msgstr ""
|
|||
msgid ""
|
||||
"The Object name must start with x_ and not contain any special character !"
|
||||
msgstr ""
|
||||
"O nome do objeto precisa iniciar com x_ e não conter nenhum caracter "
|
||||
"especial!"
|
||||
"O nome do objeto deve começar com x_ e não conter caracteres especiais!"
|
||||
|
||||
#. module: delivery
|
||||
#: selection:delivery.grid.line,operator:0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,7 +24,9 @@
|
|||
'name': 'Integrated FTP Server with Document Management System',
|
||||
'version': '1.99',
|
||||
'category': 'Generic Modules/Others',
|
||||
'description': """This is a support FTP Interface with document management system:
|
||||
'description': """This is a support FTP Interface with document management system.
|
||||
With this module you would not only be able to access documents through open erp
|
||||
also you would be able to connect with them through the file system using the FTP protocol.
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'website': 'http://www.openerp.com',
|
||||
|
@ -32,7 +34,7 @@
|
|||
'init_xml': [],
|
||||
'update_xml': [
|
||||
'document_ftp_view.xml',
|
||||
'security/ir.model.access.csv'
|
||||
'security/ir.model.access.csv'
|
||||
],
|
||||
'demo_xml': [],
|
||||
'installable': True,
|
||||
|
|
|
@ -34,8 +34,9 @@
|
|||
"author" : "Tiny",
|
||||
"category" : "Generic Modules/Others",
|
||||
"website": "http://www.openerp.com",
|
||||
"description": """ With this module, the WebDAV server for the documents is activated. You can then use any compatible browser to remotely see the attachments of OpenObject.
|
||||
|
||||
"description": """ With this module, the WebDAV server for the documents is activated.
|
||||
You can then use any compatible browser to remotely see the attachments of OpenObject.
|
||||
|
||||
After installation, the webDAV server can be controlled by a [webdav] section in the server's config.
|
||||
""",
|
||||
"depends" : ["base", "document"],
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
# Brazilian Portuguese 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 <EMAIL@ADDRESS>, 2010.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2009-05-30 15:14+0000\n"
|
||||
"PO-Revision-Date: 2010-03-24 01:18+0000\n"
|
||||
"Last-Translator: Pedro_Maschio <pedro.bicudo@tgtconsult.com.br>\n"
|
||||
"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: document_webdav_old
|
||||
#: model:ir.module.module,description:document_webdav_old.module_meta_information
|
||||
msgid ""
|
||||
"This is a complete document management system:\n"
|
||||
"\t* WebDav Interface\n"
|
||||
"\t* User Authentification\n"
|
||||
"\t* Document Indexation\n"
|
||||
msgstr ""
|
||||
"Este é um gerenciador de documentos completo:\n"
|
||||
"\t* WebDav Interface\n"
|
||||
"\t* User Authentification\n"
|
||||
"\t* Document Indexation\n"
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -45,7 +45,9 @@
|
|||
'event_view.xml',
|
||||
'event_sequence.xml',
|
||||
'security/event_security.xml',
|
||||
'security/ir.model.access.csv'
|
||||
'security/ir.model.access.csv',
|
||||
'wizard/event_registration_view.xml',
|
||||
'wizard/event_registrations_partner.xml',
|
||||
],
|
||||
'demo_xml': ['event_demo.xml'],
|
||||
'installable': True,
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
<openerp>
|
||||
<data>
|
||||
|
||||
<wizard
|
||||
<!-- <wizard
|
||||
string="Registrations"
|
||||
model="event.event"
|
||||
name="wizard_event_registration"
|
||||
id="wizard_event_registration"/>
|
||||
id="wizard_event_registration"/> -->
|
||||
|
||||
<wizard
|
||||
<!-- <wizard
|
||||
string="List Register Partners"
|
||||
model="event.event"
|
||||
name="event.event_reg_partners"
|
||||
id="wizard_event_reg_partners"/>
|
||||
id="wizard_event_reg_partners"/> -->
|
||||
|
||||
<wizard string="Make Invoice"
|
||||
model="event.registration"
|
||||
|
@ -21,7 +21,7 @@
|
|||
menu="True"
|
||||
/>
|
||||
|
||||
<wizard string="Confirm Registration"
|
||||
<wizard string="Confirm Registration"
|
||||
model="event.registration"
|
||||
name="event.confirm_registration"
|
||||
id="event_confirm_registration"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,13 +15,12 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import event_registration
|
||||
import make_invoice
|
||||
import event_registrations_partner
|
||||
import confirm_registration
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,40 +15,29 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import wizard
|
||||
import pooler
|
||||
from osv import fields, osv
|
||||
|
||||
def _event_registration(self, cr, uid, data, context):
|
||||
event_id = data['id']
|
||||
cr.execute('SELECT section_id FROM event_event WHERE id = %s', (event_id, ))
|
||||
res = cr.fetchone()
|
||||
value = {
|
||||
'domain': [('section_id', '=', res[0])],
|
||||
'name': 'Event registration',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'event.registration',
|
||||
'context': { },
|
||||
'type': 'ir.actions.act_window'
|
||||
}
|
||||
return value
|
||||
class event_registration_list(osv.osv_memory):
|
||||
""" List Event Registration """
|
||||
_name = "event.registration.list"
|
||||
_description = "List Event Registrations"
|
||||
|
||||
class wizard_event_registration(wizard.interface):
|
||||
states = {
|
||||
'init': {
|
||||
'actions': [],
|
||||
'result': {
|
||||
'type': 'action',
|
||||
'action': _event_registration,
|
||||
'state': 'end'
|
||||
}
|
||||
},
|
||||
}
|
||||
wizard_event_registration("wizard_event_registration")
|
||||
def open_registration(self, cr, uid, ids, context={}):
|
||||
cr.execute('SELECT section_id FROM event_event WHERE id = %s', (context['active_id'],))
|
||||
res = cr.fetchone()
|
||||
return {
|
||||
'domain': [('section_id', '=', res[0])],
|
||||
'name': 'Event Registrations',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'event.registration',
|
||||
'type': 'ir.actions.act_window'
|
||||
}
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
event_registration_list()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_event_registration" model="ir.ui.view">
|
||||
<field name="name">List Event Registrations</field>
|
||||
<field name="model">event.registration.list</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="">
|
||||
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
|
||||
<button name="open_registration" string="Open Registrations" type="object" icon="gtk-open"/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_event_registration" model="ir.actions.act_window">
|
||||
<field name="name">Registrations</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">event.registration.list</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="view_event_registration"/>
|
||||
<field name="context">{'record_id' : active_id}</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.values" id="event_registration_values">
|
||||
<field name="model_id" ref="event.model_event_event" />
|
||||
<field name="object" eval="1" />
|
||||
<field name="name">Event Registrations</field>
|
||||
<field name="key2">client_action_multi</field>
|
||||
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_event_registration'))" />
|
||||
<field name="key">action</field>
|
||||
<field name="model">event.event</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,57 +15,41 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import wizard
|
||||
import pooler
|
||||
|
||||
from osv import fields, osv
|
||||
from tools.translate import _
|
||||
|
||||
def _list_partners(self, cr, uid, data, context):
|
||||
class event_partners_list(osv.osv_memory):
|
||||
""" Event Partners """
|
||||
_name = "event.partners.list"
|
||||
_description = "List Event Partners"
|
||||
|
||||
def list_partners(self, cr, uid, ids, context={}):
|
||||
obj_reg = self.pool.get('event.registration')
|
||||
mod_obj = self.pool.get('ir.model.data')
|
||||
list_partner = []
|
||||
pool_obj=pooler.get_pool(cr.dbname)
|
||||
obj_reg=pool_obj.get('event.registration')
|
||||
reg_ids = obj_reg.search(cr, uid, [('event_id','in',data['ids'])])
|
||||
data_reg = obj_reg.browse(cr, uid, reg_ids)
|
||||
reg_ids = obj_reg.search(cr, uid, [('event_id','in',context['active_ids'])], context=context)
|
||||
data_reg = obj_reg.browse(cr, uid, reg_ids, context=context)
|
||||
for reg in data_reg:
|
||||
if not reg.partner_id.id in list_partner:
|
||||
list_partner.append(reg.partner_id.id)
|
||||
data['partner_ids'] = list_partner
|
||||
return {}
|
||||
|
||||
class event_partners(wizard.interface):
|
||||
def _reg_partners(self, cr, uid, data, context):
|
||||
pool_obj = pooler.get_pool(cr.dbname)
|
||||
mod_obj = pool_obj.get('ir.model.data')
|
||||
result = mod_obj._get_id(cr, uid, 'base', 'view_res_partner_filter')
|
||||
id = mod_obj.read(cr, uid, result, ['res_id'])
|
||||
model_data_ids = pool_obj.get('ir.model.data').search(cr,uid,[('model','=','ir.ui.view'),('name','=','view_partner_form')])
|
||||
resource_id = pool_obj.get('ir.model.data').read(cr,uid,model_data_ids,fields=['res_id'])[0]['res_id']
|
||||
id = mod_obj.read(cr, uid, result, ['res_id'], context=context)
|
||||
model_data_ids = mod_obj.search(cr,uid,[('model','=','ir.ui.view'),('name','=','view_partner_form')], context=context)
|
||||
resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
|
||||
return {
|
||||
'domain': "[('id','in', ["+','.join(map(str,data['partner_ids']))+"])]",
|
||||
'name': 'Partners',
|
||||
'domain': "[('id','in', ["+','.join(map(str, list_partner))+"])]",
|
||||
'name': _('Event Partners'),
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'res.partner',
|
||||
'views': [(False,'tree'),(resource_id,'form')],
|
||||
'type': 'ir.actions.act_window',
|
||||
'search_view_id': id['res_id']
|
||||
'search_view_id': id['res_id']
|
||||
}
|
||||
return {}
|
||||
|
||||
states = {
|
||||
'init' : {
|
||||
'actions' : [_list_partners],
|
||||
'result': {'type': 'action' , 'action':_reg_partners, 'state':'end'}
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
event_partners("event.event_reg_partners")
|
||||
|
||||
event_partners_list()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_event_partners" model="ir.ui.view">
|
||||
<field name="name">Event Partners</field>
|
||||
<field name="model">event.partners.list</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Event Partners">
|
||||
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
|
||||
<button name="list_partners" string="Open Partners" type="object" icon="gtk-open"/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_event_partners" model="ir.actions.act_window">
|
||||
<field name="name">List Register Partners</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">event.partners.list</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="view_event_partners"/>
|
||||
<field name="context">{'record_id' : active_id}</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.values" id="event_partner_values">
|
||||
<field name="model_id" ref="event.model_event_event" />
|
||||
<field name="object" eval="1" />
|
||||
<field name="name">Event Partners</field>
|
||||
<field name="key2">client_action_multi</field>
|
||||
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_event_partners'))"/>
|
||||
<field name="key">action</field>
|
||||
<field name="model">event.event</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,7 +24,12 @@
|
|||
'name': 'Attendances Of Employees',
|
||||
'version': '1.1',
|
||||
'category': 'Generic Modules/Human Resources',
|
||||
'description': """This module aims to manage employee's attendances.""",
|
||||
'description': """
|
||||
This module aims to manage employee's attendances.
|
||||
|
||||
Keeps account of the attendances of the employees on the basis of the
|
||||
actions(Sign in/Sign out) performed by them.
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'depends': ['base', 'hr'],
|
||||
'update_xml': [
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
##############################################################################
|
||||
|
||||
import hr_evaluation
|
||||
import wizard
|
||||
import report
|
||||
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -26,12 +26,21 @@
|
|||
"category" : "Generic Modules/Human Resources",
|
||||
"website" : "http://www.openerp.com",
|
||||
"depends" : ["hr",'hr_recruitment','survey'],
|
||||
"description": "Ability to create employees evaluation.",
|
||||
"description": """
|
||||
Ability to create employees evaluation.
|
||||
An evaluation can be created by employee for subordinates
|
||||
juniors as well as his manager.The evaluation is done under a plan
|
||||
in which various surveys can be created and it can be defined which
|
||||
level of employee hierarchy fills what and final review and evaluation
|
||||
is done by the manager.Every evaluation filled by the employees can be viewed
|
||||
in the form of """,
|
||||
"init_xml" : [],
|
||||
"demo_xml" : ["hr_evaluation_demo.xml"],
|
||||
"update_xml" : [
|
||||
"security/ir.model.access.csv",
|
||||
"wizard/hr_evaluation_mail_view.xml",
|
||||
"hr_evaluation_view.xml",
|
||||
"hr_evaluation_demo.xml",
|
||||
"report/hr_evaluation_report_view.xml"],
|
||||
"active": False,
|
||||
"installable": True
|
||||
|
|
|
@ -20,8 +20,9 @@
|
|||
##############################################################################
|
||||
|
||||
import time
|
||||
from osv import fields, osv
|
||||
from mx import DateTime as dt
|
||||
|
||||
from osv import fields, osv
|
||||
import tools
|
||||
from tools.translate import _
|
||||
|
||||
|
@ -31,7 +32,7 @@ class hr_evaluation_plan(osv.osv):
|
|||
_columns = {
|
||||
'name': fields.char("Evaluation Plan", size=64, required=True),
|
||||
'company_id': fields.many2one('res.company', 'Company', required=True),
|
||||
'phase_ids' : fields.one2many('hr_evaluation.plan.phase', 'plan_id', 'Evaluation Phases'),
|
||||
'phase_ids': fields.one2many('hr_evaluation.plan.phase', 'plan_id', 'Evaluation Phases'),
|
||||
'month_first': fields.integer('First Evaluation After'),
|
||||
'month_next': fields.integer('Next Evaluation After'),
|
||||
'active': fields.boolean('Active')
|
||||
|
@ -66,31 +67,74 @@ class hr_evaluation_plan_phase(osv.osv):
|
|||
help="Send an anonymous summary to the employee"),
|
||||
'wait': fields.boolean('Wait Previous Phases',
|
||||
help="Check this box if you want to wait that all preceeding phases " +
|
||||
"are finished before launching this phase.")
|
||||
|
||||
"are finished before launching this phase."),
|
||||
'mail_feature': fields.boolean('Send mail for this phase',help="Check this box if you want to send mail to employees"+
|
||||
"coming under this phase"),
|
||||
'mail_body': fields.text('Email'),
|
||||
'email_subject':fields.text('char')
|
||||
}
|
||||
_defaults = {
|
||||
'sequence' : lambda *a: 1,
|
||||
'email_subject':_('''Regarding '''),
|
||||
'mail_body' : lambda *a:_('''
|
||||
Date : %(date)s
|
||||
|
||||
Dear %(employee_name)s,
|
||||
|
||||
I am doing an evaluation regarding %(eval_name)s.
|
||||
|
||||
Kindly submit your response.
|
||||
|
||||
|
||||
Thanks,
|
||||
--
|
||||
%(user_signature)s
|
||||
|
||||
'''),
|
||||
}
|
||||
|
||||
|
||||
hr_evaluation_plan_phase()
|
||||
|
||||
class hr_employee(osv.osv):
|
||||
_name = "hr.employee"
|
||||
_inherit="hr.employee"
|
||||
_columns = {
|
||||
'evaluation_plan_id': fields.many2one('hr_evaluation.plan', 'Evaluation Plan'),
|
||||
'evaluation_date': fields.date('Next Evaluation', help="Date of the next evaluation"),
|
||||
}
|
||||
|
||||
def onchange_evaluation_plan_id(self,cr,uid,ids,evaluation_plan_id,context={}):
|
||||
evaluation_date = self.browse(cr, uid, ids)[0].evaluation_date or ''
|
||||
def run_employee_evaluation(self, cr, uid, automatic=False, use_new_cursor=False, context=None):
|
||||
for id in self.browse(cr, uid, self.search(cr, uid, [],context=context),context=context):
|
||||
if id.evaluation_plan_id and id.evaluation_date:
|
||||
if (dt.ISO.ParseAny(id.evaluation_date) + dt.RelativeDateTime(months = int(id.evaluation_plan_id.month_next))).strftime('%Y-%m-%d') <= time.strftime("%Y-%m-%d"):
|
||||
self.write(cr, uid, id.id, {'evaluation_date' : (dt.ISO.ParseAny(id.evaluation_date) + dt.RelativeDateTime(months =+ int(id.evaluation_plan_id.month_next))).strftime('%Y-%m-%d')},context=context)
|
||||
self.pool.get("hr_evaluation.evaluation").create(cr, uid, {'employee_id' : id.id, 'plan_id': id.evaluation_plan_id},context)
|
||||
return True
|
||||
|
||||
def onchange_evaluation_plan_id(self, cr, uid, ids, evaluation_plan_id, evaluation_date, context={}):
|
||||
evaluation_date = evaluation_date or False
|
||||
evaluation_plan_obj=self.pool.get('hr_evaluation.plan')
|
||||
if evaluation_plan_id:
|
||||
for evaluation_plan in evaluation_plan_obj.browse(cr,uid,[evaluation_plan_id]):
|
||||
if not evaluation_date:
|
||||
evaluation_date=(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d'))+ dt.RelativeDateTime(months=+evaluation_plan.month_first)).strftime('%Y-%m-%d')
|
||||
else:
|
||||
evaluation_date=(dt.ISO.ParseAny(evaluation_date)+ dt.RelativeDateTime(months=+evaluation_plan.month_next)).strftime('%Y-%m-%d')
|
||||
flag = False
|
||||
evaluation_plan = evaluation_plan_obj.browse(cr, uid, [evaluation_plan_id],context=context)[0]
|
||||
if not evaluation_date:
|
||||
evaluation_date=(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d'))+ dt.RelativeDateTime(months=+evaluation_plan.month_first)).strftime('%Y-%m-%d')
|
||||
flag = True
|
||||
else:
|
||||
if (dt.ISO.ParseAny(evaluation_date) + dt.RelativeDateTime(months = int(evaluation_plan.month_next))).strftime('%Y-%m-%d') <= time.strftime("%Y-%m-%d"):
|
||||
evaluation_date=(dt.ISO.ParseAny(evaluation_date)+ dt.RelativeDateTime(months=+evaluation_plan.month_next)).strftime('%Y-%m-%d')
|
||||
flag = True
|
||||
if ids and flag:
|
||||
self.pool.get("hr_evaluation.evaluation").create(cr, uid, {'employee_id' : ids[0], 'plan_id': evaluation_plan_id},context=context)
|
||||
return {'value': {'evaluation_date':evaluation_date}}
|
||||
|
||||
def create(self, cr, uid, vals, context={}):
|
||||
id = super(hr_employee, self).create(cr, uid, vals, context=context)
|
||||
if vals.get('evaluation_plan_id', False):
|
||||
self.pool.get("hr_evaluation.evaluation").create(cr, uid, {'employee_id' : id, 'plan_id': vals['evaluation_plan_id']},context=context)
|
||||
return id
|
||||
|
||||
hr_employee()
|
||||
|
||||
class hr_evaluation(osv.osv):
|
||||
|
@ -132,18 +176,20 @@ class hr_evaluation(osv.osv):
|
|||
employee_obj=self.pool.get('hr.employee')
|
||||
evaluation_plan_id=''
|
||||
if employee_id:
|
||||
for employee in employee_obj.browse(cr,uid,[employee_id]):
|
||||
for employee in employee_obj.browse(cr,uid,[employee_id],context=context):
|
||||
if employee and employee.evaluation_plan_id and employee.evaluation_plan_id.id:
|
||||
evaluation_plan_id=employee.evaluation_plan_id.id
|
||||
employee_ids=employee_obj.search(cr,uid,[('parent_id','=',employee.id)])
|
||||
employee_ids=employee_obj.search(cr,uid,[('parent_id','=',employee.id)],context=context)
|
||||
return {'value': {'plan_id':evaluation_plan_id}}
|
||||
|
||||
def button_plan_in_progress(self,cr, uid, ids, context):
|
||||
def button_plan_in_progress(self,cr, uid, ids, context={}):
|
||||
user_obj = self.pool.get('res.users')
|
||||
employee_obj = self.pool.get('hr.employee')
|
||||
hr_eval_inter_obj = self.pool.get('hr.evaluation.interview')
|
||||
survey_request_obj = self.pool.get('survey.request')
|
||||
curr_employee=self.browse(cr,uid, ids)[0].employee_id
|
||||
child_employees=employee_obj.browse(cr,uid, employee_obj.search(cr,uid,[('parent_id','=',curr_employee.id)]))
|
||||
hr_eval_plan_obj = self.pool.get('hr_evaluation.plan.phase')
|
||||
curr_employee=self.browse(cr,uid, ids, context=context)[0].employee_id
|
||||
child_employees=employee_obj.browse(cr,uid, employee_obj.search(cr,uid,[('parent_id','=',curr_employee.id)],context=context))
|
||||
manager_employee=curr_employee.parent_id
|
||||
for evaluation in self.browse(cr,uid,ids):
|
||||
if evaluation and evaluation.plan_id:
|
||||
|
@ -151,57 +197,82 @@ class hr_evaluation(osv.osv):
|
|||
for phase in evaluation.plan_id.phase_ids:
|
||||
if phase.action == "bottom-up":
|
||||
for child in child_employees:
|
||||
user = False
|
||||
if child.user_id:
|
||||
user = child.user_id.id
|
||||
id = hr_eval_inter_obj.create(cr, uid, {'evaluation_id':evaluation.id ,'user_id' : user,'survey_id' : phase.survey_id.id, 'user_to_review_id' : child.id, 'date_deadline' :(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d')) + dt.RelativeDateTime(months =+ 1)).strftime('%Y-%m-%d')})
|
||||
id = hr_eval_inter_obj.create(cr, uid, {'evaluation_id':evaluation.id ,'user_id' : user,'survey_id' : phase.survey_id.id, 'user_to_review_id' : child.id, 'date_deadline' :(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d')) + dt.RelativeDateTime(months =+ 1)).strftime('%Y-%m-%d')},context=context)
|
||||
if not phase.wait:
|
||||
hr_eval_inter_obj.survey_req_waiting_answer(cr, uid, [id], context)
|
||||
hr_eval_inter_obj.survey_req_waiting_answer(cr, uid, [id], context=context)
|
||||
if phase.mail_feature:
|
||||
src = tools.config.options['email_from']
|
||||
user_obj_id = user_obj.browse(cr,uid,uid)
|
||||
val = {
|
||||
'employee_name':child.name,
|
||||
'user_signature':curr_employee.name,
|
||||
# 'company_name':user_obj_id.company_id.name,
|
||||
'eval_name':phase.survey_id.title,
|
||||
'date':time.strftime('%Y-%m-%d'),
|
||||
}
|
||||
mailbody = hr_eval_plan_obj.read(cr,uid,phase.id,['mail_body','email_subject'],context=context)
|
||||
body = mailbody['mail_body']%val
|
||||
sub = mailbody['email_subject']+phase.survey_id.title
|
||||
dest=[child.work_email]
|
||||
if dest:
|
||||
tools.email_send(src,dest,sub,body)
|
||||
apprai_id.append(id)
|
||||
|
||||
elif phase.action == "top-down":
|
||||
if manager_employee:
|
||||
user = False
|
||||
if manager_employee.user_id:
|
||||
user = manager_employee.user_id.id
|
||||
id = hr_eval_inter_obj.create(cr, uid, {'evaluation_id':evaluation.id,'user_id': user ,'survey_id' : phase.survey_id.id, 'user_to_review_id' :manager_employee.id, 'date_deadline' :(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d')) + dt.RelativeDateTime(months =+ 1)).strftime('%Y-%m-%d')})
|
||||
id = hr_eval_inter_obj.create(cr, uid, {'evaluation_id':evaluation.id,'user_id': user ,'survey_id' : phase.survey_id.id, 'user_to_review_id' :manager_employee.id, 'date_deadline' :(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d')) + dt.RelativeDateTime(months =+ 1)).strftime('%Y-%m-%d')},context=context)
|
||||
if not phase.wait:
|
||||
hr_eval_inter_obj.survey_req_waiting_answer(cr, uid, [id], context)
|
||||
hr_eval_inter_obj.survey_req_waiting_answer(cr, uid, [id], context=context)
|
||||
if phase.mail_feature:
|
||||
val.update({'employee_name':manager_employee.name})
|
||||
mailbody = hr_eval_plan_obj.read(cr,uid,phase.id,['mail_body'],context=context)
|
||||
body = mailbody['mail_body']%val
|
||||
dest = [manager_employee.work_email]
|
||||
if dest:
|
||||
tools.email_send(src,dest,sub,body)
|
||||
apprai_id.append(id)
|
||||
elif phase.action == "self":
|
||||
if curr_employee:
|
||||
user = False
|
||||
if curr_employee.user_id:
|
||||
user = curr_employee.user_id.id
|
||||
id = hr_eval_inter_obj.create(cr, uid, {'evaluation_id':evaluation.id,'user_id' : user, 'survey_id' : phase.survey_id.id, 'user_to_review_id' :curr_employee.id, 'date_deadline' :(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d')) + dt.RelativeDateTime(months =+ 1)).strftime('%Y-%m-%d')})
|
||||
id = hr_eval_inter_obj.create(cr, uid, {'evaluation_id':evaluation.id,'user_id' : user, 'survey_id' : phase.survey_id.id, 'user_to_review_id' :curr_employee.id, 'date_deadline' :(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d')) + dt.RelativeDateTime(months =+ 1)).strftime('%Y-%m-%d')},context=context)
|
||||
if not phase.wait:
|
||||
hr_eval_inter_obj.survey_req_waiting_answer(cr, uid, [id], context)
|
||||
hr_eval_inter_obj.survey_req_waiting_answer(cr, uid, [id], context=context)
|
||||
apprai_id.append(id)
|
||||
elif phase.action == "final":
|
||||
if manager_employee:
|
||||
user = False
|
||||
if manager_employee.user_id:
|
||||
user = manager_employee.user_id.id
|
||||
id = hr_eval_inter_obj.create(cr, uid, {'evaluation_id':evaluation.id,'user_id' : user, 'survey_id' : phase.survey_id.id, 'user_to_review_id' :manager_employee.id, 'date_deadline' :(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d')) + dt.RelativeDateTime(months =+ 1)).strftime('%Y-%m-%d')})
|
||||
id = hr_eval_inter_obj.create(cr, uid, {'evaluation_id':evaluation.id,'user_id' : user, 'survey_id' : phase.survey_id.id, 'user_to_review_id' :manager_employee.id, 'date_deadline' :(dt.ISO.ParseAny(dt.now().strftime('%Y-%m-%d')) + dt.RelativeDateTime(months =+ 1)).strftime('%Y-%m-%d')},context=context)
|
||||
if not phase.wait:
|
||||
hr_eval_inter_obj.survey_req_waiting_answer(cr, uid, [id], context)
|
||||
hr_eval_inter_obj.survey_req_waiting_answer(cr, uid, [id], context=context)
|
||||
apprai_id.append(id)
|
||||
self.write(cr, uid, evaluation.id, {'survey_request_ids':[[6, 0, apprai_id]]})
|
||||
self.write(cr,uid,ids,{'state':'wait'})
|
||||
self.write(cr,uid,ids,{'state':'wait'},context=context)
|
||||
return True
|
||||
|
||||
def button_final_validation(self,cr, uid, ids, context):
|
||||
def button_final_validation(self,cr, uid, ids, context={}):
|
||||
self.write(cr,uid,ids,{'state':'progress'})
|
||||
request_obj = self.pool.get('hr.evaluation.interview')
|
||||
for id in self.browse(cr, uid ,ids):
|
||||
if len(id.survey_request_ids) != len(request_obj.search(cr, uid, [('evaluation_id', '=', id.id),('state', '=', 'done')])):
|
||||
for id in self.browse(cr, uid ,ids,context=context):
|
||||
if len(id.survey_request_ids) != len(request_obj.search(cr, uid, [('evaluation_id', '=', id.id),('state', '=', 'done')],context=context)):
|
||||
raise osv.except_osv(_('Warning !'),_("You cannot change state, because some appraisal in waiting answer or draft state"))
|
||||
return True
|
||||
|
||||
def button_done(self,cr, uid, ids, context):
|
||||
self.write(cr,uid,ids,{'state':'done', 'date_close': time.strftime('%Y-%m-%d')})
|
||||
def button_done(self,cr, uid, ids, context={}):
|
||||
self.write(cr,uid,ids,{'state':'done', 'date_close': time.strftime('%Y-%m-%d')}, context=context)
|
||||
return True
|
||||
|
||||
def button_cancel(self,cr, uid, ids, context):
|
||||
self.write(cr,uid,ids,{'state':'cancel'})
|
||||
def button_cancel(self,cr, uid, ids, context={}):
|
||||
self.write(cr,uid,ids,{'state':'cancel'}, context=context)
|
||||
return True
|
||||
|
||||
hr_evaluation()
|
||||
|
@ -211,6 +282,7 @@ class survey_request(osv.osv):
|
|||
_columns = {
|
||||
'is_evaluation':fields.boolean('Is Evaluation?'),
|
||||
}
|
||||
|
||||
survey_request()
|
||||
|
||||
class hr_evaluation_interview(osv.osv):
|
||||
|
@ -218,7 +290,6 @@ class hr_evaluation_interview(osv.osv):
|
|||
_inherits={'survey.request':'request_id'}
|
||||
_description='Evaluation Interview'
|
||||
_columns = {
|
||||
|
||||
'request_id': fields.many2one('survey.request','Request_id', ondelete='cascade'),
|
||||
'user_to_review_id': fields.many2one('hr.employee', 'Employee'),
|
||||
'evaluation_id' : fields.many2one('hr_evaluation.evaluation', 'Evaluation'),
|
||||
|
@ -227,23 +298,24 @@ class hr_evaluation_interview(osv.osv):
|
|||
'is_evaluation': lambda *a: True,
|
||||
}
|
||||
|
||||
def survey_req_waiting_answer(self, cr, uid, ids, context):
|
||||
def survey_req_waiting_answer(self, cr, uid, ids, context={}):
|
||||
self.write(cr, uid, ids, { 'state' : 'waiting_answer'})
|
||||
# for id in self.browse(cr, uid, ids):
|
||||
# if id.user_id and id.user_id.address_id and id.user_id.address_id and id.user_id.address_id.email:
|
||||
# msg = " Hello %s, \n\n We are inviting you for %s survey. \n\n Thanks," %(id.user_id.name, id.survey_id.title)
|
||||
# tools.email_send(tools.config['email_from'], [id.user_id.address_id.email],\
|
||||
# print"id",id
|
||||
# if id.user_to_review_id and id.user_to_review_id.work_email:
|
||||
# msg = " Hello %s, \n\n We are inviting you for %s survey. \n\n Thanks," %(id.user_to_review_id.name, id.survey_id.title)
|
||||
# tools.email_send(tools.config['email_from'], [id.user_to_review_id.work_email],\
|
||||
# 'Invite to fill up Survey', msg)
|
||||
return True
|
||||
|
||||
def survey_req_done(self, cr, uid, ids, context):
|
||||
def survey_req_done(self, cr, uid, ids, context={}):
|
||||
self.write(cr, uid, ids, { 'state' : 'done'})
|
||||
hr_eval_obj = self.pool.get('hr_evaluation.evaluation')
|
||||
for id in self.browse(cr, uid, ids):
|
||||
for id in self.browse(cr, uid, ids,context=context):
|
||||
flag = False
|
||||
wating_id = 0
|
||||
tot_done_req = 0
|
||||
records = self.pool.get("hr_evaluation.evaluation").browse(cr, uid, [id.evaluation_id.id])[0].survey_request_ids
|
||||
records = self.pool.get("hr_evaluation.evaluation").browse(cr, uid, [id.evaluation_id.id],context=context)[0].survey_request_ids
|
||||
for child in records:
|
||||
if child.state == "draft" :
|
||||
wating_id = child.id
|
||||
|
@ -254,15 +326,17 @@ class hr_evaluation_interview(osv.osv):
|
|||
tot_done_req += 1
|
||||
if not flag and wating_id:
|
||||
self.survey_req_waiting_answer(cr, uid, [wating_id], context)
|
||||
hr_eval_obj.write(cr, uid, [id.evaluation_id.id], {'progress' :tot_done_req * 100 / len(records)})
|
||||
hr_eval_obj.write(cr, uid, [id.evaluation_id.id], {'progress' :tot_done_req * 100 / len(records)}, context=context)
|
||||
|
||||
return True
|
||||
def survey_req_draft(self, cr, uid, ids, arg):
|
||||
self.write(cr, uid, ids, { 'state' : 'draft'})
|
||||
def survey_req_draft(self, cr, uid, ids, context={}):
|
||||
self.write(cr, uid, ids, { 'state' : 'draft'}, context=context)
|
||||
return True
|
||||
|
||||
def survey_req_cancel(self, cr, uid, ids, context):
|
||||
self.write(cr, uid, ids, { 'state' : 'cancel'})
|
||||
def survey_req_cancel(self, cr, uid, ids, context={}):
|
||||
self.write(cr, uid, ids, { 'state' : 'cancel'}, context=context)
|
||||
return True
|
||||
|
||||
hr_evaluation_interview()
|
||||
hr_evaluation_interview()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:1
|
||||
|
|
|
@ -44,8 +44,8 @@
|
|||
</record>
|
||||
<menuitem name="Evaluations" parent="hr.menu_hr_root" id="menu_eval_hr" sequence="3"/>
|
||||
|
||||
<menuitem
|
||||
name="Evaluations" parent="hr.menu_hr_configuration" id="menu_eval_hr_config" sequence="3"/>
|
||||
<menuitem
|
||||
name="Periodic Evaluations" parent="hr.menu_hr_configuration" id="menu_eval_hr_config" sequence="3"/>
|
||||
<menuitem
|
||||
parent="menu_eval_hr_config"
|
||||
id="menu_open_view_hr_evaluation_plan_tree"
|
||||
|
@ -57,6 +57,8 @@
|
|||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Evaluation Plan Phase">
|
||||
<notebook>
|
||||
<page string="General">
|
||||
<field name="plan_id" invisible="1"/>
|
||||
<group col="6" colspan="4">
|
||||
<field name="name"/>
|
||||
|
@ -84,6 +86,21 @@
|
|||
<field name="send_anonymous_employee"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Mail Settings">
|
||||
<field name="mail_feature" colspan="4"/>
|
||||
<newline/>
|
||||
<separator string="Mail Body"/>
|
||||
<newline/>
|
||||
<field name="mail_body" colspan="4" nolabel="1"/>
|
||||
<newline/>
|
||||
<separator string="Legend" colspan ="4"/>
|
||||
<label string=" (employee_name)s: Partner name" colspan="2"/>
|
||||
<label string="(user_signature)s: User name" colspan="2"/>
|
||||
<label string="(date)s: Current Date" colspan="2"/>
|
||||
<label string="(eval_name)s:Evaluation Name" colspan="2"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
@ -109,7 +126,7 @@
|
|||
<field name="arch" type="xml">
|
||||
<notebook position="inside">
|
||||
<page string="Evaluation">
|
||||
<field name="evaluation_plan_id" on_change="onchange_evaluation_plan_id(evaluation_plan_id)"/>
|
||||
<field name="evaluation_plan_id" on_change="onchange_evaluation_plan_id(evaluation_plan_id, evaluation_date)"/>
|
||||
<field name="evaluation_date"/>
|
||||
</page>
|
||||
</notebook>
|
||||
|
@ -201,6 +218,12 @@
|
|||
<field name="employee_id" widget="selection" select="1"/>
|
||||
<field name="plan_id" widget="selection" select="1"/>
|
||||
<field name="rating"/>
|
||||
<newline/>
|
||||
|
||||
<group col='8' colspan='15' expand='1' string='Group by...'>
|
||||
<filter string='Plan' icon="terp-stock" domain="[]" context="{'group_by' : 'plan_id'}" />
|
||||
<filter string='state' icon="terp-stock" domain="[]" context="{'group_by' : 'state'}" />
|
||||
</group>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
|
@ -226,9 +249,9 @@
|
|||
<group col="4" colspan="4">
|
||||
<field name="survey_id" colspan="3"/>
|
||||
<group colspan="1">
|
||||
<button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action"
|
||||
<button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action" states="waiting_answer,done,cancel"
|
||||
icon="gtk-execute" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0, 'active' : response,'request' : True, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>
|
||||
<button name="%(survey.survey_browse_response)d" string="Print Interview" type="action"
|
||||
<button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="done"
|
||||
icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : [response], 'response_no':0,}" attrs="{'readonly':[('response','=',False)]}" />
|
||||
</group>
|
||||
</group>
|
||||
|
@ -242,10 +265,10 @@
|
|||
<separator string="State" colspan="4"/>
|
||||
<group colspan="4" col="6">
|
||||
<field name="state"/>
|
||||
<button name="survey_req_draft" string="Set to Draft" states="cancel,done" type="object" icon="gtk-new"/>
|
||||
<button name="survey_req_waiting_answer" string="Watting Answer" states="draft" type="object" icon="gtk-new"/>
|
||||
<!--<button name="survey_req_draft" string="Set to Draft" states="cancel,done" type="object" icon="gtk-new"/>
|
||||
<button name="survey_req_waiting_answer" string="Waiting Answer" states="draft" type="object" icon="gtk-new"/>
|
||||
<button name="survey_req_done" string="Done" states="waiting_answer" type="object" icon="gtk-ok"/>
|
||||
<button name="survey_req_cancel" string="Cancelled" states="waiting_answer" type="object" icon="gtk-cancel"/>
|
||||
<button name="survey_req_cancel" string="Cancelled" states="waiting_answer" type="object" icon="gtk-cancel"/>-->
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
|
@ -263,7 +286,7 @@
|
|||
<field name="response" readonly="1" invisible="True"/>
|
||||
<button name="%(survey.action_view_survey_question_message)d" string="Interview Question" type="action" states="waiting_answer,done,cancel"
|
||||
icon="gtk-execute" context="{'survey_id': survey_id, 'response_id': [response], 'response_no':0, 'active' : response, 'request' : True, 'object' : 'hr.evaluation.interview', 'cur_id' : active_id}" attrs="{'readonly':[('survey_id','=',False)]}"/>
|
||||
<button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="waiting_answer,done,cancel"
|
||||
<button name="%(survey.survey_browse_response)d" string="Print Interview" type="action" states="done"
|
||||
icon="gtk-print" context="{'survey_id': survey_id, 'response_id' : [response], 'response_no':0}" attrs="{'readonly':[('response','=',False)]}" />
|
||||
<field name="state"/>
|
||||
</tree>
|
||||
|
@ -303,5 +326,9 @@
|
|||
id="menu_open_hr_evaluation_interview_requests"
|
||||
action="action_hr_evaluation_interview_tree"/>
|
||||
|
||||
<menuitem name="Evaluation Reminders" parent="menu_eval_hr"
|
||||
id="menu_eval_send_mail"
|
||||
action="action_hr_evaluation_send_mail"
|
||||
sequence="45"/>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -18,4 +18,6 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
import hr_evaluation_report
|
||||
import hr_evaluation_report
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -18,11 +18,9 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import tools
|
||||
from osv import fields,osv
|
||||
|
||||
|
||||
class hr_evaluation_report(osv.osv):
|
||||
_name = "hr.evaluation.report"
|
||||
_description = "Evaluations Statistics"
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import hr_evaluation_mail
|
||||
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,43 @@
|
|||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
import tools
|
||||
|
||||
class hr_evaluation_reminder(osv.osv_memory):
|
||||
_name = "hr.evaluation.reminder"
|
||||
_description = "Sends Reminders to employess to fill the evaluations"
|
||||
_columns = {
|
||||
'evaluation_id': fields.many2one('hr_evaluation.evaluation', 'Evaluations', required=True)
|
||||
}
|
||||
|
||||
def send_mail(self, cr, uid, ids, context={}):
|
||||
hr_evaluation_obj = self.pool.get('hr_evaluation.evaluation')
|
||||
evaluation_data = self.read(cr, uid, ids, context=context)[0]
|
||||
for waiting_id in hr_evaluation_obj.browse(cr, uid, evaluation_data['evaluation_id'], context=context).survey_request_ids:
|
||||
if waiting_id.state == "waiting_answer" and waiting_id.user_to_review_id.work_email :
|
||||
msg = " Hello %s, \n\n Kindly post your response for %s survey. \n\n Thanks," %(waiting_id.user_to_review_id.name, waiting_id.survey_id.title)
|
||||
tools.email_send(tools.config['email_from'], [waiting_id.user_to_review_id.work_email],\
|
||||
'Reminder to fill up Survey', msg)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
hr_evaluation_reminder()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
|
||||
<data>
|
||||
<record id="view_hr_evaluation_send_mail" model="ir.ui.view">
|
||||
<field name="name">hr.evaluation.send.mail</field>
|
||||
<field name="model">hr.evaluation.reminder</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Evaluation Reminders">
|
||||
<field name="evaluation_id"/>
|
||||
<newline/>
|
||||
<button special="cancel" string="Cancel" />
|
||||
<button name="send_mail" string="Send Mail" type="object"/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_hr_evaluation_send_mail" model="ir.actions.act_window">
|
||||
<field name="name">Evaluation Send Mail</field>
|
||||
<field name="res_model">hr.evaluation.reminder</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="view_hr_evaluation_send_mail"/>
|
||||
<field name="context">{'record_id':active_id}</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,11 +15,11 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import hr
|
||||
import hr_holidays
|
||||
import report
|
||||
import wizard
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -51,8 +51,8 @@
|
|||
'init_xml': [],
|
||||
'update_xml': [
|
||||
'security/ir.model.access.csv',
|
||||
'hr_workflow.xml',
|
||||
'hr_view.xml',
|
||||
'hr_holidays_workflow.xml',
|
||||
'hr_holidays_view.xml',
|
||||
'hr_holidays_wizard.xml',
|
||||
'hr_holidays_report.xml',
|
||||
#'process/hr_holidays_process.xml'
|
||||
|
|
|
@ -69,8 +69,8 @@ class hr_holidays_status(osv.osv):
|
|||
_columns = {
|
||||
'name' : fields.char('Name', size=64, required=True, translate=True),
|
||||
'categ_id': fields.many2one('crm.case.categ', 'Meeting Category', domain="[('object_id.model', '=', 'crm.meeting')]", help='If you link this type of leave with a category in the CRM, it will synchronize each leave asked with a case in this category, to display it in the company shared calendar for example.'),
|
||||
'color_name' : fields.selection([('red', 'Red'), ('lightgreen', 'Light Green'), ('lightblue','Light Blue'), ('lightyellow', 'Light Yellow'), ('magenta', 'Magenta'),('lightcyan', 'Light Cyan'),('black', 'Black'),('lightpink', 'Light Pink'),('brown', 'Brown'),('violet', 'Violet'),('lightcoral', 'Light Coral'),('lightsalmon', 'Light Salmon'),('lavender', 'Lavender'),('wheat', 'Wheat'),('ivory', 'Ivory')],'Color of the status', required=True, help='This color will be used in the leaves summary located in Reporting\Print Summary of Leaves'),
|
||||
'limit' : fields.boolean('Allow to override Limit', help='If you thick this checkbox, the system will allow, for this section, the employees to take more leaves than the available ones.'),
|
||||
'color_name' : fields.selection([('red', 'Red'), ('lightgreen', 'Light Green'), ('lightblue','Light Blue'), ('lightyellow', 'Light Yellow'), ('magenta', 'Magenta'),('lightcyan', 'Light Cyan'),('black', 'Black'),('lightpink', 'Light Pink'),('brown', 'Brown'),('violet', 'Violet'),('lightcoral', 'Light Coral'),('lightsalmon', 'Light Salmon'),('lavender', 'Lavender'),('wheat', 'Wheat'),('ivory', 'Ivory')],'Color in Report', required=True, help='This color will be used in the leaves summary located in Reporting\Leaves by Departement'),
|
||||
'limit' : fields.boolean('Allow to Override Limit', help='If you thick this checkbox, the system will allow, for this section, the employees to take more leaves than the available ones.'),
|
||||
'active' : fields.boolean('Active', help="If the active field is set to false, it will allow you to hide the leave type without removing it."),
|
||||
'max_leaves' : fields.function(_user_left_days, method=True, string='Maximum Leaves Allowed', help='This value is given by the sum of all holidays requests with a positive value.', multi='user_left_days'),
|
||||
'leaves_taken' : fields.function(_user_left_days, method=True, string='Leaves Already Taken', help='This value is given by the sum of all holidays requests with a negative value.', multi='user_left_days'),
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0"?>
|
||||
<openerp>
|
||||
<data noupdate="1">
|
||||
|
||||
<!-- Casual leave -->
|
||||
<record model="hr.holidays.status" id="holiday_status_cl">
|
||||
<field name="name">Casual Leave</field>
|
||||
<field name="color_name">red</field>
|
||||
</record>
|
||||
|
||||
<record model="hr.holidays.per.user" id="holiday_user_employee1_cl">
|
||||
<field name="employee_id" ref="hr.employee1"/>
|
||||
<field name="holiday_status" ref="holiday_status_cl"/>
|
||||
<field name="max_leaves">12</field>
|
||||
</record>
|
||||
|
||||
<record model="hr.holidays" id="hr_holidays_employee1_cl">
|
||||
<field name="name">Going For Tour</field>
|
||||
<field name="holiday_status_id" ref="holiday_status_cl"/>
|
||||
<field name="date_from">2010-01-01 08:00</field>
|
||||
<field name="date_to">2010-01-03 18:00</field>
|
||||
<field name="number_of_days_temp">3</field>
|
||||
<field name="employee_id" ref="hr.employee1"/>
|
||||
</record>
|
||||
|
||||
<!-- Sick leave -->
|
||||
<record model="hr.holidays.status" id="holiday_status_sl">
|
||||
<field name="name">Sickness Leave</field>
|
||||
<field name="color_name">black</field>
|
||||
</record>
|
||||
|
||||
<record model="hr.holidays.per.user" id="holiday_user_employee1_sl">
|
||||
<field name="employee_id" ref="hr.employee1"/>
|
||||
<field name="holiday_status" ref="holiday_status_sl"/>
|
||||
<field name="max_leaves">6</field>
|
||||
</record>
|
||||
|
||||
<record model="hr.holidays" id="hr_holidays_employee1_sl">
|
||||
<field name="name">Sickness</field>
|
||||
<field name="holiday_status_id" ref="holiday_status_sl"/>
|
||||
<field name="date_from">2010-02-01 00:00</field>
|
||||
<field name="date_to">2010-02-03 08:00</field>
|
||||
<field name="number_of_days_temp">3</field>
|
||||
<field name="employee_id" ref="hr.employee1"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -10,15 +10,15 @@
|
|||
<group col='8' colspan='4'>
|
||||
<filter icon="terp-hr" domain="[('state','=','draft')]" string="To Confirm"/>
|
||||
<filter icon="terp-hr" domain="[('state','=','confirm')]" string="To Validate"/>
|
||||
<separator orientation="vertical"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="name" select='1'/>
|
||||
<field name="state" select="1">
|
||||
<filter icon="terp-hr" domain="[('state','=','refuse')]" help="Refused Holidays"/>
|
||||
<filter icon="terp-hr" domain="[('state','=','validate')]" help="Validated Holidays"/>
|
||||
</field>
|
||||
</field>
|
||||
<field name="user_id" select="1" widget="selection">
|
||||
<filter icon="gtk-execute" help="My Leaves" domain="[('user_id','=',uid)]" />
|
||||
</field>
|
||||
<filter icon="gtk-execute" help="My Leaves" domain="[('user_id','=',uid)]" />
|
||||
</field>
|
||||
<field name="department_id" select="1" widget="selection">
|
||||
<filter icon="gtk-execute" domain="[('department_id','=',context.get('department_id',False))]"
|
||||
help="My Departments Leaves"/>
|
||||
|
@ -255,10 +255,10 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Leave Type">
|
||||
<field colspan="4" name="name" select="1"/>
|
||||
<field name="color_name" select="2"/>
|
||||
<field name="categ_id" select="1" widget="selection"/>
|
||||
<field name="limit" select="2"/>
|
||||
<field name="active" select="2"/>
|
||||
<field name="categ_id" select="1" widget="selection"/>
|
||||
<field name="color_name" select="2"/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
|
@ -14,7 +14,7 @@
|
|||
<wizard string="Holidays by Departement"
|
||||
name="hr.holidays.summary"
|
||||
id="holidays_summary"/>
|
||||
<menuitem name="Holidays by Departement" parent="menu_hr_reporting_holidays"
|
||||
<menuitem name="Leaves by Departement" parent="menu_hr_reporting_holidays"
|
||||
icon="STOCK_PRINT"
|
||||
action="holidays_summary"
|
||||
type="wizard"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
##############################################################################
|
||||
|
||||
|
||||
import hr_hr
|
||||
import hr_recruitment
|
||||
import report
|
||||
import wizard
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
{
|
||||
'name': 'HR - Recruitement',
|
||||
'version': '1.0',
|
||||
'category': 'Generic Modules/HR',
|
||||
'category': 'Generic Modules/Human Resources',
|
||||
'description': """
|
||||
Manages job positions and the recruitement process. It's integrated with the
|
||||
survey module to allows you to define interview for different jobs.
|
||||
|
@ -36,19 +36,20 @@ system to store and search in your CV base.
|
|||
'website': 'http://www.openerp.com',
|
||||
'depends': ['hr','survey','crm'],
|
||||
'init_xml': [
|
||||
'hr_hr_data.xml'
|
||||
'hr_recruitment_data.xml'
|
||||
],
|
||||
'update_xml': [
|
||||
'hr_hr_wizard.xml',
|
||||
'hr_hr_view.xml',
|
||||
'hr_hr_menu.xml',
|
||||
'security/hr_hr_security.xml',
|
||||
'hr_recruitment_wizard.xml',
|
||||
'hr_recruitment_view.xml',
|
||||
'hr_recruitment_menu.xml',
|
||||
# 'report_hr_recruitment_view.xml',
|
||||
'security/hr_recruitment_security.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'board_hr_hr_statistical_view.xml',
|
||||
'board_hr_recruitment_statistical_view.xml',
|
||||
'report/hr_recruitment_report_view.xml'
|
||||
],
|
||||
'demo_xml': [
|
||||
'hr_hr_demo.xml'
|
||||
'hr_recruitment_demo.xml'
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
import tools
|
||||
from osv import fields,osv
|
||||
from hr_recruitment import hr_hr
|
||||
from hr_recruitment import hr_recruitment
|
||||
|
||||
class hr_recruitment_report(osv.osv):
|
||||
_name = "hr.recruitment.report"
|
||||
|
@ -35,7 +35,7 @@ class hr_recruitment_report(osv.osv):
|
|||
'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('section_id','=',section_id),('object_id.model', '=', 'hr.applicant')]",readonly=True),
|
||||
'type_id': fields.many2one('crm.case.resource.type', 'Degree', domain="[('section_id','=',section_id),('object_id.model', '=', 'hr.applicant')]"),
|
||||
'department_id':fields.many2one('hr.department','Department',readonly=True),
|
||||
'priority': fields.selection(hr_hr.AVAILABLE_PRIORITIES, 'Appreciation'),
|
||||
'priority': fields.selection(hr_recruitment.AVAILABLE_PRIORITIES, 'Appreciation'),
|
||||
|
||||
}
|
||||
_order = 'date desc'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,12 +15,12 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
||||
import hr_hr_wizard
|
||||
import hr_recruitment_wizard
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,11 +15,12 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import time
|
||||
|
||||
from osv import fields
|
||||
from osv import osv
|
||||
from osv.orm import except_orm
|
||||
|
@ -84,7 +85,7 @@ class hr_analytic_timesheet(osv.osv):
|
|||
emp_obj = self.pool.get('hr.employee')
|
||||
emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))])
|
||||
if emp_id:
|
||||
emp = self.pool.get('hr.employee').browse(cr, uid, emp_id[0], context=context)
|
||||
emp = emp_obj.browse(cr, uid, emp_id[0], context=context)
|
||||
if bool(emp.product_id):
|
||||
a = emp.product_id.product_tmpl_id.property_account_expense.id
|
||||
if not a:
|
||||
|
@ -97,7 +98,7 @@ class hr_analytic_timesheet(osv.osv):
|
|||
emp_obj = self.pool.get('hr.employee')
|
||||
emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))])
|
||||
if emp_id:
|
||||
emp = self.pool.get('hr.employee').browse(cr, uid, emp_id[0], context=context)
|
||||
emp = emp_obj.browse(cr, uid, emp_id[0], context=context)
|
||||
if emp.journal_id:
|
||||
return emp.journal_id.id
|
||||
return False
|
||||
|
@ -113,7 +114,7 @@ class hr_analytic_timesheet(osv.osv):
|
|||
}
|
||||
def on_change_account_id(self, cr, uid, ids, account_id):
|
||||
return {'value':{}}
|
||||
|
||||
|
||||
def on_change_date(self, cr, uid, ids, date):
|
||||
if ids:
|
||||
new_date = self.read(cr,uid,ids[0],['date'])['date']
|
||||
|
@ -121,20 +122,18 @@ class hr_analytic_timesheet(osv.osv):
|
|||
warning = {'title':'User Alert!','message':'Changing the date will let this entry appear in the timesheet of the new date.'}
|
||||
return {'value':{},'warning':warning}
|
||||
return {'value':{}}
|
||||
|
||||
|
||||
def create(self, cr, uid, vals, context={}):
|
||||
try:
|
||||
res = super(hr_analytic_timesheet, self).create(cr, uid, vals, context)
|
||||
return res
|
||||
except Exception,e:
|
||||
if '"journal_id" viol' in e.args[0]:
|
||||
raise except_orm(_('ValidateError'),
|
||||
_('No analytic journal available for this employee.\nDefine an employee for the selected user and assign an analytic journal.'))
|
||||
elif '"account_id" viol' in e.args[0]:
|
||||
raise except_orm(_('ValidateError'),
|
||||
_('No analytic account defined on the project.\nPlease set one or we can not automatically fill the timesheet.'))
|
||||
else:
|
||||
raise except_orm(_('UnknownError'), str(e))
|
||||
emp_obj = self.pool.get('hr.employee')
|
||||
emp_id = emp_obj.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context)
|
||||
ename = ''
|
||||
if emp_id:
|
||||
ename = emp_obj.browse(cr, uid, emp_id[0], context=context).name
|
||||
if not vals.get('journal_id',False):
|
||||
raise osv.except_osv(_('Warning !'), _('Analytic journal is not defined for employee %s \nDefine an employee for the selected user and assign an analytic journal!')%(ename,))
|
||||
if not vals.get('account_id',False):
|
||||
raise osv.except_osv(_('Warning !'), _('No analytic account defined on the project.\nPlease set one or we can not automatically fill the timesheet.'))
|
||||
return super(hr_analytic_timesheet, self).create(cr, uid, vals, context=context)
|
||||
|
||||
def on_change_user_id(self, cr, uid, ids, user_id):
|
||||
if not user_id:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,7 +24,13 @@
|
|||
'name': 'Idea Manager',
|
||||
'version': '0.1',
|
||||
'category': 'Tools',
|
||||
'description': """This module allows your user to easily and efficiently participate in the innovation of the enterprise. It allows everybody to express ideas about different subjects. Then, others users can comment these ideas and vote for particular ideas. Each idea as a score based on the different votes. The managers can obtain an easy view on best ideas from all the users. Once installed, check the menu 'Ideas' in the 'Tools' main menu.""",
|
||||
'description': """
|
||||
This module allows your user to easily and efficiently participate in the innovation of the enterprise.
|
||||
It allows everybody to express ideas about different subjects.
|
||||
Then, others users can comment these ideas and vote for particular ideas.
|
||||
Each idea as a score based on the different votes.
|
||||
The managers can obtain an easy view on best ideas from all the users.
|
||||
Once installed, check the menu 'Ideas' in the 'Tools' main menu.""",
|
||||
'author': 'Tiny',
|
||||
'website': 'http://openerp.com',
|
||||
'depends': ['base'],
|
||||
|
@ -34,7 +40,7 @@
|
|||
'idea_view.xml',
|
||||
'idea_workflow.xml',
|
||||
'security/idea_security.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'security/ir.model.access.csv',
|
||||
],
|
||||
'demo_xml': [],
|
||||
'installable': True,
|
||||
|
|
|
@ -7,13 +7,13 @@ msgstr ""
|
|||
"Project-Id-Version: OpenERP Server 5.0.4\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
|
||||
"PO-Revision-Date: 2009-04-10 14:24+0000\n"
|
||||
"Last-Translator: Fabien (Open ERP) <fp@tinyerp.com>\n"
|
||||
"PO-Revision-Date: 2010-03-21 22:07+0000\n"
|
||||
"Last-Translator: Jonay <jonay.santana@gmail.com>\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: 2010-03-11 05:05+0000\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: l10n_ch
|
||||
|
@ -324,7 +324,7 @@ msgstr "Doña"
|
|||
#. module: l10n_ch
|
||||
#: rml:l10n_ch.invoice.bvr:0
|
||||
msgid "Concerne:"
|
||||
msgstr ""
|
||||
msgstr "Concierne:"
|
||||
|
||||
#. module: l10n_ch
|
||||
#: model:res.partner.bank.type,name:l10n_ch.bvpost
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
"l10n_ch"
|
||||
],
|
||||
"author" : "Camptocamp",
|
||||
"description": "Swiws account chart that add also tax template definition",
|
||||
"description": "Swiss account chart that also add tax template definition",
|
||||
"website" : "camptocamp.com",
|
||||
"category" : "Localisation/Account Charts",
|
||||
"init_xml" : [
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,21 +15,27 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
"name": "Lunch Module",
|
||||
"author": "Tiny",
|
||||
"Description": """
|
||||
The lunch module is for keeping record of the order placing and payment of the orders.
|
||||
The products are defined under categories and the payment records are maintained user wise
|
||||
Every user has a cashbox which keeps track of the amount paid for a particular order.
|
||||
|
||||
""",
|
||||
"version": "0.1",
|
||||
"depends": ["base"],
|
||||
"category" : "Generic Modules/Others",
|
||||
"init_xml": [],
|
||||
"update_xml": [
|
||||
'security/ir.model.access.csv',
|
||||
'lunch_wizard.xml',
|
||||
'lunch_view.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'lunch_wizard.xml',
|
||||
'lunch_view.xml',
|
||||
'lunch_report.xml',
|
||||
#'process/lunch_process.xml'
|
||||
],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -41,8 +41,9 @@ invoice and send propositions for membership renewal.
|
|||
'init_xml': ['membership_data.xml'],
|
||||
'update_xml': [
|
||||
'security/ir.model.access.csv',
|
||||
'wizard/membership_invoice_view.xml',
|
||||
'membership_view.xml',
|
||||
'membership_wizard.xml',
|
||||
'wizard/membership_unpaid_invoice_view.xml',
|
||||
'process/membership_process.xml'
|
||||
],
|
||||
'demo_xml': ['membership_demo.xml'],
|
||||
|
|
|
@ -151,13 +151,14 @@
|
|||
<menuitem name="Members" parent="menu_member" id="menu_members" sequence="2" action="action_membership_members"/>
|
||||
|
||||
<!-- PARTNERS -->
|
||||
|
||||
<!--
|
||||
<wizard
|
||||
string="Invoice Membership"
|
||||
model="res.partner"
|
||||
name="wizard_invoice_membership"
|
||||
id="wizard_invoice_membership"
|
||||
/>
|
||||
-->
|
||||
|
||||
|
||||
<record model="ir.ui.view" id="view_partner_tree">
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" ?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<wizard name="wizard.invoice.membership.unpaid"
|
||||
id="invoice_membership_unpaid"
|
||||
model="res.partner"
|
||||
keyword="client_action_multi"
|
||||
string="List Unpaid Partners"
|
||||
menu="False" />
|
||||
|
||||
<menuitem name="List Unpaid Partners" id="menu_unpaid_membership"
|
||||
action="invoice_membership_unpaid" type="wizard"
|
||||
parent="menu_member" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -19,7 +19,6 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
import invoice_membership
|
||||
import unpaid_partner_invoice
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
import membership_invoice
|
||||
import membership_unpaid_invoice
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -1,141 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from osv import fields
|
||||
import wizard
|
||||
import pooler
|
||||
import time
|
||||
from tools.translate import _
|
||||
|
||||
def _invoice_membership(self, cr, uid, data, context):
|
||||
partner_ids = data['ids']
|
||||
product_id = data['form']['product']
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
cr.execute('''
|
||||
SELECT partner_id, id, type
|
||||
FROM res_partner_address
|
||||
WHERE partner_id =ANY(%s)''',(partner_ids,))
|
||||
fetchal = cr.fetchall()
|
||||
if not fetchal:
|
||||
raise wizard.except_wizard(_('Error !'), _('No Address defined for this partner'))
|
||||
partner_address_ids = {}
|
||||
for x in range(len(fetchal)):
|
||||
pid = fetchal[x][0]
|
||||
id = fetchal[x][1]
|
||||
type = fetchal[x][2]
|
||||
if partner_address_ids.has_key(pid) and partner_address_ids[pid]['type'] == 'invoice':
|
||||
continue
|
||||
partner_address_ids[pid] = {'id': id, 'type': type}
|
||||
|
||||
invoice_list= []
|
||||
invoice_obj = pool.get('account.invoice')
|
||||
partner_obj = pool.get('res.partner')
|
||||
product_obj = pool.get('product.product')
|
||||
invoice_line_obj = pool.get(('account.invoice.line'))
|
||||
invoice_tax_obj = pool.get(('account.invoice.tax'))
|
||||
product = product_obj.read(cr, uid, product_id, ['uom_id'])
|
||||
|
||||
for partner_id in partner_ids:
|
||||
account_id = partner_obj.read(cr, uid, partner_id, ['property_account_receivable'])['property_account_receivable'][0]
|
||||
read_fpos = partner_obj.read(cr, uid, partner_id, ['property_account_position'])
|
||||
fpos_id = read_fpos['property_account_position'] and read_fpos['property_account_position'][0]
|
||||
line_value = {
|
||||
'product_id' : product_id,
|
||||
}
|
||||
quantity = 1
|
||||
line_dict = invoice_line_obj.product_id_change(cr, uid, {}, product_id, product['uom_id'][0], quantity, '', 'out_invoice', partner_id, fpos_id, context=context)
|
||||
line_value.update(line_dict['value'])
|
||||
if line_value['invoice_line_tax_id']:
|
||||
tax_tab = [(6, 0, line_value['invoice_line_tax_id'])]
|
||||
line_value['invoice_line_tax_id'] = tax_tab
|
||||
invoice_id = invoice_obj.create(cr, uid, {
|
||||
'partner_id' : partner_id,
|
||||
'address_invoice_id': partner_address_ids[partner_id]['id'],
|
||||
'account_id': account_id,
|
||||
'fiscal_position': fpos_id or False
|
||||
}
|
||||
)
|
||||
line_value['invoice_id'] = invoice_id
|
||||
invoice_line_id = invoice_line_obj.create(cr, uid, line_value, context)
|
||||
invoice_obj.write(cr, uid, invoice_id, {'invoice_line':[(6,0,[invoice_line_id])]})
|
||||
invoice_list.append(invoice_id)
|
||||
if line_value['invoice_line_tax_id']:
|
||||
tax_value = invoice_tax_obj.compute(cr, uid, invoice_id).values()
|
||||
for tax in tax_value:
|
||||
invoice_tax_obj.create(cr, uid, tax, context=context)
|
||||
|
||||
result = pool.get('ir.model.data')._get_id(cr, uid, 'account', 'view_account_invoice_filter')
|
||||
res = pool.get('ir.model.data').read(cr, uid, result, ['res_id'])
|
||||
|
||||
value = {
|
||||
'domain': [
|
||||
('id', 'in', invoice_list),
|
||||
],
|
||||
'name': 'Membership invoice',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'account.invoice',
|
||||
'type': 'ir.actions.act_window',
|
||||
'res_id' : invoice_list,
|
||||
'search_view_id' : res['res_id']
|
||||
}
|
||||
return value
|
||||
|
||||
wizard_arch= """<?xml version="1.0"?>
|
||||
<form string="Choose invoice details">
|
||||
<field
|
||||
name="product"
|
||||
domain="[('membership','=','True')]"
|
||||
context="product='membership_product'"
|
||||
/>
|
||||
</form>"""
|
||||
|
||||
class wizard_invoice_membership(wizard.interface):
|
||||
|
||||
states = {
|
||||
'init' : {
|
||||
'actions' : [],
|
||||
'result' : {
|
||||
'type' : 'form',
|
||||
'arch' : wizard_arch,
|
||||
'fields' : {
|
||||
'product': {
|
||||
'string': 'Membership product',
|
||||
'type': 'many2one',
|
||||
'relation': 'product.product',
|
||||
'required': True
|
||||
},
|
||||
},
|
||||
'state' : [('end', 'Cancel'),('ok', 'Confirm') ]}
|
||||
},
|
||||
'ok' : {
|
||||
'actions' : [],
|
||||
'result' : {'type' : 'action',
|
||||
'action': _invoice_membership,
|
||||
'state' : 'end'
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
wizard_invoice_membership("wizard_invoice_membership")
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,102 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
import time
|
||||
|
||||
from osv import fields, osv
|
||||
from tools.translate import _
|
||||
import tools
|
||||
|
||||
class membership_invoice(osv.osv_memory):
|
||||
_name = "membership.invoice"
|
||||
_description = "Membership Invoice From Partner"
|
||||
_columns ={
|
||||
'product_id': fields.many2one('product.product','Membership Product', required=True),
|
||||
}
|
||||
|
||||
def membership_invoice(self, cr, uid, ids, context={}):
|
||||
invoice_obj = self.pool.get('account.invoice')
|
||||
partner_obj = self.pool.get('res.partner')
|
||||
product_obj = self.pool.get('product.product')
|
||||
invoice_line_obj = self.pool.get(('account.invoice.line'))
|
||||
invoice_tax_obj = self.pool.get(('account.invoice.tax'))
|
||||
partner_ids = context['active_ids']
|
||||
for data in self.read(cr, uid, ids, context=context):
|
||||
product_id = data['product_id']
|
||||
cr.execute('''
|
||||
SELECT partner_id, id, type
|
||||
FROM res_partner_address
|
||||
WHERE partner_id =ANY(%s)''',(partner_ids,))
|
||||
fetchal = cr.fetchall()
|
||||
if not fetchal:
|
||||
raise osv.except_osv(_('Error !'), _('No Address defined for this partner'))
|
||||
partner_address_ids = {}
|
||||
for x in range(len(fetchal)):
|
||||
pid = fetchal[x][0]
|
||||
id = fetchal[x][1]
|
||||
type = fetchal[x][2]
|
||||
if partner_address_ids.has_key(pid) and partner_address_ids[pid]['type'] == 'invoice':
|
||||
continue
|
||||
partner_address_ids[pid] = {'id': id, 'type': type}
|
||||
|
||||
invoice_list= []
|
||||
product = product_obj.read(cr, uid, product_id, ['uom_id'], context=context)
|
||||
|
||||
for partner_id in partner_ids:
|
||||
account_id = partner_obj.read(cr, uid, partner_id, ['property_account_receivable'], context=context)['property_account_receivable'][0]
|
||||
read_fpos = partner_obj.read(cr, uid, partner_id, ['property_account_position'], context=context)
|
||||
fpos_id = read_fpos['property_account_position'] and read_fpos['property_account_position'][0]
|
||||
line_value = {
|
||||
'product_id' : product_id,
|
||||
}
|
||||
quantity = 1
|
||||
line_dict = invoice_line_obj.product_id_change(cr, uid, {}, product_id, product['uom_id'][0], quantity, '', 'out_invoice', partner_id, fpos_id, context=context)
|
||||
line_value.update(line_dict['value'])
|
||||
if line_value['invoice_line_tax_id']:
|
||||
tax_tab = [(6, 0, line_value['invoice_line_tax_id'])]
|
||||
line_value['invoice_line_tax_id'] = tax_tab
|
||||
invoice_id = invoice_obj.create(cr, uid, {
|
||||
'partner_id' : partner_id,
|
||||
'address_invoice_id': partner_address_ids[partner_id]['id'],
|
||||
'account_id': account_id,
|
||||
'fiscal_position': fpos_id or False
|
||||
}
|
||||
)
|
||||
line_value['invoice_id'] = invoice_id
|
||||
invoice_line_id = invoice_line_obj.create(cr, uid, line_value, context=context)
|
||||
invoice_obj.write(cr, uid, invoice_id, {'invoice_line':[(6,0,[invoice_line_id])]}, context=context)
|
||||
invoice_list.append(invoice_id)
|
||||
if line_value['invoice_line_tax_id']:
|
||||
tax_value = invoice_tax_obj.compute(cr, uid, invoice_id).values()
|
||||
for tax in tax_value:
|
||||
invoice_tax_obj.create(cr, uid, tax, context=context)
|
||||
|
||||
return {
|
||||
'domain': [('id', 'in', invoice_list)],
|
||||
'name': 'Membership Invoice',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'account.invoice',
|
||||
'type': 'ir.actions.act_window',
|
||||
}
|
||||
|
||||
membership_invoice()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_membership_invoice_view" model="ir.ui.view">
|
||||
<field name="name">membership.invoice.view.form</field>
|
||||
<field name="model">membership.invoice</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Membership Invoice">
|
||||
<group colspan="4" >
|
||||
<field name="product_id" context="{'product':membership_product}" domain="[('membership','=',True)]"/>
|
||||
</group>
|
||||
<group colspan="4" col="6">
|
||||
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
|
||||
<button icon="gtk-ok" string="Confirm" name="membership_invoice" type="object"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_membership_invoice_view" model="ir.actions.act_window">
|
||||
<field name="name">Membership Invoice</field>
|
||||
<field name="res_model">membership.invoice</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="view_membership_invoice_view"/>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<record id="action_idea_post_vote_values" model="ir.values">
|
||||
<field name="model_id" ref="base.model_res_partner" />
|
||||
<field name="object" eval="1" />
|
||||
<field name="name">vote</field>
|
||||
<field name="key2">client_action_multi</field>
|
||||
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_membership_invoice_view'))"/>
|
||||
<field name="key">action</field>
|
||||
<field name="model">res.partner</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
|
@ -18,32 +18,32 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
import time
|
||||
|
||||
import wizard
|
||||
import pooler
|
||||
from osv import fields, osv
|
||||
|
||||
wizard_arch= """<?xml version="1.0"?>
|
||||
<form string="Choose invoice details">
|
||||
<field
|
||||
name="product"
|
||||
domain="[('membership','=','True')]"
|
||||
context="product='membership_product'"
|
||||
/>
|
||||
</form>"""
|
||||
class member_unpaid_invoice(osv.osv_memory):
|
||||
_name = "membership.unpaid.invoice"
|
||||
_description = "List of Unpaid Partner"
|
||||
_columns ={
|
||||
'product': fields.many2one('product.product','Membership product', size=64,required=True, help='Select Membership product'),
|
||||
}
|
||||
|
||||
def _invoice_membership(self, cr, uid, data, context):
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
partners = []
|
||||
cr.execute('''select p.id from res_partner as p \
|
||||
def _invoice_membership(self, cr, uid, ids, context):
|
||||
model_obj = self.pool.get('ir.model.data')
|
||||
partners = []
|
||||
result = model_obj._get_id(cr, uid, 'base', 'view_res_partner_filter')
|
||||
res = model_obj.read(cr, uid, result, ['res_id'], context=context)
|
||||
for data in self.read(cr, uid, ids, context=context):
|
||||
cr.execute('''select p.id from res_partner as p \
|
||||
left join account_invoice as i on p.id=i.partner_id \
|
||||
left join account_invoice_line as il on i.id=il.invoice_id \
|
||||
left join product_product as pr on pr.id=il.product_id \
|
||||
where i.state = 'open' and pr.id=%s \
|
||||
group by p.id''' % (data['form']['product']))
|
||||
map(lambda x: partners.append(x[0]),cr.fetchall())
|
||||
result = pool.get('ir.model.data')._get_id(cr, uid, 'base', 'view_res_partner_filter')
|
||||
res = pool.get('ir.model.data').read(cr, uid, result, ['res_id'])
|
||||
value = {
|
||||
group by p.id''' % (data['product']))
|
||||
map(lambda x: partners.append(x[0]),cr.fetchall())
|
||||
|
||||
return {
|
||||
'domain': [('id', 'in', partners)],
|
||||
'name': 'Unpaid Partners',
|
||||
'view_type': 'form',
|
||||
|
@ -53,34 +53,7 @@ def _invoice_membership(self, cr, uid, data, context):
|
|||
'res_id' : partners,
|
||||
'search_view_id' : res['res_id']
|
||||
}
|
||||
return value
|
||||
|
||||
class wizard_unpaid_inv(wizard.interface):
|
||||
member_unpaid_invoice()
|
||||
|
||||
states = {
|
||||
'init' : {
|
||||
'actions' : [],
|
||||
'result' : {
|
||||
'type' : 'form',
|
||||
'arch' : wizard_arch,
|
||||
'fields' : {
|
||||
'product': {
|
||||
'string': 'Membership product',
|
||||
'type': 'many2one',
|
||||
'relation': 'product.product',
|
||||
'help': 'Select Membership product',
|
||||
'required': True
|
||||
},
|
||||
},
|
||||
'state' : [('end', 'Cancel'),('ok', 'Unpaid Partners') ]}
|
||||
},
|
||||
'ok' : {
|
||||
'actions' : [],
|
||||
'result' : {'type' : 'action', 'action': _invoice_membership, 'state' : 'end'},
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
wizard_unpaid_inv("wizard.invoice.membership.unpaid")
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_unpaid_invoice_view" model="ir.ui.view">
|
||||
<field name="name">unpaid.invoice.view.form</field>
|
||||
<field name="model">membership.unpaid.invoice</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="List Unpaid Partners">
|
||||
<group colspan="4" >
|
||||
<field name="product" context="{'product':membership_product}" domain="[('membership','=',True)]"/>
|
||||
</group>
|
||||
<group colspan="4" col="6">
|
||||
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
|
||||
<button icon="gtk-ok" string="Unpaid Partners" name="_invoice_membership" type="object"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_unpaid_invoice_view" model="ir.actions.act_window">
|
||||
<field name="name">List Unpaid Partners</field>
|
||||
<field name="res_model">membership.unpaid.invoice</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="view_unpaid_invoice_view"/>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<menuitem name="List Unpaid Partners" id="menu_unpaid_invoice"
|
||||
action="action_unpaid_invoice_view"
|
||||
parent="menu_member" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
|
@ -15,7 +15,7 @@
|
|||
# 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 <http://www.gnu.org/licenses/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
@ -24,8 +24,9 @@
|
|||
'name': 'Multi Company',
|
||||
'version': '1.0',
|
||||
'category': 'Custom',
|
||||
'description': """This module add the possibility to easily manage
|
||||
the default value for each object
|
||||
'description': """
|
||||
Multicompany module is for managing a multicompany environment.
|
||||
This module is the base module for other multicompany modules.
|
||||
""",
|
||||
'author': 'Tiny,SYLEAM',
|
||||
'website': 'http://www.openerp.com/',
|
||||
|
|
|
@ -6,7 +6,12 @@
|
|||
"depends" : ["base"],
|
||||
"category" : "Generic Modules/Olap",
|
||||
"description": """
|
||||
Base module to manage Olap schemas. Cube designer.
|
||||
Olap module is used to install BI module in client. Olap provides Online
|
||||
Analytical Process with the mdx query. BI provides Cube Browsing and
|
||||
Cube Designing. After installing Olap Module you will get Cube Browser
|
||||
and Cube Desinger in Reporting Menu. Cube Browser is used to generate
|
||||
the reports with table view (mdx view) of mdx query. and Cube designer
|
||||
is used to make cubes in BI..
|
||||
""",
|
||||
"init_xml" : ["data/olap_data.xml"],
|
||||
"update_xml" : [
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -27,7 +27,7 @@
|
|||
"depends" : ["olap"],
|
||||
"category" : "Generic Modules/Olap",
|
||||
"description": """
|
||||
Sale module will load the data in olap tables
|
||||
CRM module will load the data in olap tables
|
||||
""",
|
||||
"init_xml" : ['olap_data.xml'],
|
||||
"update_xml" :[],
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# Brazilian Portuguese 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 <EMAIL@ADDRESS>, 2010.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2009-11-26 05:29+0000\n"
|
||||
"PO-Revision-Date: 2010-03-24 01:24+0000\n"
|
||||
"Last-Translator: Pedro_Maschio <pedro.bicudo@tgtconsult.com.br>\n"
|
||||
"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: olap_crm
|
||||
#: model:ir.module.module,description:olap_crm.module_meta_information
|
||||
msgid ""
|
||||
"\n"
|
||||
" Sale module will load the data in olap tables\n"
|
||||
" "
|
||||
msgstr ""
|
||||
"\n"
|
||||
" Módulo de vendas vai carregar os dados nas tabelas OLAP\n"
|
||||
" "
|
||||
|
||||
#. module: olap_crm
|
||||
#: model:ir.module.module,shortdesc:olap_crm.module_meta_information
|
||||
msgid "olap_crm"
|
||||
msgstr "olap_crm"
|
|
@ -0,0 +1,59 @@
|
|||
# Brazilian Portuguese 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 <EMAIL@ADDRESS>, 2010.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2009-11-26 05:29+0000\n"
|
||||
"PO-Revision-Date: 2010-03-24 01:31+0000\n"
|
||||
"Last-Translator: Pedro_Maschio <pedro.bicudo@tgtconsult.com.br>\n"
|
||||
"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2010-03-24 04:53+0000\n"
|
||||
"X-Generator: Launchpad (build Unknown)\n"
|
||||
|
||||
#. module: olap_extract
|
||||
#: model:ir.module.module,shortdesc:olap_extract.module_meta_information
|
||||
msgid "olap_extract"
|
||||
msgstr "olap_extract"
|
||||
|
||||
#. module: olap_extract
|
||||
#: wizard_button:olap.extract.schema,init,ok:0
|
||||
msgid "OK"
|
||||
msgstr "OK"
|
||||
|
||||
#. module: olap_extract
|
||||
#: model:ir.actions.wizard,name:olap_extract.bi_olap_extract_schema
|
||||
msgid "Olap Extract"
|
||||
msgstr "Extrato OLAP"
|
||||
|
||||
#. module: olap_extract
|
||||
#: model:ir.module.module,description:olap_extract.module_meta_information
|
||||
msgid ""
|
||||
"\n"
|
||||
" Extracts the schema structure.\n"
|
||||
" "
|
||||
msgstr ""
|
||||
"\n"
|
||||
" Extrato do esquema de estrutura\n"
|
||||
" "
|
||||
|
||||
#. module: olap_extract
|
||||
#: wizard_field:olap.extract.schema,init,module_name:0
|
||||
msgid "Module Name"
|
||||
msgstr "Nome do Módulo"
|
||||
|
||||
#. module: olap_extract
|
||||
#: wizard_button:olap.extract.schema,init,end:0
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#. module: olap_extract
|
||||
#: wizard_view:olap.extract.schema,init:0
|
||||
msgid "New Module Name"
|
||||
msgstr "Novo Nome do Módulo"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue