diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index 5bcd3b36815..298b60d3964 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -62,7 +62,7 @@
-
+
@@ -154,7 +154,7 @@
-
+
@@ -178,7 +178,7 @@
-
+
@@ -263,7 +263,7 @@
-
+
@@ -302,7 +302,7 @@
-
+
diff --git a/addons/account/account_menuitem.xml b/addons/account/account_menuitem.xml
index f07eebd4b41..dcf97c91c95 100644
--- a/addons/account/account_menuitem.xml
+++ b/addons/account/account_menuitem.xml
@@ -7,7 +7,7 @@
-
+
@@ -20,8 +20,8 @@
-
-
+
+
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py
index b7bc7cb426f..94dd4e8eb86 100644
--- a/addons/account/account_move_line.py
+++ b/addons/account/account_move_line.py
@@ -455,7 +455,7 @@ class account_move_line(osv.osv):
'invoice': fields.function(_invoice, method=True, string='Invoice',
type='many2one', relation='account.invoice', fnct_search=_invoice_search),
'account_tax_id':fields.many2one('account.tax', 'Tax'),
- 'analytic_account_id' : fields.many2one('account.analytic.account', 'Analytic Account'),
+ 'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account'),
#TODO: remove this
'amount_taxed':fields.float("Taxed Amount", digits_compute=dp.get_precision('Account')),
'company_id': fields.related('account_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True)
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index 12ac88cfa62..3e126d9d4d5 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -113,7 +113,7 @@
account.period
tree
-
+
@@ -895,7 +895,7 @@
-
+
@@ -970,15 +970,15 @@
-
+
-
+
-
-
+
+
@@ -1017,15 +1017,15 @@
-
+
-
-
+
+
@@ -1243,15 +1243,15 @@
-
+
-
+
-
-
+
+
@@ -1264,7 +1264,7 @@
-
+
@@ -1356,6 +1356,10 @@
res_model="account.move.line"
src_model="account.move"/>
+
+
+
+
@@ -1906,7 +1910,7 @@
-
+
diff --git a/addons/account/board_account_view.xml b/addons/account/board_account_view.xml
index 8e370fd20fe..e8aecb2033c 100644
--- a/addons/account/board_account_view.xml
+++ b/addons/account/board_account_view.xml
@@ -49,7 +49,7 @@
-
+
diff --git a/addons/account/i18n/da.po b/addons/account/i18n/da.po
index f00010c90c3..159f5991539 100644
--- a/addons/account/i18n/da.po
+++ b/addons/account/i18n/da.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:23+0000\n"
+"PO-Revision-Date: 2010-08-16 09:43+0000\n"
"Last-Translator: OpenERP Administrators \n"
"Language-Team: Danish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:44+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
diff --git a/addons/account/i18n/de.po b/addons/account/i18n/de.po
index 209226eaf11..8f0e2fa1ed3 100644
--- a/addons/account/i18n/de.po
+++ b/addons/account/i18n/de.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:07+0000\n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:44+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
diff --git a/addons/account/i18n/hu.po b/addons/account/i18n/hu.po
index adb5913b8f4..9ff3b1ecf5b 100644
--- a/addons/account/i18n/hu.po
+++ b/addons/account/i18n/hu.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:44+0000\n"
+"PO-Revision-Date: 2010-08-16 09:46+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:44+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
diff --git a/addons/account/i18n/it.po b/addons/account/i18n/it.po
index 94a52154e3c..f8506c5162e 100644
--- a/addons/account/i18n/it.po
+++ b/addons/account/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:30+0000\n"
-"Last-Translator: eLBati - albatos.com \n"
+"PO-Revision-Date: 2010-08-16 13:11+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-16 06:44+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
@@ -389,7 +389,7 @@ msgstr "Descrizione della Fattura"
#. module: account
#: constraint:account.analytic.account:0
msgid "Error! You can not create recursive analytic accounts."
-msgstr ""
+msgstr "Errore! Non puoi creare account analitici ricorsivi"
#. module: account
#: field:account.bank.statement.reconcile,total_entry:0
@@ -436,7 +436,7 @@ msgstr "Negativo"
#. module: account
#: rml:account.partner.balance:0
msgid "(Account/Partner) Name"
-msgstr ""
+msgstr "Nome (Conto/Partner)"
#. module: account
#: selection:account.move,type:0
@@ -622,6 +622,8 @@ msgid ""
"The sequence field is used to order the resources from lower sequences to "
"higher ones"
msgstr ""
+"Il campo \"sequenza\" è usato per ordinare le risorse dalla sequenza minote "
+"alla maggiore"
#. module: account
#: wizard_view:account.analytic.account.chart,init:0
@@ -712,7 +714,7 @@ msgstr "Resi da clienti"
#. module: account
#: wizard_view:account.analytic.account.chart,init:0
msgid "Select the Period for Analysis"
-msgstr ""
+msgstr "Seleziona il periodo per l'analisi"
#. module: account
#: field:account.tax,ref_tax_sign:0
@@ -725,7 +727,7 @@ msgstr ""
#. module: account
#: help:res.partner,credit:0
msgid "Total amount this customer owes you."
-msgstr ""
+msgstr "Importo totale che questo cliente vi deve"
#. module: account
#: view:account.move.line:0
@@ -838,6 +840,8 @@ msgid ""
"These types are defined according to your country. The type contain more "
"information about the account and it's specificities."
msgstr ""
+"Questi tipi sono definiti a seconda della tua nazione. I tipi contengono più "
+"informazioni circa il conto e la sua specificità"
#. module: account
#: selection:account.automatic.reconcile,init,power:0
@@ -959,12 +963,12 @@ msgstr "Data finale"
#. module: account
#: field:account.invoice.tax,base_amount:0
msgid "Base Code Amount"
-msgstr ""
+msgstr "Importo codice base"
#. module: account
#: help:account.journal,user_id:0
msgid "The user responsible for this journal"
-msgstr ""
+msgstr "L'utente responsabile per questo giornale"
#. module: account
#: field:account.journal,default_debit_account_id:0
@@ -1139,7 +1143,7 @@ msgstr "Nuovo conto analitico"
#: model:ir.actions.act_window,name:account.action_account_fiscal_position_template_form
#: model:ir.ui.menu,name:account.menu_action_account_fiscal_position_form_template
msgid "Fiscal Position Templates"
-msgstr ""
+msgstr "Modelli di \"posizioni fiscali\""
#. module: account
#: rml:account.invoice:0
@@ -1150,7 +1154,7 @@ msgstr "Prezzo unitario"
#. module: account
#: rml:account.analytic.account.journal:0
msgid "Period from :"
-msgstr ""
+msgstr "Periodo che va da:"
#. module: account
#: model:ir.model,name:account.model_wizard_multi_charts_accounts
@@ -1171,7 +1175,7 @@ msgstr "L'importo espresso in un'altra valuta opzionale"
#: view:account.fiscal.position.template:0
#: field:account.fiscal.position.template,name:0
msgid "Fiscal Position Template"
-msgstr ""
+msgstr "Modelli di \"posizioni fiscali\""
#. module: account
#: field:account.payment.term,line_ids:0
@@ -1192,7 +1196,7 @@ msgstr "Apri conti"
#. module: account
#: wizard_view:account.fiscalyear.close.state,init:0
msgid "Are you sure you want to close the fiscal year ?"
-msgstr ""
+msgstr "Sei sicuro di voler chiudere l'anno fiscale?"
#. module: account
#: selection:account.move,type:0
@@ -1207,7 +1211,7 @@ msgstr "Conto bancario"
#. module: account
#: field:account.chart.template,tax_template_ids:0
msgid "Tax Template List"
-msgstr ""
+msgstr "Lista modelli di tasse"
#. module: account
#: model:process.transition,name:account.process_transition_invoiceimport0
@@ -1242,7 +1246,7 @@ msgstr ""
#. module: account
#: field:account.analytic.account,parent_id:0
msgid "Parent Analytic Account"
-msgstr ""
+msgstr "Conto Analitico Padre"
#. module: account
#: wizard_button:account.move.line.reconcile,init_partial,addendum:0
@@ -1282,7 +1286,7 @@ msgstr "Importo fissato"
#. module: account
#: rml:account.analytic.account.analytic.check:0
msgid "Analytic Credit"
-msgstr ""
+msgstr "Credito analitico"
#. module: account
#: field:account.move.line,reconcile_partial_id:0
@@ -1333,12 +1337,12 @@ msgstr "Chiusura Anno Fiscale"
#. module: account
#: field:account.journal,centralisation:0
msgid "Centralised counterpart"
-msgstr ""
+msgstr "Contropartita centralizzata"
#. module: account
#: view:wizard.company.setup:0
msgid "Message"
-msgstr ""
+msgstr "Messaggio"
#. module: account
#: model:process.node,note:account.process_node_supplierpaymentorder0
@@ -1371,7 +1375,7 @@ msgstr "Voci analitiche"
#. module: account
#: help:account.tax,type:0
msgid "The computation method for the tax amount."
-msgstr ""
+msgstr "Il metodo di calcolo per l'importo delle tasse"
#. module: account
#: model:process.node,note:account.process_node_accountingentries0
@@ -1405,7 +1409,7 @@ msgstr "Voci tassa"
#. module: account
#: field:ir.sequence,fiscal_ids:0
msgid "Sequences"
-msgstr ""
+msgstr "Sequenze"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_type_form
@@ -1439,12 +1443,12 @@ msgstr "Libro Giornale"
#: field:account.account,child_id:0
#: field:account.analytic.account,child_ids:0
msgid "Child Accounts"
-msgstr ""
+msgstr "Conto figlio"
#. module: account
#: field:account.account,check_history:0
msgid "Display History"
-msgstr ""
+msgstr "Mostra lo storico"
#. module: account
#: wizard_field:account.third_party_ledger.report,init,date1:0
@@ -1455,7 +1459,7 @@ msgstr " Data d'inizio"
#: wizard_field:account.account.balance.report,checktype,display_account:0
#: wizard_field:account.general.ledger.report,checktype,display_account:0
msgid "Display accounts "
-msgstr ""
+msgstr "Mostra conti "
#. module: account
#: model:ir.model,name:account.model_account_bank_statement_reconcile_line
@@ -1482,6 +1486,8 @@ msgid ""
"The partner bank account to pay\n"
"Keep empty to use the default"
msgstr ""
+"Il conto della banca del partner da pagare\n"
+"Lasciare vuoto per usare il default"
#. module: account
#: field:res.partner,debit:0
@@ -1506,7 +1512,7 @@ msgstr "account.analytic.line.extended"
#. module: account
#: field:account.journal,refund_journal:0
msgid "Refund Journal"
-msgstr ""
+msgstr "Giornale dei Fondi"
#. module: account
#: model:account.account.type,name:account.account_type_income
@@ -1577,7 +1583,7 @@ msgstr "Apri per la riconciliazione"
#. module: account
#: model:account.journal,name:account.bilan_journal
msgid "Journal d'ouverture"
-msgstr ""
+msgstr "Giornale d'apertura"
#. module: account
#: selection:account.tax,tax_group:0
@@ -1599,7 +1605,7 @@ msgstr "Lasciare il campo vuoto per usare il conto Spesa"
#. module: account
#: wizard_field:account.automatic.reconcile,init,account_ids:0
msgid "Account to reconcile"
-msgstr ""
+msgstr "Conto da riconciliare"
#. module: account
#: rml:account.invoice:0
@@ -1618,7 +1624,7 @@ msgstr "Conti di incasso e pagamento"
#: view:account.subscription:0
#: field:account.subscription,lines_id:0
msgid "Subscription Lines"
-msgstr ""
+msgstr "Linee sottoscritte"
#. module: account
#: selection:account.analytic.journal,type:0
@@ -1647,7 +1653,7 @@ msgstr "Chiudi periodo"
#. module: account
#: rml:account.overdue:0
msgid "Due"
-msgstr ""
+msgstr "Dovuto"
#. module: account
#: rml:account.journal.period.print:0
@@ -1675,7 +1681,7 @@ msgstr "Libro Giornale"
#. module: account
#: rml:account.analytic.account.quantity_cost_ledger:0
msgid "Max Qty:"
-msgstr ""
+msgstr "Quant. massima:"
#. module: account
#: wizard_button:account.invoice.refund,init,refund:0
@@ -1687,7 +1693,7 @@ msgstr "Fattura di resi"
#: model:ir.actions.wizard,name:account.wizard_period_close
#: model:ir.ui.menu,name:account.menu_action_account_period_close_tree
msgid "Close a Period"
-msgstr ""
+msgstr "Chiudi un periodo"
#. module: account
#: model:ir.actions.act_window,name:account.act_acc_analytic_acc_2_report_hr_timesheet_invoice_journal
@@ -1697,7 +1703,7 @@ msgstr "Costi e ricavi"
#. module: account
#: constraint:account.account:0
msgid "Error ! You can not create recursive accounts."
-msgstr ""
+msgstr "Errore! Non puoi creare conti ricorsivi"
#. module: account
#: rml:account.tax.code.entries:0
@@ -1707,7 +1713,7 @@ msgstr "Numero conto"
#. module: account
#: view:account.config.wizard:0
msgid "Skip"
-msgstr ""
+msgstr "Salta"
#. module: account
#: field:account.invoice,period_id:0
@@ -1727,7 +1733,7 @@ msgstr "Riapri"
#. module: account
#: wizard_view:account.fiscalyear.close,init:0
msgid "Are you sure you want to create entries?"
-msgstr ""
+msgstr "Sei sicuro di voler creare la voce?"
#. module: account
#: field:account.tax,include_base_amount:0
@@ -1743,7 +1749,7 @@ msgstr "Delta di Credito"
#: model:ir.actions.wizard,name:account.wizard_reconcile_unreconcile
#: model:ir.actions.wizard,name:account.wizard_unreconcile
msgid "Unreconcile Entries"
-msgstr ""
+msgstr "Voci non riconciliate"
#. module: account
#: model:process.node,note:account.process_node_supplierdraftinvoices0
@@ -1753,13 +1759,13 @@ msgstr ""
#. module: account
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
msgid "Cost Legder for period"
-msgstr ""
+msgstr "Libro mastro dei costi per il periodo"
#. module: account
#: 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 ""
+msgstr "Nuova dichiarazione"
#. module: account
#: wizard_field:account.analytic.account.chart,init,from_date:0
@@ -1822,7 +1828,7 @@ msgstr ""
#. module: account
#: rml:account.analytic.account.cost_ledger:0
msgid "Date or Code"
-msgstr ""
+msgstr "Data o codice"
#. module: account
#: field:account.analytic.account,user_id:0
@@ -1832,7 +1838,7 @@ msgstr "Gestione conti"
#. module: account
#: rml:account.analytic.account.journal:0
msgid "to :"
-msgstr ""
+msgstr "a:"
#. module: account
#: wizard_field:account.move.line.reconcile,init_full,debit:0
@@ -1870,7 +1876,7 @@ msgstr "Data inizio"
#. module: account
#: model:account.journal,name:account.refund_expenses_journal
msgid "x Expenses Credit Notes Journal"
-msgstr ""
+msgstr "x Giornale note di accredito su Acquisti"
#. module: account
#: field:account.analytic.journal,type:0
@@ -1942,7 +1948,7 @@ msgstr "Numero di Giorni"
#. module: account
#: help:account.invoice,reference:0
msgid "The partner reference of this invoice."
-msgstr ""
+msgstr "Il partner di riferimento per questa fattura."
#. module: account
#: wizard_field:account.general.ledger.report,checktype,sortbydate:0
@@ -1957,7 +1963,7 @@ msgstr "Da verificare"
#. module: account
#: help:res.partner,debit:0
msgid "Total amount you have to pay to this supplier."
-msgstr ""
+msgstr "Totale da pagare a questo fornitore"
#. module: account
#: selection:account.automatic.reconcile,init,power:0
@@ -1982,7 +1988,7 @@ msgstr "Piano dei conti"
#. module: account
#: help:account.tax,name:0
msgid "This name will be displayed on reports"
-msgstr ""
+msgstr "Questo nome sarà visualizzato sulle stampe"
#. module: account
#: rml:account.analytic.account.cost_ledger:0
@@ -2014,7 +2020,7 @@ msgstr "Resi da clienti"
#. module: account
#: rml:account.vat.declaration:0
msgid "Tax Amount"
-msgstr ""
+msgstr "Importo Imposta"
#. module: account
#: rml:account.analytic.account.quantity_cost_ledger:0
@@ -2024,7 +2030,7 @@ msgstr ""
#. module: account
#: field:account.journal.period,name:0
msgid "Journal-Period Name"
-msgstr ""
+msgstr "Nome periodo del giornale"
#. module: account
#: field:account.tax.code,name:0
@@ -2039,6 +2045,9 @@ msgid ""
"'draft' state and instead goes directly to the 'posted state' without any "
"manual validation."
msgstr ""
+"Selezionare questa casella se non vuoi che le nuove movimentazioni contabili "
+"saltino lo stato 'bozza' e diventino invece direttamente 'confermate' senza "
+"alcuna validazione manuale."
#. module: account
#: field:account.bank.statement.line,partner_id:0
@@ -2062,7 +2071,7 @@ msgstr ""
#. module: account
#: rml:account.invoice:0
msgid "Draft Invoice"
-msgstr ""
+msgstr "Fattura in bozza"
#. module: account
#: model:account.account.type,name:account.account_type_expense
@@ -2072,7 +2081,7 @@ msgstr "Uscita"
#. module: account
#: field:account.journal,invoice_sequence_id:0
msgid "Invoice Sequence"
-msgstr ""
+msgstr "Sequenza di fatturazione"
#. module: account
#: wizard_view:account.automatic.reconcile,init:0
@@ -2082,7 +2091,7 @@ msgstr "Opzioni"
#. module: account
#: model:process.process,name:account.process_process_invoiceprocess0
msgid "Customer Invoice Process"
-msgstr ""
+msgstr "Processo di fatturazione cliente"
#. module: account
#: rml:account.invoice:0
@@ -2092,7 +2101,7 @@ msgstr ""
#. module: account
#: wizard_field:account.fiscalyear.close,init,period_id:0
msgid "Opening Entries Period"
-msgstr ""
+msgstr "Periodo di Voci aperte"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_validate_account_moves
@@ -2109,7 +2118,7 @@ msgstr "giorni"
#. module: account
#: selection:account.aged.trial.balance,init,direction_selection:0
msgid "Past"
-msgstr ""
+msgstr "Passato"
#. module: account
#: field:account.analytic.account,company_currency_id:0
@@ -2133,7 +2142,7 @@ msgstr "Fattura non pagate"
#. module: account
#: model:process.transition,name:account.process_transition_paymentreconcile0
msgid "Payment Reconcile"
-msgstr ""
+msgstr "Pagamento riconciliato"
#. module: account
#: model:ir.actions.act_window,name:account.action_bank_statement_reconciliation_form
@@ -2145,7 +2154,7 @@ msgstr ""
#: model:ir.actions.act_window,name:account.action_subscription_form_new
#: model:ir.ui.menu,name:account.menu_action_subscription_form_new
msgid "New Subscription"
-msgstr ""
+msgstr "Nuova sottoscrizione"
#. module: account
#: view:account.payment.term:0
@@ -2161,7 +2170,7 @@ msgstr "Registrazione analitica"
#: view:res.company:0
#: field:res.company,overdue_msg:0
msgid "Overdue Payments Message"
-msgstr ""
+msgstr "Messaggio in caso di pagamenti in ritardo"
#. module: account
#: model:ir.actions.act_window,name:account.action_tax_code_tree
@@ -2203,7 +2212,7 @@ msgstr "Bozze"
#. module: account
#: wizard_field:account.invoice.refund,init,period:0
msgid "Force period"
-msgstr ""
+msgstr "Forza il periodo"
#. module: account
#: selection:account.account.type,close_method:0
@@ -2214,7 +2223,7 @@ msgstr "Dettaglio"
#: selection:account.account,type:0
#: selection:account.account.template,type:0
msgid "Consolidation"
-msgstr ""
+msgstr "Consolidamento"
#. module: account
#: field:account.chart.template,account_root_id:0
@@ -2246,7 +2255,7 @@ msgstr "Piano dei conti"
#. module: account
#: model:account.journal,name:account.check_journal
msgid "x Checks Journal"
-msgstr ""
+msgstr "x Controllo giornale"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_generate_subscription
@@ -2257,7 +2266,7 @@ msgstr "Creare voci relative a canoni"
#. module: account
#: wizard_field:account.fiscalyear.close,init,journal_id:0
msgid "Opening Entries Journal"
-msgstr ""
+msgstr "Giornale delle Voci aperte"
#. module: account
#: view:account.config.wizard:0
@@ -2286,12 +2295,12 @@ msgstr "Tutti i periodi sono vuoti"
#. module: account
#: model:account.account.type,name:account.account_type_liability
msgid "Liability"
-msgstr ""
+msgstr "Debiti"
#. module: account
#: selection:account.automatic.reconcile,init,power:0
msgid "2"
-msgstr ""
+msgstr "2"
#. module: account
#: wizard_view:account.chart,init:0
@@ -2303,7 +2312,7 @@ msgstr ""
#. module: account
#: help:account.invoice.tax,base_code_id:0
msgid "The account basis of the tax declaration."
-msgstr ""
+msgstr "Il conto si basa sulla denuncia della tassa"
#. module: account
#: rml:account.analytic.account.journal:0
@@ -2328,7 +2337,7 @@ msgstr "Data"
#. module: account
#: field:account.invoice,reference_type:0
msgid "Reference Type"
-msgstr ""
+msgstr "Tipo riferimento"
#. module: account
#: wizard_button:account.move.line.unreconcile,init,unrec:0
@@ -2351,7 +2360,7 @@ msgstr "Voci di documento"
#: field:account.analytic.line,user_id:0
#: field:account.journal,user_id:0
msgid "User"
-msgstr ""
+msgstr "Utente Open ERP"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_template_form
@@ -2372,7 +2381,7 @@ msgstr ""
#. module: account
#: rml:account.journal.period.print:0
msgid "Voucher No"
-msgstr ""
+msgstr "Buono Numero"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_automatic_reconcile
@@ -2388,7 +2397,7 @@ msgstr "Importa fattura"
#. module: account
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
msgid "and Journals"
-msgstr ""
+msgstr "e Giornali"
#. module: account
#: view:account.tax:0
@@ -2411,11 +2420,13 @@ msgid ""
"Set if the tax computation is based on the computation of child taxes rather "
"than on the total amount."
msgstr ""
+"Indica se il calcolo della tassa è basato sul conteggio delle tasse "
+"\"figlio\" invece che sul totale importo."
#. module: account
#: rml:account.central.journal:0
msgid "Journal Code"
-msgstr ""
+msgstr "Codifica Giornale"
#. module: account
#: help:account.tax,applicable_type:0
@@ -2423,11 +2434,13 @@ msgid ""
"If not applicable (computed through a Python code), the tax won't appear on "
"the invoice."
msgstr ""
+"Se non applicabile (calcolato attraverso una procedura Python), la tassa non "
+"appare sulla fattura"
#. module: account
#: field:account.model,lines_id:0
msgid "Model Entries"
-msgstr ""
+msgstr "Voce Modello"
#. module: account
#: field:account.analytic.account,date:0
@@ -2470,7 +2483,7 @@ msgstr "Codifica di registrazioni per linea"
#. module: account
#: help:account.chart.template,tax_template_ids:0
msgid "List of all the taxes that have to be installed by the wizard"
-msgstr ""
+msgstr "Elenco di tutte le imposte che devono essere installate dal wizard"
#. module: account
#: rml:account.analytic.account.cost_ledger:0
@@ -2483,7 +2496,7 @@ msgstr "Periodo da"
#: model:process.node,name:account.process_node_bankstatement0
#: model:process.node,name:account.process_node_supplierbankstatement0
msgid "Bank Statement"
-msgstr ""
+msgstr "Estratto conto"
#. module: account
#: wizard_view:account.invoice.pay,addendum:0
@@ -2505,13 +2518,13 @@ msgstr "L'importo in valuta del Libro Giornale"
#. module: account
#: wizard_field:account.general.ledger.report,checktype,landscape:0
msgid "Landscape Mode"
-msgstr ""
+msgstr "Modalità Orizzontale"
#. module: account
#: model:process.transition,note:account.process_transition_analyticinvoice0
#: model:process.transition,note:account.process_transition_supplieranalyticcost0
msgid "From analytic accounts, Create invoice."
-msgstr ""
+msgstr "Dai conti analitici, Crea fattura."
#. module: account
#: wizard_button:account.account.balance.report,account_selection,end:0
@@ -2582,7 +2595,7 @@ msgstr "Usa questo codice per la Dichiarazione IVA"
#. module: account
#: field:account.move.line,blocked:0
msgid "Litigation"
-msgstr ""
+msgstr "Causa"
#. module: account
#: view:account.move.line:0
@@ -2594,7 +2607,7 @@ msgstr "Informazione"
#. module: account
#: model:ir.ui.menu,name:account.menu_tax_report
msgid "Taxes Reports"
-msgstr ""
+msgstr "Stampa Tasse"
#. module: account
#: field:res.partner,property_account_payable:0
@@ -2619,13 +2632,15 @@ msgstr "Conto Crediti predefinito"
#. module: account
#: model:process.node,name:account.process_node_supplierpaymentorder0
msgid "Payment Order"
-msgstr ""
+msgstr "Ordine di Pagamento"
#. module: account
#: help:account.account.template,reconcile:0
msgid ""
"Check this option if you want the user to reconcile entries in this account."
msgstr ""
+"Spunta questa opzione se vuoi che sia l'utente a riconciliare le voci di "
+"questo conto"
#. module: account
#: rml:account.analytic.account.journal:0
@@ -2648,12 +2663,12 @@ msgstr "Capitale"
#. module: account
#: field:wizard.company.setup,overdue_msg:0
msgid "Overdue Payment Message"
-msgstr ""
+msgstr "Messaggio per pagamento in ritardo"
#. module: account
#: model:ir.model,name:account.model_account_tax_code_template
msgid "Tax Code Template"
-msgstr ""
+msgstr "Modelli di Codice Tassa"
#. module: account
#: rml:account.partner.balance:0
@@ -2678,7 +2693,7 @@ msgstr "Movimenti di fine anno"
#. module: account
#: model:ir.ui.menu,name:account.menu_generic_report
msgid "Generic Reports"
-msgstr ""
+msgstr "Stampe generiche"
#. module: account
#: wizard_field:account.automatic.reconcile,init,power:0
@@ -2734,7 +2749,7 @@ msgstr "Numero fattura"
#. module: account
#: field:account.period,date_stop:0
msgid "End of Period"
-msgstr ""
+msgstr "Concludi il periodo"
#. module: account
#: wizard_button:populate_statement_from_inv,go,finish:0
@@ -2750,7 +2765,7 @@ msgstr "Imponibile"
#: model:ir.actions.report.xml,name:account.account_analytic_account_inverted_balance
#: model:ir.actions.wizard,name:account.account_analytic_account_inverted_balance_report
msgid "Inverted Analytic Balance"
-msgstr ""
+msgstr "Bilancio Conti Analitici inverso"
#. module: account
#: field:account.tax,applicable_type:0
@@ -2788,7 +2803,7 @@ msgstr ""
#. module: account
#: wizard_field:account.aged.trial.balance,init,direction_selection:0
msgid "Analysis Direction"
-msgstr ""
+msgstr "Analisi della direzione"
#. module: account
#: wizard_button:populate_statement_from_inv,init,go:0
@@ -2812,6 +2827,10 @@ msgid ""
"higher ones. The order is important if you have a tax that has several tax "
"children. In this case, the evaluation order is important."
msgstr ""
+"Il campo sequenza è usato per ordinare le linee delle tasse dalla più "
+"piccola alla più grande. Questo ordinamento è importante se hai delle tasse "
+"che hanno tasse \"figlio\". In questo caso, l'ordine con cui vendono "
+"valutate è importante."
#. module: account
#: field:account.journal.column,view_id:0
@@ -2819,12 +2838,12 @@ msgstr ""
#: field:account.journal.view,name:0
#: model:ir.model,name:account.model_account_journal_view
msgid "Journal View"
-msgstr ""
+msgstr "Vista Giornale"
#. module: account
#: selection:account.move.line,centralisation:0
msgid "Credit Centralisation"
-msgstr ""
+msgstr "Centralizzazione del credito"
#. module: account
#: rml:account.overdue:0
diff --git a/addons/account/i18n/lt.po b/addons/account/i18n/lt.po
index bf2898beffa..95d80389a39 100644
--- a/addons/account/i18n/lt.po
+++ b/addons/account/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:30+0000\n"
+"PO-Revision-Date: 2010-08-16 09:38+0000\n"
"Last-Translator: Giedrius Slavinskas \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-08-16 06:44+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
diff --git a/addons/account/i18n/pl.po b/addons/account/i18n/pl.po
index 6ed7ab6fb2d..c33593dc4f2 100644
--- a/addons/account/i18n/pl.po
+++ b/addons/account/i18n/pl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:29+0000\n"
+"PO-Revision-Date: 2010-08-16 09:38+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:44+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
diff --git a/addons/account/i18n/sq.po b/addons/account/i18n/sq.po
index 72a70337bc2..242fd947278 100644
--- a/addons/account/i18n/sq.po
+++ b/addons/account/i18n/sq.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: ASTRIT BOKSHI \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:43+0000\n"
+"PO-Revision-Date: 2010-08-16 09:19+0000\n"
"Last-Translator: bokshas \n"
"Language-Team: Albanian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:44+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
diff --git a/addons/account/i18n/sv.po b/addons/account/i18n/sv.po
index b29f20b63f2..4241c2a2fb7 100644
--- a/addons/account/i18n/sv.po
+++ b/addons/account/i18n/sv.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:45+0000\n"
+"PO-Revision-Date: 2010-08-16 09:45+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:44+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
diff --git a/addons/account/i18n/tr.po b/addons/account/i18n/tr.po
index d5fd779f63c..48208741f39 100644
--- a/addons/account/i18n/tr.po
+++ b/addons/account/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:53+0000\n"
+"PO-Revision-Date: 2010-08-16 09:37+0000\n"
"Last-Translator: Omer Barlas \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
diff --git a/addons/account/i18n/zh_CN.po b/addons/account/i18n/zh_CN.po
index 59f6ee6699a..dfccbb8e388 100644
--- a/addons/account/i18n/zh_CN.po
+++ b/addons/account/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:07+0000\n"
+"PO-Revision-Date: 2010-08-16 09:18+0000\n"
"Last-Translator: Jeff Wang \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
diff --git a/addons/account/invoice.py b/addons/account/invoice.py
index 940d9cba0f6..a463a7d48c9 100644
--- a/addons/account/invoice.py
+++ b/addons/account/invoice.py
@@ -598,9 +598,9 @@ class account_invoice(osv.osv):
def copy(self, cr, uid, id, default={}, context=None):
default.update({
- 'state':'draft',
- 'number':False,
- 'move_id':False,
+ 'state':'draft',
+ 'number':False,
+ 'move_id':False,
'move_name':False,
'internal_number': False,
})
@@ -941,7 +941,7 @@ class account_invoice(osv.osv):
def action_number(self, cr, uid, ids, *args):
#TODO: not correct fix but required a frech values before reading it.
self.write(cr, uid, ids, {})
-
+
for obj_inv in self.browse(cr, uid, ids):
id = obj_inv.id
invtype = obj_inv.type
@@ -950,7 +950,7 @@ class account_invoice(osv.osv):
reference = obj_inv.reference or ''
self.write(cr, uid, ids, {'internal_number':number})
-
+
if invtype in ('in_invoice', 'in_refund'):
ref = reference
else:
@@ -967,7 +967,7 @@ class account_invoice(osv.osv):
'WHERE account_move_line.move_id = %s ' \
'AND account_analytic_line.move_id = account_move_line.id',
(ref, move_id))
-
+
for inv_id, name in self.name_get(cr, uid, [id]):
message = _('Invoice ') + " '" + name + "' "+ _("is validated.")
self.log(cr, uid, inv_id, message)
@@ -1367,8 +1367,8 @@ class account_invoice_line(osv.osv):
else:
result.update({'price_unit': res.list_price, 'invoice_line_tax_id': tax_id})
- if not name:
- result['name'] = res.partner_ref
+# if not name:
+ result['name'] = res.partner_ref
domain = {}
result['uos_id'] = res.uom_id.id or uom or False
diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml
index 9ebb86c719d..4bdab312ad2 100644
--- a/addons/account/project/project_view.xml
+++ b/addons/account/project/project_view.xml
@@ -78,7 +78,7 @@
-
+
@@ -113,7 +113,7 @@
-
+
Accounts to Renew
@@ -144,7 +144,7 @@
-
+
@@ -157,7 +157,7 @@
-
+
@@ -183,7 +183,7 @@
-
+
@@ -203,7 +203,7 @@
-
+
@@ -215,7 +215,7 @@
-
+
@@ -263,7 +263,7 @@
-
+
#
# Open journal entries
@@ -390,7 +390,7 @@
tree
To print an analytics (or costs) journal for a given period. The report give code, move name, account number, general amount and analytic amount.
-
+
diff --git a/addons/account/project/wizard/account_analytic_chart_view.xml b/addons/account/project/wizard/account_analytic_chart_view.xml
index ebfdb1a1194..9cc7a32633b 100644
--- a/addons/account/project/wizard/account_analytic_chart_view.xml
+++ b/addons/account/project/wizard/account_analytic_chart_view.xml
@@ -38,7 +38,8 @@
parent="account.menu_finance_charts"
action="action_account_analytic_chart"
id="menu_action_analytic_account_tree2"
- icon="STOCK_INDENT"/>
+ icon="STOCK_INDENT"
+ groups="base.group_extended"/>
diff --git a/addons/account/report/account_analytic_entries_report_view.xml b/addons/account/report/account_analytic_entries_report_view.xml
index 4e9049b853f..bc40e6235d7 100644
--- a/addons/account/report/account_analytic_entries_report_view.xml
+++ b/addons/account/report/account_analytic_entries_report_view.xml
@@ -107,7 +107,7 @@
A tool search lets you know statistics on your analytics records that match your needs.
-
+
diff --git a/addons/account/security/ir.model.access.csv b/addons/account/security/ir.model.access.csv
index 71d295eb565..8dbcf4ecf5b 100644
--- a/addons/account/security/ir.model.access.csv
+++ b/addons/account/security/ir.model.access.csv
@@ -157,50 +157,56 @@
"access_report_account_receivable_user","report.account.receivable.user","model_report_account_receivable","account.group_account_user",1,1,1,1
"access_account_sequence_fiscal_year_invoice","account.sequence.fiscalyear invoice","model_account_sequence_fiscalyear","account.group_account_invoice",1,1,1,1
"access_account_invoice_report","account.invoice.report","model_account_invoice_report","account.group_account_invoice",1,0,0,0
-"access_account_invoice","account.invoice","model_account_invoice","account.group_accounting_accountant",1,1,1,1
-"access_account_invoice_line","account.invoice.line","model_account_invoice_line","account.group_accounting_accountant",1,1,1,1
-"access_res_partner","res.partner","base.model_res_partner","account.group_accounting_accountant",1,1,1,1
-"access_account_account","account.account","model_account_account","account.group_accounting_accountant",1,0,0,0
-"access_account_account_type","account.type","model_account_account_type","account.group_accounting_accountant",1,0,0,0
-"access_account_tax","account.tax","model_account_tax","account.group_accounting_accountant",1,0,0,0
-"access_account_tax_code","account.tax.code","model_account_tax_code","account.group_accounting_accountant",1,0,0,0
-"access_account_invoice_tax","account.invoice.tax","model_account_invoice_tax","account.group_accounting_accountant",1,0,0,0
-"access_res_partner_address","res.partner.address","base.model_res_partner_address","account.group_accounting_accountant",1,1,1,1
-"access_account_move","account.move","model_account_move","account.group_accounting_accountant",1,1,1,1
-"access_account_move_line","account.move.line","model_account_move_line","account.group_accounting_accountant",1,1,1,1
-"access_res_partner_bank","res.partner.bank","base.model_res_partner_bank","account.group_accounting_accountant",1,0,0,0
-"access_res_partner_event","res.partner.event","base.model_res_partner_event","account.group_accounting_accountant",1,0,0,0
-"access_res_currency_rate","res.currency.rate","base.model_res_currency_rate","account.group_accounting_accountant",1,1,0,0
-"access_res_currency","res.currency","base.model_res_currency","account.group_accounting_accountant",1,1,0,0
-"access_product_template","product.template","product.model_product_template","account.group_accounting_accountant",1,0,0,0
-"access_product_product","product.product","product.model_product_product","account.group_accounting_accountant",1,0,0,0
-"access_product_category","product.category","product.model_product_category","account.group_accounting_accountant",1,0,0,0
-"access_product_pricelist","product.pricelist","product.model_product_pricelist","account.group_accounting_accountant",1,0,0,0
-"access_product_pricelist_version","product.pricelist.version","product.model_product_pricelist_version","account.group_accounting_accountant",1,0,0,0
-"access_product_pricelist_item","product.pricelist.item","product.model_product_pricelist_item","account.group_accounting_accountant",1,0,0,0
-"access_account_payment_term","account.payment.term","model_account_payment_term","account.group_accounting_accountant",1,0,0,0
-"access_res_payterm","res.payterm","base.model_res_payterm","account.group_accounting_accountant",1,0,0,0
-"access_account_payment_term_line","account.payment.term.line","model_account_payment_term_line","account.group_accounting_accountant",1,0,0,0
-"access_account_journal","account.journal","model_account_journal","account.group_accounting_accountant",1,0,0,0
-"access_account_fiscalyear","account.fiscalyear","model_account_fiscalyear","account.group_accounting_accountant",1,0,0,0
-"access_account_period","account.period","model_account_period","account.group_accounting_accountant",1,0,0,0
-"access_account_move_reconcile","account.move.reconcile","model_account_move_reconcile","account.group_accounting_accountant",1,1,1,1
-"access_account_tax_code","account.tax.code","model_account_tax_code","account.group_accounting_accountant",1,0,0,0
-"access_account_bank_statement","account.bank.statement","model_account_bank_statement","account.group_accounting_accountant",1,1,1,1
-"access_account_cashbox_line","account.cashbox.line","model_account_cashbox_line","account.group_accounting_accountant",1,1,1,1
+"access_account_invoice_accounting_accountant","account.invoice","model_account_invoice","account.group_accounting_accountant",1,1,1,1
+"access_account_invoice_line_accounting_accountant","account.invoice.line","model_account_invoice_line","account.group_accounting_accountant",1,1,1,1
+"access_res_partner_accounting_accountant","res.partner","base.model_res_partner","account.group_accounting_accountant",1,1,1,1
+"access_account_account_accounting_accountant","account.account","model_account_account","account.group_accounting_accountant",1,0,0,0
+"access_account_account_type_accounting_accountant","account.type","model_account_account_type","account.group_accounting_accountant",1,0,0,0
+"access_account_tax_accounting_accountant","account.tax","model_account_tax","account.group_accounting_accountant",1,0,0,0
+"access_account_tax_code_accounting_accountant","account.tax.code","model_account_tax_code","account.group_accounting_accountant",1,0,0,0
+"access_account_invoice_tax_accounting_accountant","account.invoice.tax","model_account_invoice_tax","account.group_accounting_accountant",1,0,0,0
+"access_res_partner_address_accounting_accountant","res.partner.address","base.model_res_partner_address","account.group_accounting_accountant",1,1,1,1
+"access_account_move_accounting_accountant","account.move","model_account_move","account.group_accounting_accountant",1,1,1,1
+"access_account_move_line_accounting_accountant","account.move.line","model_account_move_line","account.group_accounting_accountant",1,1,1,1
+"access_res_partner_bank_accounting_accountant","res.partner.bank","base.model_res_partner_bank","account.group_accounting_accountant",1,0,0,0
+"access_res_partner_event_accounting_accountant","res.partner.event","base.model_res_partner_event","account.group_accounting_accountant",1,0,0,0
+"access_res_currency_rate_accounting_accountant","res.currency.rate","base.model_res_currency_rate","account.group_accounting_accountant",1,1,0,0
+"access_res_currency_accounting_accountant","res.currency","base.model_res_currency","account.group_accounting_accountant",1,1,0,0
+"access_product_template_accounting_accountant","product.template","product.model_product_template","account.group_accounting_accountant",1,0,0,0
+"access_product_product_accounting_accountant","product.product","product.model_product_product","account.group_accounting_accountant",1,0,0,0
+"access_product_category_accounting_accountant","product.category","product.model_product_category","account.group_accounting_accountant",1,0,0,0
+"access_product_pricelist_accounting_accountant","product.pricelist","product.model_product_pricelist","account.group_accounting_accountant",1,0,0,0
+"access_product_pricelist_version_accounting_accountant","product.pricelist.version","product.model_product_pricelist_version","account.group_accounting_accountant",1,0,0,0
+"access_product_pricelist_item_accounting_accountant","product.pricelist.item","product.model_product_pricelist_item","account.group_accounting_accountant",1,0,0,0
+"access_account_payment_term_accounting_accountant","account.payment.term","model_account_payment_term","account.group_accounting_accountant",1,0,0,0
+"access_res_payterm_accounting_accountant","res.payterm","base.model_res_payterm","account.group_accounting_accountant",1,0,0,0
+"access_account_payment_term_line_accounting_accountant","account.payment.term.line","model_account_payment_term_line","account.group_accounting_accountant",1,0,0,0
+"access_account_journal_accounting_accountant","account.journal","model_account_journal","account.group_accounting_accountant",1,0,0,0
+"access_account_fiscalyear_accounting_accountant","account.fiscalyear","model_account_fiscalyear","account.group_accounting_accountant",1,0,0,0
+"access_account_period_accounting_accountant","account.period","model_account_period","account.group_accounting_accountant",1,0,0,0
+"access_account_move_reconcile_accounting_accountant","account.move.reconcile","model_account_move_reconcile","account.group_accounting_accountant",1,1,1,1
+"access_account_tax_code_accounting_accountant","account.tax.code","model_account_tax_code","account.group_accounting_accountant",1,0,0,0
+"access_account_bank_statement_accounting_accountant","account.bank.statement","model_account_bank_statement","account.group_accounting_accountant",1,1,1,1
+"access_account_cashbox_line_accounting_accountant","account.cashbox.line","model_account_cashbox_line","account.group_accounting_accountant",1,1,1,1
"access_account_bank_statement_reconcile_line","account.bank.statement.reconcile.line","model_account_bank_statement_reconcile_line","account.group_accounting_accountant",1,1,1,1
-"access_account_bank_statement_line","account.bank.statement.line","model_account_bank_statement_line","account.group_accounting_accountant",1,1,1,1
-"access_account_invoice_report","account.invoice.report","model_account_invoice_report","account.group_accounting_accountant",1,0,0,0
-"access_report_account_receivable","report.account.receivable","model_report_account_receivable","account.group_accounting_accountant",1,0,0,0
-"access_temp_range","temp.range","model_temp_range","account.group_accounting_accountant",1,0,0,0
-"access_report_aged_receivable","report.aged.receivable","model_report_aged_receivable","account.group_accounting_accountant",1,0,0,0
-"access_report_invoice_created","report.invoice.created","model_report_invoice_created","account.group_accounting_accountant",1,0,0,0
-"access_account_entries_report","account.entries.report","model_account_entries_report","account.group_accounting_accountant",1,0,0,0
-"access_account_invoice_report","account.invoice.report","model_account_invoice_report","account.group_accounting_accountant",1,0,0,0
-"access_account_journal_view","account.journal.view","model_account_journal_view","account.group_accounting_accountant",1,0,0,0
-"access_account_journal_period","account.journal.period","model_account_journal_period","account.group_accounting_accountant",1,1,1,1
-"access_account_journal_column","account.journal.column","model_account_journal_column","account.group_accounting_accountant",1,1,1,1
-"access_account_analytic_account","account.analytic.account","analytic.model_account_analytic_account","account.group_accounting_accountant",1,0,0,0
-"access_account_analytic_line","account.analytic.line","analytic.model_account_analytic_line","account.group_accounting_accountant",1,0,0,0
-"access_account_analytic_journal","account.analytic.journal","model_account_analytic_journal","account.group_accounting_accountant",1,0,0,0
-"access_account_bank_statement_reconcile","account.bank.statement.reconcile","model_account_bank_statement_reconcile","account.group_accounting_accountant",1,1,1,1
+"access_account_bank_statement_line_accounting_accountant","account.bank.statement.line","model_account_bank_statement_line","account.group_accounting_accountant",1,1,1,1
+"access_account_invoice_report_accounting_accountant","account.invoice.report","model_account_invoice_report","account.group_accounting_accountant",1,0,0,0
+"access_report_account_receivable_accounting_accountant","report.account.receivable","model_report_account_receivable","account.group_accounting_accountant",1,0,0,0
+"access_temp_range_accounting_accountant","temp.range","model_temp_range","account.group_accounting_accountant",1,0,0,0
+"access_report_aged_receivable_accounting_accountant","report.aged.receivable","model_report_aged_receivable","account.group_accounting_accountant",1,0,0,0
+"access_report_invoice_created_accounting_accountant","report.invoice.created","model_report_invoice_created","account.group_accounting_accountant",1,0,0,0
+"access_account_entries_report_accounting_accountant","account.entries.report","model_account_entries_report","account.group_accounting_accountant",1,0,0,0
+"access_account_invoice_report_accounting_accountant","account.invoice.report","model_account_invoice_report","account.group_accounting_accountant",1,0,0,0
+"access_account_journal_view_accounting_accountant","account.journal.view","model_account_journal_view","account.group_accounting_accountant",1,0,0,0
+"access_account_journal_period_accounting_accountant","account.journal.period","model_account_journal_period","account.group_accounting_accountant",1,1,1,1
+"access_account_journal_column_accounting_accountant","account.journal.column","model_account_journal_column","account.group_accounting_accountant",1,1,1,1
+"access_account_analytic_account_accounting_accountant","account.analytic.account","analytic.model_account_analytic_account","account.group_accounting_accountant",1,0,0,0
+"access_account_analytic_line_accounting_accountant","account.analytic.line","analytic.model_account_analytic_line","account.group_accounting_accountant",1,0,0,0
+"access_account_analytic_journal_accounting_accountant","account.analytic.journal","model_account_analytic_journal","account.group_accounting_accountant",1,0,0,0
+"access_account_bank_statement_reconcile_accounting_accountant","account.bank.statement.reconcile","model_account_bank_statement_reconcile","account.group_accounting_accountant",1,1,1,1
+"access_account_move_account_user","account.move","model_account_move","account.group_account_user",1,1,1,1
+"access_account_move_line_account_user","account.move.line","model_account_move_line","account.group_account_user",1,1,1,1
+"access_account_journal_account_user","account.journal","model_account_journal","account.group_account_user",1,0,0,0
+"access_account_journal_view_account_user","account.journal.view","model_account_journal_view","account.group_account_user",1,0,0,0
+"access_account_journal_period_account_user","account.journal.period","model_account_journal_period","account.group_account_user",1,0,0,0
+"access_account_journal_column_account_user","account.journal.column","model_account_journal_column","account.group_account_user",1,0,0,0
diff --git a/addons/account/wizard/account_move_journal_view.xml b/addons/account/wizard/account_move_journal_view.xml
index 14087d1ff40..2520b76a129 100644
--- a/addons/account/wizard/account_move_journal_view.xml
+++ b/addons/account/wizard/account_move_journal_view.xml
@@ -8,7 +8,7 @@
form
@@ -21,7 +21,7 @@
{'journal_type':'sale','view_mode':False}
new
-
+
@@ -42,7 +42,10 @@
new
+ id="menu_eaction_account_moves_purchase"
+ parent="menu_finance_payables"
+ icon="STOCK_JUSTIFY_FILL"
+ groups="group_account_user,group_account_manager,base.group_system"/>
@@ -69,6 +72,7 @@
id="menu_eaction_account_moves_all"
parent="account.menu_finance_entries"
sequence="4"
+ groups="group_account_user,group_account_manager,base.group_system"
/>
diff --git a/addons/account/wizard/account_pay_invoice.py b/addons/account/wizard/account_pay_invoice.py
index 2d59c556ba0..49a905836b2 100644
--- a/addons/account/wizard/account_pay_invoice.py
+++ b/addons/account/wizard/account_pay_invoice.py
@@ -18,6 +18,7 @@
# along with this program. If not, see .
#
##############################################################################
+
import time
from osv import fields, osv
@@ -34,15 +35,15 @@ class account_invoice_pay_writeoff(osv.osv_memory):
'writeoff_acc_id': fields.many2one('account.account', 'Write-Off account', required=True),
'writeoff_journal_id': fields.many2one('account.journal', 'Write-Off journal', required=True),
'comment': fields.char('Comment', size=64, required=True),
- 'analytic_id': fields.many2one('account.analytic.account','Analytic Account'),
+ 'analytic_id': fields.many2one('account.analytic.account','Analytic Account')
}
_defaults = {
'comment': 'Write-Off',
- }
+ }
def pay_and_reconcile_writeoff(self, cr, uid, ids, context=None):
- data = self.read(cr, uid, ids,context=context)[0]
- context.update({'write_off':data})
+ data = self.read(cr, uid, ids, context=context)[0]
+ context.update({'write_off': data})
self.pool.get('account.invoice.pay').pay_and_reconcile(cr, uid, ids, context=context)
return {}
@@ -60,26 +61,33 @@ class account_invoice_pay(osv.osv_memory):
'date': fields.date('Date payment', required=True),
'journal_id': fields.many2one('account.journal', 'Journal/Payment Mode', required=True, domain=[('type','=','cash')]),
'period_id': fields.many2one('account.period', 'Period', required=True),
- }
+ }
def view_init(self, cr, uid, ids, context=None):
- invoice = self.pool.get('account.invoice').browse(cr, uid, context['active_id'], context=context)
- if invoice.state in ['draft', 'proforma2', 'cancel']:
- raise osv.except_osv(_('Error !'), _('Can not pay draft/proforma/cancel invoice.'))
+ if context is None:
+ context = {}
+ if context.get('active_id', False):
+ invoice = self.pool.get('account.invoice').browse(cr, uid, context['active_id'], context=context)
+ if invoice.state in ['draft', 'proforma2', 'cancel']:
+ raise osv.except_osv(_('Error !'), _('Can not pay draft/proforma/cancel invoice.'))
pass
def _get_period(self, cr, uid, context=None):
- ids = self.pool.get('account.period').find(cr, uid, context=context)
period_id = False
+ ids = self.pool.get('account.period').find(cr, uid, context=context)
if len(ids):
period_id = ids[0]
return period_id
def _get_amount(self, cr, uid, context=None):
- return self.pool.get('account.invoice').browse(cr, uid, context['active_id'], context=context).residual
+ if context is None:
+ context = {}
+ if context.get('active_id', False):
+ return self.pool.get('account.invoice').browse(cr, uid, context['active_id'], context=context).residual
+ return 0.0
_defaults = {
- 'date': lambda *a: time.strftime('%Y-%m-%d'),
+ 'date': time.strftime('%Y-%m-%d'),
'period_id': _get_period,
'amount': _get_amount,
}
@@ -87,10 +95,11 @@ class account_invoice_pay(osv.osv_memory):
def wo_check(self, cr, uid, ids, context=None):
cur_obj = self.pool.get('res.currency')
mod_obj = self.pool.get('ir.model.data')
+ inv_obj = self.pool.get('account.invoice')
if context is None:
context = {}
data = self.read(cr, uid, ids,context=context)[0]
- invoice = self.pool.get('account.invoice').browse(cr, uid, context['active_id'], context)
+ invoice = inv_obj.browse(cr, uid, context['active_id'], context)
journal = self.pool.get('account.journal').browse(cr, uid, data['journal_id'], context)
# Here we need that:
@@ -114,11 +123,11 @@ class account_invoice_pay(osv.osv_memory):
amount_paid = data['amount']
# Get the old payment if there are some
if invoice.payment_ids:
- debit=credit=0.0
+ debit = credit = 0.0
for payment in invoice.payment_ids:
- debit+=payment.debit
- credit+=payment.credit
- amount_paid+=abs(debit-credit)
+ debit += payment.debit
+ credit += payment.credit
+ amount_paid += abs(debit-credit)
# Test if there is a difference according to currency rouding setting
if self.pool.get('res.currency').is_zero(cr, uid, invoice.company_id.currency_id,
@@ -136,10 +145,11 @@ class account_invoice_pay(osv.osv_memory):
'views': [(resource_id,'form')],
'type': 'ir.actions.act_window',
'target': 'new',
- }
+ }
def pay_and_reconcile(self, cr, uid, ids, context=None):
cur_obj = self.pool.get('res.currency')
+ inv_obj = self.pool.get('account.invoice')
if context is None:
context = {}
data = self.read(cr, uid, ids, context=context)[0]
@@ -154,8 +164,8 @@ class account_invoice_pay(osv.osv_memory):
amount = data['amount']
- invoice = self.pool.get('account.invoice').browse(cr, uid, context['active_id'], context)
- journal = self.pool.get('account.journal').browse(cr, uid, data['journal_id'], context)
+ invoice = inv_obj.browse(cr, uid, context['active_id'], context=context)
+ journal = self.pool.get('account.journal').browse(cr, uid, data['journal_id'], context=context)
# Compute the amount in company's currency, with the journal currency (which is equal to payment currency)
# when it is needed : If payment currency (according to selected journal.currency) is <> from company currency
if journal.currency and invoice.company_id.currency_id.id<>journal.currency.id:
@@ -181,7 +191,7 @@ class account_invoice_pay(osv.osv_memory):
acc_id = journal.default_credit_account_id and journal.default_credit_account_id.id
if not acc_id:
raise osv.except_osv(_('Error !'), _('Your journal must have a default credit and debit account.'))
- self.pool.get('account.invoice').pay_and_reconcile(cr, uid, [context['active_id']],
+ inv_obj.pay_and_reconcile(cr, uid, [context['active_id']],
amount, acc_id, data['period_id'], data['journal_id'], writeoff_account_id,
data['period_id'], writeoff_journal_id, context, data['name'])
return {}
diff --git a/addons/account_analytic_analysis/account_analytic_analysis_menu.xml b/addons/account_analytic_analysis/account_analytic_analysis_menu.xml
index 7a7dbff602b..badd7e1816a 100644
--- a/addons/account_analytic_analysis/account_analytic_analysis_menu.xml
+++ b/addons/account_analytic_analysis/account_analytic_analysis_menu.xml
@@ -1,7 +1,7 @@
-
+
All Uninvoiced Entries
@@ -11,7 +11,7 @@
[('invoice_id','=',False),('to_invoice','!=',False)]
-
+
Overpassed Accounts
@@ -20,6 +20,6 @@
tree,form,graph
[('date','<=',time.strftime('%Y-%m-%d')),('state','=','open')]
-
+
diff --git a/addons/account_analytic_analysis/i18n/bg.po b/addons/account_analytic_analysis/i18n/bg.po
index b057727ca67..a2b9fd7ca9c 100644
--- a/addons/account_analytic_analysis/i18n/bg.po
+++ b/addons/account_analytic_analysis/i18n/bg.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:39+0000\n"
+"PO-Revision-Date: 2010-08-16 09:39+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_analysis
diff --git a/addons/account_analytic_analysis/i18n/fi.po b/addons/account_analytic_analysis/i18n/fi.po
index abbb834f2e5..d6cf27f99f1 100644
--- a/addons/account_analytic_analysis/i18n/fi.po
+++ b/addons/account_analytic_analysis/i18n/fi.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:04+0000\n"
+"PO-Revision-Date: 2010-08-16 09:46+0000\n"
"Last-Translator: OpenERP Administrators \n"
"Language-Team: Finnish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_analysis
diff --git a/addons/account_analytic_analysis/i18n/lt.po b/addons/account_analytic_analysis/i18n/lt.po
index 787fcad7484..21c5a530394 100644
--- a/addons/account_analytic_analysis/i18n/lt.po
+++ b/addons/account_analytic_analysis/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:33+0000\n"
+"PO-Revision-Date: 2010-08-16 09:43+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_analysis
diff --git a/addons/account_analytic_analysis/i18n/tr.po b/addons/account_analytic_analysis/i18n/tr.po
index 933647fb3a4..392c905cbbc 100644
--- a/addons/account_analytic_analysis/i18n/tr.po
+++ b/addons/account_analytic_analysis/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:37+0000\n"
+"PO-Revision-Date: 2010-08-16 09:40+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_analysis
diff --git a/addons/account_analytic_default/account_analytic_default_view.xml b/addons/account_analytic_default/account_analytic_default_view.xml
index d49fa04dffb..21ca2d0e4aa 100644
--- a/addons/account_analytic_default/account_analytic_default_view.xml
+++ b/addons/account_analytic_default/account_analytic_default_view.xml
@@ -52,7 +52,7 @@
-
+
Analytic Defaults
account.analytic.default
@@ -81,7 +81,8 @@
id="analytic_rule_action_user"
res_model="account.analytic.default"
src_model="res.users"
- domain="[('user_id','=',active_id)]"/>
+ domain="[('user_id','=',active_id)]"
+ groups="base.group_extended"/>
\n"
+"PO-Revision-Date: 2010-08-16 08:15+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-12 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_default
@@ -21,12 +21,12 @@ msgstr ""
#: model:ir.actions.act_window,name:account_analytic_default.action_analytic_default_form
#: model:ir.ui.menu,name:account_analytic_default.menu_analytic_defaul_form
msgid "Analytic Defaults"
-msgstr ""
+msgstr "Valori predefiniti Conti analitici"
#. module: account_analytic_default
#: model:ir.module.module,shortdesc:account_analytic_default.module_meta_information
msgid "Account Analytic Default"
-msgstr ""
+msgstr "Valori predefiniti Conti Analitici"
#. module: account_analytic_default
#: constraint:ir.ui.view:0
@@ -69,12 +69,12 @@ msgstr "Prodotto"
#. module: account_analytic_default
#: field:account.analytic.default,analytic_id:0
msgid "Analytic Account"
-msgstr ""
+msgstr "Conto analitico"
#. module: account_analytic_default
#: model:ir.model,name:account_analytic_default.model_account_analytic_default
msgid "Analytic Distributions"
-msgstr ""
+msgstr "Distribuzione conto analitico"
#. module: account_analytic_default
#: field:account.analytic.default,user_id:0
@@ -84,7 +84,7 @@ msgstr "Utente"
#. module: account_analytic_default
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr ""
+msgstr "Nome del modulo non valido nella definizione dell'azione."
#. module: account_analytic_default
#: model:ir.actions.act_window,name:account_analytic_default.act_account_acount_move_line_open
diff --git a/addons/account_analytic_default/i18n/lt.po b/addons/account_analytic_default/i18n/lt.po
index d442fd55ebc..f4767166868 100644
--- a/addons/account_analytic_default/i18n/lt.po
+++ b/addons/account_analytic_default/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:38+0000\n"
+"PO-Revision-Date: 2010-08-16 09:40+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_default
diff --git a/addons/account_analytic_default/i18n/nb.po b/addons/account_analytic_default/i18n/nb.po
index 89879a1af0d..59efe797377 100644
--- a/addons/account_analytic_default/i18n/nb.po
+++ b/addons/account_analytic_default/i18n/nb.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:37+0000\n"
-"Last-Translator: FULL NAME \n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
+"Last-Translator: OpenERP Administrators \n"
"Language-Team: Norwegian Bokmal \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_default
diff --git a/addons/account_analytic_default/i18n/tr.po b/addons/account_analytic_default/i18n/tr.po
index d15d776bb02..bb271e66084 100644
--- a/addons/account_analytic_default/i18n/tr.po
+++ b/addons/account_analytic_default/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:33+0000\n"
+"PO-Revision-Date: 2010-08-16 09:40+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_default
diff --git a/addons/account_analytic_plans/account_analytic_plans.py b/addons/account_analytic_plans/account_analytic_plans.py
index 535f9aef601..71031dd6f1c 100644
--- a/addons/account_analytic_plans/account_analytic_plans.py
+++ b/addons/account_analytic_plans/account_analytic_plans.py
@@ -53,7 +53,7 @@ class account_analytic_plan(osv.osv):
'name': fields.char('Analytic Plan', size=64, required=True, select=True,),
'plan_ids': fields.one2many('account.analytic.plan.line','plan_id','Analytic Plans'),
}
-
+
account_analytic_plan()
class account_analytic_plan_line(osv.osv):
@@ -72,7 +72,7 @@ class account_analytic_plan_line(osv.osv):
'min_required': 100.0,
'max_required': 100.0,
}
-
+
account_analytic_plan_line()
class account_analytic_plan_instance(osv.osv):
@@ -168,7 +168,7 @@ class account_analytic_plan_instance(osv.osv):
-
+
"""%(i,tools.to_xml(line.name),tools.to_xml(line.name),line.root_analytic_id and line.root_analytic_id.id or 0)
@@ -189,7 +189,7 @@ class account_analytic_plan_instance(osv.osv):
pids = self.pool.get('account.analytic.plan.instance').search(cr, uid, [('name','=',vals['name']),('code','=',vals['code']),('plan_id','<>',False)])
if pids:
raise osv.except_osv(_('Error'), _('A model having this name and code already exists !'))
-
+
acct_anal_acct = self.pool.get('account.analytic.account')
acct_anal_plan_line_obj = self.pool.get('account.analytic.plan.line')
res = acct_anal_plan_line_obj.search(cr, uid, [('plan_id','=',journal.plan_id.id)])
@@ -256,7 +256,7 @@ class account_journal(osv.osv):
_columns = {
'plan_id':fields.many2one('account.analytic.plan', 'Analytic Plans'),
}
-
+
account_journal()
class account_invoice_line(osv.osv):
@@ -282,7 +282,7 @@ class account_invoice_line(osv.osv):
if rec and rec.analytics_id:
res_prod['value'].update({'analytics_id':rec.analytics_id.id})
return res_prod
-
+
account_invoice_line()
class account_move_line(osv.osv):
@@ -396,7 +396,7 @@ class analytic_default(osv.osv):
_columns = {
'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'),
}
-
+
analytic_default()
class sale_order_line(osv.osv):
@@ -409,7 +409,7 @@ class sale_order_line(osv.osv):
sale_line = self.browse(cr, uid, ids[0], context)
inv_line_obj = self.pool.get('account.invoice.line')
acct_anal_def_obj = self.pool.get('account.analytic.default')
-
+
for line in inv_line_obj.browse(cr, uid, create_ids, context):
rec = acct_anal_def_obj.account_get(cr, uid, line.product_id.id, sale_line.order_id.partner_id.id, uid, time.strftime('%Y-%m-%d'), context)
diff --git a/addons/account_analytic_plans/account_analytic_plans_view.xml b/addons/account_analytic_plans/account_analytic_plans_view.xml
index 722d007373b..ae2b6612a64 100644
--- a/addons/account_analytic_plans/account_analytic_plans_view.xml
+++ b/addons/account_analytic_plans/account_analytic_plans_view.xml
@@ -24,7 +24,7 @@
-
+
@@ -45,7 +45,7 @@
-
+
@@ -60,7 +60,7 @@
form
-
+
@@ -73,7 +73,7 @@
2
-
+
@@ -90,13 +90,13 @@
-
-
+
@@ -140,7 +140,7 @@
@@ -153,7 +153,7 @@
-
+
diff --git a/addons/account_analytic_plans/i18n/it.po b/addons/account_analytic_plans/i18n/it.po
index ab4119a8ce7..6367259395d 100644
--- a/addons/account_analytic_plans/i18n/it.po
+++ b/addons/account_analytic_plans/i18n/it.po
@@ -7,27 +7,27 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:58+0000\n"
-"Last-Translator: eLBati - albatos.com \n"
+"PO-Revision-Date: 2010-08-16 08:32+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_plans
#: field:account.analytic.plan.instance,account4_ids:0
msgid "Account4 Id"
-msgstr ""
+msgstr "ID Conto4"
#. module: account_analytic_plans
#: constraint:ir.model:0
msgid ""
"The Object name must start with x_ and not contain any special character !"
msgstr ""
-"Il nome dell'oggetto deve iniziare per x_ e non deve contenere caratteri "
-"speciali!"
+"Il nome dell'oggetto deve iniziare con x_ e non può contenere caratteri "
+"speciali !"
#. module: account_analytic_plans
#: model:ir.actions.report.xml,name:account_analytic_plans.account_analytic_account_crossovered_analytic
@@ -38,12 +38,12 @@ msgstr ""
#. module: account_analytic_plans
#: field:account.analytic.plan.instance,account5_ids:0
msgid "Account5 Id"
-msgstr "Identificativo di Account5"
+msgstr "ID Conto5"
#. module: account_analytic_plans
#: wizard_field:wizard.crossovered.analytic,init,date2:0
msgid "End Date"
-msgstr "Data fine"
+msgstr "Data finale"
#. module: account_analytic_plans
#: field:account.analytic.plan.instance.line,rate:0
@@ -257,6 +257,36 @@ msgid ""
"for one account entry.\n"
" "
msgstr ""
+"Questo modulo permette di usare molti piani analitici, This module allows to "
+"use several analytic plans, in accordo al Giornale Contabile,\n"
+"così queste linee multiple analitiche sono create quando una fatture, o la "
+"voce, sono confermate.\n"
+"\n"
+"Per esempio, puoi definire la seguente struttura analitica:\n"
+" Progetti\n"
+" Progetto 1\n"
+" Sotto progetto 1.1\n"
+" Sotto progetto 1.2\n"
+" Progetto 2\n"
+" Venditori\n"
+" Eric \n"
+" Fabien\n"
+"\n"
+"Nell'esempio abbiamo due piani: Progetti e Venditori. Una linea dettaglio "
+"della fattura deve essere in grado di scrivere voci di conto analitico in "
+"due piani: Sotto Progetto 1.1 e Fabien. L'importo può essere anche diviso. "
+"Il seguente esempio è relativo ad una fattura che riguarda due sotto "
+"progetti ed è assegnata ad un venditore:\n"
+"\n"
+"Piano conti analitici1:\n"
+" Sotto progetto 1.1: 50%\n"
+" Sotto progetto 1.2: 50%\n"
+"Piano conti analitici 2:\n"
+" Eric: 100%\n"
+"\n"
+"Così, quando le linee/dettagli della fattura sono confermate, verranno "
+"generate 3 linee di conto analitico per una voce di conto.\n"
+" "
#. module: account_analytic_plans
#: model:ir.module.module,shortdesc:account_analytic_plans.module_meta_information
@@ -369,7 +399,7 @@ msgstr "Data di inizio"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
msgid "at"
-msgstr ""
+msgstr "a"
#. module: account_analytic_plans
#: rml:account.analytic.account.crossovered.analytic:0
diff --git a/addons/account_analytic_plans/i18n/lt.po b/addons/account_analytic_plans/i18n/lt.po
index 773fd4b8fe3..a747c6677b9 100644
--- a/addons/account_analytic_plans/i18n/lt.po
+++ b/addons/account_analytic_plans/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:38+0000\n"
+"PO-Revision-Date: 2010-08-16 09:40+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_plans
diff --git a/addons/account_analytic_plans/i18n/tr.po b/addons/account_analytic_plans/i18n/tr.po
index 3d78ef40c51..f3b25c67958 100644
--- a/addons/account_analytic_plans/i18n/tr.po
+++ b/addons/account_analytic_plans/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:14+0000\n"
+"PO-Revision-Date: 2010-08-16 09:38+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_analytic_plans
diff --git a/addons/account_budget/crossovered_budget_view.xml b/addons/account_budget/crossovered_budget_view.xml
index 963644a21e1..30ae45003be 100644
--- a/addons/account_budget/crossovered_budget_view.xml
+++ b/addons/account_budget/crossovered_budget_view.xml
@@ -78,14 +78,14 @@
-
+
-
+
@@ -96,7 +96,7 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -74,7 +82,7 @@
-
+
@@ -182,7 +190,7 @@
- Receivable Vouchers
+ Sales Receipt
account.voucher
form
tree,form,graph
@@ -193,10 +201,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Payable Vouchers
+ Vendor Bills
account.voucher
form
tree,form,graph
@@ -221,19 +243,50 @@
- Vouchers
+ Sales Payments
ir.actions.act_window
account.voucher
form
tree,form
- [('journal_id.type', '=', 'bank')]
+ [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]
{'type':'bank'}
+
+
+
+ Vendor Payment
+ ir.actions.act_window
+ account.voucher
+ form
+ tree,form
+ [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]
+ {'type':'bank'}
+
+
+
+
+
+
+ Cheques
+ ir.actions.act_window
+ account.voucher
+ form
+ tree,form
+ [('journal_id.type', 'in', ['bank']), ('type','=','payment')]
+ {'type':'bank'}
+
+
+
+
-
-
account.journal.form.inherit
account.journal
diff --git a/addons/account_voucher_payment/__openerp__.py b/addons/account_voucher_payment/__openerp__.py
index a48d95bda16..04dc4f08945 100755
--- a/addons/account_voucher_payment/__openerp__.py
+++ b/addons/account_voucher_payment/__openerp__.py
@@ -25,8 +25,8 @@
"description": """Extension Account Voucher module includes allows to link payment / receipt
entries with voucher, also automatically reconcile during the payment and receipt entries
""",
- "category" : "Generic Modules/Indian Accounting",
- "website" : "http://tinyerpindia.com",
+ "category" : "Generic Modules/Accounting",
+ "website" : "http://www.openerp.com",
"depends" : [
"base",
"account",
@@ -43,7 +43,6 @@
],
"test" : [
-# "test/account_voucher.yml",
"test/account_voucher_payment.yml",
],
diff --git a/addons/account_voucher_payment/account_voucher_payment.py b/addons/account_voucher_payment/account_voucher_payment.py
index d8d11e85062..96431de6ffb 100755
--- a/addons/account_voucher_payment/account_voucher_payment.py
+++ b/addons/account_voucher_payment/account_voucher_payment.py
@@ -25,6 +25,34 @@ from tools.translate import _
class account_move(osv.osv):
_inherit = 'account.move'
+ def _get_line_ids(self, cr, uid, ids, context=None):
+ result = {}
+ for line in self.pool.get('account.move.line').browse(cr, uid, ids, context=context):
+ result[line.move_id.id] = True
+ return result.keys()
+
+ def _amount_all(self, cr, uid, ids, name, args, context=None):
+ res = {}
+ for move in self.browse(cr, uid, ids, context=context):
+ rs = {
+ 'reconcile_id': False,
+ }
+ for line in move.line_id:
+ if line.reconcile_id:
+ rs.update({
+ 'reconcile_id': line.reconcile_id.id
+ })
+ res[move.id] = rs
+ return res
+
+ _columns = {
+ 'reconcile_id': fields.function(_amount_all, method=True, type="many2one", relation="account.move.line", string='Reconcile',
+ store={
+ 'account.move.line': (_get_line_ids, [], 20),
+ },
+ multi='all'),
+ }
+
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
"""
Returns a list of ids based on search domain {args}
@@ -70,7 +98,7 @@ account_move_line()
class account_voucher(osv.osv):
_inherit = 'account.voucher'
_columns = {
- 'voucher_line_ids':fields.one2many('account.voucher.line', 'voucher_id', 'Voucher Lines', readonly=True, states={'draft':[('readonly',False)]}),
+ 'payment_ids':fields.one2many('account.voucher.line', 'voucher_id', 'Voucher Lines', readonly=True, states={'draft':[('readonly',False)]}),
}
def action_move_line_create(self, cr, uid, ids, *args):
@@ -153,59 +181,75 @@ class account_voucher(osv.osv):
line_ids += [move_line_pool.create(cr, uid, move_line)]
rec_ids = []
- for line in inv.payment_ids:
- amount=0.0
-
- if inv.type in ('payment'):
- ref = line.ref
-
+ if inv.type == 'sale' and inv.pay_now:
+ #create the payment line manually
move_line = {
- 'name':line.name,
- 'debit':False,
- 'credit':False,
- 'account_id':line.account_id.id or False,
- 'move_id':move_id ,
- 'journal_id':inv.journal_id.id,
- 'period_id':inv.period_id.id,
- 'partner_id':line.partner_id.id or False,
- 'ref':ref,
- 'date':inv.date,
- 'analytic_account_id':False
+ 'name':inv.name,
+ 'debit':inv.pay_amount,
+ 'credit':False,
+ 'account_id':inv.pay_account_id.id or False,
+ 'move_id':move_id ,
+ 'journal_id':inv.pay_journal_id.id,
+ 'period_id':inv.period_id.id,
+ 'partner_id':inv.partner_id.id,
+ 'ref':ref,
+ 'date':inv.date
}
-
- if diff_currency_p:
- amount_currency = currency_pool.compute(cr, uid, inv.currency_id.id, company_currency, line.amount)
- line.amount = amount_currency
- move_line.update({
- 'amount_currency':amount_currency,
- 'currency_id':inv.currency_id.id
- })
-
- if line.account_analytic_id:
- move_line.update({
- 'analytic_account_id':line.account_analytic_id.id
- })
-
- if line.type == 'dr':
- move_line.update({
- 'debit': line.amount or False
- })
- amount = line.amount
-
- elif line.type == 'cr':
- move_line.update({
- 'credit': line.amount or False
- })
- amount = line.amount
-
- move_line_id = move_line_pool.create(cr, uid, move_line)
- line_ids += [move_line_id]
-
- if line.move_id and inv.type in ('payment', 'receipt'):
- rec_ids += [move_line_id]
- for move_line in line.move_id.line_id:
- if line.account_id.id == move_line.account_id.id:
- rec_ids += [move_line.id]
+ line_ids += [move_line_pool.create(cr, uid, move_line)]
+ else:
+ for line in inv.payment_ids:
+ amount=0.0
+
+ if inv.type in ('payment'):
+ ref = line.ref
+
+ move_line = {
+ 'name':line.name,
+ 'debit':False,
+ 'credit':False,
+ 'account_id':line.account_id.id or False,
+ 'move_id':move_id ,
+ 'journal_id':inv.journal_id.id,
+ 'period_id':inv.period_id.id,
+ 'partner_id':line.partner_id.id or False,
+ 'ref':ref,
+ 'date':inv.date,
+ 'analytic_account_id':False
+ }
+
+ if diff_currency_p:
+ amount_currency = currency_pool.compute(cr, uid, inv.currency_id.id, company_currency, line.amount)
+ line.amount = amount_currency
+ move_line.update({
+ 'amount_currency':amount_currency,
+ 'currency_id':inv.currency_id.id
+ })
+
+ if line.account_analytic_id:
+ move_line.update({
+ 'analytic_account_id':line.account_analytic_id.id
+ })
+
+ if line.type == 'dr':
+ move_line.update({
+ 'debit': line.amount or False
+ })
+ amount = line.amount
+
+ elif line.type == 'cr':
+ move_line.update({
+ 'credit': line.amount or False
+ })
+ amount = line.amount
+
+ move_line_id = move_line_pool.create(cr, uid, move_line)
+ line_ids += [move_line_id]
+
+ if line.move_id and inv.type in ('payment', 'receipt'):
+ rec_ids += [move_line_id]
+ for move_line in line.move_id.line_id:
+ if line.account_id.id == move_line.account_id.id:
+ rec_ids += [move_line.id]
if rec_ids:
move_line_pool.reconcile_partial(cr, uid, rec_ids)
@@ -233,8 +277,7 @@ class account_voucher_line(osv.osv):
return data
_columns = {
-# 'invoice_id' : fields.many2one('account.invoice','Invoice'),
- 'move_id' : fields.many2one('account.move','Journal Entry'),
+ 'move_id' : fields.many2one('account.move','Bill / Invoice'),
}
def move_line_get_item(self, cr, uid, line, context={}):
diff --git a/addons/account_voucher_payment/account_voucher_payment_view.xml b/addons/account_voucher_payment/account_voucher_payment_view.xml
index 12715782819..de5d4aa4a8a 100755
--- a/addons/account_voucher_payment/account_voucher_payment_view.xml
+++ b/addons/account_voucher_payment/account_voucher_payment_view.xml
@@ -8,21 +8,21 @@
-
+
-
-
-
-
+
+
+
-
-
+
+
+
-
+
account.move.line.form.inherit
account.move.line
@@ -34,7 +34,7 @@
-
+
account.move.line.form.inherit
account.move.line
@@ -46,7 +46,7 @@
-
+
account.voucher.form
account.voucher
@@ -57,6 +57,6 @@
-
+
diff --git a/addons/analytic/__openerp__.py b/addons/analytic/__openerp__.py
index e0411506dd8..80585ee39da 100644
--- a/addons/analytic/__openerp__.py
+++ b/addons/analytic/__openerp__.py
@@ -19,7 +19,6 @@
#
##############################################################################
-
{
"name" : "Analytic Account",
"version": "1.1",
@@ -37,4 +36,4 @@
'installable': True,
'active': False,
}
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
diff --git a/addons/analytic/analytic.py b/addons/analytic/analytic.py
index 77a881744bc..e5dd9d52ce1 100644
--- a/addons/analytic/analytic.py
+++ b/addons/analytic/analytic.py
@@ -25,19 +25,15 @@ import operator
from osv import fields, osv
import decimal_precision as dp
-#
-# Object definition
-#
-
class account_analytic_account(osv.osv):
_name = 'account.analytic.account'
_description = 'Analytic Account'
- def _compute_currency_for_level_tree(self, cr, uid, ids, ids2, res, context={}):
+ def _compute_currency_for_level_tree(self, cr, uid, ids, ids2, res, context=None):
# Handle multi-currency on each level of analytic account
# This is a refactoring of _balance_calc computation
cr.execute("SELECT a.id, r.currency_id FROM account_analytic_account a INNER JOIN res_company r ON (a.company_id = r.id) where a.id IN %s" , (tuple(ids2),))
- currency= dict(cr.fetchall())
+ currency = dict(cr.fetchall())
res_currency= self.pool.get('res.currency')
for id in ids:
if id not in ids2:
@@ -50,7 +46,7 @@ class account_analytic_account(osv.osv):
else:
res[id] += res.get(child, 0.0)
- cur_obj = res_currency.browse(cr, uid, currency.values(), context)
+ cur_obj = res_currency.browse(cr, uid, currency.values(), context=context)
cur_obj = dict([(o.id, o) for o in cur_obj])
for id in ids:
if id in ids2:
@@ -58,9 +54,10 @@ class account_analytic_account(osv.osv):
return dict([(i, res[i]) for i in ids ])
-
- def _credit_calc(self, cr, uid, ids, name, arg, context={}):
+ def _credit_calc(self, cr, uid, ids, name, arg, context=None):
res = {}
+ if context is None:
+ context = {}
parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)]))
for i in ids:
res.setdefault(i,0.0)
@@ -69,16 +66,18 @@ class account_analytic_account(osv.osv):
return res
where_date = ''
- if context.get('from_date',False):
+ if context.get('from_date', False):
where_date += " AND l.date >= '" + context['from_date'] + "'"
- if context.get('to_date',False):
+ if context.get('to_date', False):
where_date += " AND l.date <= '" + context['to_date'] + "'"
cr.execute("SELECT a.id, COALESCE(SUM(l.amount_currency),0) FROM account_analytic_account a LEFT JOIN account_analytic_line l ON (a.id=l.account_id "+where_date+") WHERE l.amount_currency<0 and a.id IN %s GROUP BY a.id",(tuple(parent_ids),))
r = dict(cr.fetchall())
return self._compute_currency_for_level_tree(cr, uid, ids, parent_ids, r, context)
- def _debit_calc(self, cr, uid, ids, name, arg, context={}):
+ def _debit_calc(self, cr, uid, ids, name, arg, context=None):
res = {}
+ if context is None:
+ context = {}
parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)]))
for i in ids:
res.setdefault(i,0.0)
@@ -92,11 +91,14 @@ class account_analytic_account(osv.osv):
if context.get('to_date',False):
where_date += " AND l.date <= '" + context['to_date'] + "'"
cr.execute("SELECT a.id, COALESCE(SUM(l.amount_currency),0) FROM account_analytic_account a LEFT JOIN account_analytic_line l ON (a.id=l.account_id "+where_date+") WHERE l.amount_currency>0 and a.id IN %s GROUP BY a.id" ,(tuple(parent_ids),))
- r= dict(cr.fetchall())
- return self._compute_currency_for_level_tree(cr, uid, ids, parent_ids, r, context)
+ r = dict(cr.fetchall())
+ return self._compute_currency_for_level_tree(cr, uid, ids, parent_ids, r, context=context)
- def _balance_calc(self, cr, uid, ids, name, arg, context={}):
+ def _balance_calc(self, cr, uid, ids, name, arg, context=None):
res = {}
+ if context is None:
+ context = {}
+
parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)]))
for i in ids:
res.setdefault(i,0.0)
@@ -114,11 +116,14 @@ class account_analytic_account(osv.osv):
for account_id, sum in cr.fetchall():
res[account_id] = sum
- return self._compute_currency_for_level_tree(cr, uid, ids, parent_ids, res, context)
+ return self._compute_currency_for_level_tree(cr, uid, ids, parent_ids, res, context=context)
- def _quantity_calc(self, cr, uid, ids, name, arg, context={}):
+ def _quantity_calc(self, cr, uid, ids, name, arg, context=None):
#XXX must convert into one uom
res = {}
+ if context is None:
+ context = {}
+
parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', ids)]))
for i in ids:
@@ -150,7 +155,7 @@ class account_analytic_account(osv.osv):
res[id] += res.get(child, 0.0)
return dict([(i, res[i]) for i in ids])
- def name_get(self, cr, uid, ids, context={}):
+ def name_get(self, cr, uid, ids, context=None):
if not len(ids):
return []
res = []
@@ -168,13 +173,13 @@ class account_analytic_account(osv.osv):
res = self.name_get(cr, uid, ids)
return dict(res)
- def _get_company_currency(self, cr, uid, ids, field_name, arg, context={}):
+ def _get_company_currency(self, cr, uid, ids, field_name, arg, context=None):
result = {}
for rec in self.browse(cr, uid, ids, context):
result[rec.id] = (rec.company_id.currency_id.id,rec.company_id.currency_id.code) or False
return result
- def _get_account_currency(self, cr, uid, ids, field_name, arg, context={}):
+ def _get_account_currency(self, cr, uid, ids, field_name, arg, context=None):
result=self._get_company_currency(cr, uid, ids, field_name, arg, context={})
return result
@@ -209,19 +214,20 @@ class account_analytic_account(osv.osv):
'currency_id': fields.function(_get_account_currency, method=True, type='many2one', relation='res.currency', string='Account currency', store=True),
}
- def _default_company(self, cr, uid, context={}):
+ def _default_company(self, cr, uid, context=None):
user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
if user.company_id:
return user.company_id.id
return self.pool.get('res.company').search(cr, uid, [('parent_id', '=', False)])[0]
+
_defaults = {
- 'type' : lambda *a : 'normal',
+ 'type' : 'normal',
'company_id': _default_company,
- 'state' : lambda *a : 'open',
+ 'state' : 'open',
'user_id' : lambda self, cr, uid, ctx : uid,
'partner_id': lambda self, cr, uid, ctx: ctx.get('partner_id', False),
'contact_id': lambda self, cr, uid, ctx: ctx.get('contact_id', False),
- 'date_start': lambda *a: time.strftime('%Y-%m-%d')
+ 'date_start': time.strftime('%Y-%m-%d')
}
def check_recursion(self, cr, uid, ids, parent=None):
@@ -238,14 +244,13 @@ class account_analytic_account(osv.osv):
vals['code'] = self.pool.get('ir.sequence').get(cr, uid, 'account.analytic.account')
return super(account_analytic_account, self).create(cr, uid, vals, context=context)
- def copy(self, cr, uid, id, default=None, context={}):
+ def copy(self, cr, uid, id, default=None, context=None):
if not default:
default = {}
default['code'] = False
default['line_ids'] = []
return super(account_analytic_account, self).copy(cr, uid, id, default, context=context)
-
def on_change_parent(self, cr, uid, id, parent_id):
if not parent_id:
return {}
@@ -281,9 +286,9 @@ account_analytic_account()
class account_analytic_line(osv.osv):
_name = 'account.analytic.line'
_description = 'Analytic Line'
- def _amount_currency(self, cr, uid, ids, field_name, arg, context={}):
+ def _amount_currency(self, cr, uid, ids, field_name, arg, context=None):
result = {}
- for rec in self.browse(cr, uid, ids, context):
+ for rec in self.browse(cr, uid, ids, context=context):
cmp_cur_id=rec.company_id.currency_id.id
aa_cur_id=rec.account_id.currency_id.id
# Always provide the amount in currency
@@ -298,14 +303,14 @@ class account_analytic_line(osv.osv):
else:
result[rec.id]=rec.amount
return result
-
- def _get_account_currency(self, cr, uid, ids, field_name, arg, context={}):
+
+ def _get_account_currency(self, cr, uid, ids, field_name, arg, context=None):
result = {}
for rec in self.browse(cr, uid, ids, context):
# Always provide second currency
result[rec.id] = (rec.account_id.currency_id.id,rec.account_id.currency_id.code)
return result
- def _get_account_line(self, cr, uid, ids, context={}):
+ def _get_account_line(self, cr, uid, ids, context=None):
aac_ids = {}
for acc in self.pool.get('account.analytic.account').browse(cr, uid, ids):
aac_ids[acc.id] = True
@@ -337,10 +342,12 @@ class account_analytic_line(osv.osv):
}
_defaults = {
- 'date': lambda *a: time.strftime('%Y-%m-%d'),
+ 'date': time.strftime('%Y-%m-%d'),
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.analytic.line', context=c),
}
+
_order = 'date'
+
account_analytic_line()
-
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
diff --git a/addons/analytic/i18n/it.po b/addons/analytic/i18n/it.po
new file mode 100644
index 00000000000..7a5fd2b7c69
--- /dev/null
+++ b/addons/analytic/i18n/it.po
@@ -0,0 +1,284 @@
+# Italian translation for openobject-addons
+# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
+# This file is distributed under the same license as the openobject-addons package.
+# FIRST AUTHOR , 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: openobject-addons\n"
+"Report-Msgid-Bugs-To: FULL NAME \n"
+"POT-Creation-Date: 2010-06-18 10:59+0000\n"
+"PO-Revision-Date: 2010-08-16 12:38+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \n"
+"Language-Team: Italian \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:01+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: analytic
+#: field:account.analytic.account,child_ids:0
+msgid "Child Accounts"
+msgstr "Conto figlio"
+
+#. module: analytic
+#: help:account.analytic.line,amount_currency:0
+msgid ""
+"The amount expressed in the related account currency if not equal to the "
+"company one."
+msgstr ""
+"L'importo espresso nella valuta del conto non è uguale a quella della "
+"Compagnia"
+
+#. module: analytic
+#: constraint:ir.model:0
+msgid ""
+"The Object name must start with x_ and not contain any special character !"
+msgstr ""
+"Il nome dell'oggetto deve iniziare per x_ e non deve contenere caratteri "
+"speciali!"
+
+#. module: analytic
+#: field:account.analytic.account,name:0
+msgid "Account Name"
+msgstr "Nome del conto"
+
+#. module: analytic
+#: help:account.analytic.line,unit_amount:0
+msgid "Specifies the amount of quantity to count."
+msgstr "Specifica la quantità da sommare"
+
+#. module: analytic
+#: help:account.analytic.line,currency_id:0
+msgid "The related account currency if not equal to the company one."
+msgstr "La relativa valuta del conto non è uguale a quella della Compagnia"
+
+#. module: analytic
+#: model:ir.module.module,description:analytic.module_meta_information
+msgid ""
+"Module for defining analytic accounting object.\n"
+" "
+msgstr ""
+"Modulo per definire gli oggetti dei conti analitici\n"
+" "
+
+#. module: analytic
+#: field:account.analytic.account,state:0
+msgid "State"
+msgstr "Stato"
+
+#. module: analytic
+#: field:account.analytic.account,user_id:0
+msgid "Account Manager"
+msgstr "Gestore Conti"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Draft"
+msgstr "Bozza"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Closed"
+msgstr "Chiuso"
+
+#. module: analytic
+#: field:account.analytic.account,debit:0
+msgid "Debit"
+msgstr "Debito"
+
+#. module: analytic
+#: help:account.analytic.account,state:0
+msgid ""
+"* When an account is created its in 'Draft' state. "
+" \n"
+"* If any associated partner is there, it can be in 'Open' state. "
+" \n"
+"* If any pending balance is there it can be in 'Pending'. "
+" \n"
+"* And finally when all the transactions are over, it can be in 'Close' "
+"state. \n"
+"* The project can be in either if the states 'Template' and 'Running'.\n"
+" If it is template then we can make projects based on the template projects. "
+"If its in 'Running' state it is a normal project. "
+" \n"
+" If it is to be reviewed then the state is 'Pending'.\n"
+" When the project is completed the state is set to 'Done'."
+msgstr ""
+"* Quando un conto è creato è nello stato \"Draft\". "
+" \n"
+"* Se c'è qualche partner associato, puà essere nello stato \"Open\".\n"
+"* Se c'è qualche pendenza può essere in \"Pending\".\n"
+"* E, per conlcudere, quando tutte le transazioni sono finite, può essere "
+"nello stato \"Closed\".\n"
+"* Il progetto può essere in entrambe gli stati \"Template\" e \"Running\".\n"
+"Se è nello stato template, allora possiamo creare progetti basati su di "
+"esso. Se è in \"Running\" state è in progetto normale. Se deve essere "
+"revisionato allora lo stato è \"Pending\".\n"
+"Quando il progetto è completato lo stato è \"Done\"."
+
+#. module: analytic
+#: field:account.analytic.account,type:0
+msgid "Account Type"
+msgstr "Tipo di conto"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Template"
+msgstr "Modello"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Pending"
+msgstr "In sospeso"
+
+#. module: analytic
+#: model:ir.model,name:analytic.model_account_analytic_line
+msgid "Analytic Line"
+msgstr "Linea conto analitico"
+
+#. module: analytic
+#: field:account.analytic.account,description:0
+#: field:account.analytic.line,name:0
+msgid "Description"
+msgstr "Descrizione"
+
+#. module: analytic
+#: help:account.analytic.line,amount:0
+msgid ""
+"Calculated by multiplying the quantity and the price given in the Product's "
+"cost price."
+msgstr ""
+"Calcolato multiplicando la quantità e il prezzo dato nel campo "
+"\"costo/prezzo del prodotto\""
+
+#. module: analytic
+#: field:account.analytic.account,company_id:0
+#: field:account.analytic.line,company_id:0
+msgid "Company"
+msgstr "Compagnia"
+
+#. module: analytic
+#: field:account.analytic.account,quantity_max:0
+msgid "Maximum Quantity"
+msgstr "Quantità massima"
+
+#. module: analytic
+#: field:account.analytic.line,user_id:0
+msgid "User"
+msgstr "Utente"
+
+#. module: analytic
+#: field:account.analytic.account,parent_id:0
+msgid "Parent Analytic Account"
+msgstr "Conto Analitico padre"
+
+#. module: analytic
+#: field:account.analytic.line,date:0
+msgid "Date"
+msgstr "Data"
+
+#. module: analytic
+#: field:account.analytic.account,currency_id:0
+#: field:account.analytic.line,currency_id:0
+msgid "Account currency"
+msgstr "Valuta del Conto"
+
+#. module: analytic
+#: selection:account.analytic.account,type:0
+msgid "View"
+msgstr "Visualizza"
+
+#. module: analytic
+#: help:account.analytic.account,quantity_max:0
+msgid "Sets the higher limit of quantity of hours."
+msgstr "Imposta il limite superiore della quantità di ore"
+
+#. module: analytic
+#: field:account.analytic.account,credit:0
+msgid "Credit"
+msgstr "Credito"
+
+#. module: analytic
+#: field:account.analytic.line,amount:0
+msgid "Amount"
+msgstr "Importo"
+
+#. module: analytic
+#: field:account.analytic.account,contact_id:0
+msgid "Contact"
+msgstr "Contatto"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Cancelled"
+msgstr "Cancellato"
+
+#. module: analytic
+#: field:account.analytic.account,balance:0
+msgid "Balance"
+msgstr "Saldo"
+
+#. module: analytic
+#: field:account.analytic.account,date_start:0
+msgid "Date Start"
+msgstr "Data Inizio"
+
+#. module: analytic
+#: field:account.analytic.account,quantity:0
+#: field:account.analytic.line,unit_amount:0
+msgid "Quantity"
+msgstr "Quantità"
+
+#. module: analytic
+#: field:account.analytic.account,date:0
+msgid "Date End"
+msgstr "Data Fine"
+
+#. module: analytic
+#: field:account.analytic.account,code:0
+msgid "Account Code"
+msgstr "Codifica Conto"
+
+#. module: analytic
+#: selection:account.analytic.account,type:0
+msgid "Normal"
+msgstr "Normale"
+
+#. module: analytic
+#: field:account.analytic.account,complete_name:0
+msgid "Full Account Name"
+msgstr "Nome Conto completa"
+
+#. module: analytic
+#: field:account.analytic.line,account_id:0
+#: model:ir.model,name:analytic.model_account_analytic_account
+#: model:ir.module.module,shortdesc:analytic.module_meta_information
+msgid "Analytic Account"
+msgstr "Conto Analitico"
+
+#. module: analytic
+#: field:account.analytic.account,company_currency_id:0
+msgid "Currency"
+msgstr "Valuta"
+
+#. module: analytic
+#: field:account.analytic.line,amount_currency:0
+msgid "Amount currency"
+msgstr "Importo valuta"
+
+#. module: analytic
+#: field:account.analytic.account,partner_id:0
+msgid "Associated Partner"
+msgstr "Partner associato"
+
+#. module: analytic
+#: selection:account.analytic.account,state:0
+msgid "Open"
+msgstr "Aperto"
+
+#. module: analytic
+#: field:account.analytic.account,line_ids:0
+msgid "Analytic Entries"
+msgstr "Voci Conto Analitico"
diff --git a/addons/analytic_journal_billing_rate/i18n/it.po b/addons/analytic_journal_billing_rate/i18n/it.po
index 800c261112b..b718cf82988 100644
--- a/addons/analytic_journal_billing_rate/i18n/it.po
+++ b/addons/analytic_journal_billing_rate/i18n/it.po
@@ -7,24 +7,24 @@ 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 08:33+0000\n"
-"Last-Translator: Fabien (Open ERP) \n"
+"PO-Revision-Date: 2010-08-16 10:21+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-12 04:04+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: analytic_journal_billing_rate
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
-msgstr "XML non valido per Visualizzazione Architettura!"
+msgstr "XML non valido per Visualizzare l'architettura!"
#. module: analytic_journal_billing_rate
#: field:analytic_journal_rate_grid,journal_id:0
msgid "Analytic Journal"
-msgstr ""
+msgstr "Giornale conti analitici"
#. module: analytic_journal_billing_rate
#: constraint:ir.model:0
@@ -37,29 +37,29 @@ msgstr ""
#. module: analytic_journal_billing_rate
#: view:analytic_journal_rate_grid:0
msgid "Billing Rate per Journal for this Analytic Account"
-msgstr ""
+msgstr "Tasso di fatturazione per Giornale per questo Conto Analitico"
#. module: analytic_journal_billing_rate
#: field:analytic_journal_rate_grid,account_id:0
msgid "Analytic Account"
-msgstr ""
+msgstr "Conto analitico"
#. module: analytic_journal_billing_rate
#: model:ir.model,name:analytic_journal_billing_rate.model_analytic_journal_rate_grid
msgid "Relation table between journals and billing rates"
-msgstr ""
+msgstr "Tabella di relazione tra Giornali e tassi di fatturazione"
#. module: analytic_journal_billing_rate
#: field:account.analytic.account,journal_rate_ids:0
msgid "Invoicing Rate per Journal"
-msgstr ""
+msgstr "Tasso di fatturazione diviso per Giornale"
#. module: analytic_journal_billing_rate
#: model:ir.module.module,shortdesc:analytic_journal_billing_rate.module_meta_information
msgid "Analytic Journal Billing Rate"
-msgstr ""
+msgstr "Giornale Conti Analitici Tasso di fatturazione"
#. module: analytic_journal_billing_rate
#: field:analytic_journal_rate_grid,rate_id:0
msgid "Invoicing Rate"
-msgstr ""
+msgstr "Tasso di fatturazione"
diff --git a/addons/analytic_journal_billing_rate/i18n/tr.po b/addons/analytic_journal_billing_rate/i18n/tr.po
index 0e220211353..e3dffbd8ad8 100644
--- a/addons/analytic_journal_billing_rate/i18n/tr.po
+++ b/addons/analytic_journal_billing_rate/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:06+0000\n"
+"PO-Revision-Date: 2010-08-16 09:25+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: analytic_journal_billing_rate
diff --git a/addons/analytic_user_function/i18n/tr.po b/addons/analytic_user_function/i18n/tr.po
index a9194ca901d..6ed3c723ff4 100644
--- a/addons/analytic_user_function/i18n/tr.po
+++ b/addons/analytic_user_function/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:08+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: analytic_user_function
diff --git a/addons/auction/auction.py b/addons/auction/auction.py
index f6aebbb5077..0014edada56 100644
--- a/addons/auction/auction.py
+++ b/addons/auction/auction.py
@@ -618,7 +618,7 @@ class auction_lots(osv.osv):
'price_unit': lot.obj_price,
}
inv_line_obj.create(cr, uid, inv_line, context)
- inv_ref.button_compute(cr, uid, invoice.values())
+ inv_ref.button_compute(cr, uid, invoices.values())
wf_service.trg_validate(uid, 'account.invoice', inv_id, 'invoice_proforma2', cr)
return invoices.values()
diff --git a/addons/auction/auction_view.xml b/addons/auction/auction_view.xml
index 20b6dede1f6..648d8f271e8 100644
--- a/addons/auction/auction_view.xml
+++ b/addons/auction/auction_view.xml
@@ -5,9 +5,9 @@
-
+
-
+
auction.artists.tree
auction.artists
@@ -42,9 +42,9 @@
-
-
-
+
+
+
auction.lot.category.tree
auction.lot.category
@@ -55,7 +55,7 @@
-
+
auction.lot.category.form
auction.lot.category
@@ -71,17 +71,17 @@
-
+
auction.lot.category
form
-
+
-
+
-
+
Auction dates
auction.dates
@@ -95,7 +95,7 @@
-
+
Auction dates
auction.dates
@@ -122,8 +122,8 @@
-
-
+
+
@@ -194,7 +194,7 @@
Auctions
auction.dates
form
- tree,form,calendar
+ tree,form,calendar
{"search_default_draft": "1"}
@@ -208,8 +208,8 @@
-
-
+
+
Auction lots
auction.lots
@@ -246,13 +246,13 @@
-
-
+
+
-
+
@@ -295,7 +295,7 @@
-
+
@@ -306,7 +306,7 @@
-
+
@@ -314,8 +314,8 @@
-
-
+
+
@@ -358,7 +358,7 @@
-
+
@@ -373,7 +373,7 @@
-
+
Auction Lots search
auction.lots
@@ -416,9 +416,9 @@
-
-
-
+
+
+
Auction lots
auction.lots
@@ -440,9 +440,9 @@
{"search_default_draft": "1"}
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -543,7 +543,7 @@
-
+
Deposit border
auction.deposit
@@ -569,7 +569,7 @@
+ context="{'group_by':'date_dep'}"/>
@@ -603,7 +603,7 @@
-
+
auction.bid_line.tree1
auction.bid_line
@@ -617,7 +617,7 @@
-
+
auction.bid_line.form1
auction.bid_line
@@ -708,7 +708,7 @@
-
+
-
-
+
+
diff --git a/addons/auction/i18n/lt.po b/addons/auction/i18n/lt.po
index 4bc61765ff8..675f8a7f893 100644
--- a/addons/auction/i18n/lt.po
+++ b/addons/auction/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:06+0000\n"
+"PO-Revision-Date: 2010-08-16 09:38+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: auction
diff --git a/addons/auction/i18n/nl.po b/addons/auction/i18n/nl.po
index a40b6a9bd05..2eeb193b763 100644
--- a/addons/auction/i18n/nl.po
+++ b/addons/auction/i18n/nl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:52+0000\n"
+"PO-Revision-Date: 2010-08-16 09:42+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: auction
diff --git a/addons/auction/i18n/tr.po b/addons/auction/i18n/tr.po
index c1b77212112..029a2d4b4af 100644
--- a/addons/auction/i18n/tr.po
+++ b/addons/auction/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:08+0000\n"
+"PO-Revision-Date: 2010-08-16 09:41+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: auction
diff --git a/addons/auction/report/lots_list_landscape.py b/addons/auction/report/lots_list_landscape.py
index d85e375a8ef..84762fb8b05 100644
--- a/addons/auction/report/lots_list_landscape.py
+++ b/addons/auction/report/lots_list_landscape.py
@@ -23,7 +23,7 @@ import pooler
import time
from report import report_sxw
-class lots_list_llandscape(report_sxw.rml_parse):
+class lots_list_landscape(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(lots_list_landscape, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
diff --git a/addons/auction/wizard/auction_aie_send.py b/addons/auction/wizard/auction_aie_send.py
index 238f9923677..8eb392210a9 100644
--- a/addons/auction/wizard/auction_aie_send.py
+++ b/addons/auction/wizard/auction_aie_send.py
@@ -22,12 +22,13 @@
#
# Does not properly work concurrently !!!
#
-import base64
-import mimetypes
-import httplib
-import threading
-from tools.translate import _
from osv import fields,osv
+from tools.translate import _
+import base64
+import httplib
+import mimetypes
+import netsvc
+import threading
class auction_lots_send_aie(osv.osv_memory):
_name = 'auction.lots.send.aie'
@@ -146,7 +147,7 @@ class auction_lots_send_aie(osv.osv_memory):
if len(datas):
bin = base64.decodestring(datas[0]['image'])
fname = datas[0]['name']
- _photo_bin_send(uname, passwd, ref, did, fname, bin)
+ self._photo_bin_send(uname, passwd, ref, did, fname, bin)
def get_dates(self, cr, uid, ids, context={}):
import httplib
diff --git a/addons/auction/wizard/auction_lots_buyer_map.py b/addons/auction/wizard/auction_lots_buyer_map.py
index c0d9e271e8e..23279942965 100644
--- a/addons/auction/wizard/auction_lots_buyer_map.py
+++ b/addons/auction/wizard/auction_lots_buyer_map.py
@@ -19,9 +19,10 @@
#
##############################################################################
+from osv import osv,fields
+from tools.translate import _
import netsvc
import sql_db
-from osv import osv,fields
class wiz_auc_lots_buyer_map(osv.osv_memory):
_name = 'auction.lots.buyer_map'
diff --git a/addons/auction/wizard/auction_lots_sms_send.py b/addons/auction/wizard/auction_lots_sms_send.py
index 09dabd291ab..094ecea1ca2 100644
--- a/addons/auction/wizard/auction_lots_sms_send.py
+++ b/addons/auction/wizard/auction_lots_sms_send.py
@@ -48,7 +48,7 @@ class auction_lots_sms_send(osv.osv_memory):
lot_obj = self.pool.get('auction.lots')
partner_obj = self.pool.get('res.partner')
partner_address_obj = self.pool.get('res.partner.address')
- for datas in self.read(cr, uid, ids):
+ for data in self.read(cr, uid, ids):
lots = lot_obj.read(cr, uid, context['active_ids'], ['obj_num','obj_price','ach_uid'])
res = partner_obj.read(cr, uid, [l['ach_uid'][0] for l in lots if l['ach_uid']], ['gsm'], context)
diff --git a/addons/auction/wizard/auction_transfer_unsold_object.py b/addons/auction/wizard/auction_transfer_unsold_object.py
index 73095b3433d..d2b38811daa 100644
--- a/addons/auction/wizard/auction_transfer_unsold_object.py
+++ b/addons/auction/wizard/auction_transfer_unsold_object.py
@@ -28,16 +28,7 @@ class auction_transfer_unsold_object(osv.osv):
'''
_name = 'auction.transfer.unsold.object'
_description = 'To transfer unsold objects'
-
- _columns = {
- 'auction_id_from':fields.many2one('auction.dates', 'From Auction Date', required=True),
- 'auction_id_to':fields.many2one('auction.dates', 'To Auction Date', required=True),
- }
- _defaults = {
- 'auction_id_from': _start,
- }
-
def _start(self, cr, uid, context):
"""
To initialize auction_id_from
@@ -52,7 +43,16 @@ class auction_transfer_unsold_object(osv.osv):
rec = lots_obj.browse(cr, uid, context['active_id'], context)
auction_from = rec and rec.auction_id.id or False
return auction_from
+
+ _columns = {
+ 'auction_id_from':fields.many2one('auction.dates', 'From Auction Date', required=True),
+ 'auction_id_to':fields.many2one('auction.dates', 'To Auction Date', required=True),
+ }
+ _defaults = {
+ 'auction_id_from': _start,
+ }
+
def transfer_unsold_object(self, cr, uid, ids, context):
"""
To Transfer the unsold object
diff --git a/addons/audittrail/i18n/lt.po b/addons/audittrail/i18n/lt.po
index dc7c79df028..876ad4de4a0 100644
--- a/addons/audittrail/i18n/lt.po
+++ b/addons/audittrail/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:07+0000\n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: audittrail
diff --git a/addons/audittrail/i18n/tr.po b/addons/audittrail/i18n/tr.po
index 3256c1d8baa..e230156d640 100644
--- a/addons/audittrail/i18n/tr.po
+++ b/addons/audittrail/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:13+0000\n"
+"PO-Revision-Date: 2010-08-16 09:24+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: audittrail
diff --git a/addons/audittrail/i18n/zh_CN.po b/addons/audittrail/i18n/zh_CN.po
index c3cfe46a1d6..47adc2ecdcd 100644
--- a/addons/audittrail/i18n/zh_CN.po
+++ b/addons/audittrail/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:21+0000\n"
+"PO-Revision-Date: 2010-08-16 09:02+0000\n"
"Last-Translator: Black Jack \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: audittrail
diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py
index 7bb7d61d8ee..a0d578dffce 100644
--- a/addons/base_calendar/base_calendar.py
+++ b/addons/base_calendar/base_calendar.py
@@ -1441,13 +1441,14 @@ true, it will allow you to hide the event alarm information without removing it.
data = self.read(cr, uid, event_id, ['date', 'date_deadline', \
'rrule', 'duration'])
if data.get('rrule'):
- vals.update({
+ data.update({
'recurrent_uid': real_event_id,
'recurrent_id': data.get('date'),
'rrule_type': 'none',
'rrule': ''
})
- new_id = self.copy(cr, uid, real_event_id, default=vals, context=context)
+ data.update(vals)
+ new_id = self.copy(cr, uid, real_event_id, default=data, context=context)
context.update({'active_id': new_id, 'active_ids': [new_id]})
continue
if not real_event_id in new_ids:
diff --git a/addons/base_calendar/security/ir.model.access.csv b/addons/base_calendar/security/ir.model.access.csv
index f54b3f0470b..aa269e9ff18 100644
--- a/addons/base_calendar/security/ir.model.access.csv
+++ b/addons/base_calendar/security/ir.model.access.csv
@@ -1,6 +1,6 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
-"access_calendar_attendee","calendar.attendee","model_calendar_attendee","base.group_system",1,1,1,1
-"access_calendar_alarm","calendar.alarm","model_calendar_alarm","base.group_system",1,1,1,1
-"access_res_alarm","res.alarm","model_res_alarm","base.group_system",1,1,1,1
-"access_calendar_todo","calendar.todo","model_calendar_todo","base.group_system",1,1,1,1
-"access_calendar_event","calendar.event.user","model_calendar_event","base.group_system",1,1,1,1
+"access_calendar_attendee","calendar.attendee","model_calendar_attendee","base.group_user",1,1,1,1
+"access_calendar_alarm","calendar.alarm","model_calendar_alarm","base.group_user",1,1,1,1
+"access_res_alarm","res.alarm","model_res_alarm","base.group_user",1,1,1,1
+"access_calendar_todo","calendar.todo","model_calendar_todo","base.group_user",1,1,1,1
+"access_calendar_event","calendar.event","model_calendar_event","base.group_user",1,1,1,1
diff --git a/addons/base_contact/i18n/it.po b/addons/base_contact/i18n/it.po
index f2a311d22cd..078c85c0521 100644
--- a/addons/base_contact/i18n/it.po
+++ b/addons/base_contact/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-03 01:02+0000\n"
-"Last-Translator: mga (Open ERP) \n"
+"PO-Revision-Date: 2010-08-16 08:49+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-12 03:49+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_contact
@@ -137,7 +137,7 @@ msgstr "Fuinzioni Contatto"
#. module: base_contact
#: model:ir.module.module,shortdesc:base_contact.module_meta_information
msgid "Base Contact"
-msgstr ""
+msgstr "Contatto base"
#. module: base_contact
#: help:res.partner.job,sequence_partner:0
@@ -199,7 +199,7 @@ msgstr "Categorie"
#. module: base_contact
#: field:res.partner.contact,function_id:0
msgid "Main Function"
-msgstr ""
+msgstr "Fuzione principale"
#. module: base_contact
#: model:process.transition,note:base_contact.process_transition_partnertoaddress0
@@ -214,7 +214,7 @@ msgstr "XML non valido per Visualizzazione Architettura!"
#. module: base_contact
#: model:process.process,name:base_contact.process_process_basecontactprocess0
msgid "Base Contact Process"
-msgstr ""
+msgstr "Processo Contatto base"
#. module: base_contact
#: view:res.partner.contact:0
@@ -234,7 +234,7 @@ msgstr "Cellulare"
#. module: base_contact
#: help:res.partner.job,extension:0
msgid "Internal/External extension phone number"
-msgstr ""
+msgstr "Estensione Interna/Esterna numero di telefono"
#. module: base_contact
#: model:process.node,note:base_contact.process_node_contacts0
diff --git a/addons/base_contact/i18n/lt.po b/addons/base_contact/i18n/lt.po
index 707fc85fd26..439154d10b2 100644
--- a/addons/base_contact/i18n/lt.po
+++ b/addons/base_contact/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:18+0000\n"
+"PO-Revision-Date: 2010-08-16 09:38+0000\n"
"Last-Translator: Giedrius Slavinskas \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: lt\n"
diff --git a/addons/base_contact/i18n/tr.po b/addons/base_contact/i18n/tr.po
index 6e088f027cc..30192c4a008 100644
--- a/addons/base_contact/i18n/tr.po
+++ b/addons/base_contact/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:53+0000\n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_contact
diff --git a/addons/base_contact/i18n/zh_CN.po b/addons/base_contact/i18n/zh_CN.po
index a1723bf1709..c6b091b5110 100644
--- a/addons/base_contact/i18n/zh_CN.po
+++ b/addons/base_contact/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:53+0000\n"
+"PO-Revision-Date: 2010-08-16 09:45+0000\n"
"Last-Translator: Black Jack \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_contact
diff --git a/addons/base_iban/i18n/tr.po b/addons/base_iban/i18n/tr.po
index 9b6bb7a675a..3579267a6a6 100644
--- a/addons/base_iban/i18n/tr.po
+++ b/addons/base_iban/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:48+0000\n"
+"PO-Revision-Date: 2010-08-16 09:45+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_iban
diff --git a/addons/base_module_quality/i18n/tr.po b/addons/base_module_quality/i18n/tr.po
index 11a53fe3705..a6b4185126f 100644
--- a/addons/base_module_quality/i18n/tr.po
+++ b/addons/base_module_quality/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:58+0000\n"
+"PO-Revision-Date: 2010-08-16 09:39+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_module_quality
diff --git a/addons/base_module_record/base_module_record.py b/addons/base_module_record/base_module_record.py
index 9eb3f2eda7f..e012bb79d9b 100644
--- a/addons/base_module_record/base_module_record.py
+++ b/addons/base_module_record/base_module_record.py
@@ -541,29 +541,28 @@ class base_module_record(osv.osv):
else:
continue
if self.mode == "workflow":
- record= self._generate_object_yaml(cr, uid, rec[1],rec[0])
- yaml_file+="!comment Performing a workflow action %s on module %s"%(record['action'], record['model']) + '''\n'''
- object=yaml.load(unicode('''\n !workflow %s \n'''%record,'iso-8859-1'))
- attrs=attrs.replace("''", '"')
+ record = self._generate_object_yaml(cr, uid, rec[1],rec[0])
+ yaml_file += "!comment Performing a workflow action %s on module %s"%(record['action'], record['model']) + '''\n'''
+ object = yaml.load(unicode('''\n !workflow %s \n'''%record,'iso-8859-1'))
yaml_file += str(object) + '''\n\n'''
elif self.mode == 'osv_memory_action':
- osv_action= self._generate_function_yaml(cr, uid, rec[1])
- yaml_file+="!comment Performing an osv_memory action %s on module %s"%(osv_action['action'], osv_action['model']) + '''\n'''
- osv_action=yaml.load(unicode('''\n !python %s \n'''%osv_action,'iso-8859-1'))
+ osv_action = self._generate_function_yaml(cr, uid, rec[1])
+ yaml_file += "!comment Performing an osv_memory action %s on module %s"%(osv_action['action'], osv_action['model']) + '''\n'''
+ osv_action = yaml.load(unicode('''\n !python %s \n'''%osv_action,'iso-8859-1'))
yaml_file += str(osv_action) + '''\n'''
- attrs=yaml.dump(osv_action.attrs, default_flow_style=False)
- attrs=attrs.replace("''", '"')
- attrs=attrs.replace("'", '')
+ attrs = yaml.dump(osv_action.attrs, default_flow_style=False)
+ attrs = attrs.replace("''", '"')
+ attrs = attrs.replace("'", '')
yaml_file += attrs + '''\n\n'''
else:
- record= self._generate_object_yaml(cr, uid, rec[1], rec[3])
+ record = self._generate_object_yaml(cr, uid, rec[1], rec[3])
if self.mode == "create" or self.mode == "copy":
- yaml_file+="!comment Creating a %s record"%(record['model']) + '''\n'''
+ yaml_file += "!comment Creating a %s record"%(record['model']) + '''\n'''
else:
- yaml_file+="!comment Modifying a %s record"%(record['model']) + '''\n'''
- object= yaml.load(unicode('''\n !record %s \n'''%record,'iso-8859-1'))
+ yaml_file += "!comment Modifying a %s record"%(record['model']) + '''\n'''
+ 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)
+ attrs = yaml.dump(object.attrs, default_flow_style=False)
yaml_file += attrs + '''\n\n'''
yaml_result=''''''
diff --git a/addons/base_module_record/i18n/tr.po b/addons/base_module_record/i18n/tr.po
index 3f37b5a7f91..075701e5db4 100644
--- a/addons/base_module_record/i18n/tr.po
+++ b/addons/base_module_record/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:10+0000\n"
+"PO-Revision-Date: 2010-08-16 09:24+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_module_record
diff --git a/addons/base_report_creator/i18n/tr.po b/addons/base_report_creator/i18n/tr.po
index 0790226e2d6..185851e6a0d 100644
--- a/addons/base_report_creator/i18n/tr.po
+++ b/addons/base_report_creator/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:53+0000\n"
+"PO-Revision-Date: 2010-08-16 09:39+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_report_creator
diff --git a/addons/base_report_designer/i18n/it.po b/addons/base_report_designer/i18n/it.po
index 5398de5985a..0361b89abed 100644
--- a/addons/base_report_designer/i18n/it.po
+++ b/addons/base_report_designer/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\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 15:14+0000\n"
-"Last-Translator: Fabien (Open ERP) \n"
+"PO-Revision-Date: 2010-08-16 08:37+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-12 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_report_designer
@@ -54,7 +54,7 @@ msgstr "Il tuo Report è stato modificato"
#. module: base_report_designer
#: model:ir.module.module,shortdesc:base_report_designer.module_meta_information
msgid "Report designer interface module"
-msgstr ""
+msgstr "Modulo interfaccia di \"Report Designer\""
#. module: base_report_designer
#: wizard_field:base_report_designer.modify,get_form,report_id:0
diff --git a/addons/base_report_designer/i18n/tr.po b/addons/base_report_designer/i18n/tr.po
index 1b68ffe524f..9fa19d23c28 100644
--- a/addons/base_report_designer/i18n/tr.po
+++ b/addons/base_report_designer/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:46+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_report_designer
diff --git a/addons/base_report_designer/wizard/tiny_sxw2rml/tiny_sxw2rml.py b/addons/base_report_designer/wizard/tiny_sxw2rml/tiny_sxw2rml.py
index c534c5f2c5d..661ea44708a 100644
--- a/addons/base_report_designer/wizard/tiny_sxw2rml/tiny_sxw2rml.py
+++ b/addons/base_report_designer/wizard/tiny_sxw2rml/tiny_sxw2rml.py
@@ -44,6 +44,7 @@ import zipfile
import xml.dom.minidom
from reportlab.lib.units import toLength
import base64
+import copy
class DomApiGeneral:
"""General DOM API utilities."""
diff --git a/addons/base_setup/__init__.py b/addons/base_setup/__init__.py
index 1fa2e7c6557..80680b6615e 100644
--- a/addons/base_setup/__init__.py
+++ b/addons/base_setup/__init__.py
@@ -47,7 +47,7 @@ class base_setup_config_choice(osv.osv_memory):
user_obj = self.pool.get('res.users')
user_ids = user_obj.search(cr, uid, [])
users = user_obj.browse(cr, uid, user_ids)
- user_str = '\n'.join(map(lambda x: ' - %s:\n\t\tLogin: %s \n\t\tPassword:%s' % (x.name, x.login, x.password), users))
+ user_str = '\n'.join(map(lambda x: ' - %s :\n\t\tLogin : %s \n\t\tPassword : %s' % (x.name, x.login, x.password), users))
return _('The following users have been installed : \n')+ user_str
_columns = {
diff --git a/addons/base_setup/i18n/tr.po b/addons/base_setup/i18n/tr.po
index c8eb9277733..3af9e68b714 100644
--- a/addons/base_setup/i18n/tr.po
+++ b/addons/base_setup/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:21+0000\n"
+"PO-Revision-Date: 2010-08-16 09:41+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:44+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_setup
diff --git a/addons/base_vat/i18n/it.po b/addons/base_vat/i18n/it.po
index edd2a5e36d9..d15a7c98181 100644
--- a/addons/base_vat/i18n/it.po
+++ b/addons/base_vat/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-03 03:16+0000\n"
-"Last-Translator: eLBati - albatos.com \n"
+"PO-Revision-Date: 2010-08-16 08:51+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-12 03:49+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_vat
@@ -31,7 +31,7 @@ msgstr "XML non valido per Visualizzazione Architettura!"
#. module: base_vat
#: field:res.partner,vat_subjected:0
msgid "VAT Legal Statement"
-msgstr "Soggetto a IVA"
+msgstr "Soggetto a dichiarazione IVA"
#. module: base_vat
#: model:ir.module.module,shortdesc:base_vat.module_meta_information
diff --git a/addons/base_vat/i18n/tr.po b/addons/base_vat/i18n/tr.po
index cc79ea99cd9..244898701aa 100644
--- a/addons/base_vat/i18n/tr.po
+++ b/addons/base_vat/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:46+0000\n"
+"PO-Revision-Date: 2010-08-16 09:43+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_vat
diff --git a/addons/board/i18n/it.po b/addons/board/i18n/it.po
index a2845126519..a949be62f1e 100644
--- a/addons/board/i18n/it.po
+++ b/addons/board/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-03 03:21+0000\n"
-"Last-Translator: mga (Open ERP) \n"
+"PO-Revision-Date: 2010-08-16 08:55+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-12 04:02+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: board
@@ -32,7 +32,7 @@ msgstr "board.board"
#. module: board
#: field:board.note,user_id:0
msgid "Author"
-msgstr "Autore"
+msgstr "Mittente"
#. module: board
#: model:ir.module.module,shortdesc:board.module_meta_information
@@ -43,7 +43,7 @@ msgstr "Modulo principale cruscotti"
#: view:board.note:0
#: field:board.note,note:0
msgid "Note"
-msgstr "Nota"
+msgstr "Appunto"
#. module: board
#: field:board.board.line,width:0
@@ -53,7 +53,7 @@ msgstr "Larghezza"
#. module: board
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr "Nome del modulo non valido nella definizione dell'azione."
+msgstr ""
#. module: board
#: field:board.board.line,name:0
diff --git a/addons/board/i18n/tr.po b/addons/board/i18n/tr.po
index 51154063c26..78c9c57fd0a 100644
--- a/addons/board/i18n/tr.po
+++ b/addons/board/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:27+0000\n"
+"PO-Revision-Date: 2010-08-16 09:41+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: board
diff --git a/addons/caldav/calendar.py b/addons/caldav/calendar.py
index b4f7c03e5aa..0839d46e6fc 100644
--- a/addons/caldav/calendar.py
+++ b/addons/caldav/calendar.py
@@ -75,9 +75,9 @@ def uid2openobjectid(cr, uidval, oomodel, rdate):
return (False, None)
def openobjectid2uid(cr, uidval, oomodel):
- """ Open Object Id To UId
+ """ Gives the value of UID for VEVENT
@param cr: the current row, from the database cursor,
- @param uidval: Get USerId vale
+ @param uidval: Id value of the Event
@oomodel: Open Object ModelName """
value = 'OpenObject-%s_%s@%s' % (oomodel, uidval, cr.dbname)
@@ -322,11 +322,9 @@ class CalDAV(object):
continue
if cal_data.name.lower() in self.__attribute__:
if cal_data.params.get('X-VOBJ-ORIGINAL-TZID'):
- # since we do convert, do we also need to save the original tzid?
- # self.ical_set('vtimezone', cal_data.params.get('X-VOBJ-ORIGINAL-TZID'), 'value')
-
- date_local = cal_data.value.astimezone(_server_tzinfo)
- self.ical_set(cal_data.name.lower(), date_local, 'value')
+ self.ical_set('vtimezone', cal_data.params.get('X-VOBJ-ORIGINAL-TZID'), 'value')
+ date_utc = cal_data.value.astimezone(pytz.utc)
+ self.ical_set(cal_data.name.lower(), date_utc, 'value')
continue
self.ical_set(cal_data.name.lower(), cal_data.value, 'value')
vals = map_data(cr, uid, self, context=context)
@@ -456,9 +454,16 @@ class CalDAV(object):
recur_pool = {}
try:
for val in vals:
- exists, r_id = uid2openobjectid(cr, val['id'], context.get('model'), \
+ # Compute value of duration
+ if 'date_deadline' in val and 'duration' not in val:
+ start = datetime.strptime(val['date'], '%Y-%m-%d %H:%M:%S')
+ end = datetime.strptime(val['date_deadline'], '%Y-%m-%d %H:%M:%S')
+ diff = end - start
+ val['duration'] = (diff.seconds/float(86400) + diff.days) * 24
+ exists, r_id = calendar.uid2openobjectid(cr, val['id'], context.get('model'), \
val.get('recurrent_id'))
- if val.has_key('create_date'): val.pop('create_date')
+ if val.has_key('create_date'):
+ val.pop('create_date')
u_id = val.get('id', None)
val.pop('id')
if exists and r_id:
@@ -474,6 +479,11 @@ class CalDAV(object):
revent_id = model_obj.create(cr, uid, val)
ids.append(revent_id)
else:
+ __rege = re.compile(r'OpenObject-([\w|\.]+)_([0-9]+)@(\w+)$')
+ wematch = __rege.match(u_id.encode('utf8'))
+ if wematch:
+ model, recur_id, dbname = wematch.groups()
+ val.update({'recurrent_uid': recur_id})
event_id = model_obj.create(cr, uid, val)
recur_pool[u_id] = event_id
ids.append(event_id)
diff --git a/addons/crm/crm.py b/addons/crm/crm.py
index ee182bdfc2f..84e884043ba 100644
--- a/addons/crm/crm.py
+++ b/addons/crm/crm.py
@@ -73,6 +73,35 @@ class crm_case(object):
return False
return user.address_id.partner_id.id
+ def copy(self, cr, uid, id, default=None, context=None):
+ """
+ Overrides orm copy method.
+ @param self: the object pointer
+ @param cr: the current row, from the database cursor,
+ @param uid: the current user’s ID for security checks,
+ @param id: Id of mailgate thread
+ @param default: Dictionary of default values for copy.
+ @param context: A standard dictionary for contextual values
+ """
+ if context is None:
+ context = {}
+ if default is None:
+ default = {}
+
+ default.update({
+ 'message_ids': [],
+ })
+ if hasattr(self, '_columns'):
+ if self._columns.get('date_closed'):
+ default.update({
+ 'date_closed': False,
+ })
+ if self._columns.get('date_open'):
+ default.update({
+ 'date_open': False
+ })
+ return super(osv.osv, self).copy(cr, uid, id, default, context=context)
+
def _get_default_email(self, cr, uid, context):
"""Gives default email address for current user
@param self: The object pointer
@@ -451,6 +480,20 @@ class crm_case(object):
def format_mail(self, obj, body):
return self.pool.get('base.action.rule').format_mail(obj, body)
+ def message_followers(self, cr, uid, ids, context=None):
+ """ Get a list of emails of the people following this thread
+ """
+ res = {}
+ for case in self.browse(cr, uid, ids, context=context):
+ l=[]
+ if case.email_cc:
+ l.append(case.email_cc)
+ if case.user_id and case.user_id.user_email:
+ l.append(case.user_id.user_email)
+ res[case.id] = l
+ return res
+
+
class crm_case_section(osv.osv):
"""Sales Team"""
diff --git a/addons/crm/crm_installer.py b/addons/crm/crm_installer.py
index 5f2a4ce63ee..39620c44139 100644
--- a/addons/crm/crm_installer.py
+++ b/addons/crm/crm_installer.py
@@ -40,6 +40,7 @@ class crm_installer(osv.osv_memory):
'sale_crm': fields.boolean('Opportunity to Quotation', help="This module relates sale to opportunity cases in the CRM."),
'fetchmail': fields.boolean('Fetch Emails', help="Fetchmail Server."),
'thunderbird': fields.boolean('Thunderbird', help="Thunderbird Interface."),
+ 'outlook': fields.boolean('MS-Outlook', help="Microsoft Office Outlook Interface."),
'wiki_sale_faq': fields.boolean('Sale FAQ', help="Sale FAQ."),
}
diff --git a/addons/crm/crm_installer_view.xml b/addons/crm/crm_installer_view.xml
index 322f9425122..0b5b87ff485 100644
--- a/addons/crm/crm_installer_view.xml
+++ b/addons/crm/crm_installer_view.xml
@@ -41,8 +41,7 @@
-
-
+
diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py
index 6702e867dc7..763e96b0ba4 100644
--- a/addons/crm/crm_lead.py
+++ b/addons/crm/crm_lead.py
@@ -36,7 +36,7 @@ CRM_LEAD_PENDING_STATES = (
crm.AVAILABLE_STATES[4][0], # Pending
)
-class crm_lead(osv.osv, crm_case):
+class crm_lead(crm_case, osv.osv):
""" CRM Lead Case """
_name = "crm.lead"
_description = "Lead"
diff --git a/addons/crm/crm_meeting.py b/addons/crm/crm_meeting.py
index 798f746f9e3..d8acbff7555 100644
--- a/addons/crm/crm_meeting.py
+++ b/addons/crm/crm_meeting.py
@@ -26,18 +26,18 @@ from osv import fields, osv
from tools.translate import _
import time
-class crm_lead(osv.osv, crm_case):
+class crm_lead(crm_case, osv.osv):
""" CRM Leads """
_name = 'crm.lead'
crm_lead()
-class crm_phonecall(osv.osv, crm_case):
+class crm_phonecall(crm_case, osv.osv):
""" CRM Phonecall """
_name = 'crm.phonecall'
crm_phonecall()
-class crm_meeting(osv.osv, crm_case):
+class crm_meeting(crm_case, osv.osv):
""" CRM Meeting Cases """
_name = 'crm.meeting'
diff --git a/addons/crm/crm_meeting_view.xml b/addons/crm/crm_meeting_view.xml
index af843666435..1e36e7f43cd 100644
--- a/addons/crm/crm_meeting_view.xml
+++ b/addons/crm/crm_meeting_view.xml
@@ -32,6 +32,7 @@
groups="base.group_extended"
domain="[('object_id.model', '=', 'crm.meeting')]" />
+
\n"
"POT-Creation-Date: 2010-01-05 05:59+0000\n"
-"PO-Revision-Date: 2010-08-15 09:27+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: OpenERP Administrators \n"
"Language-Team: Finnish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: crm
diff --git a/addons/crm/i18n/hr.po b/addons/crm/i18n/hr.po
index fdb93160d0c..91c9b1c72d9 100644
--- a/addons/crm/i18n/hr.po
+++ b/addons/crm/i18n/hr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2010-01-05 05:59+0000\n"
-"PO-Revision-Date: 2010-08-15 13:29+0000\n"
+"PO-Revision-Date: 2010-08-16 09:31+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
diff --git a/addons/crm/i18n/lt.po b/addons/crm/i18n/lt.po
index e543c9173eb..326c4e32d28 100644
--- a/addons/crm/i18n/lt.po
+++ b/addons/crm/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2010-01-05 05:59+0000\n"
-"PO-Revision-Date: 2010-08-15 14:18+0000\n"
+"PO-Revision-Date: 2010-08-16 09:27+0000\n"
"Last-Translator: Giedrius Slavinskas \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: lt\n"
diff --git a/addons/crm/i18n/pl.po b/addons/crm/i18n/pl.po
index 4772eb2172c..2f03ed5c418 100644
--- a/addons/crm/i18n/pl.po
+++ b/addons/crm/i18n/pl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2010-01-05 05:59+0000\n"
-"PO-Revision-Date: 2010-08-15 09:28+0000\n"
+"PO-Revision-Date: 2010-08-16 09:37+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: crm
diff --git a/addons/crm/i18n/pt.po b/addons/crm/i18n/pt.po
index 30d7c52d115..9765e05f1d9 100644
--- a/addons/crm/i18n/pt.po
+++ b/addons/crm/i18n/pt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2010-01-05 05:59+0000\n"
-"PO-Revision-Date: 2010-08-15 14:20+0000\n"
+"PO-Revision-Date: 2010-08-16 09:26+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: crm
diff --git a/addons/crm/i18n/sk.po b/addons/crm/i18n/sk.po
index 79cb2218ed9..adbed246671 100644
--- a/addons/crm/i18n/sk.po
+++ b/addons/crm/i18n/sk.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2010-01-05 05:59+0000\n"
-"PO-Revision-Date: 2010-08-15 14:19+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: Radoslav Sloboda \n"
"Language-Team: Slovak \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: crm
diff --git a/addons/crm/i18n/tr.po b/addons/crm/i18n/tr.po
index 81e67b8ac0d..43e2188a6f0 100644
--- a/addons/crm/i18n/tr.po
+++ b/addons/crm/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2010-01-05 05:59+0000\n"
-"PO-Revision-Date: 2010-08-15 13:44+0000\n"
+"PO-Revision-Date: 2010-08-16 09:26+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: crm
diff --git a/addons/crm/wizard/crm_partner_to_opportunity.py b/addons/crm/wizard/crm_partner_to_opportunity.py
index 9e2847fb200..f234f9caa92 100644
--- a/addons/crm/wizard/crm_partner_to_opportunity.py
+++ b/addons/crm/wizard/crm_partner_to_opportunity.py
@@ -58,13 +58,6 @@ class crm_partner2opportunity(osv.osv_memory):
res.update({'partner_id': data and data[0] or False})
return res
- def _select_data(self, cr, uid, data, context):
- pool = pooler.get_pool(cr.dbname)
- part_obj = pool.get('res.partner')
- part = part_obj.read(cr, uid, data['id' ], ['name'])
- return {'partner_id' : data['id'], 'name' : part['name'] }
-
-
def make_opportunity(self, cr, uid, ids, context):
"""
@param self: The object pointer
@@ -120,4 +113,4 @@ class crm_partner2opportunity(osv.osv_memory):
crm_partner2opportunity()
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/crm_caldav/crm_caldav.py b/addons/crm_caldav/crm_caldav.py
index a9430a47225..22f64f4d63d 100644
--- a/addons/crm_caldav/crm_caldav.py
+++ b/addons/crm_caldav/crm_caldav.py
@@ -20,9 +20,11 @@
##############################################################################
from osv import fields, osv
+from base_calendar import base_calendar
from crm import crm
from caldav import calendar
from datetime import datetime
+import re
class crm_meeting(osv.osv):
_inherit = 'crm.meeting'
@@ -74,9 +76,16 @@ class crm_meeting(osv.osv):
recur_pool = {}
try:
for val in vals:
+ # Compute value of duration
+ if 'date_deadline' in val and 'duration' not in val:
+ start = datetime.strptime(val['date'], '%Y-%m-%d %H:%M:%S')
+ end = datetime.strptime(val['date_deadline'], '%Y-%m-%d %H:%M:%S')
+ diff = end - start
+ val['duration'] = (diff.seconds/float(86400) + diff.days) * 24
exists, r_id = calendar.uid2openobjectid(cr, val['id'], context.get('model'), \
val.get('recurrent_id'))
- if val.has_key('create_date'): val.pop('create_date')
+ if val.has_key('create_date'):
+ val.pop('create_date')
u_id = val.get('id', None)
val.pop('id')
if exists and r_id:
@@ -84,12 +93,6 @@ class crm_meeting(osv.osv):
model_obj.write(cr, uid, [r_id], val)
ids.append(r_id)
elif exists:
- # Compute value of duration
- if 'date_deadline' in val and 'duration' not in val:
- start = datetime.strptime(val['date'], '%Y-%m-%d %H:%M:%S')
- end = datetime.strptime(val['date_deadline'], '%Y-%m-%d %H:%M:%S')
- diff = end - start
- val['duration'] = (diff.seconds/float(86400) + diff.days) * 24
model_obj.write(cr, uid, [exists], val)
ids.append(exists)
else:
@@ -98,6 +101,11 @@ class crm_meeting(osv.osv):
revent_id = model_obj.create(cr, uid, val)
ids.append(revent_id)
else:
+ __rege = re.compile(r'OpenObject-([\w|\.]+)_([0-9]+)@(\w+)$')
+ wematch = __rege.match(u_id.encode('utf8'))
+ if wematch:
+ model, recur_id, dbname = wematch.groups()
+ val.update({'recurrent_uid': recur_id})
event_id = model_obj.create(cr, uid, val)
recur_pool[u_id] = event_id
ids.append(event_id)
diff --git a/addons/crm_claim/crm_claim.py b/addons/crm_claim/crm_claim.py
index 9e7954e038e..81a98a7e326 100644
--- a/addons/crm_claim/crm_claim.py
+++ b/addons/crm_claim/crm_claim.py
@@ -23,7 +23,7 @@ from osv import fields, osv
from crm import crm
import time
-class crm_claim(osv.osv, crm.crm_case):
+class crm_claim(crm.crm_case, osv.osv):
"""
Crm claim
"""
diff --git a/addons/crm_fundraising/crm_fundraising.py b/addons/crm_fundraising/crm_fundraising.py
index 962fae07fd3..df7bc4a0789 100644
--- a/addons/crm_fundraising/crm_fundraising.py
+++ b/addons/crm_fundraising/crm_fundraising.py
@@ -22,7 +22,7 @@
from osv import fields, osv, orm
from crm import crm
-class crm_fundraising(osv.osv, crm.crm_case):
+class crm_fundraising(crm.crm_case, osv.osv):
""" Fund Raising Cases """
_name = "crm.fundraising"
diff --git a/addons/crm_helpdesk/crm_helpdesk.py b/addons/crm_helpdesk/crm_helpdesk.py
index 9c223c74a54..f2570a8c57c 100644
--- a/addons/crm_helpdesk/crm_helpdesk.py
+++ b/addons/crm_helpdesk/crm_helpdesk.py
@@ -23,7 +23,7 @@ from crm import crm
from osv import fields, osv
import time
-class crm_helpdesk(osv.osv, crm.crm_case):
+class crm_helpdesk(crm.crm_case, osv.osv):
""" Helpdesk Cases """
_name = "crm.helpdesk"
diff --git a/addons/crm_profiling/i18n/it.po b/addons/crm_profiling/i18n/it.po
index 26f98c1004a..0240c299cca 100644
--- a/addons/crm_profiling/i18n/it.po
+++ b/addons/crm_profiling/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\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 13:46+0000\n"
-"Last-Translator: Carlo - didotech.com \n"
+"PO-Revision-Date: 2010-08-16 08:38+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-12 04:03+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: crm_profiling
@@ -39,7 +39,7 @@ msgstr "Questionario Aperto"
#. module: crm_profiling
#: field:crm.segmentation,child_ids:0
msgid "Child Profiles"
-msgstr ""
+msgstr "Profili figli"
#. module: crm_profiling
#: model:ir.module.module,shortdesc:crm_profiling.module_meta_information
diff --git a/addons/crm_profiling/i18n/tr.po b/addons/crm_profiling/i18n/tr.po
index 0c40c1875a8..9e1a449e7e8 100644
--- a/addons/crm_profiling/i18n/tr.po
+++ b/addons/crm_profiling/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:32+0000\n"
+"PO-Revision-Date: 2010-08-16 09:46+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: crm_profiling
diff --git a/addons/delivery/i18n/ru.po b/addons/delivery/i18n/ru.po
index f70e860e866..956fdd65a77 100644
--- a/addons/delivery/i18n/ru.po
+++ b/addons/delivery/i18n/ru.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:15+0000\n"
+"PO-Revision-Date: 2010-08-16 09:24+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: delivery
diff --git a/addons/delivery/i18n/tr.po b/addons/delivery/i18n/tr.po
index 9f6fd29ad7e..e795c840058 100644
--- a/addons/delivery/i18n/tr.po
+++ b/addons/delivery/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:38+0000\n"
+"PO-Revision-Date: 2010-08-16 09:39+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: delivery
diff --git a/addons/document/i18n/mn.po b/addons/document/i18n/mn.po
index 8f8e58f096d..225b007ca9f 100644
--- a/addons/document/i18n/mn.po
+++ b/addons/document/i18n/mn.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 08:56+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: ub121 \n"
"Language-Team: Mongolian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: document
diff --git a/addons/document/i18n/ru.po b/addons/document/i18n/ru.po
index 25596c45e09..21f756ae60b 100644
--- a/addons/document/i18n/ru.po
+++ b/addons/document/i18n/ru.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:06+0000\n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
"Last-Translator: devcode \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: document
diff --git a/addons/document/i18n/tr.po b/addons/document/i18n/tr.po
index b7b8b538b46..8e6c9825525 100644
--- a/addons/document/i18n/tr.po
+++ b/addons/document/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:38+0000\n"
+"PO-Revision-Date: 2010-08-16 09:46+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: document
diff --git a/addons/document/i18n/zh_CN.po b/addons/document/i18n/zh_CN.po
index 5824b96630a..15e4a399cff 100644
--- a/addons/document/i18n/zh_CN.po
+++ b/addons/document/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:46+0000\n"
+"PO-Revision-Date: 2010-08-16 09:43+0000\n"
"Last-Translator: Black Jack \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: document
diff --git a/addons/document_ics/i18n/tr.po b/addons/document_ics/i18n/tr.po
index 15970ef9903..2f8a9146446 100644
--- a/addons/document_ics/i18n/tr.po
+++ b/addons/document_ics/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:19+0000\n"
+"PO-Revision-Date: 2010-08-16 09:27+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: document_ics
diff --git a/addons/document_ics/i18n/zh_CN.po b/addons/document_ics/i18n/zh_CN.po
index 7881a3a7709..1cd6941a22d 100644
--- a/addons/document_ics/i18n/zh_CN.po
+++ b/addons/document_ics/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:19+0000\n"
+"PO-Revision-Date: 2010-08-16 09:06+0000\n"
"Last-Translator: Black Jack \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: document_ics
diff --git a/addons/event/event.py b/addons/event/event.py
index bfc21544061..7a6e904f6e3 100644
--- a/addons/event/event.py
+++ b/addons/event/event.py
@@ -129,7 +129,7 @@ class event_event(osv.osv):
'target': 'new',
'context': context,
'nodestroy': True
- }
+ }
return res
@@ -336,7 +336,7 @@ class event_registration(osv.osv):
_defaults = {
'nb_register': 1,
'tobe_invoiced': True,
- 'state': lambda *a: 'draft',
+ 'state': lambda *a: 'draft',
'active': lambda *a: 1,
'user_id': lambda self, cr, uid, ctx: uid,
}
@@ -526,7 +526,7 @@ class event_registration(osv.osv):
registrations = self.browse(cr, uid, ids)
self.history(cr, uid, registrations, _('Cancel'))
self.write(cr, uid, ids, {'state': 'cancel'})
- return True
+ return True
def mail_user(self, cr, uid, ids, confirm=False, context=None):
"""
@@ -543,7 +543,7 @@ class event_registration(osv.osv):
email_to = regestration.email_from
if regestration.email_cc:
email_cc += [regestration.email_cc]
- if not (email_to and email_cc):
+ if not (email_to or email_cc):
continue
subject = ""
body = ""
@@ -617,10 +617,10 @@ class event_registration(osv.osv):
event_obj = self.pool.get('event.event')
prod_obj = self.pool.get('product.product')
- res_obj = self.pool.get('res.partner')
+ res_obj = self.pool.get('res.partner')
data_event = event_obj.browse(cr, uid, event_id)
- res = {'value': {'unit_price': False, 'event_product': False, 'user_id': False,
+ res = {'value': {'unit_price': False, 'event_product': False, 'user_id': False,
'date': data_event.date_begin, 'date_deadline': data_event.date_end, 'description': data_event.note, 'name': data_event.name,
'section_id': data_event.section_id and data_event.section_id.id or False,
}}
diff --git a/addons/hr/i18n/it.po b/addons/hr/i18n/it.po
index d3bd4e36c53..9156559da62 100644
--- a/addons/hr/i18n/it.po
+++ b/addons/hr/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-03 04:56+0000\n"
-"Last-Translator: Luca Mattiello \n"
+"PO-Revision-Date: 2010-08-16 10:38+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-12 04:03+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr
@@ -357,7 +357,7 @@ msgstr "Data Inizio"
#. module: hr
#: field:res.users,parent_id:0
msgid "Parent Users"
-msgstr ""
+msgstr "Utenti Padri"
#. module: hr
#: field:hr.employee,address_id:0
diff --git a/addons/hr/i18n/lt.po b/addons/hr/i18n/lt.po
index b2bf952b866..1c525ac9601 100644
--- a/addons/hr/i18n/lt.po
+++ b/addons/hr/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:19+0000\n"
+"PO-Revision-Date: 2010-08-16 09:30+0000\n"
"Last-Translator: Giedrius Slavinskas \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr
diff --git a/addons/hr/i18n/pt_BR.po b/addons/hr/i18n/pt_BR.po
index 77035a781d7..7da6110a78b 100644
--- a/addons/hr/i18n/pt_BR.po
+++ b/addons/hr/i18n/pt_BR.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:23+0000\n"
+"PO-Revision-Date: 2010-08-16 09:18+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr
diff --git a/addons/hr/i18n/tr.po b/addons/hr/i18n/tr.po
index dd65c5ed7c8..be0d5351fcc 100644
--- a/addons/hr/i18n/tr.po
+++ b/addons/hr/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:58+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: adsiz_1029@hotmail.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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr
diff --git a/addons/hr/i18n/zh_CN.po b/addons/hr/i18n/zh_CN.po
index 4bc7a77bee9..605303f01d8 100644
--- a/addons/hr/i18n/zh_CN.po
+++ b/addons/hr/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:24+0000\n"
+"PO-Revision-Date: 2010-08-16 09:25+0000\n"
"Last-Translator: Black Jack \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr
diff --git a/addons/hr_attendance/i18n/fi.po b/addons/hr_attendance/i18n/fi.po
index b75bc1a426e..59df02033be 100644
--- a/addons/hr_attendance/i18n/fi.po
+++ b/addons/hr_attendance/i18n/fi.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:20+0000\n"
+"PO-Revision-Date: 2010-08-16 09:19+0000\n"
"Last-Translator: OpenERP Administrators \n"
"Language-Team: Finnish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_attendance
diff --git a/addons/hr_attendance/i18n/pt_BR.po b/addons/hr_attendance/i18n/pt_BR.po
index 618a368460d..7e7d088d930 100644
--- a/addons/hr_attendance/i18n/pt_BR.po
+++ b/addons/hr_attendance/i18n/pt_BR.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:47+0000\n"
+"PO-Revision-Date: 2010-08-16 09:30+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_attendance
diff --git a/addons/hr_attendance/i18n/tr.po b/addons/hr_attendance/i18n/tr.po
index 114233c5d62..35d9e18f454 100644
--- a/addons/hr_attendance/i18n/tr.po
+++ b/addons/hr_attendance/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:41+0000\n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
"Last-Translator: Angel Spy \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_attendance
diff --git a/addons/hr_contract/i18n/tr.po b/addons/hr_contract/i18n/tr.po
index 3c46285cb20..8b7abf610f4 100644
--- a/addons/hr_contract/i18n/tr.po
+++ b/addons/hr_contract/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:59+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_contract
diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml
index 0c6fae435f1..9900a617595 100644
--- a/addons/hr_expense/hr_expense_view.xml
+++ b/addons/hr_expense/hr_expense_view.xml
@@ -13,7 +13,7 @@
-
+
@@ -67,6 +67,7 @@
+
@@ -104,13 +105,17 @@
-
+
+
-
+
+
+
+
-
+
diff --git a/addons/hr_expense/i18n/pt_BR.po b/addons/hr_expense/i18n/pt_BR.po
index 3e6f7d5127b..9a9456c4c89 100644
--- a/addons/hr_expense/i18n/pt_BR.po
+++ b/addons/hr_expense/i18n/pt_BR.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:28+0000\n"
+"PO-Revision-Date: 2010-08-16 09:31+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_expense
diff --git a/addons/hr_expense/i18n/tr.po b/addons/hr_expense/i18n/tr.po
index da507daa642..7be26dc2c10 100644
--- a/addons/hr_expense/i18n/tr.po
+++ b/addons/hr_expense/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:03+0000\n"
+"PO-Revision-Date: 2010-08-16 09:31+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_expense
diff --git a/addons/hr_holidays/i18n/lt.po b/addons/hr_holidays/i18n/lt.po
index 0e5ce99f9f5..8fd15825786 100644
--- a/addons/hr_holidays/i18n/lt.po
+++ b/addons/hr_holidays/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:23+0000\n"
+"PO-Revision-Date: 2010-08-16 09:31+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_holidays
diff --git a/addons/hr_holidays/i18n/tr.po b/addons/hr_holidays/i18n/tr.po
index 371c6ed5328..96533e13b69 100644
--- a/addons/hr_holidays/i18n/tr.po
+++ b/addons/hr_holidays/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:24+0000\n"
+"PO-Revision-Date: 2010-08-16 09:25+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_holidays
diff --git a/addons/hr_holidays/i18n/zh_CN.po b/addons/hr_holidays/i18n/zh_CN.po
index 3dd29aa20e1..e425555b121 100644
--- a/addons/hr_holidays/i18n/zh_CN.po
+++ b/addons/hr_holidays/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:27+0000\n"
+"PO-Revision-Date: 2010-08-16 09:31+0000\n"
"Last-Translator: Black Jack \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_holidays
diff --git a/addons/hr_payroll/hr_payroll_view.xml b/addons/hr_payroll/hr_payroll_view.xml
index c9d9dbc2d5e..11923176333 100644
--- a/addons/hr_payroll/hr_payroll_view.xml
+++ b/addons/hr_payroll/hr_payroll_view.xml
@@ -193,7 +193,7 @@
-
+
@@ -298,7 +298,7 @@
-
+
@@ -335,7 +335,7 @@
-
+
@@ -363,7 +363,7 @@
-
+
@@ -391,7 +391,7 @@
-
+
@@ -463,7 +463,7 @@
-
+
@@ -956,7 +956,7 @@
-
+
diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py
index fca26885ae9..4a8cd5d7a0a 100644
--- a/addons/hr_recruitment/hr_recruitment.py
+++ b/addons/hr_recruitment/hr_recruitment.py
@@ -75,7 +75,7 @@ class hr_recruitment_degree(osv.osv):
}
hr_recruitment_degree()
-class hr_applicant(osv.osv, crm.crm_case):
+class hr_applicant(crm.crm_case, osv.osv):
_name = "hr.applicant"
_description = "Applicant"
_order = "id desc"
diff --git a/addons/hr_timesheet/hr_timesheet_view.xml b/addons/hr_timesheet/hr_timesheet_view.xml
index 87d183f2fdc..fbdb94b092f 100644
--- a/addons/hr_timesheet/hr_timesheet_view.xml
+++ b/addons/hr_timesheet/hr_timesheet_view.xml
@@ -34,7 +34,7 @@
-
+
diff --git a/addons/hr_timesheet/i18n/tr.po b/addons/hr_timesheet/i18n/tr.po
index bfae15dd7e6..831ff2590dd 100644
--- a/addons/hr_timesheet/i18n/tr.po
+++ b/addons/hr_timesheet/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:01+0000\n"
+"PO-Revision-Date: 2010-08-16 09:15+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_timesheet
diff --git a/addons/hr_timesheet_invoice/i18n/tr.po b/addons/hr_timesheet_invoice/i18n/tr.po
index 6a38591718b..719d15d20e3 100644
--- a/addons/hr_timesheet_invoice/i18n/tr.po
+++ b/addons/hr_timesheet_invoice/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:47+0000\n"
+"PO-Revision-Date: 2010-08-16 09:24+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_timesheet_invoice
diff --git a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml
index cabf51546c2..d4e25e07a20 100644
--- a/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml
+++ b/addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml
@@ -47,26 +47,26 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -417,7 +417,7 @@
tree
-
+
@@ -435,7 +435,7 @@
-
+
random.timesheet.lines.search
random.timesheet.lines
search
@@ -444,8 +444,8 @@
-
-
+
+
@@ -453,7 +453,7 @@
-
+
@@ -470,7 +470,7 @@
-
+
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
index 486c701fe52..377e1dfafdb 100644
--- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
+++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
@@ -39,7 +39,7 @@
-
+
@@ -53,7 +53,7 @@
-
+
diff --git a/addons/hr_timesheet_sheet/i18n/lt.po b/addons/hr_timesheet_sheet/i18n/lt.po
index ea0a7a3e917..8b134684832 100644
--- a/addons/hr_timesheet_sheet/i18n/lt.po
+++ b/addons/hr_timesheet_sheet/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:31+0000\n"
+"PO-Revision-Date: 2010-08-16 09:37+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_timesheet_sheet
diff --git a/addons/hr_timesheet_sheet/i18n/tr.po b/addons/hr_timesheet_sheet/i18n/tr.po
index cd9db72ae96..57b57e69891 100644
--- a/addons/hr_timesheet_sheet/i18n/tr.po
+++ b/addons/hr_timesheet_sheet/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:21+0000\n"
+"PO-Revision-Date: 2010-08-16 09:36+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_timesheet_sheet
diff --git a/addons/idea/i18n/lt.po b/addons/idea/i18n/lt.po
index 3ff4fc3523f..d7124289854 100644
--- a/addons/idea/i18n/lt.po
+++ b/addons/idea/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:54+0000\n"
+"PO-Revision-Date: 2010-08-16 09:17+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: idea
diff --git a/addons/idea/i18n/zh_CN.po b/addons/idea/i18n/zh_CN.po
index 419ecbb0757..362c73abf50 100644
--- a/addons/idea/i18n/zh_CN.po
+++ b/addons/idea/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:21+0000\n"
+"PO-Revision-Date: 2010-08-16 09:27+0000\n"
"Last-Translator: Black Jack \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: idea
diff --git a/addons/l10n_be/i18n/tr.po b/addons/l10n_be/i18n/tr.po
index 17851bb480a..697ccc1e3dd 100644
--- a/addons/l10n_be/i18n/tr.po
+++ b/addons/l10n_be/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:55+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: l10n_be
diff --git a/addons/l10n_ch/i18n/it.po b/addons/l10n_ch/i18n/it.po
index 7d9b271ac42..332d23fda0b 100644
--- a/addons/l10n_ch/i18n/it.po
+++ b/addons/l10n_ch/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:02+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: l10n_ch
diff --git a/addons/l10n_ch/i18n/tr.po b/addons/l10n_ch/i18n/tr.po
index a382d494908..11d31569b57 100644
--- a/addons/l10n_ch/i18n/tr.po
+++ b/addons/l10n_ch/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:01+0000\n"
+"PO-Revision-Date: 2010-08-16 09:13+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: l10n_ch
diff --git a/addons/l10n_ch_chart_c2c_pcg/i18n/tr.po b/addons/l10n_ch_chart_c2c_pcg/i18n/tr.po
index aa66750dcea..b78c8f71e23 100644
--- a/addons/l10n_ch_chart_c2c_pcg/i18n/tr.po
+++ b/addons/l10n_ch_chart_c2c_pcg/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:30+0000\n"
+"PO-Revision-Date: 2010-08-16 09:30+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: l10n_ch_chart_c2c_pcg
diff --git a/addons/l10n_chart_uk_minimal/i18n/tr.po b/addons/l10n_chart_uk_minimal/i18n/tr.po
index bef90963bfc..de0c6f4355f 100644
--- a/addons/l10n_chart_uk_minimal/i18n/tr.po
+++ b/addons/l10n_chart_uk_minimal/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:46+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: l10n_chart_uk_minimal
diff --git a/addons/l10n_fr/__init__.py b/addons/l10n_fr/__init__.py
index 4319b838c0c..8d5728e334e 100644
--- a/addons/l10n_fr/__init__.py
+++ b/addons/l10n_fr/__init__.py
@@ -29,5 +29,6 @@
import l10n_fr
import report
import wizard
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_fr/__openerp__.py b/addons/l10n_fr/__openerp__.py
index faaa963d4f1..42332628208 100644
--- a/addons/l10n_fr/__openerp__.py
+++ b/addons/l10n_fr/__openerp__.py
@@ -36,19 +36,17 @@
Credits: Sistheo Zeekom CrysaLEAD
""",
"depends" : ['base', 'account', 'account_chart', 'account_report', 'base_vat'],
- "init_xml" : [
- ],
+ "init_xml" : [],
"update_xml" : [
- "report.xml",
- "pcg.xml",
- "l10n_fr_pcg_taxes.xml",
- "tax.xml",
- "fiscal_templates_fr.xml",
- "l10n_fr_pcg_account_report.xml",
- "l10n_fr_pcg_report.xml",
- "l10n_fr_pcg_wizard.xml",
- "l10n_fr_pcg_view.xml",
+ "fr_report_demo.xml",
+ "plan_comptable_general_demo.xml",
+ "fr_pcg_taxes_demo.xml",
+ "fr_tax_demo.xml",
+ "fr_fiscal_templates_demo.xml",
+ "fr_pcg_account_report_demo.xml",
"security/ir.model.access.csv",
+ "wizard/fr_report_bilan_view.xml",
+ "wizard/fr_report_compute_resultant_view.xml",
],
"demo_xml" : [],
"certificate" : "00435321693876313629",
diff --git a/addons/l10n_fr/fiscal_templates_fr.xml b/addons/l10n_fr/fr_fiscal_templates_demo.xml
similarity index 100%
rename from addons/l10n_fr/fiscal_templates_fr.xml
rename to addons/l10n_fr/fr_fiscal_templates_demo.xml
diff --git a/addons/l10n_fr/l10n_fr_pcg_account_report.xml b/addons/l10n_fr/fr_pcg_account_report_demo.xml
similarity index 100%
rename from addons/l10n_fr/l10n_fr_pcg_account_report.xml
rename to addons/l10n_fr/fr_pcg_account_report_demo.xml
diff --git a/addons/l10n_fr/l10n_fr_pcg_taxes.xml b/addons/l10n_fr/fr_pcg_taxes_demo.xml
similarity index 100%
rename from addons/l10n_fr/l10n_fr_pcg_taxes.xml
rename to addons/l10n_fr/fr_pcg_taxes_demo.xml
diff --git a/addons/l10n_fr/report.xml b/addons/l10n_fr/fr_report_demo.xml
similarity index 99%
rename from addons/l10n_fr/report.xml
rename to addons/l10n_fr/fr_report_demo.xml
index ba91389ea1b..eb7792a542f 100644
--- a/addons/l10n_fr/report.xml
+++ b/addons/l10n_fr/fr_report_demo.xml
@@ -504,9 +504,6 @@
Capitaux propres : Résultat de l'exercice
-
{'load':['-:7:S','-:6:S'], 'except':[]}
bpvar10
diff --git a/addons/l10n_fr/tax.xml b/addons/l10n_fr/fr_tax_demo.xml
similarity index 100%
rename from addons/l10n_fr/tax.xml
rename to addons/l10n_fr/fr_tax_demo.xml
diff --git a/addons/l10n_fr/i18n/et.po b/addons/l10n_fr/i18n/et.po
index 18b7357d3aa..8e4eee3abaf 100644
--- a/addons/l10n_fr/i18n/et.po
+++ b/addons/l10n_fr/i18n/et.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\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 17:53+0000\n"
-"Last-Translator: Fabien (Open ERP) \n"
+"PO-Revision-Date: 2010-08-16 21:06+0000\n"
+"Last-Translator: lyyser \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-08-12 03:50+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: l10n_fr
@@ -47,6 +47,13 @@ msgid ""
"Management/Configuration/Financial Accounting/Financial Accounts/Generate "
"Chart of Accounts from a Chart Template."
msgstr ""
+"Genereeri kontoplaan plaanimallist. Sul palutakse valida ettevõte, "
+"plaanimall, numbrite arv sinu kontode ja pangakontode koodide "
+"genereerimiseks, valuuta päevikute loomiseks. Nii genereeritakse puhas "
+"koopia plaanimallist.\n"
+"\tSee on sama nõustaja mis käivitub asukohast "
+"Finantsjuhtimine/Seadistus/Finantsraamatupidamine/Mallid/Tekita kontoplaan "
+"kasutades plaani malli."
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
diff --git a/addons/l10n_fr/i18n/tr.po b/addons/l10n_fr/i18n/tr.po
index c38513963b0..50976981423 100644
--- a/addons/l10n_fr/i18n/tr.po
+++ b/addons/l10n_fr/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:25+0000\n"
+"PO-Revision-Date: 2010-08-16 09:31+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: l10n_fr
diff --git a/addons/l10n_fr/l10n_fr.py b/addons/l10n_fr/l10n_fr.py
index 3b514ba416d..08e8c9ed3e5 100644
--- a/addons/l10n_fr/l10n_fr.py
+++ b/addons/l10n_fr/l10n_fr.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -15,16 +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 .
+# along with this program. If not, see .
#
##############################################################################
-from mx import DateTime
-import time
-
from osv import fields, osv
-import pooler
-
class l10n_fr_report(osv.osv):
_name = 'l10n.fr.report'
@@ -35,8 +30,8 @@ class l10n_fr_report(osv.osv):
'line_ids': fields.one2many('l10n.fr.line', 'report_id', 'Lines'),
}
_sql_constraints = [
- ('code_uniq', 'unique (code)','The code report must be unique !')
- ]
+ ('code_uniq', 'unique (code)','The code report must be unique !')
+ ]
l10n_fr_report()
class l10n_fr_line(osv.osv):
@@ -49,7 +44,7 @@ class l10n_fr_line(osv.osv):
'report_id': fields.many2one('l10n.fr.report', 'Report'),
}
_sql_constraints = [
- ('code_uniq', 'unique (code)', 'The variable name must be unique !')
+ ('code_uniq', 'unique (code)', 'The variable name must be unique !')
]
l10n_fr_line()
diff --git a/addons/l10n_fr/l10n_fr_pcg_report.xml b/addons/l10n_fr/l10n_fr_pcg_report.xml
deleted file mode 100644
index d5277265cfc..00000000000
--- a/addons/l10n_fr/l10n_fr_pcg_report.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
diff --git a/addons/l10n_fr/l10n_fr_pcg_view.xml b/addons/l10n_fr/l10n_fr_pcg_view.xml
deleted file mode 100644
index ae8c823c474..00000000000
--- a/addons/l10n_fr/l10n_fr_pcg_view.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/addons/l10n_fr/l10n_fr_pcg_wizard.xml b/addons/l10n_fr/l10n_fr_pcg_wizard.xml
deleted file mode 100644
index 3fe6f946717..00000000000
--- a/addons/l10n_fr/l10n_fr_pcg_wizard.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
- Generate Chart of Accounts from a Chart Template
- Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated.
-This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template.
-
- onskip
-
-
-
diff --git a/addons/l10n_fr/pcg.xml b/addons/l10n_fr/plan_comptable_general_demo.xml
similarity index 99%
rename from addons/l10n_fr/pcg.xml
rename to addons/l10n_fr/plan_comptable_general_demo.xml
index 77fae821f3c..dc17a39abd8 100644
--- a/addons/l10n_fr/pcg.xml
+++ b/addons/l10n_fr/plan_comptable_general_demo.xml
@@ -14,7 +14,6 @@
Dettes long terme
dettes
-
balance
@@ -35,7 +34,6 @@
Cloture
cloture
-
balance
@@ -76,7 +74,6 @@
Tax
tax
-
unreconciled
@@ -104,14 +101,12 @@
Provisions
provision
-
balance
Engagements
commitment
-
balance
@@ -125,7 +120,6 @@
Comptes spéciaux
special
-
none
@@ -9255,49 +9249,5 @@
-
-
diff --git a/addons/l10n_fr/report/__init__.py b/addons/l10n_fr/report/__init__.py
index 558b90865b9..9907a2f5765 100644
--- a/addons/l10n_fr/report/__init__.py
+++ b/addons/l10n_fr/report/__init__.py
@@ -27,7 +27,8 @@
##############################################################################
import base_report
-import bilan
-import cdr
+import bilan_report
+import compute_resultant_report
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_fr/report/base_report.py b/addons/l10n_fr/report/base_report.py
index 03ebce690fd..e1c8eb943e5 100644
--- a/addons/l10n_fr/report/base_report.py
+++ b/addons/l10n_fr/report/base_report.py
@@ -32,7 +32,7 @@ from report import report_sxw
class base_report(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(base_report, self).__init__(cr, uid, name, context=context)
- self.localcontext.update( {
+ self.localcontext.update({
'time': time,
'_load': self._load,
'_get_variable': self._get_variable,
@@ -62,7 +62,6 @@ class base_report(report_sxw.rml_parse):
return self.localcontext[variable]
def _load_accounts(self,form,code,definition,fiscalyear,period_query_cond):
- #self.context.copy()
accounts={}
for x in definition['load']:
p=x.split(":")
diff --git a/addons/l10n_fr/report/bilan.py b/addons/l10n_fr/report/bilan_report.py
similarity index 95%
rename from addons/l10n_fr/report/bilan.py
rename to addons/l10n_fr/report/bilan_report.py
index 96d269893d8..fafacd8f6ea 100644
--- a/addons/l10n_fr/report/bilan.py
+++ b/addons/l10n_fr/report/bilan_report.py
@@ -33,7 +33,7 @@ class bilan(base_report.base_report):
def __init__(self, cr, uid, name, context):
super(bilan, self).__init__(cr, uid, name, context)
-report_sxw.report_sxw('report.l10n.fr.bilan', 'account.move.line','addons/l10n_fr/report/bilan.rml', parser=bilan, header=False)
+report_sxw.report_sxw('report.l10n.fr.bilan', 'account.move.line','addons/l10n_fr/report/bilan_report.rml', parser=bilan, header=False)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_fr/report/bilan.rml b/addons/l10n_fr/report/bilan_report.rml
similarity index 100%
rename from addons/l10n_fr/report/bilan.rml
rename to addons/l10n_fr/report/bilan_report.rml
diff --git a/addons/l10n_fr/report/cdr.py b/addons/l10n_fr/report/compute_resultant_report.py
similarity index 90%
rename from addons/l10n_fr/report/cdr.py
rename to addons/l10n_fr/report/compute_resultant_report.py
index 6e763087f5e..e91f9fc839e 100644
--- a/addons/l10n_fr/report/cdr.py
+++ b/addons/l10n_fr/report/compute_resultant_report.py
@@ -33,7 +33,7 @@ class cdr(base_report.base_report):
def __init__(self, cr, uid, name, context):
super(cdr, self).__init__(cr, uid, name, context)
-report_sxw.report_sxw('report.l10n.fr.cdr', 'account.move.line','addons/l10n_fr/report/cdr.rml', parser=cdr, header=False)
+report_sxw.report_sxw('report.l10n.fr.compute_resultant', 'account.move.line','addons/l10n_fr/report/compute_resultant_report.rml', parser=cdr, header=False)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_fr/report/cdr.rml b/addons/l10n_fr/report/compute_resultant_report.rml
similarity index 100%
rename from addons/l10n_fr/report/cdr.rml
rename to addons/l10n_fr/report/compute_resultant_report.rml
diff --git a/addons/l10n_fr/wizard/__init__.py b/addons/l10n_fr/wizard/__init__.py
index 11db3887d1f..6e29471a975 100644
--- a/addons/l10n_fr/wizard/__init__.py
+++ b/addons/l10n_fr/wizard/__init__.py
@@ -26,7 +26,8 @@
#
##############################################################################
-import bilan
-import cdr
+import fr_report_bilan
+import fr_report_compute_resultant
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_fr/wizard/bilan.py b/addons/l10n_fr/wizard/fr_report_bilan.py
similarity index 60%
rename from addons/l10n_fr/wizard/bilan.py
rename to addons/l10n_fr/wizard/fr_report_bilan.py
index 2a0e3c1855e..9f9e4a933f1 100644
--- a/addons/l10n_fr/wizard/bilan.py
+++ b/addons/l10n_fr/wizard/fr_report_bilan.py
@@ -26,35 +26,31 @@
#
##############################################################################
-import wizard
-import pooler
+from osv import osv, fields
-dates_form = '''
-
-
- '''
+class account_bilan_report(osv.osv_memory):
+ _name = 'account.bilan.report'
+ _description = 'Account Bilan Report'
-dates_fields = {
- 'fiscalyear': {'string': 'Fiscal year', 'type': 'many2one', 'relation': 'account.fiscalyear', 'required': True}
-}
+ def _get_default_fiscalyear(self, cr, uid, context):
+ fiscalyear_id = self.pool.get('account.fiscalyear').find(cr, uid)
+ return fiscalyear_id
-class wizard_report(wizard.interface):
- def _get_defaults(self, cr, uid, data, context):
- fiscalyear_obj = pooler.get_pool(cr.dbname).get('account.fiscalyear')
- data['form']['fiscalyear'] =fiscalyear_obj.find(cr, uid)
- return data['form']
-
- states = {
- 'init': {
- 'actions': [_get_defaults],
- 'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel'),('report','Print')]}
- },
- 'report': {
- 'actions': [],
- 'result': {'type':'print', 'report':'l10n.fr.bilan', 'state':'end'}
+ _columns = {
+ 'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal Year', required=True),
+ }
+ _defaults = {
+ 'fiscalyear_id':_get_default_fiscalyear
}
- }
-wizard_report('l10n.fr.bilan.report')
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+ def print_bilan_report(self, cr, uid, ids, context=None):
+ active_ids = context.get('active_ids',[])
+ data = {}
+ data['form'] = {}
+ data['ids'] = active_ids
+ data['form']['fiscalyear'] = self.browse(cr, uid, ids)[0].fiscalyear_id.id
+ return {'type': 'ir.actions.report.xml', 'report_name': 'l10n.fr.bilan', 'datas': data }
+account_bilan_report()
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
diff --git a/addons/l10n_fr/wizard/fr_report_bilan_view.xml b/addons/l10n_fr/wizard/fr_report_bilan_view.xml
new file mode 100644
index 00000000000..d70894122d4
--- /dev/null
+++ b/addons/l10n_fr/wizard/fr_report_bilan_view.xml
@@ -0,0 +1,40 @@
+
+
+
+
+ Bilan Report
+ account.bilan.report
+ form
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Bilan Report
+ ir.actions.act_window
+ account.bilan.report
+ form
+ form
+
+ new
+
+
+
+
+
+ Bilan Report
+ client_print_multi
+
+ action
+ account.move.line
+
+
+
diff --git a/addons/l10n_fr/wizard/cdr.py b/addons/l10n_fr/wizard/fr_report_compute_resultant.py
similarity index 60%
rename from addons/l10n_fr/wizard/cdr.py
rename to addons/l10n_fr/wizard/fr_report_compute_resultant.py
index 57216754366..24211b46cb7 100644
--- a/addons/l10n_fr/wizard/cdr.py
+++ b/addons/l10n_fr/wizard/fr_report_compute_resultant.py
@@ -26,35 +26,33 @@
#
##############################################################################
-import wizard
-import pooler
+from osv import osv, fields
-dates_form = '''
-
-
- '''
-
-dates_fields = {
- 'fiscalyear': {'string': 'Fiscal year', 'type': 'many2one', 'relation': 'account.fiscalyear', 'required': True}
-}
-
-class wizard_report(wizard.interface):
- def _get_defaults(self, cr, uid, data, context):
- fiscalyear_obj = pooler.get_pool(cr.dbname).get('account.fiscalyear')
- data['form']['fiscalyear'] = fiscalyear_obj.find(cr, uid)
- return data['form']
-
- states = {
- 'init': {
- 'actions': [_get_defaults],
- 'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel'),('report','Print')]}
- },
- 'report': {
- 'actions': [],
- 'result': {'type':'print', 'report':'l10n.fr.cdr', 'state':'end'}
+class account_cdr_report(osv.osv_memory):
+ _name = 'account.cdr.report'
+ _description = 'Account CDR Report'
+
+ def _get_defaults(self, cr, uid, context):
+ fiscalyear_obj = self.pool.get('account.fiscalyear')
+ fiscalyear_id = fiscalyear_obj.find(cr, uid)
+ return fiscalyear_id
+
+ _columns = {
+ 'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal Year', required=True),
}
- }
-wizard_report('l10n.fr.cdr.report')
+ _defaults = {
+ 'fiscalyear_id': _get_defaults
+ }
+
+ def print_cdr_report(self, cr, uid, ids, context=None):
+ active_ids = context.get('active_ids',[])
+ data = {}
+ data['form'] = {}
+ data['ids'] = active_ids
+ data['form']['fiscalyear'] = self.browse(cr, uid, ids)[0].fiscalyear_id.id
+ return { 'type': 'ir.actions.report.xml', 'report_name': 'l10n.fr.compute_resultant', 'datas': data}
+
+account_cdr_report()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_fr/wizard/fr_report_compute_resultant_view.xml b/addons/l10n_fr/wizard/fr_report_compute_resultant_view.xml
new file mode 100644
index 00000000000..a81d1b1e3c7
--- /dev/null
+++ b/addons/l10n_fr/wizard/fr_report_compute_resultant_view.xml
@@ -0,0 +1,40 @@
+
+
+
+
+ Compte de resultat Report
+ account.cdr.report
+ form
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Compte de resultat Report
+ ir.actions.act_window
+ account.cdr.report
+ form
+ form
+
+ new
+
+
+
+
+
+ Compte de resultat Report
+ client_print_multi
+
+ action
+ account.move.line
+
+
+
diff --git a/addons/l10n_in/account_chart.xml b/addons/l10n_in/account_chart.xml
index 98817045dc4..4aff02f9296 100644
--- a/addons/l10n_in/account_chart.xml
+++ b/addons/l10n_in/account_chart.xml
@@ -1,7 +1,7 @@
-
-
+
Indian Chart of Account
0
view
-
+
-
+
@@ -76,131 +76,119 @@
IA_AC0
view
-
+
-
+
-
+
Assets
IA_AC01
view
-
+
-
+
-
+
Current Assets
IA_AC011
view
-
+
-
+
-
+
Bank Account
IA_AC0111
receivable
-
+
-
+
-
+
Cash In Hand Account
IA_AC0112
view
-
+
-
+
-
+
Cash Account
IA_AC01121
receivable
-
+
-
+
-
+
Deposit Account
IA_AC0113
receivable
-
+
-
+
-
+
Loan & Advance(Assets) Account
IA_AC0114
receivable
-
+
-
+
-
-
-
-
-
-
-
-
-
-
Total Sundry Debtors Account
IA_AC0116
view
-
+
-
+
-
Sundry Debtors Account
IA_AC01161
receivable
-
+
-
+
-
+
Fixed Assets
IA_AC012
receivable
-
+
-
+
@@ -209,9 +197,9 @@
IA_AC013
receivable
-
+
-
+
@@ -220,54 +208,54 @@
IA_AC014
receivable
-
+
-
+
-
-
+
+
Liabilities
IA_AC02
view
-
+
-
+
-
+
Current Liabilities
IA_AC021
view
-
+
-
+
-
+
Duties & Taxes
IA_AC0211
payable
-
+
-
+
-
+
Provision
IA_AC0212
payable
-
+
-
+
@@ -276,20 +264,20 @@
IA_AC0213
view
-
+
-
+
-
+
Sundry Creditors
IA_AC02131
payable
-
+
-
+
@@ -298,154 +286,154 @@
IA_AC022
payable
-
+
-
+
-
+
Share Holder/Owner Fund
IA_AC023
view
-
+
-
+
-
-
+
+
Capital Account
IA_AC0231
payable
-
+
-
+
-
+
Reserve and Surplus Account
IA_AC0232
payable
-
+
-
+
-
+
Loan(Liability) Account
IA_AC024
view
-
+
-
+
-
+
Bank OD Account
IA_AC0241
payable
-
+
-
+
-
+
Secured Loan Account
IA_AC0242
payable
-
+
-
+
-
+
Unsecured Loan Account
IA_AC0243
payable
-
+
-
+
-
+
Suspense Account
IA_AC025
payable
-
+
-
+
-
+
Profit And Loss Account
IA_AC1
view
-
+
-
+
-
+
Expense
IA_AC11
view
-
+
-
+
-
+
Direct Expenses
IA_AC111
other
-
+
-
+
-
+
Indirect Expenses
IA_AC112
other
-
+
-
+
-
+
Purchase
IA_AC113
other
-
+
-
+
@@ -453,54 +441,54 @@
IA_AC114
other
-
+
-
+
-
+
Income
IA_AC12
view
-
+
-
+
-
+
Direct Incomes
IA_AC121
other
-
+
-
+
-
+
Indirect Incomes
IA_AC122
other
-
+
-
+
-
+
Sales Account
IA_AC123
other
-
+
-
+
@@ -508,52 +496,52 @@
IA_AC124
other
-
+
-
+
-
-
+
+
Tax
-
+
Tax Balance to Pay
-
+
Tax Due (Tax to pay)
-
+
Tax Payable
-
+
Tax Bases
-
-
+
+
Base of Taxed Sales
-
-
+
+
Base of Taxed Purchases
-
-
-
+
+
+
Opening Journal
OPJ
@@ -562,14 +550,14 @@
-
+
OPJ
Opening Journal
situation
-
-
+
+
India - Chart of Accounts
@@ -582,7 +570,7 @@
-
+
diff --git a/addons/l10n_lu/__init__.py b/addons/l10n_lu/__init__.py
index 2c27dad545a..0e933f136e0 100644
--- a/addons/l10n_lu/__init__.py
+++ b/addons/l10n_lu/__init__.py
@@ -18,5 +18,7 @@
# along with this program. If not, see .
#
##############################################################################
+
import wizard
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_lu/__openerp__.py b/addons/l10n_lu/__openerp__.py
index d17d6b99828..4e289026c95 100644
--- a/addons/l10n_lu/__openerp__.py
+++ b/addons/l10n_lu/__openerp__.py
@@ -38,8 +38,7 @@ This module installs:
'account.tax.code.template.csv',
'l10n_lu_data.xml',
'account.tax.template.csv',
- 'l10n_lu_wizard.xml',
- 'l10n_lu_report.xml'
+ 'wizard/print_vat_view.xml'
],
'demo_xml': ['account.report.report.csv'],
'installable': True,
diff --git a/addons/l10n_lu/i18n/tr.po b/addons/l10n_lu/i18n/tr.po
index 58d59abc513..0c28c05190f 100644
--- a/addons/l10n_lu/i18n/tr.po
+++ b/addons/l10n_lu/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:51+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: l10n_lu
diff --git a/addons/l10n_lu/l10n_lu_data.xml b/addons/l10n_lu/l10n_lu_data.xml
index 3f65923d3e6..fa7433d1397 100644
--- a/addons/l10n_lu/l10n_lu_data.xml
+++ b/addons/l10n_lu/l10n_lu_data.xml
@@ -24,7 +24,6 @@
Créances
creances
-
balance
@@ -57,7 +56,7 @@
0
Plan KLUWER
- view
+ view
@@ -65,7 +64,7 @@
1
Fonds propres, prov. & dettes + d'1an
-
+
view
@@ -73,7 +72,7 @@
2
Immobilis., dettes & créances à + d'1 an
-
+
view
@@ -81,7 +80,7 @@
3
Stocks et commandes en cours d'exécution
-
+
view
@@ -89,7 +88,7 @@
4
Créances et dettes à un an au plus
-
+
view
@@ -97,7 +96,7 @@
5
Placements de trésorerie et disponible
-
+
view
@@ -105,7 +104,7 @@
6
Charges
-
+
view
@@ -113,7 +112,7 @@
7
Produits
-
+
view
@@ -121,7 +120,7 @@
10
Capital
-
+
view
@@ -129,7 +128,7 @@
12
Plus-values de réévaluation
-
+
view
@@ -137,7 +136,7 @@
13
Réserves
-
+
view
@@ -145,7 +144,7 @@
14
Résultat reporté
-
+
view
@@ -153,7 +152,7 @@
15
Subsides en capital
-
+
view
@@ -161,7 +160,7 @@
16
Provisions et impôts différés
-
+
view
@@ -169,7 +168,7 @@
17
Dettes à plus d'un an
-
+
view
@@ -177,7 +176,7 @@
20
Frais d'établissement
-
+
view
@@ -185,7 +184,7 @@
21
Immobilisations incorporelles
-
+
view
@@ -193,7 +192,7 @@
22
Terrains et constructions
-
+
view
@@ -201,7 +200,7 @@
23
Installations, machines et outillages
-
+
view
@@ -209,7 +208,7 @@
24
Mobilier et matériel roulant
-
+
view
@@ -217,7 +216,7 @@
25
Immobilisation détenues en loc.-fin.
-
+
view
@@ -225,7 +224,7 @@
27
Immobilis. corp. en cours & acptes versé
-
+
view
@@ -233,7 +232,7 @@
28
Immobilisations financières
-
+
view
@@ -241,7 +240,7 @@
30
Approvisionnements - matières premières
-
+
view
@@ -249,7 +248,7 @@
31
Approvisionnements et fournitures
-
+
view
@@ -257,7 +256,7 @@
32
En cours de fabrication
-
+
view
@@ -265,7 +264,7 @@
33
Produits finis
-
+
view
@@ -273,7 +272,7 @@
34
Marchandises
-
+
view
@@ -281,7 +280,7 @@
36
Acomptes versés sur achats pour stocks
-
+
view
@@ -289,7 +288,7 @@
40
Créances commerciales
-
+
view
@@ -297,7 +296,7 @@
41
Autres créances à - d'un an
-
+
view
@@ -305,7 +304,7 @@
42
Dettes à + d'1 an échéant dans l'année
-
+
view
@@ -313,7 +312,7 @@
43
Dettes financières
-
+
view
@@ -321,7 +320,7 @@
44
Dettes commerciales
-
+
view
@@ -329,7 +328,7 @@
45
Dettes fiscales, salariales et sociales
-
+
view
@@ -337,7 +336,7 @@
47
Dettes suite à l'affect. des résultats
-
+
view
@@ -345,7 +344,7 @@
48
Dettes diverses
-
+
view
@@ -353,7 +352,7 @@
49
Comptes de régularisation et cptes d'att
-
+
view
@@ -361,7 +360,7 @@
51
Actions et parts
-
+
view
@@ -369,7 +368,7 @@
52
Titres à revenu fixe
-
+
view
@@ -377,7 +376,7 @@
53
Dépôts à terme
-
+
view
@@ -385,7 +384,7 @@
55
Etablissements de crédit
-
+
view
@@ -393,7 +392,7 @@
56
Ccp
-
+
view
@@ -401,7 +400,7 @@
57
Caisses
-
+
view
@@ -409,7 +408,7 @@
60
Approvisionnements et marchandises
-
+
view
@@ -417,7 +416,7 @@
61
Services et biens divers
-
+
view
@@ -425,7 +424,7 @@
62
Rémunérations, charges soc. et pensions
-
+
view
@@ -433,7 +432,7 @@
64
Autres charges d'exploitation
-
+
view
@@ -441,7 +440,7 @@
65
Charges financières
-
+
view
@@ -449,7 +448,7 @@
66
Charges exceptionnelles
-
+
view
@@ -457,7 +456,7 @@
67
Impôts sur le résultat
-
+
view
@@ -465,7 +464,7 @@
70
Chiffre d'affaires
-
+
view
@@ -473,7 +472,7 @@
71
Variation des stocks & comm. en cours
-
+
view
@@ -481,7 +480,7 @@
74
Autres produits d'exploitation
-
+
view
@@ -489,7 +488,7 @@
75
Produits financiers
-
+
view
@@ -497,7 +496,7 @@
77
Régul. d'impôts & reprises prov. fisc.
-
+
view
@@ -505,7 +504,7 @@
140
Bénéfice reporté
-
+
view
@@ -513,7 +512,7 @@
175
Dettes commerciales
-
+
view
@@ -521,7 +520,7 @@
200
Frais de constitution et d'augm. capital
-
+
view
@@ -529,7 +528,7 @@
201
Frais d'augmentation de capital
-
+
view
@@ -537,7 +536,7 @@
202
Fr.d'emission d'empr,prime remboursement
-
+
view
@@ -545,7 +544,7 @@
203
Autres frais d'établissement
-
+
view
@@ -553,7 +552,7 @@
204
Frais de restructuration
-
+
view
@@ -561,7 +560,7 @@
210
Frais de recherche et de développement
-
+
view
@@ -569,7 +568,7 @@
211
Concessions, brevets et licences
-
+
view
@@ -577,7 +576,7 @@
212
Fonds de commerce
-
+
view
@@ -585,7 +584,7 @@
220
Terrains
-
+
view
@@ -593,7 +592,7 @@
221
Constructions
-
+
view
@@ -601,7 +600,7 @@
222
Terrains bâtis
-
+
view
@@ -609,7 +608,7 @@
223
Autres droits réels sur des immeubles
-
+
view
@@ -617,7 +616,7 @@
230
Installations
-
+
view
@@ -625,7 +624,7 @@
231
Machines
-
+
view
@@ -633,7 +632,7 @@
240
Installation gen, agencements,..
-
+
view
@@ -641,7 +640,7 @@
241
Mobilier
-
+
view
@@ -649,7 +648,7 @@
242
Matériel roulant
-
+
view
@@ -657,7 +656,7 @@
280
Participation dans des entreprises liées
-
+
view
@@ -665,7 +664,7 @@
281
Créances sur des entreprises liées
-
+
view
@@ -673,7 +672,7 @@
282
Participations entr. avec lien particip.
-
+
view
@@ -681,7 +680,7 @@
283
Créances / entrepr. avec lien particip.
-
+
view
@@ -689,7 +688,7 @@
290
Créances commerciales
-
+
view
@@ -697,7 +696,7 @@
291
Autres créances
-
+
view
@@ -705,7 +704,7 @@
411
T.v.a en amont
-
+
view
@@ -713,7 +712,7 @@
425
Dettes commerciales échéant ds l'année
-
+
view
@@ -721,7 +720,7 @@
451
T.v.a. en aval
-
+
view
@@ -729,7 +728,7 @@
452
Impôts et taxes à payer
-
+
view
@@ -737,7 +736,7 @@
512
Actions & parts - options acquises
-
+
view
@@ -745,7 +744,7 @@
550
Comptes courants bancaires
-
+
view
@@ -753,7 +752,7 @@
609
Variation des stocks
-
+
view
@@ -761,7 +760,7 @@
610
Loyers et charges locatives
-
+
view
@@ -769,7 +768,7 @@
612
Fournitures faites à l'entreprise
-
+
view
@@ -777,7 +776,7 @@
613
Rétributions de tiers
-
+
view
@@ -785,7 +784,7 @@
615
publicités
-
+
view
@@ -793,7 +792,7 @@
620
Rémunérations et avantages soc. directs
-
+
view
@@ -801,7 +800,7 @@
621
Charges sociales
-
+
view
@@ -809,14 +808,14 @@
624
Pensions
-
+
630
Dotations aux corrections de val./immob.
-
+
view
@@ -824,7 +823,7 @@
631
Dotations aux correct. de val./stocks
-
+
view
@@ -832,7 +831,7 @@
632
Dot. cor. val s/en-cours,pr fini
-
+
view
@@ -840,7 +839,7 @@
633
Dotations correct. val./cr. comm. +1an
-
+
view
@@ -848,7 +847,7 @@
634
Dotations correct. val./cr. comm. -1an
-
+
view
@@ -856,7 +855,7 @@
635
Provisions pour pensions et oblig. sim.
-
+
view
@@ -864,7 +863,7 @@
636
Provisions pour grosses réparations
-
+
view
@@ -872,7 +871,7 @@
637
Provisions pour autres risques & charges
-
+
view
@@ -880,7 +879,7 @@
640
Taxes et impôts directs
-
+
view
@@ -888,7 +887,7 @@
651
Réductions de valeur / actifs circulants
-
+
view
@@ -896,7 +895,7 @@
660
Dotations aux corrections de val. except
-
+
view
@@ -904,7 +903,7 @@
661
Dotations aux corrections de val./financ
-
+
view
@@ -912,7 +911,7 @@
662
Provisions pour risques & charges except
-
+
view
@@ -920,7 +919,7 @@
750
Produits des immob. financières
-
+
view
@@ -928,7 +927,7 @@
751
Produits des actifs circulants
-
+
view
@@ -936,7 +935,7 @@
1750
Fournisseurs - dettes en compte
-
+
view
@@ -944,7 +943,7 @@
1751
Effets à payer
-
+
view
@@ -952,7 +951,7 @@
6120
Eau, gaz, électricité, carburants
-
+
view
@@ -960,7 +959,7 @@
6123
Téléphone, télégrammes, frais post.
-
+
view
@@ -968,7 +967,7 @@
100000
Capital souscrit
-
+
other
@@ -976,7 +975,7 @@
101000
Capital non appelé (-)
-
+
other
@@ -984,7 +983,7 @@
109000
Compte de l'exploitant
-
+
other
@@ -992,7 +991,7 @@
110000
Primes d'émission
-
+
other
@@ -1000,7 +999,7 @@
120000
Plus-values de rééval. sur immob. incorp
-
+
other
@@ -1008,7 +1007,7 @@
121000
Plus-values de rééval. sur immob. corp.
-
+
other
@@ -1016,7 +1015,7 @@
122000
Plus-values de rééval. sur immob. fin.
-
+
other
@@ -1024,7 +1023,7 @@
123000
Plus-values de réévaluation sur stocks
-
+
other
@@ -1032,7 +1031,7 @@
124000
Reprises de réd. de val./plac. de très.
-
+
other
@@ -1040,7 +1039,7 @@
130000
Réserve légale
-
+
other
@@ -1048,7 +1047,7 @@
131000
Réserves indisponibles
-
+
other
@@ -1056,7 +1055,7 @@
132000
Réserves immunisées
-
+
other
@@ -1064,7 +1063,7 @@
133000
Réserves disponibles
-
+
other
@@ -1072,7 +1071,7 @@
134000
Autres reserves
-
+
other
@@ -1080,7 +1079,7 @@
140000
Résultats reportés
-
+
other
@@ -1088,7 +1087,7 @@
140100
Bénéfice de l'exercice
-
+
other
@@ -1096,7 +1095,7 @@
140200
Perte de l'exercice
-
+
other
@@ -1104,7 +1103,7 @@
141000
Perte reportée
-
+
other
@@ -1112,7 +1111,7 @@
150000
Subsides en cap. - montants obtenus
-
+
other
@@ -1120,7 +1119,7 @@
151000
Subsides-montants transf. aux résultats
-
+
other
@@ -1128,7 +1127,7 @@
160000
Provisions pour pensions
-
+
other
@@ -1136,7 +1135,7 @@
161000
Provisions pour charges fiscales
-
+
other
@@ -1144,7 +1143,7 @@
162000
Provisions pr grosses rép. & gros entr.
-
+
other
@@ -1152,7 +1151,7 @@
163000
Provisions pour rente viagère
-
+
other
@@ -1160,7 +1159,7 @@
164000
Provisions pr sûretés pers. et réelles
-
+
other
@@ -1168,7 +1167,7 @@
165000
Provisions diverses
-
+
other
@@ -1176,7 +1175,7 @@
165400
Provisions pour autres risques & charges
-
+
other
@@ -1184,7 +1183,7 @@
166000
Provisions pour charges de commandes
-
+
other
@@ -1192,7 +1191,7 @@
168000
Impôts différés
-
+
other
@@ -1200,7 +1199,7 @@
169000
Autres provisions
-
+
other
@@ -1208,7 +1207,7 @@
170000
Emprunts convertibles
-
+
other
@@ -1216,7 +1215,7 @@
171000
Emprunts obligataires non convertibles
-
+
other
@@ -1224,7 +1223,7 @@
172000
Dettes de loc. - financ. et assimilées
-
+
other
@@ -1232,7 +1231,7 @@
173000
Etablissements de crédit
-
+
other
@@ -1240,7 +1239,7 @@
174000
Autres emprunts
-
+
other
@@ -1248,7 +1247,7 @@
175000
Fournisseurs - entreprises apparentées
-
+
other
@@ -1256,7 +1255,7 @@
175010
Dettes en cpte - fourniss. ordinaires
-
+
other
@@ -1264,7 +1263,7 @@
175100
Effets à payer - entreprises apparentées
-
+
other
@@ -1272,7 +1271,7 @@
175110
Effets à payer - fournisseurs ordinaires
-
+
other
@@ -1280,7 +1279,7 @@
176000
Acomptes reçus sur commandes
-
+
other
@@ -1288,7 +1287,7 @@
177100
Entreprises liées
-
+
other
@@ -1296,7 +1295,7 @@
177200
Lien de participation
-
+
other
@@ -1304,7 +1303,7 @@
178000
Cautionnements reçus en numéraire
-
+
other
@@ -1312,7 +1311,7 @@
179000
Dettes diverses
-
+
other
@@ -1320,7 +1319,7 @@
180000
Comptes de liaison établiss. & succurs.
-
+
other
@@ -1328,7 +1327,7 @@
200000
Frais de constitution
-
+
other
@@ -1336,7 +1335,7 @@
200900
Amort s/fr de constitution
-
+
other
@@ -1344,7 +1343,7 @@
201000
Frais d'augmentation de capital
-
+
other
@@ -1352,7 +1351,7 @@
201900
Amort s/fr d'augmentation du capital
-
+
other
@@ -1360,7 +1359,7 @@
202000
Fr.d'emission d'empr,prime remboursement
-
+
other
@@ -1368,7 +1367,7 @@
202900
Amort s/fr d'émission d'emprunts
-
+
other
@@ -1376,7 +1375,7 @@
203000
Autres frais d'établissement
-
+
other
@@ -1384,7 +1383,7 @@
203900
Amort s/autres fr d'établissement
-
+
other
@@ -1392,7 +1391,7 @@
204000
Frais de restructuration
-
+
other
@@ -1400,7 +1399,7 @@
204900
Amort s/fr de restructuration
-
+
other
@@ -1408,7 +1407,7 @@
210000
Frais de recherche et développement
-
+
other
@@ -1416,7 +1415,7 @@
210900
Amort. s/fr de recherche et développemen
-
+
other
@@ -1424,7 +1423,7 @@
211100
Concessions, brevet à titre onéreux
-
+
other
@@ -1432,7 +1431,7 @@
211190
Amort. s/concession, brevet acquis
-
+
other
@@ -1440,7 +1439,7 @@
211200
Conc., brevets créés par l'entr. même
-
+
other
@@ -1448,7 +1447,7 @@
211290
Amort. s/concession, brevets créés
-
+
other
@@ -1456,7 +1455,7 @@
212000
Fonds de commerce
-
+
other
@@ -1464,7 +1463,7 @@
212900
Amort s/fonds de commerce
-
+
other
@@ -1472,7 +1471,7 @@
213000
Acomptes versés s/immob. incorp
-
+
other
@@ -1480,7 +1479,7 @@
214000
Surprix afférent à l'acquisit. d'1 part.
-
+
other
@@ -1488,7 +1487,7 @@
220000
Terrains
-
+
other
@@ -1496,7 +1495,7 @@
220800
Plus-values actées sur terrains
-
+
other
@@ -1504,7 +1503,7 @@
220900
Réduction de valeur sur terrains
-
+
other
@@ -1512,7 +1511,7 @@
221800
Plus-values actées sur constructions
-
+
other
@@ -1520,7 +1519,7 @@
221900
Amort. sur constructions
-
+
other
@@ -1528,7 +1527,7 @@
222800
Plus-values actées s/terrains bâtis
-
+
other
@@ -1536,7 +1535,7 @@
222900
Amort. sur terrains bâtis
-
+
other
@@ -1544,7 +1543,7 @@
223800
+values actées s/autres droits
-
+
other
@@ -1552,7 +1551,7 @@
223900
Amort s/autres droits réels
-
+
other
@@ -1560,7 +1559,7 @@
230000
Installations techniques
-
+
other
@@ -1568,7 +1567,7 @@
230900
Amort s/installations techniques
-
+
other
@@ -1576,7 +1575,7 @@
231000
Machines
-
+
other
@@ -1584,7 +1583,7 @@
231900
Amortissement s/machines
-
+
other
@@ -1592,7 +1591,7 @@
232000
Outillage
-
+
other
@@ -1600,7 +1599,7 @@
233000
Pièces de rechange
-
+
other
@@ -1608,7 +1607,7 @@
238000
Plus-values actées sur i./m./o.
-
+
other
@@ -1616,7 +1615,7 @@
239000
Amortissements sur i./m./o.
-
+
other
@@ -1624,7 +1623,7 @@
240000
Installation gen, agencements,..
-
+
other
@@ -1632,7 +1631,7 @@
240900
Amort s/autres installations,outillage
-
+
other
@@ -1640,7 +1639,7 @@
241000
Mobilier
-
+
other
@@ -1648,7 +1647,7 @@
241900
Amort. sur mobilier
-
+
other
@@ -1656,7 +1655,7 @@
242000
Matériel roulant
-
+
other
@@ -1664,7 +1663,7 @@
242900
Amort. s/matériel roulant
-
+
other
@@ -1672,7 +1671,7 @@
243000
Matériel de bureau
-
+
other
@@ -1680,7 +1679,7 @@
243900
Amort. s/matériel de bureau
-
+
other
@@ -1688,7 +1687,7 @@
250000
Terrains et constructions en loc.-fin.
-
+
other
@@ -1696,7 +1695,7 @@
251000
Install., machines & out. en loc.-fin.
-
+
other
@@ -1704,7 +1703,7 @@
252000
Mobilier et mat. roulant en loc.-fin.
-
+
other
@@ -1712,7 +1711,7 @@
260000
Autres immobilisations corporelles
-
+
other
@@ -1720,7 +1719,7 @@
270000
Immobilisations en cours
-
+
other
@@ -1728,7 +1727,7 @@
271000
Avances & acptes versés / immob.en cours
-
+
other
@@ -1736,7 +1735,7 @@
280000
Parts dans des entreprises liées
-
+
other
@@ -1744,7 +1743,7 @@
280100
Montants non appelés
-
+
other
@@ -1752,7 +1751,7 @@
280800
+values actées s/parts entreprises liées
-
+
other
@@ -1760,7 +1759,7 @@
280900
Réduction de valeur s/parts
-
+
other
@@ -1768,7 +1767,7 @@
281000
Créances s/des entreprises liées
-
+
other
@@ -1776,7 +1775,7 @@
281100
Effets à recevoir
-
+
other
@@ -1784,7 +1783,7 @@
281700
Créances douteuses (entreprises liées)
-
+
other
@@ -1792,7 +1791,7 @@
281900
Réduction de valeur s/cré. entre. liées
-
+
other
@@ -1800,7 +1799,7 @@
282000
Participations
-
+
other
@@ -1808,7 +1807,7 @@
282100
Montants non appelés
-
+
other
@@ -1816,7 +1815,7 @@
282800
+values actées s/participations
-
+
other
@@ -1824,7 +1823,7 @@
282900
Réduction de valeur s/participations
-
+
other
@@ -1832,7 +1831,7 @@
283000
Créances s/entrepr. lien de particip.
-
+
other
@@ -1840,7 +1839,7 @@
283100
Effets à recevoir
-
+
other
@@ -1848,7 +1847,7 @@
283200
Titres à revenu fixe
-
+
other
@@ -1856,7 +1855,7 @@
283700
Créances douteuses (s/participations)
-
+
other
@@ -1864,7 +1863,7 @@
283900
Réductions de valeur s/cr particip.
-
+
other
@@ -1872,7 +1871,7 @@
284000
Titres à caractère d'immobilisation
-
+
other
@@ -1880,7 +1879,7 @@
285000
Autres prêts
-
+
other
@@ -1888,7 +1887,7 @@
286000
Actions ou parts propres
-
+
other
@@ -1896,7 +1895,7 @@
288000
Cautionnements versés en numéraire
-
+
other
@@ -1904,7 +1903,7 @@
290000
Créances commerciales
-
+
other
@@ -1912,7 +1911,7 @@
290100
Effets à recevoir
-
+
other
@@ -1920,7 +1919,7 @@
290600
Acomptes versés
-
+
other
@@ -1928,7 +1927,7 @@
290700
Créances douteuses s/cr commerciales
-
+
other
@@ -1936,7 +1935,7 @@
290900
Réduction de valeur s/cr commerciales
-
+
other
@@ -1944,7 +1943,7 @@
291000
Autres créances
-
+
other
@@ -1952,7 +1951,7 @@
291100
Effets à recevoir
-
+
other
@@ -1960,7 +1959,7 @@
291700
Créances douteuses s/autres créances
-
+
other
@@ -1968,7 +1967,7 @@
291900
Réduction de valeur s/autres créances
-
+
other
@@ -1976,7 +1975,7 @@
300000
Stocks matières premières val. d'acquis.
-
+
other
@@ -1984,7 +1983,7 @@
309000
Réduction de valeur s/mat. premières
-
+
other
@@ -1992,7 +1991,7 @@
310000
Matières consommables
-
+
other
@@ -2000,7 +1999,7 @@
310600
Emballages commerciaux
-
+
other
@@ -2008,7 +2007,7 @@
319000
Réd. de val. - stocks fournitures (-)
-
+
other
@@ -2016,7 +2015,7 @@
320000
En cours de fabrication - val. d'acquis.
-
+
other
@@ -2024,7 +2023,7 @@
329000
Réductions de valeur / en cours (-)
-
+
other
@@ -2032,7 +2031,7 @@
330000
Valeur d'acquisition des produits finis
-
+
other
@@ -2040,7 +2039,7 @@
339000
Réduction de val. / produits finis (-)
-
+
other
@@ -2048,7 +2047,7 @@
340000
Stocks marchandises - valeur d'acquis.
-
+
other
@@ -2056,7 +2055,7 @@
349000
Réd. de val. / stocks marchandises (-)
-
+
other
@@ -2064,7 +2063,7 @@
360000
Acomptes versés / achats pour stocks
-
+
other
@@ -2072,7 +2071,7 @@
369000
Réd. de val. / acptes versés stocks (-)
-
+
other
@@ -2080,7 +2079,7 @@
400000
Clients
-
+
other
@@ -2092,13 +2091,13 @@
receivable
-
+
403000
Créances s/entreprises apparentées
-
+
receivable
@@ -2106,7 +2105,7 @@
404000
Produits à recevoir (factures à établir)
-
+
other
@@ -2114,7 +2113,7 @@
406000
Acomptes versés aux fournisseurs
-
+
payable
@@ -2122,7 +2121,7 @@
407000
Créances commerciales douteuses
-
+
other
@@ -2130,7 +2129,7 @@
408000
Ecarts de conversion de devises/créances
-
+
other
@@ -2138,7 +2137,7 @@
409000
Réductions de valeur / créances comm.
-
+
other
@@ -2146,7 +2145,7 @@
410000
Capital appelé, non versé
-
+
other
@@ -2162,7 +2161,7 @@
411100
T.v.a soumise à l'origine amont
-
+
other
@@ -2170,7 +2169,7 @@
411500
Compte courant tva
-
+
other
@@ -2178,7 +2177,7 @@
412000
Impots et vers. fiscaux à récupérer
-
+
other
@@ -2186,7 +2185,7 @@
413100
Autres créances sur entrepr. liées
-
+
other
@@ -2194,7 +2193,7 @@
413200
Autres créances / entrepr. apparentées
-
+
other
@@ -2202,7 +2201,7 @@
414000
Produits à recevoir (non commerciaux)
-
+
other
@@ -2210,7 +2209,7 @@
416000
Créances diverses
-
+
other
@@ -2218,7 +2217,7 @@
417000
Créances douteuses
-
+
other
@@ -2226,7 +2225,7 @@
418000
Cautionnements versés en numéraire
-
+
other
@@ -2234,7 +2233,7 @@
419000
Réductions de val. / autres créances (-)
-
+
other
@@ -2242,7 +2241,7 @@
420000
Emprunts obligataires convert.
-
+
other
@@ -2250,7 +2249,7 @@
421000
Emprunts oblig. non convertibles
-
+
other
@@ -2258,7 +2257,7 @@
422000
Dettes de location-financ. et assimilées
-
+
other
@@ -2266,7 +2265,7 @@
423000
Etablissements de crédit
-
+
other
@@ -2274,7 +2273,7 @@
424000
Autres emprunts
-
+
other
@@ -2282,7 +2281,7 @@
425000
Fournisseurs
-
+
other
@@ -2290,7 +2289,7 @@
425100
Effets à payer
-
+
other
@@ -2298,7 +2297,7 @@
426000
Acomptes reçus / commandes éch. ds l'an
-
+
other
@@ -2306,7 +2305,7 @@
427100
Entreprises liées
-
+
other
@@ -2314,7 +2313,7 @@
427200
Lien de participation
-
+
other
@@ -2322,7 +2321,7 @@
428000
Cautionnements reçus en numéraire
-
+
other
@@ -2330,7 +2329,7 @@
429000
Dettes diverses échéant dans l'année
-
+
other
@@ -2338,7 +2337,7 @@
430000
Banques-emprunts en compte à terme fixe
-
+
other
@@ -2346,7 +2345,7 @@
431000
Banques-promesses
-
+
other
@@ -2354,7 +2353,7 @@
432000
Banques-crédit d'acceptation
-
+
other
@@ -2362,7 +2361,7 @@
433000
Banques-dettes en compte courant
-
+
other
@@ -2370,7 +2369,7 @@
438000
Autres emprunts
-
+
other
@@ -2378,7 +2377,7 @@
440000
Fournisseurs
-
+
other
@@ -2404,7 +2403,7 @@
443100
Entreprises liées
-
+
other
@@ -2412,7 +2411,7 @@
443200
Lien de participation
-
+
other
@@ -2420,7 +2419,7 @@
450000
Dettes fiscales estimées
-
+
other
@@ -2455,7 +2454,7 @@
451500
Compte courant tva
-
+
other
@@ -2463,7 +2462,7 @@
452000
Impôts et taxes à payer à l'état
-
+
other
@@ -2471,7 +2470,7 @@
452100
Impôts et taxes à payer aux adm commun
-
+
other
@@ -2479,7 +2478,7 @@
453000
Retenues s/salaires
-
+
other
@@ -2487,7 +2486,7 @@
454000
Cass (centre..de sécurite soc)
-
+
other
@@ -2495,7 +2494,7 @@
455000
Personnel-rémuneration à payer
-
+
other
@@ -2503,7 +2502,7 @@
456000
Personnel-avances et acomptes
-
+
other
@@ -2511,7 +2510,7 @@
458000
Autres dettes sociales
-
+
other
@@ -2519,7 +2518,7 @@
460000
Acomptes reçus sur commandes
-
+
other
@@ -2527,7 +2526,7 @@
470000
Dividendes-tantièmes d'ex. ant. à payer
-
+
other
@@ -2535,7 +2534,7 @@
471000
Dividendes de l'exercice à payer
-
+
other
@@ -2543,7 +2542,7 @@
472000
Tantièmes de l'exercice à payer
-
+
other
@@ -2551,7 +2550,7 @@
473000
Autres allocataires à payer
-
+
other
@@ -2559,7 +2558,7 @@
480000
Obligations et coupons échus (dettes)
-
+
other
@@ -2567,7 +2566,7 @@
487000
Cautionnements reçus en numeraire
-
+
other
@@ -2575,7 +2574,7 @@
488000
Autres dettes diverses
-
+
other
@@ -2583,7 +2582,7 @@
490000
Charges à reporter (payées d'avance)
-
+
other
@@ -2591,7 +2590,7 @@
491000
Produits acquis
-
+
other
@@ -2599,7 +2598,7 @@
492000
Charges à imputer
-
+
other
@@ -2607,7 +2606,7 @@
493000
Produits à reporter
-
+
other
@@ -2615,7 +2614,7 @@
499000
Comptes d'attente
-
+
other
@@ -2623,7 +2622,7 @@
499800
Solde équilibre en devises (hors pc)
-
+
other
@@ -2631,7 +2630,7 @@
500000
Actions propres
-
+
other
@@ -2639,7 +2638,7 @@
510000
Actions et parts
-
+
other
@@ -2647,7 +2646,7 @@
510100
Montant non appelé s/action.part
-
+
other
@@ -2655,7 +2654,7 @@
510900
Réduction valeur s/action et parts
-
+
other
@@ -2663,7 +2662,7 @@
512000
Parts dans entreprises liées
-
+
other
@@ -2671,7 +2670,7 @@
512100
Montant non appelé s/parts
-
+
other
@@ -2679,7 +2678,7 @@
512900
Réduction valeur s/part ent. liées
-
+
other
@@ -2687,7 +2686,7 @@
520000
Titres à rev. fixes - valeur d'acquis.
-
+
other
@@ -2695,7 +2694,7 @@
529000
Titres à rev. fixes - réd. de val.
-
+
other
@@ -2703,7 +2702,7 @@
530000
Dépôts à terme
-
+
other
@@ -2711,7 +2710,7 @@
539000
Réductions de valeur / dépôts à terme
-
+
other
@@ -2719,7 +2718,7 @@
540000
Valeurs échues à l'encaissement
-
+
other
@@ -2727,7 +2726,7 @@
541000
Coupons à encaisser
-
+
other
@@ -2735,7 +2734,7 @@
550000
Ets de crédit-compte à vue
-
+
other
@@ -2743,7 +2742,7 @@
550100
Chèques et virements émis
-
+
other
@@ -2751,7 +2750,7 @@
550900
Réduction valeur s/cpte a vue
-
+
other
@@ -2759,7 +2758,7 @@
560000
Ccp - compte courant
-
+
other
@@ -2767,7 +2766,7 @@
561000
Ccp - chèques émis
-
+
other
@@ -2775,7 +2774,7 @@
570000
Caisses
-
+
other
@@ -2783,7 +2782,7 @@
570900
Réduction valeur s/caisse
-
+
other
@@ -2800,7 +2799,7 @@
600000
Achats de matières premières
-
+
other
@@ -2808,7 +2807,7 @@
601000
Achats de fournitures
-
+
other
@@ -2816,7 +2815,7 @@
602000
Achats de services, travaux et études
-
+
other
@@ -2824,7 +2823,7 @@
603000
Achats de sous-traitances générales
-
+
other
@@ -2832,7 +2831,7 @@
604000
Achats de marchandises
-
+
other
@@ -2840,7 +2839,7 @@
607000
Achats produits et demi-produits
-
+
other
@@ -2848,7 +2847,7 @@
608000
Remises, ristournes et rabais sur achats
-
+
other
@@ -2856,7 +2855,7 @@
609000
Variation de stock mat. premières
-
+
other
@@ -2864,7 +2863,7 @@
609100
Variation stock mat. consommables
-
+
other
@@ -2872,7 +2871,7 @@
609400
Variation stock marchandises
-
+
other
@@ -2880,7 +2879,7 @@
610000
Loyers et charges locatives
-
+
other
@@ -2888,7 +2887,7 @@
610100
Redevances de crédit bail
-
+
other
@@ -2896,7 +2895,7 @@
611000
Entretiens et réparations des locaux
-
+
other
@@ -2904,7 +2903,7 @@
612000
Consommation - eau
-
+
other
@@ -2912,7 +2911,7 @@
612010
Consommation - gaz
-
+
other
@@ -2920,7 +2919,7 @@
612020
Consommation - électricité
-
+
other
@@ -2928,7 +2927,7 @@
612030
Consommation - carburants
-
+
other
@@ -2936,7 +2935,7 @@
612040
Consommation - mazout
-
+
other
@@ -2944,7 +2943,7 @@
612100
Documentation
-
+
other
@@ -2952,7 +2951,7 @@
612200
Imprimés et fournitures de bureau
-
+
other
@@ -2960,7 +2959,7 @@
612300
Téléphone
-
+
other
@@ -2968,7 +2967,7 @@
612310
Frais postaux
-
+
other
@@ -2976,7 +2975,7 @@
612320
Fax
-
+
other
@@ -2984,7 +2983,7 @@
613000
Redevances et royalties
-
+
other
@@ -2992,7 +2991,7 @@
613100
Honoraires
-
+
other
@@ -3000,7 +2999,7 @@
613200
Organismes de services
-
+
other
@@ -3008,7 +3007,7 @@
613300
Commissions
-
+
other
@@ -3016,7 +3015,7 @@
614000
Assurance incendie
-
+
other
@@ -3024,7 +3023,7 @@
615000
Annonces, publicité
-
+
other
@@ -3032,7 +3031,7 @@
615100
Cotisations et abonnements
-
+
other
@@ -3040,7 +3039,7 @@
615200
Dons et libéralités
-
+
other
@@ -3048,7 +3047,7 @@
615300
Publications légales
-
+
other
@@ -3056,7 +3055,7 @@
616000
Sous-traitants
-
+
other
@@ -3064,7 +3063,7 @@
616100
Transports par tiers
-
+
other
@@ -3072,7 +3071,7 @@
620000
Rémunératons administrat. ou gérants
-
+
other
@@ -3080,7 +3079,7 @@
620100
Rémunérations personnel de direction
-
+
other
@@ -3088,7 +3087,7 @@
620200
Rémunérations employés
-
+
other
@@ -3096,7 +3095,7 @@
620300
Rémunérations ouvriers
-
+
other
@@ -3104,7 +3103,7 @@
621000
Chg.soc.lég.administ.et gérant
-
+
other
@@ -3112,7 +3111,7 @@
621100
Chg.soc.lég. personnel de direction
-
+
other
@@ -3120,7 +3119,7 @@
621200
Chg.soc.lég. employés
-
+
other
@@ -3128,7 +3127,7 @@
621300
Chg.soc.lég. ouvriers
-
+
other
@@ -3136,7 +3135,7 @@
621400
Assurance accidents
-
+
other
@@ -3144,7 +3143,7 @@
622000
Primes patr. pour ass. extra - légales
-
+
other
@@ -3152,7 +3151,7 @@
623000
Autres frais de personnel
-
+
other
@@ -3160,7 +3159,7 @@
624000
Pension administrat. ou gérant
-
+
other
@@ -3168,7 +3167,7 @@
624100
Pension personnel
-
+
other
@@ -3176,7 +3175,7 @@
630000
Dot. cor. val s/frais d'établissement
-
+
other
@@ -3184,7 +3183,7 @@
630100
Dot. cor. val s/immob. incorporels
-
+
other
@@ -3192,7 +3191,7 @@
630200
Dot. cor. val s/immob. corporels
-
+
other
@@ -3200,7 +3199,7 @@
631000
Dot. cor. val s/stock mat.fourni
-
+
other
@@ -3208,7 +3207,7 @@
631100
Reprises cor. val. s/stock mat. fourni
-
+
other
@@ -3216,7 +3215,7 @@
632000
Dot. cor. val s/en-cours,pr fini
-
+
other
@@ -3224,7 +3223,7 @@
632100
Reprises cor. val s/en-cours,pf
-
+
other
@@ -3232,7 +3231,7 @@
633000
Dot. cor. val s/cr comm +1an
-
+
other
@@ -3240,7 +3239,7 @@
633100
Reprises cor. val s/cr com +1an
-
+
other
@@ -3248,7 +3247,7 @@
634000
Dot. cor. val. s/cr comm -1an
-
+
other
@@ -3256,7 +3255,7 @@
634100
Reprises cor. val.s/cr com -1an
-
+
other
@@ -3264,7 +3263,7 @@
635000
Dot. prov. pension et oblig. sim.
-
+
other
@@ -3272,7 +3271,7 @@
635100
Reprises prov. s/pens.obli. sim.
-
+
other
@@ -3280,7 +3279,7 @@
636000
Dot. prov-grosses réparation
-
+
other
@@ -3288,7 +3287,7 @@
636100
Reprises prov. grosses réparation
-
+
other
@@ -3296,7 +3295,7 @@
637000
Dot. prov-autres risques et chg
-
+
other
@@ -3304,7 +3303,7 @@
637100
Reprises prov autres risq,chg
-
+
other
@@ -3312,7 +3311,7 @@
640000
Taxe d'abonnement
-
+
other
@@ -3320,7 +3319,7 @@
640100
Impôt foncier
-
+
other
@@ -3328,7 +3327,7 @@
640200
Impôt commercial s/le capital
-
+
other
@@ -3336,7 +3335,7 @@
640300
Impôt s/la fortune
-
+
other
@@ -3344,7 +3343,7 @@
641000
Moins-val. sur réalis. d'immob. corp.
-
+
other
@@ -3352,7 +3351,7 @@
642000
Moins-val. / réalis. de créances comm.
-
+
other
@@ -3360,7 +3359,7 @@
643000
Charges d'exploitation diverses
-
+
other
@@ -3368,7 +3367,7 @@
650000
Intérêts, commissions et frais / dettes
-
+
other
@@ -3376,7 +3375,7 @@
651000
Dot. cor. val s/actif circ
-
+
other
@@ -3384,7 +3383,7 @@
651100
Reprises cor. val s/actif circulants
-
+
other
@@ -3392,7 +3391,7 @@
652000
Moins-values sur réalis. d'actifs circ.
-
+
other
@@ -3400,7 +3399,7 @@
653000
Charges d'escompte de créances
-
+
other
@@ -3408,7 +3407,7 @@
654000
Différences de change
-
+
other
@@ -3416,7 +3415,7 @@
655000
Ecarts de conversion des devises
-
+
other
@@ -3424,7 +3423,7 @@
656000
Frais de banque
-
+
other
@@ -3432,7 +3431,7 @@
660000
Dot. cor. val exceptionnelles
-
+
other
@@ -3440,7 +3439,7 @@
660100
Reprises cor. val. excep
-
+
other
@@ -3448,7 +3447,7 @@
661000
Dot. cor. val s/immob. financières
-
+
other
@@ -3456,7 +3455,7 @@
661100
Reprises cor val s/immob. fin.
-
+
other
@@ -3464,7 +3463,7 @@
662000
Dot. prov-risques et chg except.
-
+
other
@@ -3472,7 +3471,7 @@
662100
Reprises prov risq,chg except.
-
+
other
@@ -3480,7 +3479,7 @@
663000
Moins-values sur réalis. d'actifs immob.
-
+
other
@@ -3488,7 +3487,7 @@
665000
Différences de change exceptionnelles
-
+
other
@@ -3496,7 +3495,7 @@
668000
Autres charges exceptionnelles
-
+
other
@@ -3504,7 +3503,7 @@
670000
Impôts luxemb sur le résultat de l'ex.
-
+
other
@@ -3512,7 +3511,7 @@
671000
Impôts luxemb /résultat d'ex. antérieurs
-
+
other
@@ -3520,7 +3519,7 @@
672000
Impôts étrangers sur le résultat de l'ex
-
+
other
@@ -3528,7 +3527,7 @@
673000
Impôts étrgs/résultat d'ex. antérieurs
-
+
other
@@ -3536,7 +3535,7 @@
674000
Impôts sur résultats exceptionnels
-
+
other
@@ -3544,7 +3543,7 @@
680000
Transfert aux réserves immunisées
-
+
other
@@ -3552,7 +3551,7 @@
700000
Ventes et prestations de services
-
+
payable
@@ -3560,7 +3559,7 @@
708000
R.r.r accordés sur ventes
-
+
payable
@@ -3568,7 +3567,7 @@
712000
Variation de stocks des encours de fabr.
-
+
payable
@@ -3576,7 +3575,7 @@
713000
Variation de stocks des produits finis
-
+
payable
@@ -3584,7 +3583,7 @@
720000
Travaux effect. par entreprise elle-même
-
+
payable
@@ -3592,7 +3591,7 @@
740000
Subsides d'exploitation
-
+
payable
@@ -3600,7 +3599,7 @@
741000
Plus-values sur réal. d'immob. corp.
-
+
payable
@@ -3608,7 +3607,7 @@
742000
Plus-values sur réalis. créances comm.
-
+
payable
@@ -3616,7 +3615,7 @@
743000
Récupération de frais de personnel
-
+
payable
@@ -3624,7 +3623,7 @@
744000
Commissions et courtages
-
+
payable
@@ -3632,7 +3631,7 @@
745000
Redevances pour brevets et licences
-
+
payable
@@ -3640,7 +3639,7 @@
746000
Loyers perçus
-
+
payable
@@ -3648,7 +3647,7 @@
748000
Produits d'exploitation divers.
-
+
payable
@@ -3656,7 +3655,7 @@
750000
Produits des participations
-
+
payable
@@ -3664,7 +3663,7 @@
750100
Autres produits des immob. financières
-
+
payable
@@ -3672,7 +3671,7 @@
751000
Produits des valeurs mobilières
-
+
payable
@@ -3680,7 +3679,7 @@
751100
Autres produits des actifs circulants
-
+
payable
@@ -3688,7 +3687,7 @@
752000
Plus-values sur réalis. d'actifs circula
-
+
payable
@@ -3696,7 +3695,7 @@
753000
Subsides en capital et en intérêts
-
+
payable
@@ -3704,7 +3703,7 @@
754000
Différences de change
-
+
payable
@@ -3712,7 +3711,7 @@
754100
Amendes pour retards de paiement
-
+
payable
@@ -3720,7 +3719,7 @@
754200
Intérêts retards de paiement
-
+
payable
@@ -3728,7 +3727,7 @@
755000
Ecarts de conversion de devises
-
+
payable
@@ -3736,7 +3735,7 @@
756000
Autres produits financiers
-
+
payable
@@ -3744,7 +3743,7 @@
757000
Escomptes obtenus
-
+
payable
@@ -3752,7 +3751,7 @@
763000
Plus-values sur réalis. d'actifs immob.
-
+
payable
@@ -3760,7 +3759,7 @@
771000
Régularis. d'impôts luxemb sur résultat
-
+
payable
@@ -3768,7 +3767,7 @@
773000
Régularis. d'impôts étrangers / résultat
-
+
payable
diff --git a/addons/l10n_lu/l10n_lu_report.xml b/addons/l10n_lu/l10n_lu_report.xml
deleted file mode 100644
index ba67c86b092..00000000000
--- a/addons/l10n_lu/l10n_lu_report.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
diff --git a/addons/l10n_lu/l10n_lu_wizard.xml b/addons/l10n_lu/l10n_lu_wizard.xml
deleted file mode 100644
index da34f6456ab..00000000000
--- a/addons/l10n_lu/l10n_lu_wizard.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
- onskip
-
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/l10n_lu/wizard/__init__.py b/addons/l10n_lu/wizard/__init__.py
index 09b898f6497..140f04905ab 100644
--- a/addons/l10n_lu/wizard/__init__.py
+++ b/addons/l10n_lu/wizard/__init__.py
@@ -20,4 +20,5 @@
##############################################################################
import print_vat
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_lu/wizard/pdf_ext.py b/addons/l10n_lu/wizard/pdf_ext.py
index 26ff61e209c..3b58fab5b68 100644
--- a/addons/l10n_lu/wizard/pdf_ext.py
+++ b/addons/l10n_lu/wizard/pdf_ext.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -64,7 +64,7 @@ def extract_keys(lines):
keys = []
for line in lines:
if line.startswith('/V'):
- pass #print 'value',line
+ pass
elif line.startswith('/T'):
key = line[7:-2]
key = ''.join(key.split('\x00'))
@@ -85,7 +85,6 @@ def write_fields(out, fields):
for key in fields:
value = fields[key]
write_field(out, key, value)
-# write_field(out, key+"a", value) # pour copie-carbone sur autres pages
out.write(TAIL)
def extract_keys_from_pdf(filename):
diff --git a/addons/l10n_lu/wizard/print_vat.py b/addons/l10n_lu/wizard/print_vat.py
index 4523e9aa89e..58cd78ca5a1 100644
--- a/addons/l10n_lu/wizard/print_vat.py
+++ b/addons/l10n_lu/wizard/print_vat.py
@@ -4,39 +4,13 @@
#Ingenieur fondateur
#Tranquil IT Systems
+from osv import osv, fields
-import wizard
-import time
-import datetime
import pooler
-import sys
-from mx.DateTime import *
import tools
+from tools.translate import _
from report.render import render
from report.interface import report_int
-import os
-
-
-_tax_form = """
-
-
-
- """
-
-_tax_fields = {
- 'tax_code_id': {
- 'string': 'Company',
- 'type': 'many2one',
- 'relation': 'account.tax.code',
- 'required': True,
- 'domain': [('parent_id','=',False)]},
- 'period_id': {
- 'string':'Period',
- 'type': 'many2one',
- 'relation': 'account.period',
- 'required':True
- }
-}
class external_pdf(render):
def __init__(self, pdf):
@@ -56,9 +30,8 @@ class report_custom(report_int):
code_ids = taxobj.search(cr, uid, [('parent_id','child_of',[datas['form']['tax_code_id']])])
result = {}
for t in taxobj.browse(cr, uid, code_ids, {'period_id': datas['form']['period_id']}):
- if t.code:
+ if str(t.code):
result['case_'+str(t.code)] = '%.2f' % (t.sum_period or 0.0, )
-
user = pool.get('res.users').browse(cr, uid, uid, context)
# Not Clean, to be changed
@@ -68,26 +41,34 @@ class report_custom(report_int):
if partner.address:
result['info_address'] = partner.address[0].street
result['info_address2'] = (partner.address[0].zip or '') + ' ' + (partner.address[0].city or '')
-
- tools.pdf_utils.fill_pdf(tools.config['addons_path']+'/l10n_lu/wizard/2008_DECL_F_M10.pdf', '/tmp/output.pdf', result)
- self.obj = external_pdf(file('/tmp/output.pdf').read())
- self.obj.render()
- return (self.obj.pdf, 'pdf')
+ try:
+ tools.pdf_utils.fill_pdf(tools.config['addons_path']+'/l10n_lu/wizard/2008_DECL_F_M10.pdf', '/tmp/output.pdf', result)
+ self.obj = external_pdf(file('/tmp/output.pdf').read())
+ self.obj.render()
+ return (self.obj.pdf, 'pdf')
+ except Exception, e:
+ raise osv.except_osv(_('pdf not created !'), _('Please check if package pdftk is installed!'))
report_custom('report.l10n_lu.tax.report.print')
+class vat_declaration_report(osv.osv_memory):
+ _name = 'vat.declaration.report'
+ _description = 'VAT Declaration Report'
+
+ _columns = {
+ 'tax_code_id': fields.many2one('account.tax.code', 'Company', required=True, domain=[('parent_id','=',False)]),
+ 'period_id' : fields.many2one('account.period', 'Period', required=True)
+ }
+
+ def print_vat_declaration_report(self, cr, uid, ids, context=None):
+ active_ids = context.get('active_ids',[])
+ data = {}
+ data['form'] = {}
+ data['ids'] = active_ids
+ data['form']['tax_code_id'] = self.browse(cr, uid, ids)[0].tax_code_id.id
+ data['form']['period_id'] = self.browse(cr, uid, ids)[0].period_id.id
+ return { 'type': 'ir.actions.report.xml', 'report_name': 'l10n_lu.tax.report.print', 'datas': data}
-class wizard_report(wizard.interface):
- states = {
- 'init': {
- 'actions': [],
- 'result': {'type':'form', 'arch':_tax_form, 'fields':_tax_fields, 'state':[('end','Cancel'),('pdf','Print Taxes Statement')]},
- },
- 'pdf': {
- 'actions': [],
- 'result': {'type':'print', 'report': 'l10n_lu.tax.report.print', 'state':'end'},
- },
- }
-wizard_report('l10n_lu.tax.report.wizard')
+vat_declaration_report()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/l10n_lu/wizard/print_vat_view.xml b/addons/l10n_lu/wizard/print_vat_view.xml
new file mode 100644
index 00000000000..2893670efb2
--- /dev/null
+++ b/addons/l10n_lu/wizard/print_vat_view.xml
@@ -0,0 +1,34 @@
+
+
+
+
+ VAT Declaration Report
+ vat.declaration.report
+ form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ VAT Declaration Report
+ ir.actions.act_window
+ vat.declaration.report
+ form
+ form
+
+ new
+
+
+
+
+
+
diff --git a/addons/lunch/__openerp__.py b/addons/lunch/__openerp__.py
index 04be5fba2d0..ab540ad10d3 100644
--- a/addons/lunch/__openerp__.py
+++ b/addons/lunch/__openerp__.py
@@ -47,12 +47,9 @@
'lunch_view.xml',
'lunch_report.xml',
'report/report_lunch_order_view.xml',
- #'process/lunch_process.xml'
],
- "demo_xml": ['lunch_demo.xml',
- ],
- "test": ['test/test_lunch.yml'
- ],
+ "demo_xml": ['lunch_demo.xml'],
+ "test": ['test/test_lunch.yml'],
"installable": True,
}
diff --git a/addons/lunch/lunch.py b/addons/lunch/lunch.py
index 8dfce4acaff..06034df1688 100644
--- a/addons/lunch/lunch.py
+++ b/addons/lunch/lunch.py
@@ -52,7 +52,7 @@ class lunch_product(osv.osv):
_defaults = {
'active': lambda *a : True,
- }
+ }
lunch_product()
@@ -82,7 +82,7 @@ class lunch_cashbox(osv.osv):
'manager': fields.many2one('res.users', 'Manager'),
'name': fields.char('Name', size=30, required=True, unique = True),
'sum_remain': fields.function(amount_available, method=True, string='Remained Total'),
- }
+ }
lunch_cashbox()
@@ -94,16 +94,16 @@ class lunch_cashmove(osv.osv):
_description = "Cash Move"
_columns = {
- 'name': fields.char('Name', size=128),
+ 'name': fields.char('Description', size=128),
'user_cashmove': fields.many2one('res.users', 'User Name', required=True),
'amount': fields.float('Amount', digits=(16, 2)),
'box': fields.many2one('lunch.cashbox', 'Box Name', size=30, required=True),
'active': fields.boolean('Active'),
'create_date': fields.datetime('Created date', readonly=True),
- }
+ }
_defaults = {
- 'active': lambda *a: True,
+ 'active': lambda *a: True,
}
lunch_cashmove()
@@ -141,6 +141,7 @@ class lunch_order(osv.osv):
'state': fields.selection([('draft', 'Draft'), ('confirmed', 'Confirmed'), ], \
'State', readonly=True, select=True),
'price': fields.function(_price_get, method=True, string="Price"),
+ 'category': fields.many2one('lunch.category','Category'),
}
_defaults = {
@@ -198,7 +199,8 @@ class lunch_order(osv.osv):
if not product:
return {'value': {'price': 0.0}}
price = self.pool.get('lunch.product').read(cr, uid, product, ['price'])['price']
- return {'value': {'price': price}}
+ categ_id = self.pool.get('lunch.product').browse(cr, uid, product).category_id.id
+ return {'value': {'price': price,'category':categ_id}}
lunch_order()
@@ -215,7 +217,7 @@ class report_lunch_amount(osv.osv):
'user_id': fields.many2one('res.users', 'User Name', readonly=True),
'amount': fields.float('Amount', readonly=True, digits=(16, 2)),
'box': fields.many2one('lunch.cashbox', 'Box Name', size=30, readonly=True),
- }
+ }
def init(self, cr):
diff --git a/addons/lunch/lunch_view.xml b/addons/lunch/lunch_view.xml
index 5d0fe20c801..b0804cbb9b0 100644
--- a/addons/lunch/lunch_view.xml
+++ b/addons/lunch/lunch_view.xml
@@ -29,8 +29,9 @@
-
+
+
@@ -48,6 +49,7 @@
+
@@ -77,6 +79,7 @@
+
@@ -84,7 +87,9 @@
-
+
+
+
@@ -193,7 +198,8 @@
-
+
+
@@ -331,6 +337,27 @@
+
+
+
+ Lunch amount
+ report.lunch.amount
+ search
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -338,6 +365,7 @@
report.lunch.amount
form
tree,form
+
).
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -36,8 +36,8 @@ class order(report_sxw.rml_parse):
super(order, self).__init__(cr, uid, name, context)
self.localcontext.update({
- 'time': time,
- 'sum_price': self.sum_price,
+ 'time': time,
+ 'sum_price': self.sum_price,
})
report_sxw.report_sxw('report.lunch.order', 'lunch.order',
diff --git a/addons/lunch/report/report_lunch_order.py b/addons/lunch/report/report_lunch_order.py
index 51fa3bf841b..1de0d10cec7 100644
--- a/addons/lunch/report/report_lunch_order.py
+++ b/addons/lunch/report/report_lunch_order.py
@@ -37,7 +37,7 @@ class report_lunch_order(osv.osv):
'user_id': fields.many2one('res.users', 'User Name'),
'box_name': fields.char('Name', size=30),
'price_total':fields.float('Total Price', readonly=True),
- }
+ }
_order = 'date desc'
def init(self, cr):
tools.drop_view_if_exists(cr, 'report_lunch_order')
diff --git a/addons/lunch/report/report_lunch_order_view.xml b/addons/lunch/report/report_lunch_order_view.xml
index 25377799204..d65b8b01c1e 100644
--- a/addons/lunch/report/report_lunch_order_view.xml
+++ b/addons/lunch/report/report_lunch_order_view.xml
@@ -42,7 +42,7 @@
-
+
@@ -62,8 +62,8 @@
{'search_default_month':1,'search_default_User':1}
-
+
+
\ No newline at end of file
diff --git a/addons/lunch/wizard/lunch_cashbox_clean.py b/addons/lunch/wizard/lunch_cashbox_clean.py
index 923629502ab..54ecaf24b6f 100644
--- a/addons/lunch/wizard/lunch_cashbox_clean.py
+++ b/addons/lunch/wizard/lunch_cashbox_clean.py
@@ -48,12 +48,13 @@ class lunch_cashbox_clean(osv.osv_memory):
and box IN %s" , (tuple(data),))
for (user_id, box_id, amount) in res:
- cashmove_ref.create(cr, uid, {'name': 'Summary for user' + str(user_id),
- 'amount': amount,
- 'user_cashmove': user_id,
- 'box': box_id,
- 'active': True,
- })
+ cashmove_ref.create(cr, uid, {
+ 'name': 'Summary for user' + str(user_id),
+ 'amount': amount,
+ 'user_cashmove': user_id,
+ 'box': box_id,
+ 'active': True,
+ })
return {}
lunch_cashbox_clean()
diff --git a/addons/lunch/wizard/lunch_order_confirm.py b/addons/lunch/wizard/lunch_order_confirm.py
index 1a84e25febb..1827e7f5c91 100644
--- a/addons/lunch/wizard/lunch_order_confirm.py
+++ b/addons/lunch/wizard/lunch_order_confirm.py
@@ -29,8 +29,8 @@ class lunch_order_confirm(osv.osv_memory):
_description = "confirm Order"
_columns = {
- 'confirm_cashbox':fields.many2one('lunch.cashbox', 'Name of box', required=True),
- }
+ 'confirm_cashbox':fields.many2one('lunch.cashbox', 'Name of box', required=True),
+ }
def confirm(self, cr, uid, ids, context):
"""
diff --git a/addons/mail_gateway/mail_gateway.py b/addons/mail_gateway/mail_gateway.py
index 6bae5c3e64d..1a1b48e75ee 100644
--- a/addons/mail_gateway/mail_gateway.py
+++ b/addons/mail_gateway/mail_gateway.py
@@ -60,10 +60,10 @@ class mailgate_thread(osv.osv):
default = {}
default.update({
- 'message_ids': [],
- 'date_closed': False,
- 'date_open': False
- })
+ 'message_ids': [],
+ 'date_closed': False,
+ 'date_open': False
+ })
return super(mailgate_thread, self).copy(cr, uid, id, default, context=context)
def message_new(self, cr, uid, msg, context):
@@ -134,7 +134,7 @@ class mailgate_thread(osv.osv):
if history:
for att in attach:
attachments.append(att_obj.create(cr, uid, {'name': att[0], 'datas': base64.encodestring(att[1])}))
-
+
for param in (email, email_cc, email_bcc):
if isinstance(param, list):
param = ", ".join(param)
@@ -163,7 +163,7 @@ class mailgate_thread(osv.osv):
mailgate_thread()
def format_date_tz(date, tz=None):
- if not date:
+ if not date:
return 'n/a'
format = tools.DEFAULT_SERVER_DATETIME_FORMAT
return tools.server_to_local_timestamp(date, format, format, tz)
@@ -213,7 +213,7 @@ class mailgate_message(osv.osv):
'description': fields.text('Description', readonly=True),
'partner_id': fields.many2one('res.partner', 'Partner', required=False),
'attachment_ids': fields.many2many('ir.attachment', 'message_attachment_rel', 'message_id', 'attachment_id', 'Attachments', readonly=True),
- 'display_text': fields.function(_get_display_text, method=True, type='text', size="512", string='Display Text'),
+ 'display_text': fields.function(_get_display_text, method=True, type='text', size="512", string='Display Text'),
}
def init(self, cr):
@@ -246,7 +246,7 @@ class mailgate_tool(osv.osv_memory):
@param cr: the current row, from the database cursor,
@param uid: the current user’s ID for security checks,
@param model: OpenObject Model
- @param res_ids: Ids of the record of OpenObject model created
+ @param res_ids: Ids of the record of OpenObject model created
@param msg: Email details
@param attach: Email attachments
"""
@@ -256,19 +256,19 @@ class mailgate_tool(osv.osv_memory):
msg_pool = self.pool.get('mailgate.message')
for res_id in res_ids:
msg_data = {
- 'name': msg.get('subject', 'No subject'),
- 'date': msg.get('date'),
- 'description': msg.get('body', msg.get('from')),
- 'history': True,
- 'res_model': model,
- 'email_cc': msg.get('cc'),
- 'email_from': msg.get('from'),
- 'email_to': msg.get('to'),
- 'message_id': msg.get('message-id'),
- 'references': msg.get('references') or msg.get('in-reply-to'),
- 'res_id': res_id,
- 'user_id': uid,
- 'attachment_ids': [(6, 0, attach)]
+ 'name': msg.get('subject', 'No subject'),
+ 'date': msg.get('date'),
+ 'description': msg.get('body', msg.get('from')),
+ 'history': True,
+ 'res_model': model,
+ 'email_cc': msg.get('cc'),
+ 'email_from': msg.get('from'),
+ 'email_to': msg.get('to'),
+ 'message_id': msg.get('message-id'),
+ 'references': msg.get('references') or msg.get('in-reply-to'),
+ 'res_id': res_id,
+ 'user_id': uid,
+ 'attachment_ids': [(6, 0, attach)]
}
msg_pool.create(cr, uid, msg_data, context=context)
return True
@@ -283,7 +283,7 @@ class mailgate_tool(osv.osv_memory):
for res in model_pool.browse(cr, uid, res_ids, context=context):
message_followers = model_pool.message_followers(cr, uid, [res.id])[res.id]
- message_followers_emails = self.to_email(','.join(message_followers))
+ message_followers_emails = self.to_email(','.join(filter(None, message_followers)))
message_recipients = self.to_email(','.join(filter(None,
[self._decode_header(msg['from']),
self._decode_header(msg['to']),
diff --git a/addons/marketing/security/marketing_security.xml b/addons/marketing/security/marketing_security.xml
index 834c763b8d0..2eda88c4481 100644
--- a/addons/marketing/security/marketing_security.xml
+++ b/addons/marketing/security/marketing_security.xml
@@ -6,4 +6,3 @@
-
diff --git a/addons/marketing_campaign/marketing_campaign.py b/addons/marketing_campaign/marketing_campaign.py
index 6e1ae749272..e479b835bbf 100644
--- a/addons/marketing_campaign/marketing_campaign.py
+++ b/addons/marketing_campaign/marketing_campaign.py
@@ -109,7 +109,7 @@ Normal - the campaign runs normally and automatically sends all emails and repor
'campaign_id', 'Activities'),
'fixed_cost': fields.float('Fixed Cost', help="Fixed cost for the campaign (used for campaign analysis), see also variable cost on activities"),
}
-
+
_defaults = {
'state': lambda *a: 'draft',
'mode': lambda *a: 'test',
@@ -349,8 +349,6 @@ class marketing_campaign_activity(osv.osv):
'from_ids': fields.one2many('marketing.campaign.transition',
'activity_to_id',
'Previous Activities'),
- #'subcampaign_id': fields.many2one('marketing.campaign', 'Sub-Campaign',
- # domain="[('object_id', '=', object_id)]"),
'variable_cost': fields.float('Variable Cost'),
'revenue': fields.float('Revenue'),
'signal': fields.char('Signal', size=128,
@@ -382,14 +380,14 @@ class marketing_campaign_activity(osv.osv):
service = netsvc.LocalService('report.%s'%activity.report_id.report_name)
(report_data, format) = service.create(cr, uid, [], {}, {})
attach_vals = {
- 'name': '%s_%s_%s'%(activity.report_id.report_name,
- activity.name,workitem.partner_id.name),
- 'datas_fname': '%s.%s'%(activity.report_id.report_name,
- activity.report_id.report_type),
- 'parent_id': activity.report_directory_id.id,
- 'datas': base64.encodestring(report_data),
- 'file_type': format
- }
+ 'name': '%s_%s_%s'%(activity.report_id.report_name,
+ activity.name,workitem.partner_id.name),
+ 'datas_fname': '%s.%s'%(activity.report_id.report_name,
+ activity.report_id.report_type),
+ 'parent_id': activity.report_directory_id.id,
+ 'datas': base64.encodestring(report_data),
+ 'file_type': format
+ }
self.pool.get('ir.attachment').create(cr, uid, attach_vals)
return True
@@ -430,9 +428,10 @@ class marketing_campaign_transition(osv.osv):
_name = "marketing.campaign.transition"
_description = "Campaign Transition"
- _interval_units = [('hours', 'Hour(s)'), ('days', 'Day(s)'),
- ('months', 'Month(s)'), ('years','Year(s)')]
-
+ _interval_units = [
+ ('hours', 'Hour(s)'), ('days', 'Day(s)'),
+ ('months', 'Month(s)'), ('years','Year(s)')
+ ]
def _get_name(self, cr, uid, ids, fn, args, context=None):
result = dict.fromkeys(ids, False)
@@ -576,14 +575,17 @@ class marketing_campaign_workitem(osv.osv):
if result:
# process _chain
+ workitem = workitem.browse(context)[0] # reload
+ date = datetime.strptime(workitem.date, DT_FMT)
+
for transition in activity.to_ids:
if transition.trigger == 'cosmetic':
continue
launch_date = False
if transition.trigger == 'auto':
- launch_date = datetime.now()
+ launch_date = date
elif transition.trigger == 'time':
- launch_date = datetime.now() + transition._delta()
+ launch_date = date + transition._delta()
if launch_date:
launch_date = launch_date.strftime(DT_FMT)
@@ -597,7 +599,7 @@ class marketing_campaign_workitem(osv.osv):
}
wi_id = self.create(cr, uid, values, context=context)
- # Now, depending of the trigger and the campaign mode
+ # Now, depending of the trigger and the campaign mode
# we know if must run the newly created workitem.
#
# rows = transition trigger \ colums = campaign mode
@@ -606,7 +608,7 @@ class marketing_campaign_workitem(osv.osv):
# time Y N N N
# cosmetic N N N N
# auto Y Y Y Y
- #
+ #
run = transition.trigger == 'auto' \
or (transition.trigger == 'time' \
@@ -671,8 +673,10 @@ class marketing_campaign_workitem(osv.osv):
}
elif wi_obj.activity_id.type == 'paper':
- datas = {'ids': [wi_obj.res_id],
- 'model': wi_obj.object_id.model}
+ datas = {
+ 'ids': [wi_obj.res_id],
+ 'model': wi_obj.object_id.model
+ }
res = {
'type' : 'ir.actions.report.xml',
'report_name': wi_obj.activity_id.report_id.report_name,
@@ -689,9 +693,9 @@ class email_template(osv.osv):
_defaults = {
'object_name': lambda obj, cr, uid, context: context.get('object_id',False),
}
-
+
# TODO: add constraint to prevent disabling / disapproving an email account used in a running campaign
-
+
email_template()
class report_xml(osv.osv):
diff --git a/addons/marketing_campaign/marketing_campaign_view.xml b/addons/marketing_campaign/marketing_campaign_view.xml
index a81b15f0e8c..235d3ba34ce 100644
--- a/addons/marketing_campaign/marketing_campaign_view.xml
+++ b/addons/marketing_campaign/marketing_campaign_view.xml
@@ -249,9 +249,6 @@
-
diff --git a/addons/marketing_campaign/report/campaign_analysis.py b/addons/marketing_campaign/report/campaign_analysis.py
index 4853cb65e2c..f4a902f97cc 100644
--- a/addons/marketing_campaign/report/campaign_analysis.py
+++ b/addons/marketing_campaign/report/campaign_analysis.py
@@ -21,7 +21,7 @@
import tools
from osv import fields, osv
-class campaign_analysis(osv.osv): #{{{
+class campaign_analysis(osv.osv):
_name = "campaign.analysis"
_description = "Campaign Analysis"
_auto = False
@@ -43,22 +43,22 @@ class campaign_analysis(osv.osv): #{{{
return result
_columns = {
'year': fields.char('Year', size=4, readonly=True),
- 'month':fields.selection([('01','January'), ('02','February'),
- ('03','March'), ('04','April'),('05','May'), ('06','June'),
+ 'month':fields.selection([('01','January'), ('02','February'),
+ ('03','March'), ('04','April'),('05','May'), ('06','June'),
('07','July'), ('08','August'), ('09','September'),
- ('10','October'), ('11','November'), ('12','December')],
+ ('10','October'), ('11','November'), ('12','December')],
'Month', readonly=True),
'date': fields.date('Date', readonly=True),
- 'campaign_id': fields.many2one('marketing.campaign', 'Campaign',
+ 'campaign_id': fields.many2one('marketing.campaign', 'Campaign',
readonly=True),
'activity_id': fields.many2one('marketing.campaign.activity', 'Activity',
readonly=True),
- 'segment_id': fields.many2one('marketing.campaign.segment', 'Segment',
+ 'segment_id': fields.many2one('marketing.campaign.segment', 'Segment',
readonly=True),
'partner_id': fields.many2one('res.partner', 'Partner', readonly=True),
'country_id': fields.related('partner_id','address', 'country_id',
type='many2one', relation='res.country',string='Country'),
- 'total_cost' : fields.function(_total_cost, string='Cost', method=True,
+ 'total_cost' : fields.function(_total_cost, string='Cost', method=True,
type="float" ),
'revenue': fields.float('Revenue',digits=(16,2),readonly=True),
'count' : fields.integer('# of Actions', readonly=True),
@@ -89,4 +89,4 @@ class campaign_analysis(osv.osv): #{{{
wi.date::date
)
""")
-campaign_analysis() #}}}
+campaign_analysis()
diff --git a/addons/marketing_campaign/security/marketing_campaign_security.xml b/addons/marketing_campaign/security/marketing_campaign_security.xml
index b9267694818..bb933fdcdc3 100644
--- a/addons/marketing_campaign/security/marketing_campaign_security.xml
+++ b/addons/marketing_campaign/security/marketing_campaign_security.xml
@@ -5,9 +5,6 @@
Marketing / User
-
diff --git a/addons/marketing_campaign_mailchimp/marketing_campaign_mailchimp.py b/addons/marketing_campaign_mailchimp/marketing_campaign_mailchimp.py
index 566bf497fd7..2b482867694 100644
--- a/addons/marketing_campaign_mailchimp/marketing_campaign_mailchimp.py
+++ b/addons/marketing_campaign_mailchimp/marketing_campaign_mailchimp.py
@@ -29,22 +29,22 @@ mailchimp_url = 'http://%s.api.mailchimp.com/1.2'
class mailchimp_account(osv.osv):
_name = "mailchimp.account"
-
+
_columns = {
- 'name': fields.char('Account Name', size=64),
- 'username': fields.char('Username', size=64, required=True),
- 'password': fields.char('Password', size=64, required=True),
- 'apikey': fields.char('API Key', size=128),
- 'data_center': fields.selection([('us1', 'US1'), ('us2', 'US2'),
- ('uk1', 'UK1')], 'Data Center'),
- 'state': fields.selection([('draft', 'Draft'), ('approved', 'Approved'),
- ('cancelled', 'Cancelled')], 'State', readonly=True)
- }
-
+ 'name': fields.char('Account Name', size=64),
+ 'username': fields.char('Username', size=64, required=True),
+ 'password': fields.char('Password', size=64, required=True),
+ 'apikey': fields.char('API Key', size=128),
+ 'data_center': fields.selection([('us1', 'US1'), ('us2', 'US2'),
+ ('uk1', 'UK1')], 'Data Center'),
+ 'state': fields.selection([('draft', 'Draft'), ('approved', 'Approved'),
+ ('cancelled', 'Cancelled')], 'State', readonly=True)
+ }
+
_defaults = {
- 'state': lambda *a: 'draft'
- }
-
+ 'state': lambda *a: 'draft'
+ }
+
def get_response(self, cr, uid, mailchimp_id, method, params={}):
mailchimp_account = self.browse(cr, uid, mailchimp_id)
params['output'] = 'json'
@@ -57,7 +57,7 @@ class mailchimp_account(osv.osv):
params = urllib.urlencode(params, doseq=True)
response = urllib2.urlopen(url, params)
return json.loads(response.read())
-
+
def button_approve(self, cr, uid, ids, context):
acc_obj = self.browse(cr, uid, ids)[0]
vals = {}
@@ -71,32 +71,34 @@ class mailchimp_account(osv.osv):
vals['apikey'] = response
vals['state'] = 'approved'
self.write(cr, uid, ids, vals)
- else :
+ else :
raise osv.except_osv('Error!!!',
"Can't approved accoutnt : %s"%response['error'])
return True
-
+
def button_cancel(self, cr, uid, ids, context):
self.write(cr, uid, ids, {'state': 'cancelled'})
return True
-
+
def add_partner_list(self, cr, uid, account_id, list_id, partner_ids):
vals = {} # just dictionary with partner_id and updated in list or not
for partner in self.pool.get('res.partner').browse(cr, uid, partner_ids):
- params = {'id' : list_id,
+ params = {
+ 'id' : list_id,
'email_address' : partner.email,
'email_type':'text',
- 'merge_vars[FNAME]':partner.name ,
+ 'merge_vars[FNAME]':partner.name ,
'merge_vars[date]' : time.strftime('%Y-%m-%d'),
'merge_vars[phone]' : partner.phone,
'merge_vars[website]' : partner.website,
'merge_vars[address][country]' : partner.country.code,
'merge_vars[address][city]' : partner.city,
- 'double_optin':False}
+ 'double_optin':False
+ }
vals[partner.id] = self.get_response(cr, uid, account_id,
'listSubscribe', params)
return vals
-
+
mailchimp_account()
class mailchimp_list(osv.osv_memory):
@@ -115,28 +117,28 @@ class marketing_campaign(osv.osv):
_inherit = "marketing.campaign"
_columns = {
- 'mailchimp_account_id': fields.many2one(
- 'mailchimp.account', 'Account'),
- 'mailchimp_campaign': fields.char('campaign', size=64),
+ 'mailchimp_account_id': fields.many2one(
+ 'mailchimp.account', 'Account'),
+ 'mailchimp_campaign': fields.char('campaign', size=64),
}
marketing_campaign()
-
-class marketing_campaign_activity(osv.osv):
+
+class marketing_campaign_activity(osv.osv):
_inherit = "marketing.campaign.activity"
_columns = {
- 'mailchimp_account_id': fields.many2one(
- 'mailchimp.account', 'Account'),
- 'mailchimp_list': fields.char('List', size=64),
+ 'mailchimp_account_id': fields.many2one(
+ 'mailchimp.account', 'Account'),
+ 'mailchimp_list': fields.char('List', size=64),
}
-
+
def onchange_mailchimp(self, cr, uid, ids, mailchimp_account_id):
if mailchimp_account_id:
return {'value':{'mailchimp_list':''}}
return {'value':{}}
-
- def onchange_mailchimp_list(self, cr, uid, ids, mailchimp_account_id,
+
+ def onchange_mailchimp_list(self, cr, uid, ids, mailchimp_account_id,
mailchimp_list):
if mailchimp_account_id and mailchimp_list:
lists = self.pool.get('mailchimp.account').get_response(cr,
@@ -154,7 +156,7 @@ class marketing_campaign_activity(osv.osv):
mc_acc_obj = self.pool.get('mailchimp.account')
lists = mc_acc_obj.get_response(cr, uid, mailchimp_account_id, 'lists')
list_id = ''
- for l in lists :
+ for l in lists :
if l['name'] == list_name:
list_id = l['id']
break;
@@ -163,34 +165,38 @@ class marketing_campaign_activity(osv.osv):
model_obj = self.pool.get(res_model).browse(cr, uid, res_id)
params ={}
if res_model == 'res.partner' :
- params.update({'email_address' : model_obj.email,
- 'merge_vars[FNAME]':model_obj.name and model_obj.name or '',
- 'merge_vars[website]' : model_obj.website,
- 'merge_vars[address][country]' : model_obj.country.code,
- })
+ params.update({
+ 'email_address' : model_obj.email,
+ 'merge_vars[FNAME]':model_obj.name and model_obj.name or '',
+ 'merge_vars[website]' : model_obj.website,
+ 'merge_vars[address][country]' : model_obj.country.code,
+ })
elif res_model == 'crm.lead' :
- params.update({'email_address' : model_obj.email_from,
- 'merge_vars[FNAME]':model_obj.partner_name and \
- model_obj.partner_name or '',
- 'merge_vars[address][country]' : model_obj.country_id and \
- model_obj.country_id.code or ''
- })
+ params.update({
+ 'email_address' : model_obj.email_from,
+ 'merge_vars[FNAME]':model_obj.partner_name and \
+ model_obj.partner_name or '',
+ 'merge_vars[address][country]' : model_obj.country_id and \
+ model_obj.country_id.code or ''
+ })
if params['email_address'] :
user = mc_acc_obj.get_response(cr, uid, mailchimp_account_id,
- 'listMemberInfo',
- {'id' : list_id,
- 'email_address': params['email_address']})
- # if there s no user with the specify email it will return error code
+ 'listMemberInfo', {
+ 'id' : list_id,
+ 'email_address': params['email_address']
+ })
+ # if there s no user with the specify email it will return error code
# and thus we add that user otherwise user is alredy subscribe and there
# is no need to subscribe user again
if 'error' in user:
- params.update({'id' : list_id,
+ params.update({
+ 'id' : list_id,
'email_type':'text',
'double_optin':False,
'merge_vars[date]' : time.strftime('%Y-%m-%d'),
'merge_vars[address][city]' : model_obj.city and model_obj.city or '',
'merge_vars[phone]' : model_obj.phone and model_obj.phone or '',
- })
+ })
mc_acc_obj.get_response(cr, uid, mailchimp_account_id, 'listSubscribe', params)
# TODO handle mailchimp error
return True
diff --git a/addons/marketing_campaign_mailchimp/security/marketing_security.xml b/addons/marketing_campaign_mailchimp/security/marketing_security.xml
index 0a6393a367a..59cbf65a63d 100644
--- a/addons/marketing_campaign_mailchimp/security/marketing_security.xml
+++ b/addons/marketing_campaign_mailchimp/security/marketing_security.xml
@@ -8,4 +8,3 @@
-
diff --git a/addons/marketing_campaign_mailchimp/wizard/create_list.py b/addons/marketing_campaign_mailchimp/wizard/create_list.py
index 0a490787de5..03a69a8ac89 100755
--- a/addons/marketing_campaign_mailchimp/wizard/create_list.py
+++ b/addons/marketing_campaign_mailchimp/wizard/create_list.py
@@ -38,20 +38,17 @@ class create_list(osv.osv_memory):
'Partner'),
}
-
+
def onchange_mailchimp_account_id(self, cr, uid, ids, mailchimp_account_id,
action):
- print mailchimp_account_id,action,
- return {'value':{}}
-
+ return {'value':{}}
+
def create_list(self, cr, uid, ids, context=None):
create_list_obj = self.browse(cr, uid, ids[0])
- print create_list_obj.id
mailchimp_account_obj = self.pool.get('mailchimp.account')
account_id = create_list_obj.mailchimp_account_id
lists = mailchimp_account_obj.get_response(cr, uid, account_id.id, 'lists')
lists = dict([(l['name'],l['id']) for l in lists])
- print lists
if create_list_obj.list_name not in lists.keys():
raise osv.except_osv(_('UserError'),
_('There is no list define in account %s') % (account_id.name))
diff --git a/addons/marketing_campaign_mailchimp/wizard/create_list_view.xml b/addons/marketing_campaign_mailchimp/wizard/create_list_view.xml
index f15826aeaea..d978527f3e3 100755
--- a/addons/marketing_campaign_mailchimp/wizard/create_list_view.xml
+++ b/addons/marketing_campaign_mailchimp/wizard/create_list_view.xml
@@ -11,9 +11,6 @@
-
diff --git a/addons/membership/demo_data.xml b/addons/membership/demo_data.xml
index c900bb4eacc..6031e76d3da 100644
--- a/addons/membership/demo_data.xml
+++ b/addons/membership/demo_data.xml
@@ -164,18 +164,4 @@ result = price_unit * 0.10"" name="python_compute"/>
-
diff --git a/addons/membership/i18n/tr.po b/addons/membership/i18n/tr.po
index effe873f013..5ca820d1b49 100644
--- a/addons/membership/i18n/tr.po
+++ b/addons/membership/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:04+0000\n"
+"PO-Revision-Date: 2010-08-16 09:30+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: membership
diff --git a/addons/membership/membership.py b/addons/membership/membership.py
index 0fda9f581dc..7bb84ef9ebb 100644
--- a/addons/membership/membership.py
+++ b/addons/membership/membership.py
@@ -37,14 +37,14 @@ STATE = [
]
STATE_PRIOR = {
- 'none' : 0,
- 'canceled' : 1,
- 'old' : 2,
- 'waiting' : 3,
- 'invoiced' : 4,
- 'free' : 6,
- 'paid' : 7
- }
+ 'none' : 0,
+ 'canceled' : 1,
+ 'old' : 2,
+ 'waiting' : 3,
+ 'invoiced' : 4,
+ 'free' : 6,
+ 'paid' : 7
+}
class membership_line(osv.osv):
'''Member line'''
@@ -81,7 +81,7 @@ class membership_line(osv.osv):
@param ids: List of Membership Line IDs
@param name: Field Name
@param context: A standard dictionary for contextual values
- @param return: Dictionary of state Value
+ @param return: Dictionary of state Value
"""
res = {}
for line in self.browse(cr, uid, ids):
@@ -124,21 +124,21 @@ class membership_line(osv.osv):
_description = __doc__
_name = 'membership.membership_line'
_columns = {
- 'partner': fields.many2one('res.partner', 'Partner', ondelete='cascade', select=1),
- 'membership_id': fields.many2one('product.product', string="Membership", required=True),
- 'date_from': fields.date('From', readonly=True),
- 'date_to': fields.date('To', readonly=True),
- 'date_cancel' : fields.date('Cancel date'),
- 'date': fields.date('Join Date'),
- 'member_price':fields.float('Member Price', digits_compute= dp.get_precision('Sale Price'), required=True),
- 'account_invoice_line': fields.many2one('account.invoice.line', 'Account Invoice line', readonly=True),
- 'account_invoice_id': fields.related('account_invoice_line', 'invoice_id', type='many2one', relation='account.invoice', string='Invoice', readonly=True),
- 'state': fields.function(_state, method=True, string='State', type='selection', selection=STATE),
+ 'partner': fields.many2one('res.partner', 'Partner', ondelete='cascade', select=1),
+ 'membership_id': fields.many2one('product.product', string="Membership", required=True),
+ 'date_from': fields.date('From', readonly=True),
+ 'date_to': fields.date('To', readonly=True),
+ 'date_cancel' : fields.date('Cancel date'),
+ 'date': fields.date('Join Date'),
+ 'member_price':fields.float('Member Price', digits_compute= dp.get_precision('Sale Price'), required=True),
+ 'account_invoice_line': fields.many2one('account.invoice.line', 'Account Invoice line', readonly=True),
+ 'account_invoice_id': fields.related('account_invoice_line', 'invoice_id', type='many2one', relation='account.invoice', string='Invoice', readonly=True),
+ 'state': fields.function(_state, method=True, string='State', type='selection', selection=STATE),
}
_rec_name = 'partner'
_order = 'id desc'
_constraints = [
- (_check_membership_date, 'Error, this membership product is out of date', [])
+ (_check_membership_date, 'Error, this membership product is out of date', [])
]
membership_line()
@@ -182,7 +182,7 @@ class Partner(osv.osv):
@param ids: List of Partner IDs
@param name: Field Name
@param context: A standard dictionary for contextual values
- @param return: Dictionary of Membership state Value
+ @param return: Dictionary of Membership state Value
"""
res = {}
for id in ids:
@@ -239,28 +239,28 @@ class Partner(osv.osv):
res_state = self._membership_state(cr, uid, [partner_data.associate_member.id], name, args, context)
res[id] = res_state[partner_data.associate_member.id]
return res
-
+
def _membership_date(self, cr, uid, ids, name, args, context=None):
-
+
"""Return date of membership"""
-
+
name = name[0]
res = {}
member_line_obj = self.pool.get('membership.membership_line')
-
+
for partner in self.browse(cr, uid, ids):
-
+
if partner.associate_member:
partner_id = partner.associate_member.id
else:
partner_id = partner.id
-
- res[partner.id]={
- 'membership_start': False,
- 'membership_stop': False,
- 'membership_cancel': False
- }
-
+
+ res[partner.id] = {
+ 'membership_start': False,
+ 'membership_stop': False,
+ 'membership_cancel': False
+ }
+
if name == 'membership_start':
line_id = member_line_obj.search(cr, uid, [('partner', '=', partner_id)],
limit=1, order='date_from')
@@ -268,13 +268,13 @@ class Partner(osv.osv):
res[partner.id]['membership_start'] = member_line_obj.read(cr, uid, line_id[0],
['date_from'])['date_from']
- if name == 'membership_stop':
+ if name == 'membership_stop':
line_id1 = member_line_obj.search(cr, uid, [('partner', '=', partner_id)],
limit=1, order='date_to desc')
if line_id1:
res[partner.id]['membership_stop'] = member_line_obj.read(cr, uid, line_id1[0],
['date_to'])['date_to']
- if name == 'membership_cancel':
+ if name == 'membership_cancel':
if partner.membership_state == 'canceled':
line_id2 = member_line_obj.search(cr, uid, [('partner', '=', partner.id)],limit=1, order='date_cancel')
if line_id2:
@@ -366,7 +366,7 @@ class Partner(osv.osv):
default = default.copy()
default['member_lines'] = []
return super(Partner, self).copy(cr, uid, id, default, context)
-
+
def create_membership_invoice(self, cr, uid, ids, product_id=None, datas=None, context=None):
""" Create Customer Invoice of Membership for partners.
@param datas: datas has dictionary value which consist Id of Membership product and Cost Amount of Membership.
@@ -397,8 +397,8 @@ class Partner(osv.osv):
line_value = {
'product_id' : product_id,
}
-
- line_dict = invoice_line_obj.product_id_change(cr, uid, {},
+
+ line_dict = invoice_line_obj.product_id_change(cr, uid, {},
product_id, False, quantity, '', 'out_invoice', partner.id, fpos_id, price_unit=amount, context=context)
line_value.update(line_dict['value'])
if line_value.get('invoice_line_tax_id', False):
@@ -427,7 +427,7 @@ Partner()
class product_template(osv.osv):
_inherit = 'product.template'
_columns = {
- 'member_price':fields.float('Member Price', digits_compute= dp.get_precision('Sale Price')),
+ 'member_price':fields.float('Member Price', digits_compute= dp.get_precision('Sale Price')),
}
product_template()
@@ -435,7 +435,7 @@ class Product(osv.osv):
def fields_view_get(self, cr, user, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
model_obj = self.pool.get('ir.model.data')
-
+
if ('product' in context) and (context['product']=='membership_product'):
model_data_ids_form = model_obj.search(cr,user,[('model','=','ir.ui.view'),('name','in',['membership_products_form','membership_products_tree'])])
resource_id_form = model_obj.read(cr, user, model_data_ids_form, fields=['res_id','name'])
@@ -451,15 +451,14 @@ class Product(osv.osv):
'''Product'''
_inherit = 'product.product'
_columns = {
- 'membership': fields.boolean('Membership', help='Specify if this product is a membership product'),
- 'membership_date_from': fields.date('Date from', help='Active Membership since this date'),
- 'membership_date_to': fields.date('Date to', help='Expired date of Membership'),
-# 'member_price':fields.float('Member Price'),
- }
+ 'membership': fields.boolean('Membership', help='Specify if this product is a membership product'),
+ 'membership_date_from': fields.date('Date from', help='Active Membership since this date'),
+ 'membership_date_to': fields.date('Date to', help='Expired date of Membership'),
+ }
_defaults = {
- 'membership': lambda *args: False
- }
+ 'membership': lambda *args: False
+ }
Product()
@@ -533,7 +532,7 @@ class account_invoice_line(osv.osv):
line = self.browse(cr, uid, result)
member_line_obj = self.pool.get('membership.membership_line')
if line.invoice_id.type == 'out_invoice':
-
+
ml_ids = member_line_obj.search(cr, uid, [('account_invoice_line','=',line.id)])
if line.product_id and line.product_id.membership and not ml_ids:
# Product line is a membership product
@@ -542,14 +541,14 @@ class account_invoice_line(osv.osv):
if line.invoice_id.date_invoice > date_from and line.invoice_id.date_invoice < date_to:
date_from = line.invoice_id.date_invoice
line_id = member_line_obj.create(cr, uid, {
- 'partner': line.invoice_id.partner_id and line.invoice_id.partner_id.id or False,
- 'membership_id': line.product_id.id,
- 'member_price': line.price_unit,
- 'date': time.strftime('%Y-%m-%d'),
- 'date_from': date_from,
- 'date_to': date_to,
- 'account_invoice_line': line.id,
- })
+ 'partner': line.invoice_id.partner_id and line.invoice_id.partner_id.id or False,
+ 'membership_id': line.product_id.id,
+ 'member_price': line.price_unit,
+ 'date': time.strftime('%Y-%m-%d'),
+ 'date_from': date_from,
+ 'date_to': date_to,
+ 'account_invoice_line': line.id,
+ })
return result
account_invoice_line()
diff --git a/addons/membership/membership_view.xml b/addons/membership/membership_view.xml
index 1e5535802c2..a4db3754cc4 100644
--- a/addons/membership/membership_view.xml
+++ b/addons/membership/membership_view.xml
@@ -28,14 +28,14 @@
product.product
form
-
+
-
+
@@ -84,9 +84,9 @@
-
-
-
+
+
+
@@ -167,16 +167,6 @@
-
-
-
res.partner.tree.form.inherit
@@ -203,13 +193,13 @@
-
+
-
+
@@ -219,14 +209,14 @@
-
+
-
-
+
+
@@ -234,7 +224,7 @@
-
+
product.normal.form
diff --git a/addons/mrp/__openerp__.py b/addons/mrp/__openerp__.py
index cc0694a7098..cdc5dd6b5ac 100644
--- a/addons/mrp/__openerp__.py
+++ b/addons/mrp/__openerp__.py
@@ -70,7 +70,6 @@
'wizard/mrp_price_view.xml',
'wizard/mrp_workcenter_load_view.xml',
'wizard/mrp_change_standard_price_view.xml',
-# 'wizard/mrp_track_prod_view.xml',
'mrp_view.xml',
'mrp_report.xml',
'company_view.xml',
@@ -84,7 +83,10 @@
],
- 'demo_xml': ['mrp_demo.xml', 'board_manufacturing_demo.xml'],
+ 'demo_xml': [
+ 'mrp_demo.xml',
+ 'board_manufacturing_demo.xml'
+ ],
'test': [
'test/mrp_packs.yml',
'test/mrp_phantom_bom.yml',
diff --git a/addons/mrp/board_manufacturing_demo.xml b/addons/mrp/board_manufacturing_demo.xml
index aea87558a1c..af8f07d2871 100644
--- a/addons/mrp/board_manufacturing_demo.xml
+++ b/addons/mrp/board_manufacturing_demo.xml
@@ -1,13 +1,6 @@
-
diff --git a/addons/mrp/i18n/pt_BR.po b/addons/mrp/i18n/pt_BR.po
index ba9689c8aec..4c47d35f059 100644
--- a/addons/mrp/i18n/pt_BR.po
+++ b/addons/mrp/i18n/pt_BR.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:46+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: mrp
diff --git a/addons/mrp/i18n/tr.po b/addons/mrp/i18n/tr.po
index 3f6b4687a19..ba792fadb9d 100644
--- a/addons/mrp/i18n/tr.po
+++ b/addons/mrp/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:57+0000\n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: mrp
diff --git a/addons/mrp/i18n/zh_TW.po b/addons/mrp/i18n/zh_TW.po
index fb0524c3470..6fcaff80e14 100644
--- a/addons/mrp/i18n/zh_TW.po
+++ b/addons/mrp/i18n/zh_TW.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:21+0000\n"
+"PO-Revision-Date: 2010-08-16 09:44+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: mrp
diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml
index cf952a2660e..2ed73ca0023 100644
--- a/addons/mrp/mrp_view.xml
+++ b/addons/mrp/mrp_view.xml
@@ -8,7 +8,6 @@
-
-
+
mrp.property.search
mrp.property
@@ -92,8 +91,8 @@
-
-
+
+
Properties
ir.actions.act_window
@@ -176,7 +175,7 @@
-
+
@@ -284,8 +283,6 @@
Routings define the assembly operations to be done in work centers for manufacturing a certain product. They are usually attached to bills of materials which will define the assembly of products required for manufacture or for finished products.
-
@@ -369,7 +366,7 @@
-
+
@@ -416,10 +413,6 @@
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -33,7 +14,7 @@
-
+
@@ -45,7 +26,7 @@
-
+
@@ -60,7 +41,7 @@
-
+
diff --git a/addons/mrp/report/workcenter_load.py b/addons/mrp/report/workcenter_load.py
index 9c31e343043..bc59e7426ff 100644
--- a/addons/mrp/report/workcenter_load.py
+++ b/addons/mrp/report/workcenter_load.py
@@ -30,7 +30,6 @@ import StringIO
theme.use_color = 1
-#theme.scale = 2
random.seed(0)
#
diff --git a/addons/mrp/wizard/__init__.py b/addons/mrp/wizard/__init__.py
index be148883d10..fec48938222 100644
--- a/addons/mrp/wizard/__init__.py
+++ b/addons/mrp/wizard/__init__.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -15,14 +15,13 @@
# 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 .
+# along with this program. If not, see .
#
##############################################################################
import mrp_product_produce
import mrp_price
import mrp_workcenter_load
-#import mrp_track_prod
import change_production_qty
import mrp_change_standard_price
diff --git a/addons/mrp/wizard/mrp_price.py b/addons/mrp/wizard/mrp_price.py
index 17cf9c53654..b136326a2dc 100644
--- a/addons/mrp/wizard/mrp_price.py
+++ b/addons/mrp/wizard/mrp_price.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -30,24 +30,24 @@ class mrp_price(osv.osv_memory):
_defaults = {
'number': 1,
}
-
+
def print_report(self, cr, uid, ids, context=None):
""" To print the report of Product cost structure
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param context: A standard dictionary
+ @param context: A standard dictionary
@return : Report
- """
+ """
datas = {'ids' : context.get('active_ids',[])}
res = self.read(cr, uid, ids, ['number'])
- res = res and res[0] or {}
+ res = res and res[0] or {}
datas['form'] = res
-
- return {
- 'type' : 'ir.actions.report.xml',
- 'report_name':'product.price',
- 'datas' : datas,
+
+ return {
+ 'type' : 'ir.actions.report.xml',
+ 'report_name':'product.price',
+ 'datas' : datas,
}
mrp_price()
diff --git a/addons/mrp/wizard/mrp_product_produce.py b/addons/mrp/wizard/mrp_product_produce.py
index a554a829428..39032ea8e4a 100644
--- a/addons/mrp/wizard/mrp_product_produce.py
+++ b/addons/mrp/wizard/mrp_product_produce.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -24,10 +24,10 @@ from osv import fields, osv
class mrp_product_produce(osv.osv_memory):
_name = "mrp.product.produce"
_description = "Product Produce"
-
+
_columns = {
- 'product_qty': fields.float('Quantity', required=True),
- 'mode': fields.selection([('consume_produce', 'Consume & Produce'),
+ 'product_qty': fields.float('Quantity', required=True),
+ 'mode': fields.selection([('consume_produce', 'Consume & Produce'),
('consume', 'Consume Only')], 'Mode', required=True,
help="'Consume only' mode will only consume the products with the quantity selected.\n"
"'Consume & Produce' mode will consume as well as produce the products with the quantity selected "
@@ -40,35 +40,35 @@ class mrp_product_produce(osv.osv_memory):
@param cr: A database cursor
@param uid: ID of the user currently logged in
@param context: A standard dictionary
- @return: Quantity
- """
- prod = self.pool.get('mrp.production').browse(cr, uid,
+ @return: Quantity
+ """
+ prod = self.pool.get('mrp.production').browse(cr, uid,
context['active_id'], context=context)
done = 0.0
for move in prod.move_created_ids2:
if not move.scraped:
done += move.product_qty
return (prod.product_qty - done) or prod.product_qty
-
+
_defaults = {
- 'product_qty': _get_product_qty,
- 'mode': lambda *x: 'consume_produce'
- }
+ 'product_qty': _get_product_qty,
+ 'mode': lambda *x: 'consume_produce'
+ }
def do_produce(self, cr, uid, ids, context={}):
""" To check the product type
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param ids: the ID or list of IDs if we want more than one
+ @param ids: the ID or list of IDs if we want more than one
@param context: A standard dictionary
- @return:
- """
+ @return:
+ """
prod_obj = self.pool.get('mrp.production')
move_ids = context['active_ids']
for data in self.read(cr, uid, ids):
for move_id in move_ids:
- prod_obj.action_produce(cr, uid, move_id,
+ prod_obj.action_produce(cr, uid, move_id,
data['product_qty'], data['mode'], context=context)
return {}
diff --git a/addons/mrp/wizard/mrp_workcenter_load.py b/addons/mrp/wizard/mrp_workcenter_load.py
index db08b170ee1..7f6dfd16b85 100644
--- a/addons/mrp/wizard/mrp_workcenter_load.py
+++ b/addons/mrp/wizard/mrp_workcenter_load.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -24,7 +24,7 @@ from osv import fields, osv
class mrp_workcenter_load(osv.osv_memory):
_name = 'mrp.workcenter.load'
_description = 'Workcenter Load'
-
+
_columns = {
'time_unit': fields.selection([('day', 'Day by day'),('week', 'Per week'),('month', 'Per month')],'Type of period', required=True),
'measure_unit': fields.selection([('hours', 'Amount in hours'),('cycles', 'Amount in cycles')],'Amount measuring unit', required=True),
@@ -35,18 +35,18 @@ class mrp_workcenter_load(osv.osv_memory):
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param context: A standard dictionary
+ @param context: A standard dictionary
@return : Report
- """
+ """
datas = {'ids' : context.get('active_ids',[])}
res = self.read(cr, uid, ids, ['time_unit','measure_unit'])
- res = res and res[0] or {}
+ res = res and res[0] or {}
datas['form'] = res
-
- return {
- 'type' : 'ir.actions.report.xml',
- 'report_name':'mrp.workcenter.load',
- 'datas' : datas,
+
+ return {
+ 'type' : 'ir.actions.report.xml',
+ 'report_name':'mrp.workcenter.load',
+ 'datas' : datas,
}
mrp_workcenter_load()
diff --git a/addons/mrp_operations/i18n/tr.po b/addons/mrp_operations/i18n/tr.po
index 9d85023ec97..7707226e654 100644
--- a/addons/mrp_operations/i18n/tr.po
+++ b/addons/mrp_operations/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:56+0000\n"
+"PO-Revision-Date: 2010-08-16 09:26+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: mrp_operations
diff --git a/addons/mrp_operations/process/mrp_operation_process.xml b/addons/mrp_operations/process/mrp_operation_process.xml
index 17bc98d4643..2b59b87cfaf 100644
--- a/addons/mrp_operations/process/mrp_operation_process.xml
+++ b/addons/mrp_operations/process/mrp_operation_process.xml
@@ -28,7 +28,6 @@
-
@@ -39,7 +38,6 @@
-
@@ -50,7 +48,6 @@
-
@@ -61,7 +58,6 @@
-
diff --git a/addons/mrp_repair/i18n/tr.po b/addons/mrp_repair/i18n/tr.po
index 0999f3ea9c1..0a394743c62 100644
--- a/addons/mrp_repair/i18n/tr.po
+++ b/addons/mrp_repair/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:48+0000\n"
+"PO-Revision-Date: 2010-08-16 09:24+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: mrp_repair
diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py
index 248234d8952..33d973e58c5 100644
--- a/addons/mrp_repair/mrp_repair.py
+++ b/addons/mrp_repair/mrp_repair.py
@@ -41,7 +41,7 @@ class mrp_repair(osv.osv):
@param field_name: Name of field.
@param arg: Argument
@param context: A standard dictionary for contextual values
- @return: Dictionary of values.
+ @return: Dictionary of values.
"""
res = {}
cur_obj = self.pool.get('res.currency')
@@ -59,7 +59,7 @@ class mrp_repair(osv.osv):
""" Calculates taxed amount.
@param field_name: Name of field.
@param arg: Argument
- @return: Dictionary of values.
+ @return: Dictionary of values.
"""
res = {}
cur_obj = self.pool.get('res.currency')
@@ -82,7 +82,7 @@ class mrp_repair(osv.osv):
""" Calculates total amount.
@param field_name: Name of field.
@param arg: Argument
- @return: Dictionary of values.
+ @return: Dictionary of values.
"""
res = {}
untax = self._amount_untaxed(cr, uid, ids, field_name, arg, context)
@@ -167,7 +167,7 @@ class mrp_repair(osv.osv):
def onchange_product_id(self, cr, uid, ids, product_id=None):
""" On change of product sets some values.
@param product_id: Changed product
- @return: Dictionary of values.
+ @return: Dictionary of values.
"""
return {'value': {
'prodlot_id': False,
@@ -183,7 +183,7 @@ class mrp_repair(osv.osv):
destination location, partner and partner address.
@param prod_id: Id of product in current record.
@param move_id: Changed move.
- @return: Dictionary of values.
+ @return: Dictionary of values.
"""
data = {}
data['value'] = {}
@@ -210,11 +210,11 @@ class mrp_repair(osv.osv):
return True
def onchange_partner_id(self, cr, uid, ids, part, address_id):
- """ On change of partner sets the values of partner address,
+ """ On change of partner sets the values of partner address,
partner invoice address and pricelist.
@param part: Changed id of partner.
@param address_id: Address id from current record.
- @return: Dictionary of values.
+ @return: Dictionary of values.
"""
part_obj = self.pool.get('res.partner')
pricelist_obj = self.pool.get('product.pricelist')
@@ -240,7 +240,7 @@ class mrp_repair(osv.osv):
destination location, move and guarantee limit.
@param lot: Changed id of production lot.
@param product_id: Product id from current record.
- @return: Dictionary of values.
+ @return: Dictionary of values.
"""
prodlot_obj = self.pool.get('stock.production.lot')
move_obj = self.pool.get('stock.move')
@@ -275,7 +275,7 @@ class mrp_repair(osv.osv):
def action_cancel_draft(self, cr, uid, ids, *args):
""" Cancels repair order when it is in 'Draft' state.
@param *arg: Arguments
- @return: True
+ @return: True
"""
if not len(ids):
return False
@@ -292,7 +292,7 @@ class mrp_repair(osv.osv):
""" Repair order state is set to 'To be invoiced' when invoice method
is 'Before repair' else state becomes 'Confirmed'.
@param *arg: Arguments
- @return: True
+ @return: True
"""
mrp_line_obj = self.pool.get('mrp.repair.line')
for o in self.browse(cr, uid, ids):
@@ -305,7 +305,7 @@ class mrp_repair(osv.osv):
def action_cancel(self, cr, uid, ids, context=None):
""" Cancels repair order.
- @return: True
+ @return: True
"""
ok=True
mrp_line_obj = self.pool.get('mrp.repair.line')
@@ -320,7 +320,7 @@ class mrp_repair(osv.osv):
def action_invoice_create(self, cr, uid, ids, group=False, context=None):
""" Creates invoice(s) for repair order.
@param group: It is set to true when group invoice is to be generated.
- @return: Invoice Ids.
+ @return: Invoice Ids.
"""
res = {}
invoices_group = {}
@@ -328,7 +328,7 @@ class mrp_repair(osv.osv):
inv_obj = self.pool.get('account.invoice')
repair_line_obj = self.pool.get('mrp.repair.line')
repair_fee_obj = self.pool.get('mrp.repair.fee')
- for repair in self.browse(cr, uid, ids, context=context):
+ for repair in self.browse(cr, uid, ids, context=context):
res[repair.id] = False
if repair.state in ('draft','cancel') or repair.invoice_id:
continue
@@ -382,14 +382,14 @@ class mrp_repair(osv.osv):
'invoice_id': inv_id,
'name': name,
'origin': repair.name,
- 'account_id': account_id,
+ 'account_id': account_id,
'quantity': operation.product_uom_qty,
'invoice_line_tax_id': [(6,0,[x.id for x in operation.tax_id])],
'uos_id': operation.product_uom.id,
'price_unit': operation.price_unit,
'price_subtotal': operation.product_uom_qty*operation.price_unit,
'product_id': operation.product_id and operation.product_id.id or False
- })
+ })
repair_line_obj.write(cr, uid, [operation.id], {'invoiced': True, 'invoice_line_id': invoice_line_id})
for fee in repair.fees_lines:
if fee.to_invoice == True:
@@ -408,35 +408,35 @@ class mrp_repair(osv.osv):
'product_id': fee.product_id and fee.product_id.id or False,
'price_unit': fee.price_unit,
'price_subtotal': fee.product_uom_qty*fee.price_unit
- })
+ })
repair_fee_obj.write(cr, uid, [fee.id], {'invoiced': True, 'invoice_line_id': invoice_fee_id})
res[repair.id] = inv_id
return res
def action_repair_ready(self, cr, uid, ids, context=None):
""" Writes repair order state to 'Ready'
- @return: True
+ @return: True
"""
self.write(cr, uid, ids, {'state': 'ready'})
return True
def action_invoice_cancel(self, cr, uid, ids, context=None):
""" Writes repair order state to 'Exception in invoice'
- @return: True
+ @return: True
"""
self.write(cr, uid, ids, {'state': 'invoice_except'})
return True
def action_repair_start(self, cr, uid, ids, context=None):
""" Writes repair order state to 'Under Repair'
- @return: True
+ @return: True
"""
self.write(cr, uid, ids, {'state': 'under_repair'})
return True
def action_invoice_end(self, cr, uid, ids, context=None):
""" Writes repair order state to 'Ready' if invoice method is Before repair.
- @return: True
+ @return: True
"""
for order in self.browse(cr, uid, ids):
val = {}
@@ -448,9 +448,9 @@ class mrp_repair(osv.osv):
return True
def action_repair_end(self, cr, uid, ids, context=None):
- """ Writes repair order state to 'To be invoiced' if invoice method is
+ """ Writes repair order state to 'To be invoiced' if invoice method is
After repair else state is set to 'Ready'.
- @return: True
+ @return: True
"""
for order in self.browse(cr, uid, ids):
val = {}
@@ -470,7 +470,7 @@ class mrp_repair(osv.osv):
def action_repair_done(self, cr, uid, ids, context=None):
""" Creates stock move and picking for repair order.
- @return: Picking ids.
+ @return: Picking ids.
"""
res = {}
move_obj = self.pool.get('stock.move')
@@ -516,7 +516,7 @@ class mrp_repair(osv.osv):
'location_id': repair.location_id.id,
'location_dest_id': repair.location_dest_id.id,
'tracking_id': False,
- 'state': 'assigned',
+ 'state': 'assigned',
})
wf_service.trg_validate(uid, 'stock.picking', picking, 'button_confirm', cr)
self.write(cr, uid, [repair.id], {'state': 'done', 'picking_id': picking})
@@ -530,7 +530,7 @@ mrp_repair()
class ProductChangeMixin(object):
- def product_id_change(self, cr, uid, ids, pricelist, product, uom=False,
+ def product_id_change(self, cr, uid, ids, pricelist, product, uom=False,
product_uom_qty=0, partner_id=False, guarantee_limit=False):
""" On change of product it sets product quantity, tax account, name,
uom of product, unit price and price subtotal.
@@ -574,7 +574,7 @@ class ProductChangeMixin(object):
'message':
"Couldn't find a pricelist line matching this product and quantity.\n"
"You have to change either the product, the quantity or the pricelist."
- }
+ }
else:
result.update({'price_unit': price, 'price_subtotal': price*product_uom_qty})
@@ -594,7 +594,7 @@ class mrp_repair_line(osv.osv, ProductChangeMixin):
""" Calculates amount.
@param field_name: Name of field.
@param arg: Argument
- @return: Dictionary of values.
+ @return: Dictionary of values.
"""
res = {}
cur_obj=self.pool.get('res.currency')
@@ -672,17 +672,17 @@ mrp_repair_line()
class mrp_repair_fee(osv.osv, ProductChangeMixin):
_name = 'mrp.repair.fee'
_description = 'Repair Fees Line'
-
+
def copy_data(self, cr, uid, id, default=None, context=None):
if not default: default = {}
default.update({'invoice_line_id': False, 'invoiced': False})
return super(mrp_repair_fee, self).copy_data(cr, uid, id, default, context)
-
+
def _amount_line(self, cr, uid, ids, field_name, arg, context):
""" Calculates amount.
@param field_name: Name of field.
@param arg: Argument
- @return: Dictionary of values.
+ @return: Dictionary of values.
"""
res = {}
cur_obj = self.pool.get('res.currency')
diff --git a/addons/mrp_repair/mrp_repair_workflow.xml b/addons/mrp_repair/mrp_repair_workflow.xml
index f4f9baf191a..51485597dc3 100644
--- a/addons/mrp_repair/mrp_repair_workflow.xml
+++ b/addons/mrp_repair/mrp_repair_workflow.xml
@@ -6,7 +6,7 @@
mrp.repair
True
-
+
@@ -32,7 +32,7 @@
Ready Repair
- function
+ function
action_repair_ready()
@@ -50,19 +50,12 @@
wkf_repair_done()
XOR
-
Start Repair
- function
+ function
action_repair_start()
-
+
invoice_end
@@ -75,21 +68,6 @@
function
action_repair_end()
-
-
-
cancel
@@ -106,25 +84,25 @@
-
-
-
+
+
+
repair_confirm
-
+
cancel
-
+
- invoice_method=='b4repair'
+ invoice_method=='b4repair'
@@ -133,17 +111,11 @@
(invoice_method=='after_repair' or invoice_method=='none')
-
-
action_invoice_create
-
+
@@ -177,8 +149,8 @@
-
- action_repair_end
+
+ action_repair_end
diff --git a/addons/mrp_repair/wizard/make_invoice.py b/addons/mrp_repair/wizard/make_invoice.py
index 5619f80681d..971c7f97319 100644
--- a/addons/mrp_repair/wizard/make_invoice.py
+++ b/addons/mrp_repair/wizard/make_invoice.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -15,19 +15,19 @@
# 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 .
+# along with this program. If not, see .
#
##############################################################################
import netsvc
-from osv import osv, fields
+from osv import osv, fields
class make_invoice(osv.osv_memory):
_name = 'mrp.repair.make_invoice'
_description = 'Make Invoice'
-
+
_columns = {
- 'group': fields.boolean('Group by partner invoice address'),
+ 'group': fields.boolean('Group by partner invoice address'),
}
def make_invoices(self, cr, uid, ids, context):
@@ -35,15 +35,15 @@ class make_invoice(osv.osv_memory):
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param ids: List of IDs selected
- @param context: A standard dictionary
+ @param ids: List of IDs selected
+ @param context: A standard dictionary
@return: Loads the view of new invoice(s).
"""
inv = self.browse(cr, uid, ids[0])
- order_obj = self.pool.get('mrp.repair')
- newinv = order_obj.action_invoice_create(cr, uid, context['active_ids'],
- group=inv.group,context=context)
-
+ order_obj = self.pool.get('mrp.repair')
+ newinv = order_obj.action_invoice_create(cr, uid, context['active_ids'],
+ group=inv.group,context=context)
+
return {
'domain': [('id','in', newinv.values())],
'name': 'Invoices',
diff --git a/addons/mrp_subproduct/__openerp__.py b/addons/mrp_subproduct/__openerp__.py
index b1c9db1ccf9..9e27fa91b19 100644
--- a/addons/mrp_subproduct/__openerp__.py
+++ b/addons/mrp_subproduct/__openerp__.py
@@ -36,7 +36,10 @@ With this module:
'website': 'http://www.openerp.com',
'depends': ['base', 'mrp'],
'init_xml': [],
- 'update_xml': ['security/ir.model.access.csv', 'mrp_subproduct_view.xml'],
+ 'update_xml': [
+ 'security/ir.model.access.csv',
+ 'mrp_subproduct_view.xml'
+ ],
'demo_xml': [],
'test': ['test/mrp_subproduct.yml'],
'installable': True,
diff --git a/addons/mrp_subproduct/i18n/tr.po b/addons/mrp_subproduct/i18n/tr.po
index 97c4651f256..6bead10dea6 100644
--- a/addons/mrp_subproduct/i18n/tr.po
+++ b/addons/mrp_subproduct/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:34+0000\n"
+"PO-Revision-Date: 2010-08-16 09:30+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: mrp_subproduct
diff --git a/addons/multi_company/__openerp__.py b/addons/multi_company/__openerp__.py
index fdae2efa3cd..b47a156d547 100644
--- a/addons/multi_company/__openerp__.py
+++ b/addons/multi_company/__openerp__.py
@@ -38,7 +38,6 @@
'init_xml': [],
'update_xml': [
'res_company_view.xml'
- #'security/ir.model.access.csv',
],
'demo_xml': [
'multi_company_demo.xml'
diff --git a/addons/multi_company/multi_company_demo.xml b/addons/multi_company/multi_company_demo.xml
index abc3387f15c..308a9e927e5 100644
--- a/addons/multi_company/multi_company_demo.xml
+++ b/addons/multi_company/multi_company_demo.xml
@@ -1,7 +1,7 @@
-
+
OpenERP Corp.
@@ -20,8 +20,8 @@
Odoo
-
-
+
+
OpenERP Corp.
@@ -56,7 +56,7 @@
Odoo
-
+
@@ -104,7 +104,7 @@
-
+
@@ -312,11 +312,11 @@
-
+
-
+
@@ -379,90 +379,7 @@
-
-
-
-
-
-
diff --git a/addons/olap/__openerp__.py b/addons/olap/__openerp__.py
index 1171cdd23f9..76d119322e2 100644
--- a/addons/olap/__openerp__.py
+++ b/addons/olap/__openerp__.py
@@ -46,8 +46,7 @@
"data/olap_security.xml",
'security/ir.model.access.csv'
],
- "demo_xml" : ["data/olap_demo.xml"
- ],
+ "demo_xml" : ["data/olap_demo.xml"],
"active": False,
"installable": True
}
diff --git a/addons/olap/data/olap_cube_view.xml b/addons/olap/data/olap_cube_view.xml
index 4ffbab0ff60..1afc1a5d520 100644
--- a/addons/olap/data/olap_cube_view.xml
+++ b/addons/olap/data/olap_cube_view.xml
@@ -3,7 +3,7 @@
-
+
bi.load.db.form
bi.load.db.wizard
@@ -22,7 +22,7 @@
-
+
Load database Structure
bi.load.db.wizard
@@ -33,10 +33,10 @@
new
-
-
+
+
-
+
Olap Warehouse
olap.warehouse.wizard
@@ -51,7 +51,7 @@
-
+
Olap Warehouse
ir.actions.act_window
@@ -60,7 +60,7 @@
form
new
-
+
-
+
-
+
Parameters Configuration
olap.parameters.config.wizard
@@ -83,7 +83,6 @@
-
@@ -99,21 +98,9 @@
-
-
+
Parameters Configuration
ir.actions.act_window
@@ -122,7 +109,7 @@
form
new
-
+
-
+
Server Parameters Configuration
This wizard will configure the URL of the web client
-
-
+
+
-
+
bi.auto.configure.form
bi.auto.configure.wizard
@@ -154,7 +141,7 @@
-
+
Auto Configuration
bi.auto.configure.wizard
@@ -165,13 +152,13 @@
new
-
-
-
+
+
+
# ------------------------------------------------------------------
# Olap Schema
# ------------------------------------------------------------------
-
+
olap.schema.tree
olap.schema
@@ -183,7 +170,7 @@
-
+
olap.schema.form
olap.schema
@@ -218,19 +205,19 @@
-
+
Olap Schemas
olap.schema
form
-
+
-
+
# ------------------------------------------------------------------
# Olap Cubes Table
# ------------------------------------------------------------------
@@ -268,23 +255,23 @@
-
+
Olap Cube Tables
olap.cube.table
form
-
+
-
+
# ------------------------------------------------------------------
# Olap Cubes
# ------------------------------------------------------------------
-
+
olap.cube.tree
olap.cube
@@ -296,7 +283,7 @@
-
+
olap.cube.form
olap.cube
@@ -310,24 +297,24 @@
-
+
Olap Cubes
olap.cube
form
-
+
-
-
+
+
# ------------------------------------------------------------------
# Olap Dimensions
# ------------------------------------------------------------------
-
+
olap.dimension.tree
olap.dimension
@@ -339,7 +326,7 @@
-
+
olap.dimension.form
olap.dimension
@@ -351,23 +338,23 @@
-
+
Olap Dimensions
olap.dimension
form
-
+
-
+
# ------------------------------------------------------------------
# Olap Hierarchies
# ------------------------------------------------------------------
-
+
olap.hierarchy.tree
olap.hierarchy
@@ -379,7 +366,7 @@
-
+
olap.hierarchy.form
olap.hierarchy
@@ -389,32 +376,28 @@
-
-
-
-
+
Olap Hierarchies
olap.hierarchy
form
-
+
-
-
+
+
# ------------------------------------------------------------------
# Olap Levels
# ------------------------------------------------------------------
-
+
olap.level.tree
olap.level
@@ -431,7 +414,7 @@
-
+
olap.level.form
olap.level
@@ -450,24 +433,24 @@
-
+
Olap Level
olap.level
form
-
+
-
-
+
+
# ------------------------------------------------------------------
# Olap Measure
# ------------------------------------------------------------------
-
+
olap.measure.tree
olap.measure
@@ -479,7 +462,7 @@
-
+
olap.measure.form
olap.measure
@@ -507,19 +490,19 @@
-
+
Olap Measures
olap.measure
form
-
+
-
+
# ------------------------------------------------------------------
# Olap Saved Query
# ------------------------------------------------------------------
@@ -538,7 +521,7 @@
-
+
olap.saved.query.mdx
olap.saved.query
@@ -554,7 +537,7 @@
-
+
olap.saved.query.form
olap.saved.query
@@ -576,22 +559,22 @@
-
+
Olap Saved Query
olap.saved.query
form
tree,form,mdx
-
+
-
+
-
+
olap.query.logs
olap.query.logs
@@ -605,7 +588,7 @@
-
+
olap.query.logs.form
olap.query.logs
@@ -622,21 +605,21 @@
-
+
All Logs
olap.query.logs
form
-
+
-
+
-
+
olap.query.logs
olap.query.logs
@@ -649,7 +632,7 @@
-
+
olap.query.logs
olap.query.logs
@@ -662,9 +645,9 @@
-
+
-
+
olap.query.logs.form
olap.query.logs
@@ -680,7 +663,7 @@
-
+
My Logs
olap.query.logs
@@ -688,12 +671,12 @@
tree,form,mdx
[('user_id','=',uid)]
-
+
-
+
diff --git a/addons/olap/data/olap_cube_workflow.xml b/addons/olap/data/olap_cube_workflow.xml
index cedfbcc686b..eaa97476c97 100644
--- a/addons/olap/data/olap_cube_workflow.xml
+++ b/addons/olap/data/olap_cube_workflow.xml
@@ -6,52 +6,42 @@
olap.schema
True
-
+
True
none
-
+
dbconnect
function
action_dbconnect()
-
+
dbload
function
action_dbload()
-
+
dbconfigure
function
action_dbconfigure()
-
+
True
dbready
function
- action_dbready()
+ action_dbready()
-
-
@@ -69,19 +59,12 @@
dbconfigure
-
+
dbready
-
diff --git a/addons/olap/data/olap_fact_view.xml b/addons/olap/data/olap_fact_view.xml
index f01db863f6e..86c417e7c12 100644
--- a/addons/olap/data/olap_fact_view.xml
+++ b/addons/olap/data/olap_fact_view.xml
@@ -77,8 +77,6 @@
-
-
diff --git a/addons/olap/data/olap_wizard.xml b/addons/olap/data/olap_wizard.xml
index 5f677e7a8c6..3299061ab3e 100644
--- a/addons/olap/data/olap_wizard.xml
+++ b/addons/olap/data/olap_wizard.xml
@@ -3,53 +3,42 @@
+ string="Query Builder"
+ model="olap.schema"
+ name="olap.query_builder"
+ menu= "False"
+ multi="True"
+ id="bi_conf_cube_query_builder"/>
+
-
+
+
-
-
-
-
-
-
-
-
+
diff --git a/addons/olap/i18n/et.po b/addons/olap/i18n/et.po
index 99796d11f52..73de7de78f4 100644
--- a/addons/olap/i18n/et.po
+++ b/addons/olap/i18n/et.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-11-26 05:24+0000\n"
-"PO-Revision-Date: 2010-08-15 18:00+0000\n"
+"PO-Revision-Date: 2010-08-16 20:37+0000\n"
"Last-Translator: lyyser \n"
"Language-Team: Estonian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:01+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: olap
@@ -378,7 +378,7 @@ msgstr ""
#. module: olap
#: field:olap.fact.database,db_login:0
msgid "Database login"
-msgstr ""
+msgstr "Andmebaasi sisselogimine"
#. module: olap
#: model:ir.ui.menu,name:olap.menu_view_olap_application_table_form
diff --git a/addons/olap/olap.py b/addons/olap/olap.py
index 7e5198abb6d..b76adc66b08 100644
--- a/addons/olap/olap.py
+++ b/addons/olap/olap.py
@@ -203,7 +203,7 @@ class olap_schema(osv.osv ):
'state': lambda * a: 'none',
'configure': lambda * a: False,
'ready': lambda * a: False
- }
+ }
def action_dbconnect(self, cr, uid, ids, context = {}):
""" Connect DB with postgres ,Or MySql,Or Orcale
@@ -497,7 +497,7 @@ class olap_database_columns(osv.osv):
'text': 'Text',
'date': 'Date',
'time': 'TimeStamp without Time Zone',
- 'number': 'NUMBER',
+ 'number': 'NUMBER',
}
def _datatypes_get(self, *args, **argv):
@@ -718,9 +718,9 @@ class olap_database_columns(osv.osv):
if context['parent_id']:
parent_id = context['parent_id']
val = {
- 'cube_table_id': parent_id,
- 'table_id': table_id,
- 'field_id': ids[0]
+ 'cube_table_id': parent_id,
+ 'table_id': table_id,
+ 'field_id': ids[0]
}
id = self.pool.get('olap.cube.table.line').create(cr, uid, val, context)
@@ -993,7 +993,7 @@ class olap_cube_table(osv.osv):
relation = 'olap.database.columns',
string = 'Available Tables',
type = "many2many"
- ),
+ ),
}
_defaults = {
@@ -1070,8 +1070,8 @@ class olap_cube(osv.osv):
}
_defaults = {
- 'schema_id': _set_schema
- }
+ 'schema_id': _set_schema
+ }
olap_cube()
@@ -1091,8 +1091,8 @@ class olap_query_logs(osv.osv):
}
_defaults = {
- 'count':lambda * args: 0
- }
+ 'count':lambda * args: 0
+ }
olap_query_logs()
@@ -1120,7 +1120,7 @@ class olap_dimension(osv.osv):
'hierarchy_ids': fields.one2many('olap.hierarchy', 'dimension_id', 'Hierarchies'),
}
_defaults = {
- 'cube_id': _set_cube,
+ 'cube_id': _set_cube,
}
olap_dimension()
@@ -1414,15 +1414,15 @@ class olap_saved_query(osv.osv):
_decription = "Olap Saved Query"
_columns = {
- 'name': fields.text('Query Name', size = 64),
- 'user_id': fields.many2one('res.users', 'User'),
- 'query': fields.text('Query', required = True),
- 'cube_id': fields.many2one('olap.cube', 'Cube', required = True),
- 'mdx_id': fields.char('Module', size=64),
- 'schema_id': fields.many2one('olap.schema', 'Schema', required = True),
- 'time': fields.datetime('Time', required = True),
- 'axis_keys': fields.text('Axis Keys'),
- }
+ 'name': fields.text('Query Name', size = 64),
+ 'user_id': fields.many2one('res.users', 'User'),
+ 'query': fields.text('Query', required = True),
+ 'cube_id': fields.many2one('olap.cube', 'Cube', required = True),
+ 'mdx_id': fields.char('Module', size=64),
+ 'schema_id': fields.many2one('olap.schema', 'Schema', required = True),
+ 'time': fields.datetime('Time', required = True),
+ 'axis_keys': fields.text('Axis Keys'),
+ }
olap_saved_query()
# Wizard for the Load Data Structure
@@ -1865,11 +1865,11 @@ class bi_auto_configure_wizard(osv.osv_memory):
_columns = {
'name': fields.char('Fact Name' , size = 64, readonly = True),
- }
+ }
_defaults = {
- 'name': _get_name,
- }
+ 'name': _get_name,
+ }
def action_load(self, cr, uid, ids, context = None):
"""
@@ -2078,12 +2078,12 @@ class olap_warehouse_wizard(osv.osv_memory):
return {'type': 'ir.actions.act_window_close' }
_columns = {
- 'query': fields.text('Query', readonly=True),
- }
+ 'query': fields.text('Query', readonly=True),
+ }
_defaults = {
'query': _get_queries,
- }
+ }
olap_warehouse_wizard()
@@ -2152,14 +2152,14 @@ class olap_parameters_config_wizard(osv.osv_memory):
its not clear.", required = True),
'config_logo': fields.binary('Image', readonly=True),
'progress': fields.float('Configuration Progress', readonly=True),
- }
+ }
_defaults = {
'host_name': _get_host,
'host_port': _get_port,
'progress': _progress,
'config_logo': _get_image,
- }
+ }
def action_cancel(self, cr, uid, ids, conect = None):
"""
@@ -2171,11 +2171,11 @@ class olap_parameters_config_wizard(osv.osv_memory):
"""
return {
- 'view_type': 'form',
- "view_mode": 'form',
- 'res_model': 'ir.actions.configuration.wizard',
- 'type': 'ir.actions.act_window',
- 'target':'new',
+ 'view_type': 'form',
+ "view_mode": 'form',
+ 'res_model': 'ir.actions.configuration.wizard',
+ 'type': 'ir.actions.act_window',
+ 'target':'new',
}
def action_config(self, cr, uid, ids, context = None):
@@ -2203,11 +2203,11 @@ class olap_parameters_config_wizard(osv.osv_memory):
':' + (conf.host_port or '8080') + '/designer'})
return {
- 'view_type': 'form',
- "view_mode": 'form',
- 'res_model': 'ir.actions.configuration.wizard',
- 'type': 'ir.actions.act_window',
- 'target':'new',
+ 'view_type': 'form',
+ "view_mode": 'form',
+ 'res_model': 'ir.actions.configuration.wizard',
+ 'type': 'ir.actions.act_window',
+ 'target':'new',
}
olap_parameters_config_wizard()
diff --git a/addons/olap/wizard/olap_query_logs_clear.py b/addons/olap/wizard/olap_query_logs_clear.py
index 6d8f4a0ef45..d4f85a8d0af 100644
--- a/addons/olap/wizard/olap_query_logs_clear.py
+++ b/addons/olap/wizard/olap_query_logs_clear.py
@@ -26,7 +26,7 @@ class olap_query_logs_clear(osv.osv_memory):
_description = "Olap Query Logs Clear"
_columns = {
- 'user_name':fields.char('User', size=64, required=True, readonly=True),
+ 'user_name':fields.char('User', size=64, required=True, readonly=True),
}
def _getdata(self, cr, uid, context={}):
@@ -35,7 +35,7 @@ class olap_query_logs_clear(osv.osv_memory):
_defaults = {
'user_name': _getdata
- }
+ }
def clear_logs(self, cr, uid, part, context={}):
"""
@@ -52,11 +52,11 @@ class olap_query_logs_clear(osv.osv_memory):
if id2:
id2 = data_obj.browse(cr, uid, id2, context=context).res_id
value = {
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'olap.query.logs.clear.msg',
- 'views': [(id2, 'form'), (False, 'tree'), (False, 'calendar'), (False, 'graph')],
- 'type': 'ir.actions.act_window',
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'olap.query.logs.clear.msg',
+ 'views': [(id2, 'form'), (False, 'tree'), (False, 'calendar'), (False, 'graph')],
+ 'type': 'ir.actions.act_window',
'target': 'new'
}
return value
diff --git a/addons/olap/wizard/wizard_load_configured_table.py b/addons/olap/wizard/wizard_load_configured_table.py
index da9a23cd1ba..7aea2f9da14 100644
--- a/addons/olap/wizard/wizard_load_configured_table.py
+++ b/addons/olap/wizard/wizard_load_configured_table.py
@@ -33,20 +33,14 @@ import netsvc
class wizard_load_configured_table(wizard.interface):
def _get_table_data(self, cr, uid, data, context={}):
pool_obj = pooler.get_pool(cr.dbname)
-
-# vals={}
-# vals['configure']=True
-# vals['state']='dbconfigure'
-# pooler.get_pool(cr.dbname).get('olap.schema').write(cr,uid,data['id'],vals)
-
wf_service = netsvc.LocalService('workflow')
wf_service.trg_validate(uid, 'olap.schema', data['id'], 'dbconfigure', cr)
-
+
lines=pool_obj.get('olap.schema').read(cr, uid, data['id'],context={})
fact_ids=pool_obj.get('olap.database.tables').search(cr, uid, ([('fact_database_id','=',lines['database_id'][0])]),context={})
model_data_ids = pool_obj.get('ir.model.data').search(cr,uid,[('model','=','ir.ui.view'),('name','=','view_olap_database_tables_form')],context={})
resource_id = pool_obj.get('ir.model.data').read(cr,uid,model_data_ids,fields=['res_id'])[0]['res_id']
-
+
return {
'domain': "[('id','in', ["+','.join(map(str,fact_ids))+"])]",
'name': 'Database Tables',
@@ -56,7 +50,7 @@ class wizard_load_configured_table(wizard.interface):
'views': [(False,'tree'),(resource_id,'form')],
'type': 'ir.actions.act_window'
}
-
+
states = {
'init' : {
'actions' : [],
diff --git a/addons/olap/wizard/wizard_load_data.py b/addons/olap/wizard/wizard_load_data.py
index 989c6330469..b24d5464b2e 100644
--- a/addons/olap/wizard/wizard_load_data.py
+++ b/addons/olap/wizard/wizard_load_data.py
@@ -101,7 +101,7 @@ def olap_db_connect(self,cr,uid,part,context={}):
WHERE table_schema = 'public'""")
for col in cr_db.fetchall():
- val={
+ val = {
'table_id': tables[col[0]],
'column_db_name': col[1],
'type': col[2],
@@ -126,7 +126,7 @@ def olap_db_connect(self,cr,uid,part,context={}):
constraint_type = 'PRIMARY KEY')""")
print "Updating the Primary Key Constraint"
for constraint in cr_db.fetchall():
- val={
+ val = {
'primary_key':True
}
@@ -155,7 +155,7 @@ def olap_db_connect(self,cr,uid,part,context={}):
constraint_type = 'FOREIGN KEY')""")
for constraint in cr_db.fetchall():
- val={
+ val = {
'related_to':tables[for_key[constraint[2]]]
}
id_to_write=filter(lambda x:(int(cols[x][1])==int(tables[constraint[0]])and (constraint[1]==cols[x][0])),cols)
@@ -209,7 +209,7 @@ def olap_db_connect(self,cr,uid,part,context={}):
for col in cr_db.fetchall():
- val={
+ val = {
'table_id': tables[col[0]],
'column_db_name': col[1],
'type': col[2],
@@ -237,14 +237,14 @@ def olap_db_connect(self,cr,uid,part,context={}):
for constraint in cr_db.fetchall():
if constraint[0]:
- val={
- 'related_to':tables[constraint[1]]
- }
+ val = {
+ 'related_to':tables[constraint[1]]
+ }
else:
- val={
- 'primary_key':True
- }
+ val = {
+ 'primary_key':True
+ }
id_to_write=filter(lambda x:(int(cols[x][1])==int(tables[constraint[3]])and(constraint[2]==cols[x][0])),cols)
col_id=tcol.write(cr,uid,int(id_to_write[0]),val,context)
@@ -304,7 +304,7 @@ def olap_db_connect(self,cr,uid,part,context={}):
type_col='varchar'
else:
type_col=col[2]
- val={
+ val = {
'table_id': tables[col[0]],
'column_db_name': col[1],
'type': type_col,
@@ -331,7 +331,7 @@ def olap_db_connect(self,cr,uid,part,context={}):
temp = cr_db.fetchall()
pk_table = {}
for constraint in temp:
- val={
+ val = {
'primary_key' : True
}
pk_table[constraint[2]] = constraint[0]
@@ -364,7 +364,7 @@ def olap_db_connect(self,cr,uid,part,context={}):
for constraint in temp:
rel_constraint_name=constraints_map[constraint[2]]
req_table = pk_table[rel_constraint_name]
- val={
+ val = {
'related_to' : tables[req_table]
}
id_to_write=filter(lambda x:(int(cols[x][1])==int(tables[constraint[0]])and (constraint[1]==cols[x][0])),cols)
diff --git a/addons/olap/wizard/wizard_query_builder.py b/addons/olap/wizard/wizard_query_builder.py
index 3b69c1cf996..64bc7888868 100644
--- a/addons/olap/wizard/wizard_query_builder.py
+++ b/addons/olap/wizard/wizard_query_builder.py
@@ -136,15 +136,13 @@ query_builder_form = """
"""
query_builder_fields={
-
-
- 'dimension':{'string':'Dimension','type':'text'},
- 'hierarchy':{'string':'Hiearchy','type':'text'},
- 'level':{'string':'Level','type':'text'},
- 'measure':{'string':'Measure','type':'text'},
- 'mdx_query':{'string':'MDX Query','type':'text'},
- 'mdx_query_output':{'string':'MDX Query Output','type':'text'},
- }
+ 'dimension':{'string':'Dimension','type':'text'},
+ 'hierarchy':{'string':'Hiearchy','type':'text'},
+ 'level':{'string':'Level','type':'text'},
+ 'measure':{'string':'Measure','type':'text'},
+ 'mdx_query':{'string':'MDX Query','type':'text'},
+ 'mdx_query_output':{'string':'MDX Query Output','type':'text'},
+}
query_builder_fetch_form = """
@@ -185,10 +183,8 @@ def _execute_mdx(self, cr, uid, data, context):
ok = True
if not ok:
continue
- #print ' '*COLSPAN,
output =' '*COLSPAN
log.add(output)
- # print (('%-'+str(ROWSPAN)+'s ' ) * len(axis[1])) % tuple(map(lambda x: str(len(x[0])==i and x[1] or ''),axis[1]))
output=(('%-'+str(ROWSPAN)+'s ' ) * len(axis[1])) % tuple(map(lambda x: str(len(x[0])==i and x[1] or ''),axis[1]))
log.add(output)
@@ -197,23 +193,18 @@ def _execute_mdx(self, cr, uid, data, context):
print "--------------------------------------",x
temp=(axis[0].pop(0)[1])
print "--------------------------------------",temp
- # print ('%-'+str(COLSPAN)+'s')% (' '*(len(axis[0][0][0])-1)*2 + (temp),),
output =('%-'+str(COLSPAN)+'s')% (str(x)+str(temp))
log.add("\n")
log.add(output)
- #output=(temp)
for row in col:
if row==[False]:
- # print ('%-'+str(ROWSPAN)+'s')%('',),
output=('%-'+str(ROWSPAN)+'s')%('')
log.add(output)
else:
- # print ('%-'+str(ROWSPAN)+'s')%(row,),
output=('%-'+str(ROWSPAN)+'s')%(row)
log.add(output)
- #print
log.add("\n")
return {'mdx_query_output':log()}
diff --git a/addons/olap_crm/olap_crm.xml b/addons/olap_crm/olap_crm.xml
index a430db8fc67..2fe3d2bffd9 100644
--- a/addons/olap_crm/olap_crm.xml
+++ b/addons/olap_crm/olap_crm.xml
@@ -68,10 +68,10 @@ cube table and cube table line
True
-
+
-
+
id
id
@@ -95,7 +95,7 @@ cube table and cube table line
True
-
+
id
id
@@ -144,7 +144,7 @@ cube table and cube table line
int4
-
+
canal_id
@@ -265,7 +265,7 @@ cube table and cube table line
DIMENSION Sections
-->
-
+
Sections
@@ -378,7 +378,7 @@ Category
-
+
Channels
@@ -428,7 +428,7 @@ Measures
avg(crm_case.planned_cost)
cr_postfix_comma
-
+
Planned Revenue
@@ -438,7 +438,7 @@ Measures
sum
cr_postfix_comma
-
+
Planned Revenue
@@ -447,7 +447,7 @@ Measures
crm_case
sum
-
+
Probability
@@ -456,7 +456,7 @@ Measures
crm_case
sum
-d
+
diff --git a/addons/olap_extract/wizard_olap_extract.py b/addons/olap_extract/wizard_olap_extract.py
index 75e546bd7b6..1e52884a1fa 100644
--- a/addons/olap_extract/wizard_olap_extract.py
+++ b/addons/olap_extract/wizard_olap_extract.py
@@ -1,6 +1,6 @@
# -*- encoding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -39,15 +39,15 @@ field1 = {
class wizard_olap_extract(wizard.interface):
-
+
def zipper(self,zipname,filename,mode="a"):
z = zipfile.ZipFile(zipname+".zip", mode)
z.write(filename)
print "\n",z.printdir()
-
-
+
+
def write_csv(self,filename,content=[]):
- fid = open(filename, 'w')
+ fid = open(filename, 'w')
if fid == -1:
print 'File: temp.csv not found or could not be opened'
return False
@@ -55,20 +55,20 @@ class wizard_olap_extract(wizard.interface):
writer=csv.writer(fid, 'TINY',delimiter=',')
for row in content:
writer.writerow(row)
- fid.close
+ fid.close
return True
-
+
def table_depth(self,cr,uid,list=[],context={}):
res={}
templeft={}
tempright={}
for table_id in list:
- lines=pooler.get_pool(cr.dbname).get('olap.cube.table').browse(cr, uid,table_id,context)
+ lines=pooler.get_pool(cr.dbname).get('olap.cube.table').browse(cr, uid,table_id,context)
res[str(lines.id)] = ["cubetable_"+str(lines.id),lines.name and lines.name or '',lines.table_alias and lines.table_alias or '',lines.key_left and lines.key_left or '',lines.key_right and lines.key_right or '',lines.table_left_id.id and "cubetable_"+str(lines.table_left_id.id) or '',lines.table_right_id.id and "cubetable_"+str(lines.table_right_id.id) or '']
if(lines.table_left_id.id):
templeft = self.table_depth(cr,uid,[lines.table_left_id.id],context)
-
+
if templeft:
for temp in templeft:
if not res.has_key(temp):
@@ -76,24 +76,24 @@ class wizard_olap_extract(wizard.interface):
if(lines.table_right_id.id):
- tempright = self.table_depth(cr,uid,[lines.table_right_id.id],context)
-
+ tempright = self.table_depth(cr,uid,[lines.table_right_id.id],context)
+
if tempright:
for temp in tempright:
if not res.has_key(temp):
res[temp]= tempright[temp]
return res
-
-
+
+
def _extract_schema(self, cr, uid, data, context={}):
_name = data['form']['module_name']
_modulename = "olap_"+_name
-
+
dirname = _modulename
if not os.path.isdir("./addons/" + dirname + "/"):
- os.mkdir("./addons/" + dirname + "/")
-
+ os.mkdir("./addons/" + dirname + "/")
+
os.chdir("./addons/"+dirname)
_init = "import %s" % _modulename
@@ -101,17 +101,17 @@ class wizard_olap_extract(wizard.interface):
f.write(_init)
f.close()
self.zipper(_modulename, "__init__.py","w")
-
+
_init_files = {
- "1":"olap.fact.database.csv",
- "2":"olap.schema.csv",
- "5":"olap.cube.table.csv",
- "6":"olap.cube.csv",
- "7":"olap.dimension.csv",
- "8":"olap.hierarchy.csv",
- "9":"olap.level.csv",
- "10":"olap.measure.csv"
- }
+ "1":"olap.fact.database.csv",
+ "2":"olap.schema.csv",
+ "5":"olap.cube.table.csv",
+ "6":"olap.cube.csv",
+ "7":"olap.dimension.csv",
+ "8":"olap.hierarchy.csv",
+ "9":"olap.level.csv",
+ "10":"olap.measure.csv"
+ }
_init_xml = """"%(1)s",
"%(2)s",
"%(5)s",
@@ -121,7 +121,7 @@ class wizard_olap_extract(wizard.interface):
"%(9)s",
"%(10)s",
""" % _init_files
-
+
data['modulename'] = _modulename
data['init_xml'] = _init_xml
@@ -144,36 +144,36 @@ class wizard_olap_extract(wizard.interface):
f = open("__terp__.py","w")
f.write(_terp)
- f.close()
- self.zipper(_modulename, "__terp__.py")
-
+ f.close()
+ self.zipper(_modulename, "__terp__.py")
+
schema_id = data['id']
lines=pooler.get_pool(cr.dbname).get('olap.schema').browse(cr, uid, schema_id,context)
-
+
_extract=[]
_extract.append(['id','name','db_name','db_login','db_password'])
_extract.append(["db_"+str(lines.database_id.id),lines.database_id.name,lines.database_id.db_name,lines.database_id.db_login,lines.database_id.db_password])
self.write_csv('olap.fact.database.csv',_extract)
self.zipper(_modulename, "olap.fact.database.csv")
-
+
_extract=[]
_extract.append(['id','name','database_id:id','loaded','configure','ready','state','note'])
_extract.append(["schema_"+str(lines.id),lines.name,"db_"+str(lines.database_id.id),lines.loaded and lines.loaded or '',lines.configure and lines.configure or '', lines.ready and lines.ready or '',lines.state,lines.note and lines.note or ''])
self.write_csv('olap.schema.csv',_extract)
- self.zipper(_modulename, "olap.schema.csv")
-
+ self.zipper(_modulename, "olap.schema.csv")
+
cube_ids = lines.cube_ids
_extractcubes=[]
_extractcubes.append(['id','name','table_id:id','schema_id:id'])
-
+
_extractmeasures=[]
- _extractmeasures.append(['id','name','cube_id:id','value_column','value_sql','agregator','datatype','formatstring'])
-
+ _extractmeasures.append(['id','name','cube_id:id','value_column','value_sql','agregator','datatype','formatstring'])
+
_extractdimension=[]
_extractdimension.append(['id','name','foreign_key','foreign_key_table','cube_id:id'])
-
+
_extracthiers=[]
_extracthiers.append(['id','name','primary_key','primary_key_table','field_name','member_all','member_default','sequence','type','dimension_id:id','table_id:id'])
@@ -182,26 +182,26 @@ class wizard_olap_extract(wizard.interface):
_cube_table_ids = []
for cube in cube_ids:
- _extractcubes.append(["cube_"+str(cube.id),cube.name,"cubetable_"+str(cube.table_id.id),"schema_"+str(cube.schema_id.id)])
- _cube_table_ids.append(cube.table_id.id)
-
+ _extractcubes.append(["cube_"+str(cube.id),cube.name,"cubetable_"+str(cube.table_id.id),"schema_"+str(cube.schema_id.id)])
+ _cube_table_ids.append(cube.table_id.id)
+
measure_ids = cube.measure_ids
for measure in measure_ids:
- _extractmeasures.append(["msr_"+str(measure.id),measure.name,"cube_"+str(measure.cube_id.id),measure.value_column and measure.value_column or '',measure.value_sql and measure.value_sql or '',measure.agregator,measure.datatype and measure.datatype or '',measure.formatstring])
-
+ _extractmeasures.append(["msr_"+str(measure.id),measure.name,"cube_"+str(measure.cube_id.id),measure.value_column and measure.value_column or '',measure.value_sql and measure.value_sql or '',measure.agregator,measure.datatype and measure.datatype or '',measure.formatstring])
+
dimension_ids = cube.dimension_ids
for dimension in dimension_ids:
_extractdimension.append(["dim_"+str(dimension.id),dimension.name,dimension.foreign_key and dimension.foreign_key or '',dimension.foreign_key_table and dimension.foreign_key_table or '',"cube_"+str(dimension.cube_id.id)])
-
+
hiers_ids = dimension.hierarchy_ids
for hier in hiers_ids:
_extracthiers.append(["hier_"+str(hier.id),hier.name,hier.primary_key,hier.primary_key_table and hier.primary_key_table or '',hier.field_name,hier.member_all,hier.member_default,hier.sequence,hier.type,"dim_"+str(hier.dimension_id.id),"cubetable_"+str(hier.table_id.id)])
_cube_table_ids.append(hier.table_id.id)
-
+
level_ids = hier.level_ids
for level in level_ids:
_extractlevels.append(["lvl_"+str(level.id),level.name,level.column_name,level.column_id_name,level.type,level.table_name,level.sequence,"hier_"+str(level.hierarchy_id.id)])
-
+
res={}
_extract=[]
_extract.append(['id','name','table_alias','key_left','key_right','table_left_id:id','table_right_id:id'])
@@ -209,37 +209,37 @@ class wizard_olap_extract(wizard.interface):
key = res.keys()
key = map(lambda x: int(x),key)
key.sort()
-
+
for k in key:
_extract.append(res[str(k)])
-
+
self.write_csv('olap.cube.csv',_extractcubes)
self.zipper(_modulename, "olap.cube.csv")
-
+
self.write_csv('olap.measure.csv',_extractmeasures)
- self.zipper(_modulename, "olap.measure.csv")
-
+ self.zipper(_modulename, "olap.measure.csv")
+
self.write_csv('olap.dimension.csv',_extractdimension)
self.zipper(_modulename, "olap.dimension.csv")
-
+
self.write_csv('olap.hierarchy.csv',_extracthiers)
- self.zipper(_modulename, "olap.hierarchy.csv")
-
+ self.zipper(_modulename, "olap.hierarchy.csv")
+
self.write_csv('olap.level.csv',_extractlevels)
- self.zipper(_modulename, "olap.level.csv")
+ self.zipper(_modulename, "olap.level.csv")
self.write_csv('olap.cube.table.csv',_extract)
- self.zipper(_modulename, "olap.cube.table.csv")
+ self.zipper(_modulename, "olap.cube.table.csv")
return {}
-
+
states = {
-
+
'init': {
'actions': [],
'result': {'type':'form','arch':form1, 'fields':field1, 'state':[('end','Cancel'),('ok','OK')]}
- },
-
+ },
+
'ok' : {
'actions' : [],
'result' : {'type' : 'action' ,'action':_extract_schema,'state':'end'}
diff --git a/addons/olap_sale/olap_sale.xml b/addons/olap_sale/olap_sale.xml
index f5a355de34d..ec815e10458 100644
--- a/addons/olap_sale/olap_sale.xml
+++ b/addons/olap_sale/olap_sale.xml
@@ -65,7 +65,7 @@ cube table and cube table line
res_partner_address
True
-
+
res_country
@@ -87,7 +87,7 @@ cube table and cube table line
True
-
+
product_id
product_id
@@ -105,15 +105,7 @@ cube table and cube table line
True
True
-
+
id
id
@@ -265,16 +257,6 @@ cube table and cube table line
True
-
order_id
order_id
@@ -360,7 +342,7 @@ cube table and cube table line
varchar
True
-
+
country_id
@@ -369,7 +351,7 @@ cube table and cube table line
True
-
+
city
@@ -388,16 +370,6 @@ cube table and cube table line
True
-
product_uom_qty
product_uom_qty
@@ -425,7 +397,7 @@ cube table and cube table line
diff --git a/addons/outlook/__init__.py b/addons/outlook/__init__.py
index 26c654db9dd..0190f2f396f 100644
--- a/addons/outlook/__init__.py
+++ b/addons/outlook/__init__.py
@@ -18,4 +18,5 @@
# along with this program. If not, see .
#
##############################################################################
+import installer
diff --git a/addons/outlook/__openerp__.py b/addons/outlook/__openerp__.py
index 7a6d56b9e59..742714c6104 100644
--- a/addons/outlook/__openerp__.py
+++ b/addons/outlook/__openerp__.py
@@ -18,14 +18,16 @@
# along with this program. If not, see .
#
##############################################################################
+
+
{
- "name" : "Outlook Interface",
- "version" : "1.0",
- "author" : "OpenERP SA",
- "website" : "http://www.openerp.com/",
- "depends" : ["base", "mail_gateway"],
- "category" : "Generic Modules/Outlook interface",
- "description": '''
+ 'name' : 'Outlook Interface',
+ 'version' : '1.0',
+ 'author' : 'OpenERP SA',
+ 'website' : 'http://www.openerp.com/',
+ 'depends' : ['base', 'mail_gateway'],
+ 'category' : 'Generic Modules/Outlook interface',
+ 'description': '''
This module provide the Outlook plug-in.
Outlook plug-in allows you to select an object that you’d like to add
@@ -34,11 +36,11 @@
mail in mailgate.messages with attachments.
''',
- "init_xml" : [],
- "demo_xml" : [],
- "update_xml" : [],
- "active": False,
- "installable": True
+ 'init_xml' : [],
+ 'demo_xml' : [],
+ 'update_xml' : ['outlook_installer.xml'],
+ 'active': False,
+ 'installable': True
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/outlook/installer.py b/addons/outlook/installer.py
new file mode 100755
index 00000000000..b0459ccbaeb
--- /dev/null
+++ b/addons/outlook/installer.py
@@ -0,0 +1,70 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2010 Tiny SPRL ().
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from osv import fields
+from osv import osv
+from tools import config
+
+import base64
+
+class outlook_installer(osv.osv_memory):
+ _name = 'outlook.installer'
+ _inherit = 'res.config.installer'
+
+ def default_get(self, cr, uid, fields, context={}):
+ data = super(outlook_installer, self).default_get(cr, uid, fields, context)
+ doc_file = open(config['addons_path'] + "/outlook/doc/Installation Guide to OpenERP Outlook Plug-in.doc", 'r')
+ data['doc_file'] = base64.encodestring(doc_file.read())
+ file = open(config['addons_path'] + "/outlook/plugin/openerp-outlook-plugin.zip", 'r')
+ data['plugin_file'] = base64.encodestring(file.read())
+ return data
+
+ _columns = {
+ 'name':fields.char('File name', size=34),
+ 'doc_name':fields.char('File name', size=64),
+ 'outlook':fields.boolean('Outlook Module ', help="Allows you to select an object that you’d like to add to your email and its attachments."),
+ 'plugin_file':fields.binary('Outlook Plug-in', readonly=True, help="outlook plug-in file. Save as this file and install this plug-in in outlook."),
+ 'doc_file':fields.binary('Installation Manual', help="The documentation file :- how to install Outlook Plug-in.", readonly=True),
+ 'description':fields.text('Description', readonly=True)
+ }
+
+ _defaults = {
+ 'outlook' : True,
+ 'name' : 'OpenERP-Outlook-PlugIn.zip',
+ 'doc_name' : 'Installation Guide to OpenERP Outlook Plug-in.doc',
+ 'description' : """ * Save the outlook plugin.
+* Follows the step to install outlook plugin.
+Pre-requirements :
+ 1) Python 2.6+ .
+ 2) Python for Windows extensions - PyWin32 this module for python must be installed for appropriate version of the Python.
+
+How to install openerp-outlook plug-in?
+ 1) Extract zip file “openerp-outlook-plugin.zip” .
+ 2) Open the folder openerp-outlook-plugin.
+ 3) And Run “Register-plugin.bat” file.
+ 4) Run Outlook and Check addin has been registered.
+ 5) Tools->OpenERP Configuration and test your connection.
+ 6) See User Guide for More.
+ 7) Keep All extratced files in some safe palce
+ (e.g. python installation Directory "C:\pythonXX\\" or Windows installation Directory "C:\Program Files\\" ).
+"""
+ }
+outlook_installer()
diff --git a/addons/outlook/outlook_installer.xml b/addons/outlook/outlook_installer.xml
new file mode 100755
index 00000000000..85e923512f6
--- /dev/null
+++ b/addons/outlook/outlook_installer.xml
@@ -0,0 +1,125 @@
+
+
+
+
+ outlook.installer.view
+ outlook.installer
+ form
+
+
+
+
+ Outlook Plug-In Installation
+
+
+ Outlook
+
+
+ This Module allows you to select an object that you would like to add to your email and its attachments from MS Outlook. You can select a partner, a task, a project, an analytical account, or any other object and Archived selected mail in mailgate.messages with attachments.
+
+
+ Configure
+
+
+
+ 15
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Outlook Module Installation
+ ir.actions.act_window
+ outlook.installer
+
+ form
+ form
+ new
+
+
+
+
+ 4
+
+
+
+
+
+ outlook.wizard
+ outlook.installer
+ form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Outlook Module Installation
+ ir.actions.act_window
+ outlook.installer
+
+ form
+ form
+ new
+
+
+
+
+
+
+
+
+
diff --git a/addons/partner_geo_assign/__openerp__.py b/addons/partner_geo_assign/__openerp__.py
index ccfe6ba7c45..e5ef5b5dd9d 100644
--- a/addons/partner_geo_assign/__openerp__.py
+++ b/addons/partner_geo_assign/__openerp__.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -33,7 +33,7 @@ based on geolocalization.
'data': [
'res_partner_view.xml',
'crm_lead_view.xml',
- ],
+ ],
'installable': True,
'active': False,
'certificate': False,
diff --git a/addons/point_of_sale/__openerp__.py b/addons/point_of_sale/__openerp__.py
index bd6c7018ca1..b9faba1db3f 100644
--- a/addons/point_of_sale/__openerp__.py
+++ b/addons/point_of_sale/__openerp__.py
@@ -41,29 +41,28 @@ Main features :
'update_xml': [
'security/point_of_sale_security.xml',
'security/ir.model.access.csv',
- 'wizard/pos_details.xml',
+ 'wizard/pos_details.xml',
'wizard/pos_add_product.xml',
'wizard/pos_confirm.xml',
'wizard/pos_discount.xml',
'wizard/pos_get_sale.xml',
'wizard/pos_open_statement.xml',
- 'wizard/pos_close_statement.xml',
+ 'wizard/pos_close_statement.xml',
'wizard/pos_box_entries.xml',
'wizard/pos_payment_report_user_view.xml',
'wizard/pos_payment_report_date_view.xml',
- 'wizard/pos_box_out.xml',
+ 'wizard/pos_box_out.xml',
'wizard/pos_sales_user.xml',
- 'wizard/all_closed_cashbox_of_the_day.xml',
+ 'wizard/all_closed_cashbox_of_the_day.xml',
'wizard/pos_sales_user_current_user.xml',
- 'wizard/pos_sale_user_today.xml',
- 'wizard/pos_receipt_view.xml',
- 'wizard/pos_payment_report_user.xml',
+ 'wizard/pos_sale_user_today.xml',
+ 'wizard/pos_receipt_view.xml',
+ 'wizard/pos_payment_report_user.xml',
'wizard/pos_payment_report.xml',
'wizard/pos_payment.xml',
'wizard/pos_scan_product_view.xml',
'wizard/pos_return_view.xml',
'pos_report.xml',
- # 'pos_wizard.xml',
'pos_view.xml',
'report/report_pos_order_view.xml',
'report/report_cash_register_view.xml',
diff --git a/addons/point_of_sale/i18n/lt.po b/addons/point_of_sale/i18n/lt.po
index 78396ecbfe0..c88b0068998 100644
--- a/addons/point_of_sale/i18n/lt.po
+++ b/addons/point_of_sale/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:24+0000\n"
+"PO-Revision-Date: 2010-08-16 09:25+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: point_of_sale
diff --git a/addons/point_of_sale/i18n/tr.po b/addons/point_of_sale/i18n/tr.po
index 6f9367afe44..29a7db0c325 100644
--- a/addons/point_of_sale/i18n/tr.po
+++ b/addons/point_of_sale/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:21+0000\n"
+"PO-Revision-Date: 2010-08-16 09:27+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: point_of_sale
diff --git a/addons/point_of_sale/pos.py b/addons/point_of_sale/pos.py
index a4c3cd9474d..c5cdccfc914 100644
--- a/addons/point_of_sale/pos.py
+++ b/addons/point_of_sale/pos.py
@@ -310,7 +310,6 @@ class pos_order(osv.osv):
'pickings': fields.one2many('stock.picking', 'pos_order', 'Picking', readonly=True),
'picking_id': fields.many2one('stock.picking', 'Last Output Picking', readonly=True),
'first_name': fields.char('First Name', size=64),
-# 'state_2': fields.function(_get_v,type='selection',selection=[('to_verify', 'To Verify'), ('accepted', 'Accepted'),('refused', 'Refused')], string='State', readonly=True, method=True, store=True),
'note': fields.text('Internal Notes'),
'nb_print': fields.integer('Number of Print', readonly=True),
'sale_journal': fields.many2one('account.journal', 'Journal', required=True, states={'draft': [('readonly', False)]}, readonly=True, ),
@@ -353,7 +352,6 @@ class pos_order(osv.osv):
'sale_manager': lambda self, cr, uid, context: uid,
'state': lambda *a: 'draft',
'price_type': lambda *a: 'tax_excluded',
-# 'state_2': lambda *a: 'to_verify',
'name': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'pos.order'),
'date_order': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
'date_validity': lambda *a: (DateTime.now() + DateTime.RelativeDateTime(months=+6)).strftime('%Y-%m-%d'),
@@ -479,7 +477,7 @@ class pos_order(osv.osv):
'invoice_state': 'none',
'auto_picking': True,
'pos_order': order.id,
- })
+ })
self.write(cr, uid, [order.id], {'picking_id': picking_id})
else:
picking_id = order.picking_id.id
@@ -501,7 +499,6 @@ class pos_order(osv.osv):
cr.execute("select s.id from stock_location s, stock_warehouse w where w.lot_stock_id=s.id and w.id= %d "%(order.shop_id.warehouse_id.id))
res=cr.fetchone()
location_id=res and res[0] or None
-# location_id = order and order.shop_id and order.shop_id.warehouse_id and order.shop_id.warehouse_id.lot_stock_id.id or None
stock_dest_id = val.id
if line.qty < 0:
location_id, stock_dest_id = stock_dest_id, location_id
@@ -556,28 +553,6 @@ class pos_order(osv.osv):
raise osv.except_osv(_('Error'), _('You don\'t have enough access to validate this sale!'))
return True
-# def button_validate(self, cr, uid, ids, *args):
-#
-# """ Check the access for the sale order and update the date_validation
-# @return: True
-# """
-# res_obj = self.pool.get('res.company')
-# try:
-# part_company=res_obj.browse(cr,uid,uid) and res_obj.browse(cr,uid,uid).parent_id and res_obj.browse######(cr,uid,uid).parent_id.id or None
-# except Exception, e:
-# raise osv.except_osv(_('Error'), _('You don\'t have enough access to validate this sale!'))
-# if part_company:
-# raise osv.except_osv(_('Error'), _('You don\'t have enough access to validate this sale!'))
-# for order in self.browse(cr, uid, ids):
-# if not order.date_validation:
-# cr.execute("select max(date) from account_bank_statement_line where pos_statement_id=%d"%(order.id))
-# val=cr.fetchone()
-# val=val and val[0] or None
-# if val:
-# cr.execute("Update pos_order set date_validation='%s', state_2 ='%s' where id = %d"%(val, 'accepted', order.id))
-# return True
-
-
def cancel_order(self, cr, uid, ids, context=None):
""" Changes order state to cancel
@@ -601,11 +576,9 @@ class pos_order(osv.osv):
if not order.num_sale and data['num_sale']:
self.write(cr,uid,order_id,{'num_sale': data['num_sale']})
ids_new=[]
-# if order.invoice_wanted and not order.partner_id:
-# raise osv.except_osv(_('Error'), _('Cannot create invoice without a partner.'))
args = {
'amount': data['amount'],
- }
+ }
if 'payment_date' in data.keys():
args['date'] = data['payment_date']
if 'payment_name' in data.keys():
@@ -660,7 +633,7 @@ class pos_order(osv.osv):
'product_id': product_id,
'qty': qty,
'price_unit': price,
- })
+ })
wf_service = netsvc.LocalService("workflow")
wf_service.trg_write(uid, 'pos.order', order_id, cr)
@@ -954,13 +927,15 @@ class pos_order(osv.osv):
for st in stat_l.move_ids:
for s in st.line_id:
if s.credit:
- account_move_line_obj.copy(cr, uid, s.id, { 'debit': s.credit,
- 'statement_id': False,
- 'credit': s.debit})
account_move_line_obj.copy(cr, uid, s.id, {
- 'statement_id': False,
- 'account_id':order_account
- })
+ 'debit': s.credit,
+ 'statement_id': False,
+ 'credit': s.debit
+ })
+ account_move_line_obj.copy(cr, uid, s.id, {
+ 'statement_id': False,
+ 'account_id':order_account
+ })
self.write(cr,uid,order.id,{'state':'done'})
return True
@@ -1019,7 +994,7 @@ pos_order()
class account_bank_statement(osv.osv):
_inherit = 'account.bank.statement'
- _columns={
+ _columns= {
'user_id': fields.many2one('res.users',ondelete='cascade',string='User', readonly=True),
}
_defaults = {
@@ -1034,7 +1009,7 @@ class account_bank_statement_line(osv.osv):
for line in self.browse(cr, uid, ids):
res[line.id] = line.statement_id and line.statement_id.journal_id and line.statement_id.journal_id.name or None
return res
- _columns={
+ _columns= {
'journal_id': fields.function(_get_statement_journal, method=True,store=True, string='Journal', type='char', size=64),
'am_out':fields.boolean("To count"),
'is_acc':fields.boolean("Is accompte"),
@@ -1123,7 +1098,7 @@ class pos_order_line(osv.osv):
def onchange_dis(self, cr, uid,ids, qty, price_subtotal_incl, discount,*a):
price_sub = price_subtotal_incl
sub_total_discount = price_sub-(price_subtotal_incl*(discount*0.01))
- return {'value': {'price_subtotal_incl':sub_total_discount}}
+ return {'value': {'price_subtotal_incl':sub_total_discount}}
def onchange_ded(self, cr, uid,ids, val_ded,price_u,*a):
pos_order = self.pool.get('pos.order.line')
@@ -1176,7 +1151,7 @@ class pos_order_line(osv.osv):
'discount': fields.float('Discount (%)', digits=(16, 2)),
'order_id': fields.many2one('pos.order', 'Order Ref', ondelete='cascade'),
'create_date': fields.datetime('Creation Date', readonly=True),
- }
+ }
_defaults = {
'name': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'pos.order.line'),
@@ -1187,17 +1162,6 @@ class pos_order_line(osv.osv):
'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
}
-# def _check_qty(self, cr, uid, ids):
-# lines = self.browse(cr, uid, ids)
-# for line in lines:
-# if line.qty <= 0:
-# return False
-# return True
-
-# _constraints = [
-# (_check_qty, 'Order quantity cannot be negative or zero !', ['qty']),
-# ]
-
def create(self, cr, user, vals, context={}):
if vals.get('product_id'):
return super(pos_order_line, self).create(cr, user, vals, context)
@@ -1237,7 +1201,7 @@ class pos_order_line(osv.osv):
'qty': qty,
'name': product_name,
'order_id': order,
- }
+ }
line_id = self.create(cr, uid, vals)
if not line_id:
raise osv.except_osv(_('Error'), _('Create line failed !'))
@@ -1252,7 +1216,13 @@ class pos_order_line(osv.osv):
line_id = order_line_id
price_line = float(qty)*float(price)
- return {'name': product_name, 'product_id': product_id[0], 'price': price, 'price_line': price_line ,'qty': qty }
+ return {
+ 'name': product_name,
+ 'product_id': product_id[0],
+ 'price': price,
+ 'price_line': price_line ,
+ 'qty': qty
+ }
pos_order_line()
@@ -1353,10 +1323,10 @@ class product_product(osv.osv):
'expense_pdt': fields.boolean('Product for expenses'),
'am_out': fields.boolean('Controle for Outgoing Operations'),
'disc_controle': fields.boolean('Discount Controle '),
-}
+ }
_defaults = {
'disc_controle': lambda *a: True,
-}
+ }
product_product()
class stock_picking(osv.osv):
diff --git a/addons/point_of_sale/pos_view.xml b/addons/point_of_sale/pos_view.xml
index 2cd0a02c55e..bf9204a26f1 100644
--- a/addons/point_of_sale/pos_view.xml
+++ b/addons/point_of_sale/pos_view.xml
@@ -12,7 +12,6 @@
-
@@ -23,13 +22,10 @@
-
-
-
@@ -48,21 +44,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -83,24 +66,17 @@
-
-
-
-
-
-
-
@@ -800,8 +776,6 @@
id="products_for_output_operations"
groups="base.group_system"/>
-
-
-
@@ -910,41 +850,9 @@
tree,form
[('origin','like','POS')]
-
-
diff --git a/addons/point_of_sale/pos_workflow.xml.orig b/addons/point_of_sale/pos_workflow.xml.orig
index a6375642fa8..16b9e116340 100644
--- a/addons/point_of_sale/pos_workflow.xml.orig
+++ b/addons/point_of_sale/pos_workflow.xml.orig
@@ -219,7 +219,6 @@
done
-
diff --git a/addons/point_of_sale/report/account_statement.py b/addons/point_of_sale/report/account_statement.py
index fcf6189c7ce..fbfd72115ad 100644
--- a/addons/point_of_sale/report/account_statement.py
+++ b/addons/point_of_sale/report/account_statement.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -29,9 +29,9 @@ class account_statement(report_sxw.rml_parse):
super(account_statement, self).__init__(cr, uid, name, context)
self.total = 0.0
self.localcontext.update({
- 'time': time,
- 'get_total':self._get_total,
- })
+ 'time': time,
+ 'get_total':self._get_total,
+ })
def _get_total(self, statement_line_ids):
total = 0.0
for line in statement_line_ids:
diff --git a/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py b/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py
index 316386200fc..137a46c4b45 100644
--- a/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py
+++ b/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -37,7 +37,7 @@ class all_closed_cashbox_of_the_day(report_sxw.rml_parse):
'get_user':self._get_user,
'get_sub_total':self._get_sub_total,
'get_net_total_starting':self._get_net_total_starting,
- })
+ })
def _get_user(self,line_ids):
sql = "select name from res_users where id = %d"%(line_ids['create_uid'])
self.cr.execute(sql)
@@ -109,7 +109,7 @@ class all_closed_cashbox_of_the_day(report_sxw.rml_parse):
total_starting_bal = 0.0
sql = """ SELECT abs.id,abs.balance_end_real as net_total FROM account_bank_statement as abs
WHERE to_char(date_trunc('day',abs.date),'YYYY-MM-DD')::date = current_date
- and abs.state IN ('confirm','open')
+ and abs.state IN ('confirm','open')
and abs.user_id = %d"""%(user.id)
self.cr.execute(sql)
res = self.cr.dictfetchall()
diff --git a/addons/point_of_sale/report/point_of_sale_report.py b/addons/point_of_sale/report/point_of_sale_report.py
index 10ba94662a2..45716f774fd 100644
--- a/addons/point_of_sale/report/point_of_sale_report.py
+++ b/addons/point_of_sale/report/point_of_sale_report.py
@@ -148,10 +148,8 @@ class report_sales_by_margin_pos(osv.osv):
_description = "Sales by margin"
_auto = False
_columns = {
-# 'pos_name': fields.char('POS Order', size=64, readonly=True),
'product_name':fields.char('Product Name', size=64, readonly=True),
'date_order': fields.date('Order Date',required=True, select=True),
- # 'amount': fields.float('Total', readonly=True, select=True),
'user_id': fields.many2one('res.users', 'User', readonly=True, select=True),
'qty': fields.float('Qty', readonly=True, select=True),
'net_margin_per_qty':fields.float('Net margin per Qty', readonly=True, select=True),
@@ -197,14 +195,12 @@ class report_sales_by_margin_pos_month(osv.osv):
_description = "Sales by margin monthly"
_auto = False
_columns = {
-
'product_name':fields.char('Product Name', size=64, readonly=True),
'date_order': fields.date('Order Date',required=True, select=True),
'user_id': fields.many2one('res.users', 'User', readonly=True, select=True),
'qty': fields.float('Qty', readonly=True, select=True),
'net_margin_per_qty':fields.float('Net margin per Qty', readonly=True, select=True),
'total':fields.float('Margin', readonly=True, select=True),
-
}
def init(self, cr):
diff --git a/addons/point_of_sale/report/pos_details.py b/addons/point_of_sale/report/pos_details.py
index 885287a30f1..7715f1b78be 100644
--- a/addons/point_of_sale/report/pos_details.py
+++ b/addons/point_of_sale/report/pos_details.py
@@ -96,17 +96,6 @@ class pos_details(report_sxw.rml_parse):
self.total_paid=res3[0]
return res3[0] or False
-# def _get_qty_total(self, objects):
-# #code for the sum of qty_total
-# return reduce(lambda acc, object:
-# acc + reduce(
-# lambda sum_qty, line:
-# sum_qty + line.qty,
-# object.lines,
-# 0),
-# objects,
-# 0)
-
def _get_sum_discount(self, objects):
#code for the sum of discount value
return reduce(lambda acc, object:
@@ -119,18 +108,6 @@ class pos_details(report_sxw.rml_parse):
0.0)
def _get_payments(self, form,user, ignore_gift=False):
-# gift_journal_id = None
-# if ignore_gift:
-# config_journal_ids = self.pool.get("pos.config.journal").search(self.cr, self.uid, [('code', '=', 'GIFT')])
-# if len(config_journal_ids):
-# config_journal = self.pool.get("pos.config.journal").browse(self.cr, self.uid, config_journal_ids, {})[0]
-# gift_journal_id = config_journal.journal_id.id
-#
-# result = {}
-# for obj in objects:
-# for payment in obj.statement_ids:
-# result[payment.journal_id] = result.get(payment.journal_id, 0.0) + payment.amount
-# return result
statement_line_obj = self.pool.get("account.bank.statement.line")
gift_journal_id = None
if ignore_gift:
@@ -200,13 +177,6 @@ class pos_details(report_sxw.rml_parse):
temp.update({'amount':temp2})
return [temp] or False
-# def _get_period(self, form):
-# min_date = form['date_start']
-# max_date = form['date_end']
-# if min_date == max_date:
-# return '%s' % min_date
-# else:
-# return '%s - %s' % (min_date, max_date)
def _get_period(self, form):
return form['date_start']
diff --git a/addons/point_of_sale/report/pos_lines.py b/addons/point_of_sale/report/pos_lines.py
index 6f03605613b..3076e1b6741 100644
--- a/addons/point_of_sale/report/pos_lines.py
+++ b/addons/point_of_sale/report/pos_lines.py
@@ -29,9 +29,9 @@ class pos_lines(report_sxw.rml_parse):
super(pos_lines, self).__init__(cr, uid, name, context)
self.total = 0.0
self.localcontext.update({
- 'time': time,
- 'total_quantity': self.__total_quantity__,
- 'taxes':self.__taxes__,
+ 'time': time,
+ 'total_quantity': self.__total_quantity__,
+ 'taxes':self.__taxes__,
})
diff --git a/addons/point_of_sale/report/pos_payment_report.py b/addons/point_of_sale/report/pos_payment_report.py
index e9541ec3a66..d2f05f85a06 100644
--- a/addons/point_of_sale/report/pos_payment_report.py
+++ b/addons/point_of_sale/report/pos_payment_report.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
import time
@@ -28,10 +28,10 @@ class pos_payment_report(report_sxw.rml_parse):
super(pos_payment_report, self).__init__(cr, uid, name, context)
self.total = 0.0
self.localcontext.update({
- 'time': time,
- 'pos_payment': self._pos_payment,
- 'pos_payment_total':self._pos_payment_total,
- })
+ 'time': time,
+ 'pos_payment': self._pos_payment,
+ 'pos_payment_total':self._pos_payment_total,
+ })
def _pos_payment(self,obj):
data={}
@@ -51,19 +51,13 @@ class pos_payment_report(report_sxw.rml_parse):
"where pt.id=pp.product_tmpl_id and pp.id=pol.product_id and po.id = pol.order_id " \
"and po.state IN ('paid','invoiced') and to_char(date_trunc('day',po.date_order),'YYYY-MM-DD')::date = current_date")
data=self.cr.dictfetchall()
-
+
for d in data:
self.total += d['price_unit'] * d['qty']
return data
def _pos_payment_total(self,o):
-# res=[]
-# self.cr.execute ("select sum(pol.price_unit * pol.qty * (1 - (pol.discount) / 100.0)) " \
-# "from pos_order as po,pos_order_line as pol,product_product as pp,product_template as pt " \
-# "where pt.id=pp.product_tmpl_id and pp.id=pol.product_id and po.id = pol.order_id " \
-# "and po.state='paid' and po.date_order = current_date and po.id=%d"%(o.id))
-# res=self.cr.fetchone()[0]
return self.total
diff --git a/addons/point_of_sale/report/pos_payment_report_date.py b/addons/point_of_sale/report/pos_payment_report_date.py
index 1bf23cd6d9b..af64e45cff4 100644
--- a/addons/point_of_sale/report/pos_payment_report_date.py
+++ b/addons/point_of_sale/report/pos_payment_report_date.py
@@ -28,10 +28,10 @@ class pos_payment_report_date(report_sxw.rml_parse):
super(pos_payment_report_date, self).__init__(cr, uid, name, context)
self.total = 0.0
self.localcontext.update({
- 'time': time,
- 'pos_payment_date': self.__pos_payment_date__,
- 'pos_payment_date_total':self.__pos_payment_date__total__,
- })
+ 'time': time,
+ 'pos_payment_date': self.__pos_payment_date__,
+ 'pos_payment_date_total':self.__pos_payment_date__total__,
+ })
def __pos_payment_date__(self,form):
dt1 = form['date_start'] + ' 00:00:00'
diff --git a/addons/point_of_sale/report/pos_payment_report_user.py b/addons/point_of_sale/report/pos_payment_report_user.py
index fd7f011c6e9..e84b3b792cc 100644
--- a/addons/point_of_sale/report/pos_payment_report_user.py
+++ b/addons/point_of_sale/report/pos_payment_report_user.py
@@ -27,10 +27,10 @@ class pos_payment_report_user(report_sxw.rml_parse):
super(pos_payment_report_user, self).__init__(cr, uid, name, context)
self.total = 0.0
self.localcontext.update({
- 'time': time,
- 'pos_payment_user': self.__pos_payment_user__,
- 'pos_payment_user_total':self.__pos_payment_user__total__,
- })
+ 'time': time,
+ 'pos_payment_user': self.__pos_payment_user__,
+ 'pos_payment_user_total':self.__pos_payment_user__total__,
+ })
def __pos_payment_user__(self,form):
data={}
diff --git a/addons/point_of_sale/report/pos_sales_user.py b/addons/point_of_sale/report/pos_sales_user.py
index 5bc2bf4b065..b110e4e2d00 100644
--- a/addons/point_of_sale/report/pos_sales_user.py
+++ b/addons/point_of_sale/report/pos_sales_user.py
@@ -28,10 +28,10 @@ class pos_sales_user(report_sxw.rml_parse):
super(pos_sales_user, self).__init__(cr, uid, name, context)
self.total = 0.0
self.localcontext.update({
- 'time': time,
- 'get_data':self._get_data,
+ 'time': time,
+ 'get_data':self._get_data,
- })
+ })
def _get_data(self,form):
dt1 = form['date_start'] + ' 00:00:00'
diff --git a/addons/point_of_sale/report/pos_sales_user_today.py b/addons/point_of_sale/report/pos_sales_user_today.py
index adfff3c5388..4362cc8928c 100644
--- a/addons/point_of_sale/report/pos_sales_user_today.py
+++ b/addons/point_of_sale/report/pos_sales_user_today.py
@@ -28,10 +28,10 @@ class pos_sales_user_today(report_sxw.rml_parse):
super(pos_sales_user_today, self).__init__(cr, uid, name, context)
self.total = 0.0
self.localcontext.update({
- 'time': time,
- 'get_data':self._get_data,
+ 'time': time,
+ 'get_data':self._get_data,
- })
+ })
def _get_data(self,form):
data={}
diff --git a/addons/point_of_sale/report/pos_sales_user_today_current_user.py b/addons/point_of_sale/report/pos_sales_user_today_current_user.py
index bced93a62a1..bd728441be2 100644
--- a/addons/point_of_sale/report/pos_sales_user_today_current_user.py
+++ b/addons/point_of_sale/report/pos_sales_user_today_current_user.py
@@ -29,12 +29,12 @@ class pos_sales_user_today_current_user(report_sxw.rml_parse):
self.total = 0.0
self.qty = 0.0
self.localcontext.update({
- 'time': time,
- 'get_user':self._get_user,
- 'get_data_current_user':self._get_data_current_user,
- 'get_data_current_user_tot':self._get_data_current_user_tot,
- 'get_data_current_user_qty':self._get_data_current_user_qty,
- })
+ 'time': time,
+ 'get_user':self._get_user,
+ 'get_data_current_user':self._get_data_current_user,
+ 'get_data_current_user_tot':self._get_data_current_user_tot,
+ 'get_data_current_user_qty':self._get_data_current_user_qty,
+ })
def _get_user(self, user):
pos_user={}
@@ -58,15 +58,6 @@ class pos_sales_user_today_current_user(report_sxw.rml_parse):
return data
def _get_data_current_user_tot(self, user):
-# res={}
-# self.cr.execute("select sum(pol.price_unit * pol.qty * (1 - (pol.discount) / 100.0)) " \
-# "from pos_order as po,pos_order_line as pol,product_product as pp,product_template as pt ,res_users as ru,res_company as rc " \
-# "where pt.id=pp.product_tmpl_id and pp.id=pol.product_id and po.id = pol.order_id " \
-# "and po.date_order = current_date and po.user_id = ru.id and rc.id = %s and ru.id = %s " \
-# ,(str(self.uid),str(user.company_id.id)))
-#
-# res=self.cr.dictfetchone()
-# return res['sum']
return self.total
def _get_data_current_user_qty(self, user):
diff --git a/addons/point_of_sale/report/pos_users_product.py b/addons/point_of_sale/report/pos_users_product.py
index 3805dcc54cb..a61f753ce7d 100644
--- a/addons/point_of_sale/report/pos_users_product.py
+++ b/addons/point_of_sale/report/pos_users_product.py
@@ -28,12 +28,12 @@ class pos_user_product(report_sxw.rml_parse):
super(pos_user_product, self).__init__(cr, uid, name, context)
self.total = 0.0
self.localcontext.update({
- 'time': time,
- 'get_data':self._get_data,
- 'get_user':self._get_user,
- 'get_total':self._get_total,
+ 'time': time,
+ 'get_data':self._get_data,
+ 'get_user':self._get_user,
+ 'get_total':self._get_total,
- })
+ })
def _get_data(self,o):
data={}
sql1=""" SELECT distinct(o.id) from account_bank_statement s, account_bank_statement_line l,pos_order o,pos_order_line i where i.order_id=o.id and o.state='paid' and l.statement_id=s.id and l.pos_statement_id=o.id and s.id=%d"""%(o.id)
diff --git a/addons/point_of_sale/report/report_cash_register.py b/addons/point_of_sale/report/report_cash_register.py
index a7eb4af191c..02945daf77b 100644
--- a/addons/point_of_sale/report/report_cash_register.py
+++ b/addons/point_of_sale/report/report_cash_register.py
@@ -25,15 +25,15 @@ class report_cash_register(osv.osv):
_name = "report.cash.register"
_description = "Point of Sale Cash Register Analysis"
_auto = False
- _columns ={
+ _columns = {
'date': fields.date('Create Date', readonly=True),
'year': fields.char('Year', size=4),
'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'),
('05','May'), ('06','June'), ('07','July'), ('08','August'), ('09','September'),
('10','October'), ('11','November'), ('12','December')], 'Month',readonly=True),
'day': fields.char('Day', size=128, readonly=True),
- 'user_id':fields.many2one('res.users', 'User', readonly=True),
- 'state':fields.selection([('draft', 'Draft'),('confirm', 'Confirmed')],'State'),
+ 'user_id':fields.many2one('res.users', 'User', readonly=True),
+ 'state':fields.selection([('draft', 'Draft'),('confirm', 'Confirmed')],'State'),
'journal_id': fields.many2one('account.journal', 'Journal'),
'balance_start': fields.float('Opening Balance'),
'balance_end_real': fields.float('Closing Balance'),
@@ -43,9 +43,9 @@ class report_cash_register(osv.osv):
tools.drop_view_if_exists(cr, 'report_cash_register')
cr.execute("""
create or replace view report_cash_register as (
- select
+ select
min(s.id) as id,
- to_date(to_char(s.create_date, 'dd-MM-YYYY'),'dd-MM-YYYY') as date,
+ to_date(to_char(s.create_date, 'dd-MM-YYYY'),'dd-MM-YYYY') as date,
s.user_id as user_id,
s.journal_id as journal_id,
s.state as state,
@@ -54,8 +54,8 @@ class report_cash_register(osv.osv):
to_char(s.create_date, 'YYYY') as year,
to_char(s.create_date, 'MM') as month,
to_char(s.create_date, 'YYYY-MM-DD') as day
- from account_bank_statement as s where s.user_id=1
- group by
+ from account_bank_statement as s where s.user_id=1
+ group by
s.user_id,s.journal_id, s.balance_start, s.balance_end_real,s.state,to_char(s.create_date, 'dd-MM-YYYY'),
to_char(s.create_date, 'YYYY'),
to_char(s.create_date, 'MM'),
diff --git a/addons/point_of_sale/report/report_pos_order.py b/addons/point_of_sale/report/report_pos_order.py
index 51ac18d7cba..373f8006566 100644
--- a/addons/point_of_sale/report/report_pos_order.py
+++ b/addons/point_of_sale/report/report_pos_order.py
@@ -26,7 +26,7 @@ class report_pos_order(osv.osv):
_name = "report.pos.order"
_description = "Point of Sale Orders Statistics"
_auto = False
- _columns ={
+ _columns = {
'date': fields.date('Date Order', readonly=True),
'year': fields.char('Year', size=4, readonly=True),
'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'),
@@ -39,8 +39,6 @@ class report_pos_order(osv.osv):
('advance','Advance'),
('paid', 'Paid'), ('done', 'Done'), ('invoiced', 'Invoiced'), ('cancel', 'Cancel')],
'State'),
-# 'state_2': fields.function([('to_verify', 'To Verify'), ('accepted', 'Accepted'),
-# ('refused', 'Refused')], string='State'),
'user_id':fields.many2one('res.users', 'Salesman', readonly=True),
'price_total':fields.float('Total Price', readonly=True),
'total_discount':fields.float('Total Discount', readonly=True),
diff --git a/addons/point_of_sale/report/report_pos_order_view.xml b/addons/point_of_sale/report/report_pos_order_view.xml
index 1f9d9744609..04356706bcd 100644
--- a/addons/point_of_sale/report/report_pos_order_view.xml
+++ b/addons/point_of_sale/report/report_pos_order_view.xml
@@ -78,9 +78,7 @@
-
-
diff --git a/addons/point_of_sale/statement_wizard.xml b/addons/point_of_sale/statement_wizard.xml
index 8220eda8bed..25f099810b4 100644
--- a/addons/point_of_sale/statement_wizard.xml
+++ b/addons/point_of_sale/statement_wizard.xml
@@ -1,21 +1,6 @@
-
-
\ No newline at end of file
diff --git a/addons/point_of_sale/wizard/pos_receipt.py b/addons/point_of_sale/wizard/pos_receipt.py
index 2f316aab78d..74f865ca06c 100644
--- a/addons/point_of_sale/wizard/pos_receipt.py
+++ b/addons/point_of_sale/wizard/pos_receipt.py
@@ -31,19 +31,15 @@ class pos_receipt(osv.osv_memory):
}
def view_init(self, cr, uid, fields_list, context=None):
- """
+ """
Creates view dynamically and adding fields at runtime.
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param context: A standard dictionary
+ @param context: A standard dictionary
@return: New arch of view with new columns.
- """
+ """
order_lst = self. pool.get('pos.order').browse(cr, uid, context['active_id'])
-# for order in order_lst:
-# if order.state_2 in ('to_verify'):
-# raise osv.except_osv(_('Error!', 'Can not print the receipt because of discount and/or payment '))
-# True
def print_report(self, cr, uid, ids, context=None):
diff --git a/addons/point_of_sale/wizard/pos_return.py b/addons/point_of_sale/wizard/pos_return.py
index 776cb8cfb11..cbfe4c5365a 100644
--- a/addons/point_of_sale/wizard/pos_return.py
+++ b/addons/point_of_sale/wizard/pos_return.py
@@ -33,18 +33,18 @@ class pos_return(osv.osv_memory):
_description = 'Point of sale return'
def default_get(self, cr, uid, fields, context=None):
- """
+ """
To get default values for the object.
-
+
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param fields: List of fields for which we want default values
- @param context: A standard dictionary
-
- @return: A dictionary which of fields with values.
-
- """
+ @param fields: List of fields for which we want default values
+ @param context: A standard dictionary
+
+ @return: A dictionary which of fields with values.
+
+ """
res = super(pos_return, self).default_get(cr, uid, fields, context=context)
order_obj = self.pool.get('pos.order')
@@ -54,44 +54,44 @@ class pos_return(osv.osv_memory):
for order in order_obj.browse(cr, uid, active_ids):
for line in order.lines:
if 'return%s'%(line.id) in fields:
- res['return%s'%(line.id)] = line.qty
+ res['return%s'%(line.id)] = line.qty
return res
-
+
def view_init(self, cr, uid, fields_list, context=None):
- """
+ """
Creates view dynamically and adding fields at runtime.
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param context: A standard dictionary
+ @param context: A standard dictionary
@return: New arch of view with new columns.
- """
+ """
res = super(pos_return, self).view_init(cr, uid, fields_list, context=context)
- order_obj=self.pool.get('pos.order')
+ order_obj=self.pool.get('pos.order')
if not context:
- context={}
-
- active_ids=context.get('active_ids')
- for order in order_obj.browse(cr, uid, active_ids):
- for line in order.lines:
+ context={}
+
+ active_ids=context.get('active_ids')
+ for order in order_obj.browse(cr, uid, active_ids):
+ for line in order.lines:
if 'return%s'%(line.id) not in self._columns:
self._columns['return%s'%(line.id)] = fields.float("Quantity")
-
- return res
+
+ return res
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False):
- """
+ """
Changes the view dynamically
-
+
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param context: A standard dictionary
-
+ @param context: A standard dictionary
+
@return: New arch of view.
-
- """
+
+ """
result = super(pos_return, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar,submenu)
if not context:
context={}
@@ -104,25 +104,25 @@ class pos_return(osv.osv_memory):
_moves_arch_lst="""
"""
- _line_fields = result['fields']
+ _line_fields = result['fields']
order=order_obj.browse(cr, uid, active_id)
- for line in order.lines:
- quantity=line.qty
+ for line in order.lines:
+ quantity=line.qty
_line_fields.update({
- 'return%s'%(line.id) : {
- 'string': line.product_id.name,
- 'type' : 'float',
- 'required': True,
- 'default':quantity
- },
- })
+ 'return%s'%(line.id) : {
+ 'string': line.product_id.name,
+ 'type' : 'float',
+ 'required': True,
+ 'default':quantity
+ },
+ })
_moves_arch_lst += """
-
+
"""%(line.id)
-
+
_moves_arch_lst+="""
-
+
@@ -130,36 +130,36 @@ class pos_return(osv.osv_memory):
string="Return goods and Exchange" type="object"/>
- """
-
+ """
+
result['arch'] = _moves_arch_lst
- result['fields'] = _line_fields
- return result
-
-
+ result['fields'] = _line_fields
+ return result
+
+
def create_returns(self, cr, uid, data, context):
- """
+ """
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param context: A standard dictionary
-
+ @param context: A standard dictionary
+
@return: Return the add product form again for adding more product
-
+
"""
return {
- 'name': _('Add Product'),
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'pos.add.product',
- 'view_id': False,
- 'target':'new',
- 'views': False,
- 'context': context,
- 'type': 'ir.actions.act_window',
+ 'name': _('Add Product'),
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'pos.add.product',
+ 'view_id': False,
+ 'target':'new',
+ 'views': False,
+ 'context': context,
+ 'type': 'ir.actions.act_window',
}
def create_returns2(self, cr, uid, ids, context):
- active_id = context.get('active_id', False)
+ active_id = context.get('active_id', False)
order_obj =self.pool.get('pos.order')
line_obj = self.pool.get('pos.order.line')
picking_obj = self.pool.get('stock.picking')
@@ -182,10 +182,10 @@ class pos_return(osv.osv_memory):
location_id = res and res[0] or None
stock_dest_id = val.id
new_picking = picking_obj.copy(cr, uid, order_id.picking_id.id, {'name':'%s (return)' % order_id.name,
- 'move_lines': [],
- 'state':'draft',
+ 'move_lines': [],
+ 'state':'draft',
'type': 'in',
- 'address_id': order_id.partner_id.id,
+ 'address_id': order_id.partner_id.id,
'date': date_cur })
new_order = order_obj.copy(cr, uid, order_id.id, {'name': 'Refund %s'%order_id.name,
'lines':[],
@@ -197,7 +197,7 @@ class pos_return(osv.osv_memory):
qty = data['return%s' %line.id]
except :
qty = line.qty
- new_move = stock_move_obj.create(cr, uid,{
+ new_move = stock_move_obj.create(cr, uid, {
'product_qty': qty ,
'product_uos_qty': uom_obj._compute_qty(cr, uid, qty ,line.product_id.uom_id.id),
'picking_id': new_picking,
@@ -207,7 +207,8 @@ class pos_return(osv.osv_memory):
'location_dest_id': stock_dest_id,
'name': '%s (return)' %order_id.name,
'date': date_cur,
- 'date_planned': date_cur,})
+ 'date_planned': date_cur
+ })
line_obj.copy(cr, uid, line.id, {'qty': -qty, 'order_id': new_order})
order_obj.write(cr,uid, [active_id,new_order], {'state': 'done'})
wf_service.trg_validate(uid, 'stock.picking', new_picking, 'button_confirm', cr)
@@ -225,25 +226,25 @@ class pos_return(osv.osv_memory):
'type': 'ir.actions.act_window'
}
return act
-
+
pos_return()
class add_product(osv.osv_memory):
- _inherit = 'pos.add.product'
+ _inherit = 'pos.add.product'
def select_product(self, cr, uid, ids, context):
- """
- To get the product and quantity and add in order .
+ """
+ To get the product and quantity and add in order .
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param context: A standard dictionary
+ @param context: A standard dictionary
@return : Retrun the add product form again for adding more product
- """
-
+ """
+
active_id=context.get('active_id', False)
data = self.read(cr, uid, ids)
data = data and data[0] or False
- if active_id:
+ if active_id:
order_obj = self.pool.get('pos.order')
lines_obj = self.pool.get('pos.order.line')
picking_obj = self.pool.get('stock.picking')
@@ -259,7 +260,7 @@ class add_product(osv.osv_memory):
wf_service = netsvc.LocalService("workflow")
return_boj=self.pool.get('pos.return')
order_obj.add_product(cr, uid, active_id, data['product_id'], data['quantity'], context=context)
-
+
for order_id in order_obj.browse(cr, uid, [active_id], context=context):
prod=data['product_id']
qty=data['quantity']
@@ -269,15 +270,16 @@ class add_product(osv.osv_memory):
res=cr.fetchone()
location_id=res and res[0] or None
stock_dest_id = val.id
-
+
prod_id=prod_obj.browse(cr, uid, prod)
- new_picking=picking_obj.create(cr, uid,{
- 'name':'%s (Added)' %order_id.name,
- 'move_lines':[],
- 'state':'draft',
- 'type':'out',
- 'date':date_cur, })
- new_move=stock_move_obj.create(cr, uid,{
+ new_picking=picking_obj.create(cr, uid, {
+ 'name':'%s (Added)' %order_id.name,
+ 'move_lines':[],
+ 'state':'draft',
+ 'type':'out',
+ 'date':date_cur
+ })
+ new_move=stock_move_obj.create(cr, uid, {
'product_qty': qty,
'product_uos_qty': uom_obj._compute_qty(cr, uid, prod_id.uom_id.id, qty, prod_id.uom_id.id),
'picking_id':new_picking,
@@ -287,33 +289,34 @@ class add_product(osv.osv_memory):
'location_dest_id':stock_dest_id,
'name':'%s (return)' %order_id.name,
'date':date_cur,
- 'date_planned':date_cur,})
-
+ 'date_planned':date_cur
+ })
+
wf_service.trg_validate(uid, 'stock.picking', new_picking, 'button_confirm', cr)
picking_obj.force_assign(cr, uid, [new_picking], context)
order_obj.write(cr,uid,active_id,{'picking_id':new_picking})
-
-
- return {
- 'name': _('Add Product'),
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'pos.add.product',
- 'view_id': False,
- 'target':'new',
- 'context':context,
- 'views': False,
- 'type': 'ir.actions.act_window',
- }
-
+
+
+ return {
+ 'name': _('Add Product'),
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'pos.add.product',
+ 'view_id': False,
+ 'target':'new',
+ 'context':context,
+ 'views': False,
+ 'type': 'ir.actions.act_window',
+ }
+
def close_action(self, cr, uid, ids, context):
- active_ids=context.get('active_ids', False)
+ active_ids=context.get('active_ids', False)
order_obj = self.pool.get('pos.order')
lines_obj = self.pool.get('pos.order.line')
picking_obj = self.pool.get('stock.picking')
stock_move_obj = self.pool.get('stock.move')
move_obj = self.pool.get('stock.move')
- property_obj= self.pool.get("ir.property")
+ property_obj= self.pool.get("ir.property")
invoice_obj=self.pool.get('account.invoice')
picking_ids = picking_obj.search(cr, uid, [('pos_order', 'in', active_ids), ('state', '=', 'done')])
clone_list = []
@@ -330,19 +333,20 @@ class add_product(osv.osv_memory):
res=cr.fetchone()
location_id=res and res[0] or None
stock_dest_id = val.id
-
+
order_obj.write(cr,uid,[order_id.id],{'type_rec':'Exchange'})
if order_id.invoice_id:
invoice_obj.refund(cr, uid, [order_id.invoice_id.id], time.strftime('%Y-%m-%d'), False, order_id.name)
- new_picking=picking_obj.create(cr, uid,{
- 'name':'%s (return)' %order_id.name,
- 'move_lines':[], 'state':'draft',
- 'type':'in',
- 'date':date_cur})
+ new_picking=picking_obj.create(cr, uid, {
+ 'name':'%s (return)' %order_id.name,
+ 'move_lines':[], 'state':'draft',
+ 'type':'in',
+ 'date':date_cur
+ })
for line in order_id.lines:
key=('return%s') %line.id
if line.id and data.has_key(key):
- new_move=stock_move_obj.create(cr, uid,{
+ new_move=stock_move_obj.create(cr, uid, {
'product_qty': data['return%s' %line.id ],
'product_uos_qty': uom_obj._compute_qty(cr, uid, data['return%s' %line.id], line.product_id.uom_id.id),
'picking_id':new_picking,
@@ -352,29 +356,30 @@ class add_product(osv.osv_memory):
'location_dest_id':stock_dest_id,
'name':'%s (return)' %order_id.name,
'date':date_cur,
- 'date_planned':date_cur,})
- lines_obj.write(cr,uid,[line.id],{'qty_rfd':(line.qty or 0.0) + data['return%s' %line.id],
- 'qty':line.qty-(data['return%s' %line.id] or 0.0)
+ 'date_planned':date_cur
})
+ lines_obj.write(cr,uid,[line.id], {
+ 'qty_rfd':(line.qty or 0.0) + data['return%s' %line.id],
+ 'qty':line.qty-(data['return%s' %line.id] or 0.0)
+ })
wf_service.trg_validate(uid, 'stock.picking',new_picking,'button_confirm', cr)
picking_obj.force_assign(cr, uid, [new_picking], context)
- obj=order_obj.browse(cr,uid, active_ids[0])
- context.update({'return':'return'})
-
+ obj=order_obj.browse(cr,uid, active_ids[0])
+ context.update({'return':'return'})
+
if obj.amount_total != obj.amount_paid:
return {
- 'name': _('Make Payment'),
- 'context ':context,
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'pos.make.payment',
- 'view_id': False,
- 'target': 'new',
- 'views': False,
- 'type': 'ir.actions.act_window',
-
+ 'name': _('Make Payment'),
+ 'context ':context,
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'pos.make.payment',
+ 'view_id': False,
+ 'target': 'new',
+ 'views': False,
+ 'type': 'ir.actions.act_window',
}
- return True
-
-add_product()
+ return True
+
+add_product()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/point_of_sale/wizard/pos_sales_user.xml b/addons/point_of_sale/wizard/pos_sales_user.xml
index cedd800fc39..bece120d684 100644
--- a/addons/point_of_sale/wizard/pos_sales_user.xml
+++ b/addons/point_of_sale/wizard/pos_sales_user.xml
@@ -1,8 +1,8 @@
-
+
-
+
Sale By User
pos.sale.user
@@ -31,13 +31,6 @@
form
new
-
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/addons/process/__openerp__.py b/addons/process/__openerp__.py
index 829bd13c1a1..9fd4f6b3f73 100644
--- a/addons/process/__openerp__.py
+++ b/addons/process/__openerp__.py
@@ -37,7 +37,10 @@
'website': 'http://www.openerp.com',
'depends': ['base'],
'init_xml': [],
- 'update_xml': ['security/ir.model.access.csv', 'process_view.xml'],
+ 'update_xml': [
+ 'security/ir.model.access.csv',
+ 'process_view.xml'
+ ],
'demo_xml': [],
'installable': True,
'active': False,
diff --git a/addons/process/i18n/tr.po b/addons/process/i18n/tr.po
index c52c6b1c45a..cfcd2f5f53a 100644
--- a/addons/process/i18n/tr.po
+++ b/addons/process/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:28+0000\n"
+"PO-Revision-Date: 2010-08-16 09:37+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:58+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: process
diff --git a/addons/process/process.py b/addons/process/process.py
index 0d68fb460be..7bb8593d467 100644
--- a/addons/process/process.py
+++ b/addons/process/process.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -25,22 +25,22 @@ import pooler, tools
from osv import fields, osv
class Env(dict):
-
+
def __init__(self, obj, user):
self.__obj = obj
self.__usr = user
-
+
def __getitem__(self, name):
-
+
if name in ('__obj', '__user'):
return super(ExprContext, self).__getitem__(name)
-
+
if name == 'user':
return self.__user
-
+
if name == 'object':
return self.__obj
-
+
return self.__obj[name]
class process_process(osv.osv):
@@ -85,7 +85,7 @@ class process_process(osv.osv):
def graph_get(self, cr, uid, id, res_model, res_id, scale, context):
pool = pooler.get_pool(cr.dbname)
-
+
process = pool.get('process.process').browse(cr, uid, [id], context)[0]
name = process.name
@@ -135,7 +135,7 @@ class process_process(osv.osv):
if node.menu_id:
data['menu'] = {'name': node.menu_id.complete_name, 'id': node.menu_id.id}
-
+
if node.model_id and node.model_id.model == res_model:
try:
data['active'] = eval(node.model_states, expr_context)
@@ -233,7 +233,7 @@ class process_process(osv.osv):
# calculate graph layout
g = tools.graph(nodes.keys(), map(lambda x: (x['source'], x['target']), transitions.values()))
- g.process(start)
+ g.process(start)
g.scale(*scale) #g.scale(100, 100, 180, 120)
graph = g.result_get()
diff --git a/addons/procurement/company.py b/addons/procurement/company.py
index dcdff896553..09865b3aa14 100644
--- a/addons/procurement/company.py
+++ b/addons/procurement/company.py
@@ -28,10 +28,10 @@ class company(osv.osv):
help="This is the time frame analysed by the scheduler when "\
"computing procurements. All procurements that are not between "\
"today and today+range are skipped for futur computation."),
- }
+ }
_defaults = {
'schedule_range': 80.0,
- }
+ }
company()
diff --git a/addons/procurement/process/procurement_process.xml b/addons/procurement/process/procurement_process.xml
index d6a1c0a0489..42ee50782a1 100644
--- a/addons/procurement/process/procurement_process.xml
+++ b/addons/procurement/process/procurement_process.xml
@@ -22,5 +22,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/procurement/procurement_view.xml b/addons/procurement/procurement_view.xml
index cb34068e884..a3ca6ce0ed8 100644
--- a/addons/procurement/procurement_view.xml
+++ b/addons/procurement/procurement_view.xml
@@ -263,7 +263,5 @@
-
-
diff --git a/addons/procurement/schedulers.py b/addons/procurement/schedulers.py
index c0cc0f736b6..7007b13d06d 100644
--- a/addons/procurement/schedulers.py
+++ b/addons/procurement/schedulers.py
@@ -259,7 +259,7 @@ class procurement_order(osv.osv):
'act_from': user_id,
'act_to': user_id,
'body': '\n'.join(report)
- })
+ })
if use_new_cursor:
cr.commit()
cr.close()
diff --git a/addons/procurement/wizard/make_procurement_product.py b/addons/procurement/wizard/make_procurement_product.py
index a7bea3b247a..292cf7faf72 100644
--- a/addons/procurement/wizard/make_procurement_product.py
+++ b/addons/procurement/wizard/make_procurement_product.py
@@ -47,27 +47,27 @@ class make_procurement(osv.osv_memory):
'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse', required=True),
'date_planned': fields.date('Planned Date', required=True),
}
-
+
_defaults = {
- 'date_planned': lambda *args: time.strftime('%Y-%m-%d'),
- 'qty': lambda *args: 1.0,
+ 'date_planned': lambda *args: time.strftime('%Y-%m-%d'),
+ 'qty': lambda *args: 1.0,
}
-
+
def make_procurement(self, cr, uid, ids, context=None):
""" Creates procurement order for selected product.
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param ids: List of IDs selected
- @param context: A standard dictionary
- @return: A dictionary which loads Procurement form view.
+ @param ids: List of IDs selected
+ @param context: A standard dictionary
+ @return: A dictionary which loads Procurement form view.
"""
user = self.pool.get('res.users').browse(cr, uid, uid, context).login
wh_obj = self.pool.get('stock.warehouse')
- procurement_obj = self.pool.get('procurement.order')
+ procurement_obj = self.pool.get('procurement.order')
wf_service = netsvc.LocalService("workflow")
data_obj = self.pool.get('ir.model.data')
-
+
for proc in self.browse(cr, uid, ids):
wh = wh_obj.browse(cr, uid, proc.warehouse_id.id, context)
procure_id = procurement_obj.create(cr, uid, {
@@ -79,42 +79,42 @@ class make_procurement(osv.osv_memory):
'location_id': wh.lot_stock_id.id,
'procure_method':'make_to_order',
})
-
+
wf_service.trg_validate(uid, 'procurement.order', procure_id, 'button_confirm', cr)
-
-
+
+
id2 = data_obj._get_id(cr, uid, 'procurement', 'procurement_tree_view')
id3 = data_obj._get_id(cr, uid, 'procurement', 'procurement_form_view')
-
+
if id2:
id2 = data_obj.browse(cr, uid, id2, context=context).res_id
if id3:
id3 = data_obj.browse(cr, uid, id3, context=context).res_id
-
+
return {
- 'view_type': 'form',
- 'view_mode': 'tree,form',
- 'res_model': 'procurement.order',
- 'res_id' : procure_id,
- 'views': [(id3,'form'),(id2,'tree')],
- 'type': 'ir.actions.act_window',
+ 'view_type': 'form',
+ 'view_mode': 'tree,form',
+ 'res_model': 'procurement.order',
+ 'res_id' : procure_id,
+ 'views': [(id3,'form'),(id2,'tree')],
+ 'type': 'ir.actions.act_window',
}
-
+
def default_get(self, cr, uid, fields, context=None):
""" To get default values for the object.
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param fields: List of fields for which we want default values
- @param context: A standard dictionary
- @return: A dictionary which of fields with values.
+ @param fields: List of fields for which we want default values
+ @param context: A standard dictionary
+ @return: A dictionary which of fields with values.
"""
record_id = context and context.get('active_id', False) or False
res = super(make_procurement, self).default_get(cr, uid, fields, context=context)
product_id = self.pool.get('product.product').browse(cr, uid, record_id, context=context).id
if 'product_id' in fields:
- res.update({'product_id':product_id})
+ res.update({'product_id':product_id})
return res
make_procurement()
diff --git a/addons/procurement/wizard/mrp_procurement.py b/addons/procurement/wizard/mrp_procurement.py
index 659a2ad4d51..40977cf0b1a 100644
--- a/addons/procurement/wizard/mrp_procurement.py
+++ b/addons/procurement/wizard/mrp_procurement.py
@@ -25,28 +25,27 @@ from osv import osv, fields
class procurement_compute(osv.osv_memory):
_name = 'procurement.order.compute'
_description = 'Compute Procurement'
-
+
def _procure_calculation_procure(self, cr, uid, ids, context):
try:
proc_obj = self.pool.get('procurement.order')
proc_obj._procure_confirm(cr, uid, use_new_cursor=cr.dbname, context=context)
finally:
pass
- #cr.close()
return {}
-
+
def procure_calculation(self, cr, uid, ids, context):
- """
+ """
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param ids: List of IDs selected
- @param context: A standard dictionary
+ @param ids: List of IDs selected
+ @param context: A standard dictionary
"""
threaded_calculation = threading.Thread(target=self._procure_calculation_procure, args=(cr, uid, ids, context))
threaded_calculation.start()
return {}
-
+
procurement_compute()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/procurement/wizard/mrp_procurement_view.xml b/addons/procurement/wizard/mrp_procurement_view.xml
index c1cf71b1abb..1d071ea300f 100644
--- a/addons/procurement/wizard/mrp_procurement_view.xml
+++ b/addons/procurement/wizard/mrp_procurement_view.xml
@@ -22,13 +22,5 @@
-
-
-
-
-
-
-
-
-
+
diff --git a/addons/procurement/wizard/schedulers_all.py b/addons/procurement/wizard/schedulers_all.py
index 9b2ac6d59b8..11ecb9d2bf2 100644
--- a/addons/procurement/wizard/schedulers_all.py
+++ b/addons/procurement/wizard/schedulers_all.py
@@ -31,7 +31,7 @@ class procurement_compute_all(osv.osv_memory):
'automatic': fields.boolean('Automatic orderpoint',help='Triggers an automatic procurement for all products that have a virtual stock under 0. You should probably not use this option, we suggest using a MTO configuration on products.'),
}
- _defaults ={
+ _defaults = {
'automatic': lambda *a: False,
}
diff --git a/addons/product/i18n/lt.po b/addons/product/i18n/lt.po
index 18ce8ca4226..e6c35c55430 100644
--- a/addons/product/i18n/lt.po
+++ b/addons/product/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:21+0000\n"
+"PO-Revision-Date: 2010-08-16 09:27+0000\n"
"Last-Translator: Giedrius Slavinskas \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: lt\n"
diff --git a/addons/product/i18n/mn.po b/addons/product/i18n/mn.po
index 265df248bbb..f61be3c376f 100644
--- a/addons/product/i18n/mn.po
+++ b/addons/product/i18n/mn.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 08:58+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: ub121 \n"
"Language-Team: Mongolian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: product
diff --git a/addons/product/i18n/pt_BR.po b/addons/product/i18n/pt_BR.po
index 01a984c523c..eeee6bbb163 100644
--- a/addons/product/i18n/pt_BR.po
+++ b/addons/product/i18n/pt_BR.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:41+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: product
diff --git a/addons/product/i18n/sr.po b/addons/product/i18n/sr.po
index b130d168968..2dbf75c967d 100644
--- a/addons/product/i18n/sr.po
+++ b/addons/product/i18n/sr.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:57+0000\n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
"Last-Translator: Sonja Sardelić \n"
"Language-Team: Serbian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: product
diff --git a/addons/product/i18n/tr.po b/addons/product/i18n/tr.po
index 76ccca65601..413fd38ae63 100644
--- a/addons/product/i18n/tr.po
+++ b/addons/product/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:32+0000\n"
+"PO-Revision-Date: 2010-08-16 09:36+0000\n"
"Last-Translator: Angel Spy \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: product
diff --git a/addons/product/i18n/zh_CN.po b/addons/product/i18n/zh_CN.po
index 811169d516a..570ffe24765 100644
--- a/addons/product/i18n/zh_CN.po
+++ b/addons/product/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:24+0000\n"
+"PO-Revision-Date: 2010-08-16 09:33+0000\n"
"Last-Translator: Black Jack \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: product
diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py
index 9256f42943b..aae62228748 100644
--- a/addons/product/pricelist.py
+++ b/addons/product/pricelist.py
@@ -21,7 +21,6 @@
from osv import fields, osv
-#from tools.misc import currency
from _common import rounding
import time
from tools import config
@@ -64,7 +63,7 @@ class price_type(osv.osv):
"active": lambda *args: True,
"currency_id": _get_currency
}
-
+
price_type()
#----------------------------------------------------------
@@ -93,8 +92,7 @@ class product_pricelist(osv.osv):
res.append((type['key'],type['name']))
return res
-# cr.execute('select key,name from product_pricelist_type order by name')
-# return cr.fetchall()
+
_name = "product.pricelist"
_description = "Pricelist"
_columns = {
diff --git a/addons/product/process/product_process.xml b/addons/product/process/product_process.xml
index a63fdb41a1d..c8f72be4df7 100644
--- a/addons/product/process/product_process.xml
+++ b/addons/product/process/product_process.xml
@@ -17,7 +17,6 @@
-->
-
@@ -28,7 +27,6 @@
-
diff --git a/addons/product/product.py b/addons/product/product.py
index c984de70b27..d02349c6e7f 100644
--- a/addons/product/product.py
+++ b/addons/product/product.py
@@ -289,7 +289,6 @@ class product_template(osv.osv):
_defaults = {
'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'product.template', context=c),
-# 'company_id': lambda self, cr, uid, context: False, # Visible by all
'type': lambda *a: 'product',
'list_price': lambda *a: 1,
'cost_method': lambda *a: 'standard',
@@ -476,8 +475,6 @@ class product_product(osv.osv):
if not len(ids):
return []
def _name_get(d):
- #name = self._product_partner_ref(cr, user, [d['id']], '', '', context)[d['id']]
- #code = self._product_code(cr, user, [d['id']], '', '', context)[d['id']]
name = d.get('name','')
code = d.get('default_code',False)
if code:
diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml
index d3dec68e6bb..041a4c985ae 100644
--- a/addons/product/product_view.xml
+++ b/addons/product/product_view.xml
@@ -638,10 +638,6 @@
-
diff --git a/addons/product/report/pricelist.py b/addons/product/report/pricelist.py
index e5556f193b0..068aed7df1c 100644
--- a/addons/product/report/pricelist.py
+++ b/addons/product/report/pricelist.py
@@ -96,14 +96,11 @@ class report_custom(report_rml):
else:
res = pool.get('product.product').read(cr, uid, [x['id']])
price = res[0]['list_price']
-# temp.append(' '%(price_list[i][x['id']]*q[2]['name'],currency['currency_id'][1]))
temp.append(' '%(price))
i+=1
pro.extend(temp)
pro.append('')
-# categ.extend(pro)
-# categ.append('')
product_xml.extend(pro)
product_xml.append('')
diff --git a/addons/product/report/product_pricelist.py b/addons/product/report/product_pricelist.py
index 76bf07ad96a..d5faa4f0065 100644
--- a/addons/product/report/product_pricelist.py
+++ b/addons/product/report/product_pricelist.py
@@ -44,7 +44,6 @@ class product_pricelist(report_sxw.rml_parse):
qtys = 1
for i in range(1,6):
-# if form['qty'+str(i)] > 0 and form['qty'+str(i)] not in vals.values():
vals['qty'+str(qtys)] = form['qty'+str(i)]
qtys += 1
lst.append(vals)
@@ -85,11 +84,11 @@ class product_pricelist(report_sxw.rml_parse):
product_ids=pool.get('product.product').search(self.cr, self.uid, [('id','in',pro_ids),('categ_id','=',cat['id'])])
products = []
for product in pool.get('product.product').read(self.cr, self.uid, product_ids, ['name','code']):
- val={
- 'id':product['id'],
- 'name':product['name'],
- 'code':product['code']
- }
+ val = {
+ 'id':product['id'],
+ 'name':product['name'],
+ 'code':product['code']
+ }
i = 1
for qty in self.quantity:
if qty == 0:
diff --git a/addons/product_manufacturer/__openerp__.py b/addons/product_manufacturer/__openerp__.py
index 1ad5068be0f..0d8fa8b4cc9 100644
--- a/addons/product_manufacturer/__openerp__.py
+++ b/addons/product_manufacturer/__openerp__.py
@@ -26,7 +26,10 @@
"init_xml" : [],
"demo_xml" : [],
"description": "A module that add manufacturers and attributes on the product form",
- "update_xml" : ["security/ir.model.access.csv","product_manufacturer_view.xml"],
+ "update_xml" : [
+ "security/ir.model.access.csv",
+ "product_manufacturer_view.xml"
+ ],
"active": False,
"installable": True
}
diff --git a/addons/product_margin/__openerp__.py b/addons/product_margin/__openerp__.py
index 0f95e8ff7dd..9a9a3f1ff55 100644
--- a/addons/product_margin/__openerp__.py
+++ b/addons/product_margin/__openerp__.py
@@ -34,7 +34,8 @@ the report has several options to help you get the data you need.
'update_xml': [
'security/ir.model.access.csv',
'wizard/product_margin_view.xml',
- 'product_margin_view.xml'],
+ 'product_margin_view.xml'
+ ],
'demo_xml': [],
'installable': True,
'active': False,
diff --git a/addons/product_margin/i18n/pt_BR.po b/addons/product_margin/i18n/pt_BR.po
index e2b83fe9b68..64e59652241 100644
--- a/addons/product_margin/i18n/pt_BR.po
+++ b/addons/product_margin/i18n/pt_BR.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:43+0000\n"
+"PO-Revision-Date: 2010-08-16 09:24+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: product_margin
diff --git a/addons/product_margin/i18n/tr.po b/addons/product_margin/i18n/tr.po
index d715c3734c4..d0bb7cc7835 100644
--- a/addons/product_margin/i18n/tr.po
+++ b/addons/product_margin/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:57+0000\n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: product_margin
diff --git a/addons/product_visible_discount/product_visible_discount.py b/addons/product_visible_discount/product_visible_discount.py
index f10b50138fb..6b1c60ca516 100644
--- a/addons/product_visible_discount/product_visible_discount.py
+++ b/addons/product_visible_discount/product_visible_discount.py
@@ -78,19 +78,12 @@ class sale_order_line(osv.osv):
return res
product = product_obj.browse(cr, uid, product, context)
-# product_tmpl_id = product.product_tmpl_id.id
-# pricetype_id = pricelist_obj.browse(cr, uid, pricelist).version_id[0].items_id[0].base
-# field_name = 'list_price'
-# product_read = self.pool.get('product.template').read(cr, uid, product_tmpl_id, [field_name], context)
-# list_price = product_read[field_name]
list_price = pricelist_obj.price_get(cr, uid, [pricelist],
product.id, qty or 1.0, partner_id, {'uom': uom,'date': date_order })
pricelists = pricelist_obj.read(cr,uid,[pricelist],['visible_discount'])
old_uom = product.uos_id or product.uom_id
-# new_list_price = product_uom_obj._compute_price(cr,
-# uid, old_uom.id, list_price, uom)
new_list_price = get_real_price(list_price, product.id, pricelist)
if(len(pricelists)>0 and pricelists[0]['visible_discount'] and list_price[pricelist] != 0):
discount = (new_list_price - price) / new_list_price * 100
diff --git a/addons/profile_accounting/i18n/tr.po b/addons/profile_accounting/i18n/tr.po
index 4f62c578743..5e893b9c02a 100644
--- a/addons/profile_accounting/i18n/tr.po
+++ b/addons/profile_accounting/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:24+0000\n"
+"PO-Revision-Date: 2010-08-16 09:25+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:42+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: profile_accounting
diff --git a/addons/profile_tools/installer.py b/addons/profile_tools/installer.py
index 59e0cbab3db..1a793352b6e 100644
--- a/addons/profile_tools/installer.py
+++ b/addons/profile_tools/installer.py
@@ -25,15 +25,14 @@ class misc_tools_installer(osv.osv_memory):
_inherit = 'res.config.installer'
_columns = {
- # Tools
'lunch':fields.boolean('Lunch Orders',help='Installs tools for lunch module'),
'subscription':fields.boolean('Recurring Documents',help='Installs tools for subscription module'),
'survey':fields.boolean('Survey',help='Installs tools for survey module'),
'audittrail':fields.boolean('Audit Trail',help='Installs tools for audittrail module'),
- }
+ }
_defaults = {
'lunch': True,
- }
-
+ }
+
misc_tools_installer()
diff --git a/addons/project/__openerp__.py b/addons/project/__openerp__.py
index 0fd8d3a0c04..f071f25cb6e 100644
--- a/addons/project/__openerp__.py
+++ b/addons/project/__openerp__.py
@@ -55,9 +55,9 @@ work done on tasks, eso. It is able to render planning, order tasks, eso.
'board_project_demo.xml',
],
'test':[
- 'test/test_project.yml',
- 'test/test_project_delegation.yml',
- ],
+ 'test/test_project.yml',
+ 'test/test_project_delegation.yml',
+ ],
'installable': True,
'active': False,
'certificate': '0075116868317',
diff --git a/addons/project/board_project_demo.xml b/addons/project/board_project_demo.xml
index 99c9c4a23ff..6a063405ff3 100644
--- a/addons/project/board_project_demo.xml
+++ b/addons/project/board_project_demo.xml
@@ -1,28 +1,20 @@
-
+
-
-
-
+
Don't forget the new development policies.
Project
-
+
diff --git a/addons/project/board_project_view.xml b/addons/project/board_project_view.xml
index 5fb7e7fa858..661a67f561d 100644
--- a/addons/project/board_project_view.xml
+++ b/addons/project/board_project_view.xml
@@ -89,15 +89,6 @@
-
-
board.project.form
board.board
diff --git a/addons/project/i18n/it.po b/addons/project/i18n/it.po
index c004d29a536..d457b2bd4b9 100644
--- a/addons/project/i18n/it.po
+++ b/addons/project/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-03 09:18+0000\n"
-"Last-Translator: mga (Open ERP) \n"
+"PO-Revision-Date: 2010-08-16 12:33+0000\n"
+"Last-Translator: Nicola Riolini - Micronaet \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-08-12 03:40+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:56+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project
@@ -540,7 +540,7 @@ msgstr "Esegui Fatturazione"
#. module: project
#: model:process.transition,name:project.process_transition_draftopentask0
msgid "Draft Open task"
-msgstr ""
+msgstr "Bozza di attività aperta"
#. module: project
#: view:project.project:0
@@ -855,6 +855,8 @@ msgid ""
"If you have [?] in the project name, it means there are no analytic account "
"linked to this project."
msgstr ""
+"Se hai [?] nel nome progetto, significa che non ci sono conti analitici "
+"collegati al progetto."
#. module: project
#: help:project.project,planned_hours:0
diff --git a/addons/project/i18n/lt.po b/addons/project/i18n/lt.po
index d69ff274d1c..917e30db1f9 100644
--- a/addons/project/i18n/lt.po
+++ b/addons/project/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:50+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:42+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project
diff --git a/addons/project/i18n/ru.po b/addons/project/i18n/ru.po
index 50fe0ecccc9..4f06d32e48b 100644
--- a/addons/project/i18n/ru.po
+++ b/addons/project/i18n/ru.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:37+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:42+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project
diff --git a/addons/project/i18n/tr.po b/addons/project/i18n/tr.po
index 078a7ff7934..52f2dc4cc79 100644
--- a/addons/project/i18n/tr.po
+++ b/addons/project/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:36+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:42+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project
diff --git a/addons/project/installer.py b/addons/project/installer.py
index 23ab9630570..53a94dd7039 100644
--- a/addons/project/installer.py
+++ b/addons/project/installer.py
@@ -54,11 +54,11 @@ class project_installer(osv.osv_memory):
help="Embeds the 'Getting Things Done concepts' into OpenERP's "
"project management."),
}
-
+
_defaults={
- 'project_crm': True,
- }
-
+ 'project_crm': True,
+ }
+
project_installer()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
diff --git a/addons/project/project.py b/addons/project/project.py
index a70e72cdfbb..8d3f4150471 100644
--- a/addons/project/project.py
+++ b/addons/project/project.py
@@ -298,7 +298,7 @@ class project(osv.osv):
'type': 'ir.actions.act_window',
'search_view_id': search_view['res_id'],
'nodestroy': True
- }
+ }
# set active value for a project, its sub projects and its tasks
def setActive(self, cr, uid, ids, value=True, context=None):
@@ -373,10 +373,6 @@ class task(osv.osv):
return int(context['project_id'])
return False
- #_sql_constraints = [
- # ('remaining_hours', 'CHECK (remaining_hours>=0)', 'Please increase and review remaining hours ! It can not be smaller than 0.'),
- #]
-
def copy_data(self, cr, uid, id, default={}, context=None):
default = default or {}
default.update({'work_ids':[], 'date_start': False, 'date_end': False, 'date_deadline': False})
@@ -532,7 +528,7 @@ class task(osv.osv):
'type': 'ir.actions.act_window',
'target': 'new',
'nodestroy': True
- }
+ }
else:
self.write(cr, uid, [task_id], {'state': 'done', 'date_end':time.strftime('%Y-%m-%d %H:%M:%S'), 'remaining_hours': 0.0})
return False
@@ -755,8 +751,8 @@ class config_compute_remaining(osv.osv_memory):
})
task_obj.write(cr, uid, [task.id], {'state': 'open'})
return {
- 'type': 'ir.actions.act_window_close',
- }
+ 'type': 'ir.actions.act_window_close',
+ }
config_compute_remaining()
diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml
index 8505bc261a9..154c2f28935 100644
--- a/addons/project/project_view.xml
+++ b/addons/project/project_view.xml
@@ -1,7 +1,7 @@
-
+
[('state','=','template')]
-
-
project.task.work.form
@@ -402,7 +400,7 @@
-
@@ -642,6 +640,6 @@ Issues like bugs in a system, client complain, materials breakdown are collected
-
+
diff --git a/addons/project/wizard/project_close_task.py b/addons/project/wizard/project_close_task.py
index c82615e9e63..609735500f9 100644
--- a/addons/project/wizard/project_close_task.py
+++ b/addons/project/wizard/project_close_task.py
@@ -35,7 +35,7 @@ class project_close_task(osv.osv_memory):
'manager_email': fields.char('Manager E-Mail ID', size=64, help="Email Address of Project's Manager"),
'partner_email': fields.char('Partner E-Mail ID', size=64, help="Email Address of Partner"),
'description': fields.text('Description'),
- }
+ }
def _get_manager_email(self, cr, uid, context=None):
if context is None:
@@ -48,7 +48,7 @@ class project_close_task(osv.osv_memory):
if manager_id and manager_id.user_email:
email = manager_id.user_email
return email
-
+
def _get_partner_email(self, cr, uid, context=None):
if context is None:
context = {}
@@ -72,8 +72,8 @@ class project_close_task(osv.osv_memory):
'manager_email': _get_manager_email,
'partner_email': _get_partner_email,
'description': _get_desc,
- }
-
+ }
+
def close(self, cr, uid, ids, context=None):
if 'task_id' in context:
self.pool.get('project.task').write(cr, uid, [context['task_id']], {'state': 'done', 'date_end':time.strftime('%Y-%m-%d %H:%M:%S'), 'remaining_hours': 0.0})
@@ -87,14 +87,14 @@ class project_close_task(osv.osv_memory):
close_task = self.read(cr, uid, ids[0], [])
to_adr = []
description = close_task['description']
-
+
if 'task_id' in context:
if context.get('send_manager', False) and not close_task.get('manager_email', False):
raise osv.except_osv(_('Error'), _("Please specify the email address of Project Manager."))
-
+
elif context.get('send_partner', False) and not close_task.get('partner_email', False):
raise osv.except_osv(_('Error'), _("Please specify the email address of partner."))
-
+
else:
task_obj = self.pool.get('project.task')
task = task_obj.browse(cr, uid, context['task_id'], context=context)
@@ -112,8 +112,8 @@ class project_close_task(osv.osv_memory):
'date_start': task.date_start,
'date_end': task.date_end,
'state': task.state
- }
-
+ }
+
header = (project.warn_header or '') % val
footer = (project.warn_footer or '') % val
body = u'%s\n%s\n%s\n\n-- \n%s' % (header, description, footer, signature)
@@ -123,7 +123,7 @@ class project_close_task(osv.osv_memory):
task_obj.write(cr, uid, [task.id], {'state': 'done', 'date_end':time.strftime('%Y-%m-%d %H:%M:%S'), 'remaining_hours': 0.0})
message = _('Task ') + " '" + task.name + "' "+ _("is Done.")
self.log(cr, uid, task.id, message)
-
+
return {}
project_close_task()
diff --git a/addons/project/wizard/project_task_delegate.py b/addons/project/wizard/project_task_delegate.py
index 6951a900008..535d527f45b 100644
--- a/addons/project/wizard/project_task_delegate.py
+++ b/addons/project/wizard/project_task_delegate.py
@@ -35,7 +35,8 @@ class project_task_delegate(osv.osv_memory):
'new_task_description': fields.text('New Task Description', help="Reinclude the description of the task in the task of the user"),
'planned_hours': fields.float('Planned Hours', help="Estimated time to close this task by the delegated user"),
'planned_hours_me': fields.float('Hours to Validate', required=True, help="Estimated time for you to validate the work done by the user to whom you delegate this task"),
- 'state': fields.selection([('pending','Pending'), ('done','Done'), ], 'Validation State', required=True, help="New state of your own task. Pending will be reopened automatically when the delegated task is closed"), }
+ 'state': fields.selection([('pending','Pending'), ('done','Done'), ], 'Validation State', required=True, help="New state of your own task. Pending will be reopened automatically when the delegated task is closed")
+ }
def _get_name(self, cr, uid, context=None):
if context is None:
@@ -85,7 +86,7 @@ class project_task_delegate(osv.osv_memory):
'new_task_description': _get_new_desc,
'state': 'pending',
}
-
+
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
users_obj = self.pool.get('res.users')
obj_tm = users_obj.browse(cr, uid, uid, context).company_id.project_time_mode_id
@@ -114,7 +115,7 @@ class project_task_delegate(osv.osv_memory):
res['fields'][f]['string'] = res['fields'][f]['string'].replace('Hours',tm)
return res
-
+
def validate(self, cr, uid, ids, context=None):
if context is None:
context = {}
diff --git a/addons/project_gtd/__openerp__.py b/addons/project_gtd/__openerp__.py
index 1707c1f76d8..61ae07d6a89 100644
--- a/addons/project_gtd/__openerp__.py
+++ b/addons/project_gtd/__openerp__.py
@@ -49,8 +49,8 @@ performing those tasks.
],
'demo_xml': ['project_gtd_demo.xml'],
'test':[
- 'test/gtd_test.yml'
- ],
+ 'test/gtd_test.yml'
+ ],
'installable': True,
'active': False,
'certificate': '0043525236301',
diff --git a/addons/project_gtd/i18n/tr.po b/addons/project_gtd/i18n/tr.po
index d03242201c1..672796c768b 100644
--- a/addons/project_gtd/i18n/tr.po
+++ b/addons/project_gtd/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:02+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project_gtd
diff --git a/addons/project_gtd/project_gtd_view.xml b/addons/project_gtd/project_gtd_view.xml
index b89634ec12a..5672fdafa7c 100644
--- a/addons/project_gtd/project_gtd_view.xml
+++ b/addons/project_gtd/project_gtd_view.xml
@@ -30,8 +30,7 @@
project.gtd.context
-
-
@@ -98,6 +97,6 @@
-
+
diff --git a/addons/project_gtd/wizard/project_gtd_empty.py b/addons/project_gtd/wizard/project_gtd_empty.py
index 068b22fee62..373c8425a8c 100644
--- a/addons/project_gtd/wizard/project_gtd_empty.py
+++ b/addons/project_gtd/wizard/project_gtd_empty.py
@@ -28,7 +28,7 @@ class project_timebox_empty(osv.osv_memory):
_description = 'Project Timebox Empty'
_columns = {
'name': fields.char('Name', size=32)
- }
+ }
def view_init(self, cr , uid , fields_list, context=None):
if context is None:
diff --git a/addons/project_gtd/wizard/project_gtd_fill.py b/addons/project_gtd/wizard/project_gtd_fill.py
index 34e4a8c2457..332a7f072a8 100644
--- a/addons/project_gtd/wizard/project_gtd_fill.py
+++ b/addons/project_gtd/wizard/project_gtd_fill.py
@@ -29,7 +29,7 @@ class project_timebox_fill(osv.osv_memory):
'timebox_id': fields.many2one('project.gtd.timebox', 'Get from Timebox', required=True),
'timebox_to_id': fields.many2one('project.gtd.timebox', 'Set to Timebox', required=True),
'task_ids': fields.many2many('project.task', 'project_task_rel', 'task_id', 'fill_id', 'Tasks selection')
- }
+ }
def _get_from_tb(self, cr, uid, context=None):
if context is None:
@@ -47,7 +47,7 @@ class project_timebox_fill(osv.osv_memory):
_defaults = {
'timebox_id': _get_from_tb,
'timebox_to_id': _get_to_tb,
- }
+ }
def process(self, cr, uid, ids, context=None):
if context is None:
diff --git a/addons/project_issue/__openerp__.py b/addons/project_issue/__openerp__.py
index 4ed77cb1cbf..6efb9bde67c 100644
--- a/addons/project_issue/__openerp__.py
+++ b/addons/project_issue/__openerp__.py
@@ -49,7 +49,7 @@
'test': [
'test/convert_issue_to_task.yml',
'test/test_project_issue_states.yml'
- ],
+ ],
'installable': True,
'active': False,
}
diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py
index dc065bc1055..fb0335967a3 100644
--- a/addons/project_issue/project_issue.py
+++ b/addons/project_issue/project_issue.py
@@ -34,7 +34,7 @@ from osv.orm import except_orm
from tools.translate import _
import tools
-class project_issue(osv.osv, crm.crm_case):
+class project_issue(crm.crm_case, osv.osv):
_name = "project.issue"
_description = "Project Issue"
_order = "priority, id desc"
diff --git a/addons/project_issue/project_issue_menu.xml b/addons/project_issue/project_issue_menu.xml
index 05080670e10..5e8bd116724 100644
--- a/addons/project_issue/project_issue_menu.xml
+++ b/addons/project_issue/project_issue_menu.xml
@@ -47,8 +47,7 @@
view_mode="tree,form,calendar,graph"
view_type="form"/>
-
-
diff --git a/addons/project_issue_sheet/__openerp__.py b/addons/project_issue_sheet/__openerp__.py
index 62702469106..9e7056c214a 100644
--- a/addons/project_issue_sheet/__openerp__.py
+++ b/addons/project_issue_sheet/__openerp__.py
@@ -24,7 +24,7 @@
'name': 'Add the Timesheet support for Issue Management in Project Management',
'version': '1.0',
'category': 'Generic Modules/CRM & SRM',
- 'description': """
+ 'description': """
This module adds the Timesheet support for the Issues/Bugs Management in Project
""",
'author': 'OpenERP SA',
@@ -32,14 +32,14 @@
'depends': [
'project_issue',
'hr_timesheet_sheet',
- ],
+ ],
'init_xml': [
- ],
+ ],
'update_xml': [
'project_issue_sheet_view.xml',
- ],
+ ],
'demo_xml': [
- ],
+ ],
'installable': True,
'active': False,
}
diff --git a/addons/project_issue_sheet/project_issue_sheet.py b/addons/project_issue_sheet/project_issue_sheet.py
index 2d948afa1fb..f96ce9a4ac5 100644
--- a/addons/project_issue_sheet/project_issue_sheet.py
+++ b/addons/project_issue_sheet/project_issue_sheet.py
@@ -29,7 +29,7 @@ class project_issue(osv.osv):
'timesheet_ids': fields.one2many('hr.analytic.timesheet', 'issue_id', 'Timesheets'),
'analytic_account_id': fields.related('project_id', 'analytic_account_id', type='many2one', relation='account.analytic.account',string='Analytic Account')
}
-
+
project_issue()
class account_analytic_line(osv.osv):
@@ -37,7 +37,7 @@ class account_analytic_line(osv.osv):
_description = 'account analytic line'
_columns = {
'create_date' : fields.datetime('Create Date', readonly=True),
- }
+ }
account_analytic_line()
diff --git a/addons/project_issue_sheet/project_issue_sheet_view.xml b/addons/project_issue_sheet/project_issue_sheet_view.xml
index 13aed4eb129..ffc3332ab8c 100644
--- a/addons/project_issue_sheet/project_issue_sheet_view.xml
+++ b/addons/project_issue_sheet/project_issue_sheet_view.xml
@@ -9,12 +9,12 @@
-
+
-
-
-
+
+
+
diff --git a/addons/project_long_term/__openerp__.py b/addons/project_long_term/__openerp__.py
index f05d37e0181..c98c85006fa 100644
--- a/addons/project_long_term/__openerp__.py
+++ b/addons/project_long_term/__openerp__.py
@@ -40,10 +40,10 @@
"init_xml": [],
"demo_xml": ["project_long_term_demo.xml"],
"test": [
- 'test/schedule_project_phases.yml',
- 'test/schedule_project_tasks.yml',
- 'test/schedule_phase_tasks.yml'
- ],
+ 'test/schedule_project_phases.yml',
+ 'test/schedule_project_tasks.yml',
+ 'test/schedule_phase_tasks.yml'
+ ],
"update_xml": [
"security/ir.model.access.csv",
"wizard/project_schedule_tasks_view.xml",
@@ -51,7 +51,6 @@
"project_long_term_workflow.xml",
"wizard/project_compute_phases_view.xml",
"wizard/project_compute_tasks_view.xml",
-
],
'installable': True,
'active': False,
diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py
index 1bb2510064b..04fde75342e 100644
--- a/addons/project_long_term/project_long_term.py
+++ b/addons/project_long_term/project_long_term.py
@@ -120,8 +120,6 @@ class project_phase(osv.osv):
_constraints = [
(_check_recursion,'Loops in phases not allowed',['next_phase_ids', 'previous_phase_ids']),
(_check_dates, 'Phase start-date must be lower than phase end-date.', ['date_start', 'date_end']),
- #(_check_constraint_start, 'Phase must start-after constraint start Date.', ['date_start', 'constraint_date_start']),
- #(_check_constraint_end, 'Phase must end-before constraint end Date.', ['date_end', 'constraint_date_end']),
]
def onchange_project(self, cr, uid, ids, project, context=None):
@@ -145,7 +143,6 @@ class project_phase(osv.osv):
calendar_id = phase.project_id.resource_calendar_id and phase.project_id.resource_calendar_id.id or False
resource_id = resource_obj.search(cr, uid, [('user_id', '=', phase.responsible_id.id)])
if resource_id:
-# cal_id = resource_obj.browse(cr, uid, resource_id[0], context=context).calendar_id.id
res = resource_obj.read(cr, uid, resource_id, ['calendar_id'], context=context)[0]
cal_id = res.get('calendar_id', False) and res.get('calendar_id')[0] or False
if cal_id:
@@ -168,7 +165,6 @@ class project_phase(osv.osv):
calendar_id = phase.project_id.resource_calendar_id and phase.project_id.resource_calendar_id.id or False
resource_id = resource_obj.search(cr, uid, [('user_id', '=', phase.responsible_id.id)], context=context)
if resource_id:
-# cal_id = resource_obj.browse(cr, uid, resource_id[0], context=context).calendar_id.id
res = resource_obj.read(cr, uid, resource_id, ['calendar_id'], context=context)[0]
cal_id = res.get('calendar_id', False) and res.get('calendar_id')[0] or False
if cal_id:
diff --git a/addons/project_long_term/project_long_term_view.xml b/addons/project_long_term/project_long_term_view.xml
index 842d475b9a3..989465b8a29 100644
--- a/addons/project_long_term/project_long_term_view.xml
+++ b/addons/project_long_term/project_long_term_view.xml
@@ -319,7 +319,6 @@
-
diff --git a/addons/project_long_term/wizard/project_compute_phases.py b/addons/project_long_term/wizard/project_compute_phases.py
index 0c8e11aa9dd..75631fb3d18 100644
--- a/addons/project_long_term/wizard/project_compute_phases.py
+++ b/addons/project_long_term/wizard/project_compute_phases.py
@@ -38,11 +38,11 @@ class project_compute_phases(osv.osv_memory):
], 'Schedule', required = True),
'project_id': fields.many2one('project.project', 'Project')
- }
+ }
_defaults = {
'target_project': 'all'
- }
+ }
def check_selection(self, cr, uid, ids, context=None):
data_select = self.read(cr, uid, ids, ['target_project'])[0]
@@ -76,11 +76,11 @@ class project_compute_phases(osv.osv_memory):
leaves = wkcal.compute_leaves(cr, uid, calendar_id , resource.id, resource.calendar_id.id)
if not phase.responsible_id:
raise osv.except_osv(_('No responsible person assigned !'),_("You must assign a responsible person for phase '%s' !") % (phase.name,))
- phase_resource_obj = classobj((phase.responsible_id.name.encode('utf8')), (Resource,),
- {'__doc__': phase.responsible_id.name,
- '__name__': phase.responsible_id.name,
- 'vacation': tuple(leaves),
- 'efficiency': time_efficiency
+ phase_resource_obj = classobj((phase.responsible_id.name.encode('utf8')), (Resource,),{
+ '__doc__': phase.responsible_id.name,
+ '__name__': phase.responsible_id.name,
+ 'vacation': tuple(leaves),
+ 'efficiency': time_efficiency
})
default_uom_id = phase_obj._get_default_uom_id(cr, uid)
avg_hours = uom_obj._compute_qty(cr, uid, phase.product_uom.id, phase.duration, default_uom_id)
@@ -117,9 +117,11 @@ class project_compute_phases(osv.osv_memory):
# Write the calculated dates back
ctx = context.copy()
ctx.update({'scheduler': True})
- phase_obj.write(cr, uid, [phase.id], {'date_start': start_date.strftime('%Y-%m-%d'),
- 'date_end': end_date.strftime('%Y-%m-%d')},
- context=ctx)
+ phase_obj.write(cr, uid, [phase.id], {
+ 'date_start': start_date.strftime('%Y-%m-%d'),
+ 'date_end': end_date.strftime('%Y-%m-%d')
+ }, context=ctx)
+
# Recursive call till all the next phases scheduled
for phase in phase.next_phase_ids:
if phase.state in ['draft', 'open', 'pending']:
diff --git a/addons/project_long_term/wizard/project_compute_tasks.py b/addons/project_long_term/wizard/project_compute_tasks.py
index 0c1b6e2a650..c251ca6f332 100644
--- a/addons/project_long_term/wizard/project_compute_tasks.py
+++ b/addons/project_long_term/wizard/project_compute_tasks.py
@@ -34,7 +34,7 @@ class project_compute_tasks(osv.osv_memory):
_description = 'Project Compute Tasks'
_columns = {
'project_id': fields.many2one('project.project', 'Project', required=True)
- }
+ }
def compute_date(self, cr, uid, ids, context=None):
"""
@@ -74,11 +74,12 @@ class project_compute_tasks(osv.osv_memory):
if resource.get('calendar_id', False):
leaves = wkcal.compute_leaves(cr, uid, calendar_id , resource_id[0], resource['calendar_id'] and resource['calendar_id'][0] or False)
time_efficiency = resource.get('time_efficiency')
- resources.append(classobj((user.name.encode('utf8')), (Resource,), {'__doc__': user.name,
- '__name__': user.name,
- 'vacation': tuple(leaves),
- 'efficiency': time_efficiency
- }))
+ resources.append(classobj((user.name.encode('utf8')), (Resource,), {
+ '__doc__': user.name,
+ '__name__': user.name,
+ 'vacation': tuple(leaves),
+ 'efficiency': time_efficiency
+ }))
priority_dict = {'0': 1000, '1': 800, '2': 500, '3': 300,'4': 100}
# Create dynamic no of tasks with the resource specified
def create_tasks(j, eff, priorty=500, obj=None):
@@ -132,10 +133,12 @@ class project_compute_tasks(osv.osv_memory):
ctx = context.copy()
ctx.update({'scheduler': True})
user_id = user_obj.search(cr, uid, [('name', '=', t.booked_resource[0].__name__)])
- task_pool.write(cr, uid, [tasks[loop_no-1].id], {'date_start': s_date.strftime('%Y-%m-%d %H:%M:%S'),
- 'date_end': e_date.strftime('%Y-%m-%d %H:%M:%S'),
- 'user_id': user_id[0]},
- context=ctx)
+ task_pool.write(cr, uid, [tasks[loop_no-1].id], {
+ 'date_start': s_date.strftime('%Y-%m-%d %H:%M:%S'),
+ 'date_end': e_date.strftime('%Y-%m-%d %H:%M:%S'),
+ 'user_id': user_id[0]
+ }, context=ctx)
+
loop_no +=1
return {}
diff --git a/addons/project_long_term/wizard/project_schedule_tasks.py b/addons/project_long_term/wizard/project_schedule_tasks.py
index 343b2536c6e..5931451081b 100644
--- a/addons/project_long_term/wizard/project_schedule_tasks.py
+++ b/addons/project_long_term/wizard/project_schedule_tasks.py
@@ -35,10 +35,10 @@ class project_schedule_task(osv.osv_memory):
_description = 'project.schedule.tasks'
_columns = {
'msg': fields.char('Message', size=64)
- }
+ }
_defaults = {
'msg': 'Task Scheduling Completed Successfully'
- }
+ }
def default_get(self, cr, uid, fields_list, context=None):
if context is None:
@@ -64,11 +64,11 @@ class project_schedule_task(osv.osv_memory):
if resource_cal:
cal_id = phase.project_id.resource_calendar_id and phase.project_id.resource_calendar_id.id or False
leaves = wkcal.compute_leaves(cr, uid, cal_id, res.id, resource_cal, context=context)
- resource_objs.append(classobj(res.user_id.name.encode('utf8'), (Resource,),
- {'__doc__': res.user_id.name,
- '__name__': res.user_id.name,
- 'vacation': tuple(leaves),
- 'efficiency': resource_eff,
+ resource_objs.append(classobj(res.user_id.name.encode('utf8'), (Resource,),{
+ '__doc__': res.user_id.name,
+ '__name__': res.user_id.name,
+ 'vacation': tuple(leaves),
+ 'efficiency': resource_eff,
}))
return resource_objs
@@ -153,10 +153,12 @@ class project_schedule_task(osv.osv_memory):
ctx = context.copy()
ctx.update({'scheduler': True})
user_id = user_obj.search(cr, uid, [('name', '=', t.booked_resource[0].__name__)])
- task_obj.write(cr, uid, [tasks[loop_no-1].id], {'date_start': s_date.strftime('%Y-%m-%d %H:%M:%S'),
- 'date_end': e_date.strftime('%Y-%m-%d %H:%M:%S'),
- 'user_id': user_id[0]},
- context=ctx)
+ task_obj.write(cr, uid, [tasks[loop_no-1].id], {
+ 'date_start': s_date.strftime('%Y-%m-%d %H:%M:%S'),
+ 'date_end': e_date.strftime('%Y-%m-%d %H:%M:%S'),
+ 'user_id': user_id[0]
+ }, context=ctx)
+
loop_no += 1
return {}
diff --git a/addons/project_mrp/__openerp__.py b/addons/project_mrp/__openerp__.py
index 7ca37e87d13..c224bf243ca 100644
--- a/addons/project_mrp/__openerp__.py
+++ b/addons/project_mrp/__openerp__.py
@@ -49,10 +49,7 @@ automatically created via sale orders.
'website': 'http://www.openerp.com',
'depends': ['project', 'procurement', 'sale', 'mrp_jit'],
'init_xml': [],
- 'update_xml': ['project_mrp_workflow.xml',
- #'process/project_mrp_process.xml',
- 'project_mrp_view.xml'
- ],
+ 'update_xml': ['project_mrp_workflow.xml', 'process/project_mrp_process.xml', 'project_mrp_view.xml'],
'demo_xml': [],
'test': ['test/project_task_procurement.yml'],
'installable': True,
diff --git a/addons/project_mrp/i18n/tr.po b/addons/project_mrp/i18n/tr.po
index f82d542ad60..bb42cb40acf 100644
--- a/addons/project_mrp/i18n/tr.po
+++ b/addons/project_mrp/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:21+0000\n"
+"PO-Revision-Date: 2010-08-16 08:54+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project_mrp
diff --git a/addons/project_mrp/process/project_mrp_process.xml b/addons/project_mrp/process/project_mrp_process.xml
index 78c858f43dc..33d8698ce3d 100644
--- a/addons/project_mrp/process/project_mrp_process.xml
+++ b/addons/project_mrp/process/project_mrp_process.xml
@@ -36,7 +36,7 @@
-
+
@@ -67,7 +67,7 @@
-
+
diff --git a/addons/project_planning/__openerp__.py b/addons/project_planning/__openerp__.py
index 1ee10560919..4624de97f8c 100644
--- a/addons/project_planning/__openerp__.py
+++ b/addons/project_planning/__openerp__.py
@@ -54,8 +54,8 @@ At the end of the month, the planning manager can also check if the encoded time
'project_planning_demo.xml',
],
'test': [
- 'test/planning_states.yml'
- ],
+ 'test/planning_states.yml'
+ ],
'installable': True,
'active': False,
'certificate': '0034901836973',
diff --git a/addons/project_planning/i18n/hr.po b/addons/project_planning/i18n/hr.po
index 60f8c449911..83c8ed7f20f 100644
--- a/addons/project_planning/i18n/hr.po
+++ b/addons/project_planning/i18n/hr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:38+0000\n"
+"PO-Revision-Date: 2010-08-16 09:40+0000\n"
"Last-Translator: Miro Glavić \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
diff --git a/addons/project_planning/i18n/tr.po b/addons/project_planning/i18n/tr.po
index 710c9433fe2..2756f32e9c4 100644
--- a/addons/project_planning/i18n/tr.po
+++ b/addons/project_planning/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:08+0000\n"
+"PO-Revision-Date: 2010-08-16 09:45+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project_planning
diff --git a/addons/project_planning/project_planning_view.xml b/addons/project_planning/project_planning_view.xml
index 1a6d7efdd39..38c65315ef5 100644
--- a/addons/project_planning/project_planning_view.xml
+++ b/addons/project_planning/project_planning_view.xml
@@ -54,7 +54,7 @@
-
+
@@ -68,7 +68,7 @@
-
+
@@ -78,11 +78,9 @@
-
+
-
-
@@ -183,7 +181,7 @@
-
+
@@ -200,7 +198,7 @@
-
+
@@ -236,7 +234,7 @@
-
+
@@ -251,7 +249,7 @@
-
+
@@ -265,7 +263,7 @@
graph
-
+
@@ -285,7 +283,7 @@
-
+
@@ -327,7 +325,7 @@
-
+
diff --git a/addons/project_retro_planning/i18n/tr.po b/addons/project_retro_planning/i18n/tr.po
index 8492b8eecc4..b34516509f5 100644
--- a/addons/project_retro_planning/i18n/tr.po
+++ b/addons/project_retro_planning/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:06+0000\n"
+"PO-Revision-Date: 2010-08-16 09:10+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project_retro_planning
diff --git a/addons/project_scrum/i18n/tr.po b/addons/project_scrum/i18n/tr.po
index 5ed5461fdd0..3848d0108d7 100644
--- a/addons/project_scrum/i18n/tr.po
+++ b/addons/project_scrum/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:41+0000\n"
+"PO-Revision-Date: 2010-08-16 09:39+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project_scrum
diff --git a/addons/project_scrum/wizard/project_scrum_backlog_create_task.py b/addons/project_scrum/wizard/project_scrum_backlog_create_task.py
index 9fcf104211e..92681d804a9 100644
--- a/addons/project_scrum/wizard/project_scrum_backlog_create_task.py
+++ b/addons/project_scrum/wizard/project_scrum_backlog_create_task.py
@@ -25,7 +25,7 @@ class backlog_create_task(osv.osv_memory):
_description = 'Create Tasks from Product Backlogs'
_columns = {
'user_id': fields.many2one('res.users', 'Assign To')
- }
+ }
def do_create(self, cr, uid, ids, context=None):
mod_obj = self.pool.get('ir.model.data')
diff --git a/addons/project_scrum/wizard/project_scrum_backlog_merger.py b/addons/project_scrum/wizard/project_scrum_backlog_merger.py
index eb31ebe031c..6672a83dc5c 100644
--- a/addons/project_scrum/wizard/project_scrum_backlog_merger.py
+++ b/addons/project_scrum/wizard/project_scrum_backlog_merger.py
@@ -26,7 +26,7 @@ class project_scrum_backlog_merge(osv.osv_memory):
_description = 'Merge Product Backlogs'
_columns = {
'project_id': fields.many2one('project.project', 'Project', help="Select project for the new product backlog"),
- }
+ }
def check_backlogs(self, cr, uid, ids, context=None):
backlog_obj = self.pool.get('project.scrum.product.backlog')
@@ -54,7 +54,7 @@ class project_scrum_backlog_merge(osv.osv_memory):
'views': [(resource_id,'form')],
'type': 'ir.actions.act_window',
'target': 'new',
- }
+ }
return self.do_merge(cr, uid, ids, context=context)
def do_merge(self, cr, uid, ids, context=None):
diff --git a/addons/project_scrum/wizard/project_scrum_backlog_sprint.py b/addons/project_scrum/wizard/project_scrum_backlog_sprint.py
index 5d4a6831533..640bdfd4a65 100644
--- a/addons/project_scrum/wizard/project_scrum_backlog_sprint.py
+++ b/addons/project_scrum/wizard/project_scrum_backlog_sprint.py
@@ -28,11 +28,11 @@ class backlog_sprint_assign(osv.osv_memory):
'sprint_id': fields.many2one('project.scrum.sprint', 'Sprint Name', required=True),
'state_open': fields.boolean('Set Open', help="Change the state of product backlogs to open if its in draft state"),
'convert_to_task': fields.boolean('Convert To Task', help="Create Task for Product Backlog")
- }
+ }
_defaults = {
'state_open': True,
'convert_to_task': True,
- }
+ }
def assign_sprint(self, cr, uid, ids, context=None):
backlog_obj = self.pool.get('project.scrum.product.backlog')
diff --git a/addons/project_timesheet/__openerp__.py b/addons/project_timesheet/__openerp__.py
index 3dd6600efc9..0d8715a4e46 100644
--- a/addons/project_timesheet/__openerp__.py
+++ b/addons/project_timesheet/__openerp__.py
@@ -35,8 +35,8 @@
'update_xml': ["process/project_timesheet_process.xml", "report/task_report_view.xml"],
'demo_xml': [],
'test': [
- 'test/worktask_entry_to_timesheetline_entry.yml',
- ],
+ 'test/worktask_entry_to_timesheetline_entry.yml',
+ ],
'installable': True,
'active': False,
'certificate': '0075123647453',
diff --git a/addons/project_timesheet/i18n/tr.po b/addons/project_timesheet/i18n/tr.po
index 31a1d6a9741..175a80b2139 100644
--- a/addons/project_timesheet/i18n/tr.po
+++ b/addons/project_timesheet/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:01+0000\n"
+"PO-Revision-Date: 2010-08-16 09:31+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: project_timesheet
diff --git a/addons/project_timesheet/process/project_timesheet_process.xml b/addons/project_timesheet/process/project_timesheet_process.xml
index adf4d197e40..4bb6a6de381 100644
--- a/addons/project_timesheet/process/project_timesheet_process.xml
+++ b/addons/project_timesheet/process/project_timesheet_process.xml
@@ -7,7 +7,6 @@
-->
-
diff --git a/addons/project_timesheet/report/task_report.py b/addons/project_timesheet/report/task_report.py
index 65b58fe632b..4288331c96b 100644
--- a/addons/project_timesheet/report/task_report.py
+++ b/addons/project_timesheet/report/task_report.py
@@ -23,68 +23,6 @@ import mx.DateTime
from osv import fields,osv
import tools
-#class task_report(osv.osv):
-# _name = "task.report"
-# _description = "Project task report"
-# _auto = False
-# _columns = {
-# 'name': fields.char('Task',size=64,required=False, readonly=True),
-# 'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'), ('05','May'), ('06','June'),
-# ('07','July'), ('08','August'), ('09','September'), ('10','October'), ('11','November'), ('12','December')],'Month',readonly=True),
-# 'user_id':fields.many2one('res.users', 'User', readonly=True),
-# 'task_nbr': fields.float('Task Number', readonly=True),
-# 'task_hrs': fields.float('Task Hours', readonly=True),
-# 'task_progress': fields.float('Task Progress', readonly=True),
-# 'company_id' : fields.many2one('res.company', 'Company'),
-# 'task_state': fields.selection([('draft', 'Draft'),('open', 'Open'),('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done'),('no','No Task')], 'Status', readonly=True),
-# 'project_id':fields.many2one('project.project', 'Project'),
-# 'year': fields.char('Year',size=64,required=False, readonly=True),
-# 'date_start': fields.datetime('Starting Date',readonly=True),
-# 'date_end': fields.datetime('Ending Date',readonly=True),
-# 'date_deadline': fields.date('Deadline',readonly=True),
-# 'type': fields.many2one('project.task.type', 'Stage'),
-# 'priority' : fields.selection([('4','Very Low'), ('3','Low'), ('2','Medium'), ('1','Urgent'), ('0','Very urgent')], 'Importance'),
-# 'assign_to': fields.many2one('res.users', 'Assigned to', readonly=True),
-# 'remaining_hrs': fields.float('Remaining Hours', readonly=True),
-# }
-#
-# def init(self, cr):
-# tools.sql.drop_view_if_exists(cr, 'task_report')
-# cr.execute('''
-# create or replace view task_report as (
-# select
-# min(t.id) as id,
-# to_char(t.create_date, 'YYYY') as year,
-# to_char(t.create_date,'MM') as month,
-# u.id as user_id,
-# u.company_id as company_id,
-# t.name as name,
-# t.project_id as project_id,
-# to_char(t.date_start,'YYYY/mm/dd') as date_start,
-# to_char(t.date_end,'YYYY/mm/dd') as date_end,
-# to_char(t.date_deadline,'YYYY/mm/dd') as date_deadline,
-# t.type as type,
-# t.priority as priority,
-# t.user_id as assign_to,
-# t.remaining_hours as remaining_hrs,
-# count(t.*) as task_nbr,
-# sum(t.planned_hours) as task_hrs,
-# sum(t.planned_hours * (100 - t.progress) / 100) as task_progress,
-# case when t.state is null then 'no' else t.state end as task_state
-# from
-# res_users u
-# left join
-# project_task t on (u.id = t.user_id)
-# where
-# u.active
-# group by
-# to_char(t.create_date, 'YYYY'),to_char(t.create_date,'MM'),u.id, u.company_id, t.state
-# ,t.name,t.project_id,t.type,t.priority,
-# t.user_id,t.remaining_hours,to_char(t.date_start,'YYYY/mm/dd'),to_char(t.date_end,'YYYY/mm/dd'),to_char(t.date_deadline,'YYYY/mm/dd')
-# )
-# ''')
-#task_report()
-
class report_timesheet_task_user(osv.osv):
_name = "report.timesheet.task.user"
_auto = False
@@ -125,8 +63,7 @@ class report_timesheet_task_user(osv.osv):
'user_id': fields.many2one('res.users', 'User',readonly=True),
'timesheet_hrs': fields.function(get_hrs_timesheet, method=True, string="Timesheet Hours"),
'task_hrs': fields.function(_get_task_hours, method=True, string="Task Hours"),
-
- }
+ }
def init(self, cr):
cr.execute(""" create or replace view report_timesheet_task_user as (
diff --git a/addons/project_timesheet/report/task_report_view.xml b/addons/project_timesheet/report/task_report_view.xml
index 5b9aa9d5a04..036acefc9b8 100644
--- a/addons/project_timesheet/report/task_report_view.xml
+++ b/addons/project_timesheet/report/task_report_view.xml
@@ -7,122 +7,6 @@
parent="hr.menu_hr_root"
sequence="40" />
-
@@ -169,7 +53,7 @@
{"search_default_user_id":uid}
-
diff --git a/addons/purchase/i18n/et.po b/addons/purchase/i18n/et.po
index b7a80f2a63c..aebec5f2c46 100644
--- a/addons/purchase/i18n/et.po
+++ b/addons/purchase/i18n/et.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:37+0000\n"
+"PO-Revision-Date: 2010-08-16 09:37+0000\n"
"Last-Translator: lyyser \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: purchase
diff --git a/addons/purchase/i18n/lt.po b/addons/purchase/i18n/lt.po
index e7551c82c8d..416044e1bee 100644
--- a/addons/purchase/i18n/lt.po
+++ b/addons/purchase/i18n/lt.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:20+0000\n"
+"PO-Revision-Date: 2010-08-16 09:27+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: purchase
diff --git a/addons/purchase/i18n/tr.po b/addons/purchase/i18n/tr.po
index e70f047e4cf..86251cadc13 100644
--- a/addons/purchase/i18n/tr.po
+++ b/addons/purchase/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:09+0000\n"
+"PO-Revision-Date: 2010-08-16 09:31+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: purchase
diff --git a/addons/purchase/process/purchase_process.xml b/addons/purchase/process/purchase_process.xml
index 59d48d13b43..ddf557fe9c8 100644
--- a/addons/purchase/process/purchase_process.xml
+++ b/addons/purchase/process/purchase_process.xml
@@ -17,7 +17,6 @@
-->
-
@@ -119,7 +118,6 @@
-
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py
index afefebd4bb9..98098cdfbe2 100644
--- a/addons/purchase/purchase.py
+++ b/addons/purchase/purchase.py
@@ -53,7 +53,7 @@ class purchase_order(osv.osv):
'amount_untaxed': 0.0,
'amount_tax': 0.0,
'amount_total': 0.0,
- }
+ }
val = val1 = 0.0
cur = order.pricelist_id.currency_id
for line in order.order_line:
@@ -294,14 +294,14 @@ class purchase_order(osv.osv):
if manager and not (manager.id in managers):
managers.append(manager.id)
for manager_id in managers:
- request.create(cr, uid,
- {'name' : "Purchase amount over the limit",
+ request.create(cr, uid,{
+ 'name' : "Purchase amount over the limit",
'act_from' : uid,
'act_to' : manager_id,
'body': 'Somebody has just confirmed a purchase with an amount over the defined limit',
'ref_partner_id': po.partner_id.id,
'ref_doc1': 'purchase.order,%d' % (po.id,),
- })
+ })
def inv_line_create(self, cr, uid, a, ol):
return (0, False, {
'name': ol.name,
@@ -521,18 +521,18 @@ class purchase_order(osv.osv):
order_infos = new_order[0]
if not order_infos:
order_infos.update({
- 'origin': porder.origin,
- 'date_order': time.strftime('%Y-%m-%d'),
- 'partner_id': porder.partner_id.id,
- 'partner_address_id': porder.partner_address_id.id,
- 'dest_address_id': porder.dest_address_id.id,
- 'warehouse_id': porder.warehouse_id.id,
- 'location_id': porder.location_id.id,
- 'pricelist_id': porder.pricelist_id.id,
- 'state': 'draft',
- 'order_line': {},
- 'notes': '%s' % (porder.notes or '',),
- 'fiscal_position': porder.fiscal_position and porder.fiscal_position.id or False,
+ 'origin': porder.origin,
+ 'date_order': time.strftime('%Y-%m-%d'),
+ 'partner_id': porder.partner_id.id,
+ 'partner_address_id': porder.partner_address_id.id,
+ 'dest_address_id': porder.dest_address_id.id,
+ 'warehouse_id': porder.warehouse_id.id,
+ 'location_id': porder.location_id.id,
+ 'pricelist_id': porder.pricelist_id.id,
+ 'state': 'draft',
+ 'order_line': {},
+ 'notes': '%s' % (porder.notes or '',),
+ 'fiscal_position': porder.fiscal_position and porder.fiscal_position.id or False,
})
else:
if porder.notes:
diff --git a/addons/purchase/purchase_unit_test.xml b/addons/purchase/purchase_unit_test.xml
index d32f2f30a53..0c6de9312c2 100644
--- a/addons/purchase/purchase_unit_test.xml
+++ b/addons/purchase/purchase_unit_test.xml
@@ -51,10 +51,6 @@
-
draft
diff --git a/addons/purchase/wizard/purchase_installer.py b/addons/purchase/wizard/purchase_installer.py
index 2c0a24d0f65..010f847ad99 100644
--- a/addons/purchase/wizard/purchase_installer.py
+++ b/addons/purchase/wizard/purchase_installer.py
@@ -27,7 +27,7 @@ class purchase_installer(osv.osv_memory):
_columns = {
'purchase_requisition':fields.boolean('Purchase Requisition',help="Manages your Purchase Requisition and allow you to easily keep track and manage all your purchase orders."),
'purchase_analytic_plans': fields.boolean('Purchase Analytic Plans',help="Manages analytic distribution and purchase orders.")
- }
+ }
purchase_installer()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/purchase/wizard/purchase_line_invoice.py b/addons/purchase/wizard/purchase_line_invoice.py
index 12024df71ad..421f9d3185e 100644
--- a/addons/purchase/wizard/purchase_line_invoice.py
+++ b/addons/purchase/wizard/purchase_line_invoice.py
@@ -49,7 +49,7 @@ class purchase_line_invoice(osv.osv_memory):
property_obj=self.pool.get('ir.property')
account_fiscal_obj=self.pool.get('account.fiscal.position')
invoice_line_obj=self.pool.get('account.invoice.line')
-
+
def make_invoice(order, lines):
a = order.partner_id.property_account_payable.id
if order.partner_id and order.partner_id.property_payment_term.id:
@@ -73,7 +73,7 @@ class purchase_line_invoice(osv.osv_memory):
}
inv_id = invoice_obj.create(cr, uid, inv)
return inv_id
-
+
for line in purchase_line_obj.browse(cr,uid,record_ids):
if (not line.invoiced) and (line.state not in ('draft','cancel')):
if not line.order_id.id in invoices:
@@ -108,25 +108,25 @@ class purchase_line_invoice(osv.osv_memory):
cr.execute('insert into purchase_order_line_invoice_rel (order_line_id,invoice_id) values (%s,%s)', (line.id, inv_id))
purchase_line_obj.write(cr, uid, [line.id], {'invoiced': True})
invoices[line.order_id.id].append((line,inv_id))
-
+
res = []
for result in invoices.values():
order = result[0][0].order_id
il = map(lambda x: x[1], result)
res.append(make_invoice(order, il))
-
+
return {
- 'domain': "[('id','in', ["+','.join(map(str,res))+"])]",
- 'name': _('Supplier Invoices'),
- 'view_type': 'form',
- 'view_mode': 'tree,form',
- 'res_model': 'account.invoice',
- 'view_id': False,
- 'context': "{'type':'in_invoice'}",
- 'type': 'ir.actions.act_window'
- }
+ 'domain': "[('id','in', ["+','.join(map(str,res))+"])]",
+ 'name': _('Supplier Invoices'),
+ 'view_type': 'form',
+ 'view_mode': 'tree,form',
+ 'res_model': 'account.invoice',
+ 'view_id': False,
+ 'context': "{'type':'in_invoice'}",
+ 'type': 'ir.actions.act_window'
+ }
purchase_line_invoice()
-
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/purchase/wizard/purchase_order_group.py b/addons/purchase/wizard/purchase_order_group.py
index d9778dceb47..8d2e17609e8 100644
--- a/addons/purchase/wizard/purchase_order_group.py
+++ b/addons/purchase/wizard/purchase_order_group.py
@@ -50,14 +50,14 @@ class purchase_order_group(osv.osv_memory):
allorders = order_obj.do_merge(cr, uid, context.get('active_ids',[]), context)
return {
- 'domain': "[('id','in', [" + ','.join(map(str, allorders)) + "])]",
- 'name': 'Purchase Orders',
- 'view_type': 'form',
- 'view_mode': 'tree,form',
- 'res_model': 'purchase.order',
- 'view_id': False,
- 'type': 'ir.actions.act_window',
- 'search_view_id': id['res_id']
+ 'domain': "[('id','in', [" + ','.join(map(str, allorders)) + "])]",
+ 'name': 'Purchase Orders',
+ 'view_type': 'form',
+ 'view_mode': 'tree,form',
+ 'res_model': 'purchase.order',
+ 'view_id': False,
+ 'type': 'ir.actions.act_window',
+ 'search_view_id': id['res_id']
}
purchase_order_group()
diff --git a/addons/purchase_analytic_plans/purchase_analytic_plans_view.xml b/addons/purchase_analytic_plans/purchase_analytic_plans_view.xml
index 498ceb2bd0a..849c0260470 100644
--- a/addons/purchase_analytic_plans/purchase_analytic_plans_view.xml
+++ b/addons/purchase_analytic_plans/purchase_analytic_plans_view.xml
@@ -9,7 +9,7 @@
-
+
diff --git a/addons/purchase_requisition/__openerp__.py b/addons/purchase_requisition/__openerp__.py
index 841f8ed318b..e8811499a9f 100644
--- a/addons/purchase_requisition/__openerp__.py
+++ b/addons/purchase_requisition/__openerp__.py
@@ -33,11 +33,10 @@
"demo_xml" : [],
"update_xml" : ["wizard/purchase_requisition_partner_view.xml",
"purchase_requisition_view.xml",
- "security/ir.model.access.csv","purchase_requisition_sequence.xml"],
+ "security/ir.model.access.csv","purchase_requisition_sequence.xml"
+ ],
"active": False,
- "test":[
-# 'test/purchase_requisition.yml','test/purchase_requisition_exclusive.yml'
- ],
+ "test":[],
"installable": True
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/purchase_requisition/purchase_requisition.py b/addons/purchase_requisition/purchase_requisition.py
index 37a2aaafd3a..287dd16f119 100644
--- a/addons/purchase_requisition/purchase_requisition.py
+++ b/addons/purchase_requisition/purchase_requisition.py
@@ -117,7 +117,7 @@ class purchase_requisition_line(osv.osv):
_defaults = {
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'purchase.requisition.line', context=c),
- }
+ }
purchase_requisition_line()
class purchase_order(osv.osv):
@@ -179,7 +179,7 @@ class procurement_order(osv.osv):
})],
'purchase_ids': [(6,0,[po_id])]
})
- self.write(cr,uid,proc_id,{'requisition_id':requisition_id})
+ self.write(cr,uid,proc_id,{'requisition_id':requisition_id})
return res
procurement_order()
diff --git a/addons/purchase_requisition/wizard/purchase_requisition_partner.py b/addons/purchase_requisition/wizard/purchase_requisition_partner.py
index 56e56799700..f87460489ea 100644
--- a/addons/purchase_requisition/wizard/purchase_requisition_partner.py
+++ b/addons/purchase_requisition/wizard/purchase_requisition_partner.py
@@ -31,7 +31,7 @@ class purchase_requisition_partner(osv.osv_memory):
_columns = {
'partner_id': fields.many2one('res.partner', 'Partner', required=True,domain=[('supplier', '=', True)]),
'partner_address_id':fields.many2one('res.partner.address', 'Address', required=True),
- }
+ }
def view_init(self, cr, uid, fields_list, context=None):
res = super(purchase_requisition_partner, self).view_init(cr, uid, fields_list, context=context)
@@ -102,7 +102,7 @@ class purchase_requisition_partner(osv.osv_memory):
'price_unit': price,
'date_planned': newdate.strftime('%Y-%m-%d %H:%M:%S'),
'notes': product.description_purchase,
- }
+ }
taxes_ids = line.product_id.product_tmpl_id.supplier_taxes_id
taxes = acc_pos_obj.map_tax(cr, uid, partner.property_account_position, taxes_ids)
purchase_order_line.update({
@@ -118,7 +118,7 @@ class purchase_requisition_partner(osv.osv_memory):
'company_id': tender.company_id.id,
'fiscal_position': partner.property_account_position and partner.property_account_position.id or False,
'requisition_id':tender.id,
- })
+ })
order_ids=[]
for order_line in list_line:
order_line.update({
diff --git a/addons/report_designer/installer.py b/addons/report_designer/installer.py
index 1dd9797a68b..d67ebabb77e 100644
--- a/addons/report_designer/installer.py
+++ b/addons/report_designer/installer.py
@@ -37,6 +37,6 @@ class report_designer_installer(osv.osv_memory):
"After installation 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."),
- }
+ }
report_designer_installer()
diff --git a/addons/report_intrastat/i18n/pt_BR.po b/addons/report_intrastat/i18n/pt_BR.po
index c7f1c5ab34a..697085a5fb0 100644
--- a/addons/report_intrastat/i18n/pt_BR.po
+++ b/addons/report_intrastat/i18n/pt_BR.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:53+0000\n"
+"PO-Revision-Date: 2010-08-16 09:30+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: report_intrastat
diff --git a/addons/report_intrastat/i18n/tr.po b/addons/report_intrastat/i18n/tr.po
index 04d0293570b..8fcb7ab91a7 100644
--- a/addons/report_intrastat/i18n/tr.po
+++ b/addons/report_intrastat/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:57+0000\n"
+"PO-Revision-Date: 2010-08-16 09:29+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: report_intrastat
diff --git a/addons/resource/__openerp__.py b/addons/resource/__openerp__.py
index 01780626db7..d0f2f57e680 100644
--- a/addons/resource/__openerp__.py
+++ b/addons/resource/__openerp__.py
@@ -39,7 +39,6 @@
'depends': ['base', 'process'],
'init_xml': [],
'update_xml': [
- #'security/resource_security.xml',
'security/ir.model.access.csv',
'resource_view.xml',
],
diff --git a/addons/resource/faces/plocale.py b/addons/resource/faces/plocale.py
index 3dcd35c7cae..a9de390b255 100644
--- a/addons/resource/faces/plocale.py
+++ b/addons/resource/faces/plocale.py
@@ -23,7 +23,7 @@
import gettext
import os.path
import locale
-
+import sys
def _get_translation():
try:
diff --git a/addons/resource/resource_view.xml b/addons/resource/resource_view.xml
index 98afe8f5a03..d4cbd5b6791 100644
--- a/addons/resource/resource_view.xml
+++ b/addons/resource/resource_view.xml
@@ -41,7 +41,7 @@
-
+
@@ -78,7 +78,6 @@
-
diff --git a/addons/sale/__openerp__.py b/addons/sale/__openerp__.py
index 1facb90fe94..322f767ca51 100644
--- a/addons/sale/__openerp__.py
+++ b/addons/sale/__openerp__.py
@@ -77,7 +77,6 @@
'test/postpaid_order_policy.yml',
'test/advance_invoice.yml',
'test/so_make_line_invoice.yml',
-# 'test/so_make_invoice.yml',
'test/sale_procurement.yml',
'test/invoice_on_ordered_qty.yml',
'test/invoice_on_shipped_qty.yml',
diff --git a/addons/sale/board_sale_demo.xml b/addons/sale/board_sale_demo.xml
index 09419de206c..39f923a895b 100644
--- a/addons/sale/board_sale_demo.xml
+++ b/addons/sale/board_sale_demo.xml
@@ -2,16 +2,5 @@
-
-
diff --git a/addons/sale/board_sale_view.xml b/addons/sale/board_sale_view.xml
index 0dfe2a3a63b..fd3ed38587c 100644
--- a/addons/sale/board_sale_view.xml
+++ b/addons/sale/board_sale_view.xml
@@ -5,23 +5,6 @@
Sales
-
board.sales.manager.form
board.board
diff --git a/addons/sale/i18n/pt_BR.po b/addons/sale/i18n/pt_BR.po
index 5c91473e294..78b684e9421 100644
--- a/addons/sale/i18n/pt_BR.po
+++ b/addons/sale/i18n/pt_BR.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: pt_BR\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:34+0000\n"
+"PO-Revision-Date: 2010-08-16 09:36+0000\n"
"Last-Translator: Renato Lima - http://www.akretion.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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale
diff --git a/addons/sale/i18n/sr.po b/addons/sale/i18n/sr.po
index 0a560628deb..a352a0c4586 100644
--- a/addons/sale/i18n/sr.po
+++ b/addons/sale/i18n/sr.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:11+0000\n"
+"PO-Revision-Date: 2010-08-16 09:08+0000\n"
"Last-Translator: OpenERP Administrators \n"
"Language-Team: Serbian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale
diff --git a/addons/sale/i18n/sv.po b/addons/sale/i18n/sv.po
index 1b206b45ba1..abb637f34a8 100644
--- a/addons/sale/i18n/sv.po
+++ b/addons/sale/i18n/sv.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:19+0000\n"
+"PO-Revision-Date: 2010-08-16 09:27+0000\n"
"Last-Translator: Anders Eriksson (Mobila System) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale
diff --git a/addons/sale/i18n/tr.po b/addons/sale/i18n/tr.po
index c148d303170..03cb3b91cf0 100644
--- a/addons/sale/i18n/tr.po
+++ b/addons/sale/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:15+0000\n"
+"PO-Revision-Date: 2010-08-16 09:19+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale
diff --git a/addons/sale/i18n/uk.po b/addons/sale/i18n/uk.po
index d83ff65c216..e88f0f93fc8 100644
--- a/addons/sale/i18n/uk.po
+++ b/addons/sale/i18n/uk.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:21+0000\n"
+"PO-Revision-Date: 2010-08-16 08:56+0000\n"
"Last-Translator: Jay (OpenERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale
diff --git a/addons/sale/i18n/vi.po b/addons/sale/i18n/vi.po
index f9eab5e4f8c..fbe0515fcac 100644
--- a/addons/sale/i18n/vi.po
+++ b/addons/sale/i18n/vi.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:45+0000\n"
+"PO-Revision-Date: 2010-08-16 09:28+0000\n"
"Last-Translator: Fabien (Open ERP) \n"
"Language-Team: Vietnamese \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:59+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale
diff --git a/addons/sale/process/sale_process.xml b/addons/sale/process/sale_process.xml
index 3f0d78c0601..b4a54d5afa5 100644
--- a/addons/sale/process/sale_process.xml
+++ b/addons/sale/process/sale_process.xml
@@ -75,7 +75,6 @@
-
diff --git a/addons/sale/report/sale_report.py b/addons/sale/report/sale_report.py
index 0880cdb76d1..b18e539864e 100644
--- a/addons/sale/report/sale_report.py
+++ b/addons/sale/report/sale_report.py
@@ -22,7 +22,6 @@
import tools
from osv import fields,osv
-
class sale_report(osv.osv):
_name = "sale.report"
_description = "Sales Orders Statistics"
diff --git a/addons/sale/report/sale_report_view.xml b/addons/sale/report/sale_report_view.xml
index ed11f80e3a0..36b1afee891 100644
--- a/addons/sale/report/sale_report_view.xml
+++ b/addons/sale/report/sale_report_view.xml
@@ -26,7 +26,7 @@
-
+
diff --git a/addons/sale/sale.py b/addons/sale/sale.py
index 62b91346706..5a642c784f5 100644
--- a/addons/sale/sale.py
+++ b/addons/sale/sale.py
@@ -290,7 +290,6 @@ class sale_order(osv.osv):
'partner_invoice_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['invoice'])['invoice'],
'partner_order_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['contact'])['contact'],
'partner_shipping_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['delivery'])['delivery'],
-# 'pricelist_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').browse(cr, uid, context['partner_id']).property_product_pricelist.id,
}
_order = 'name desc'
@@ -315,7 +314,6 @@ class sale_order(osv.osv):
# Que faire si le client a une pricelist a lui ?
if shop.pricelist_id.id:
v['pricelist_id'] = shop.pricelist_id.id
- #v['payment_default_id']=shop.payment_default_id.id
return {'value': v}
def action_cancel_draft(self, cr, uid, ids, *args):
diff --git a/addons/sale/sale_demo.xml b/addons/sale/sale_demo.xml
index 0920cdeebb2..59136f2b139 100644
--- a/addons/sale/sale_demo.xml
+++ b/addons/sale/sale_demo.xml
@@ -70,9 +70,6 @@
make_to_stock
-
-
-
@@ -110,9 +107,6 @@
make_to_order
-
-
-
diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml
index e7fe2a6fe7d..4d6b41a372b 100644
--- a/addons/sale/sale_view.xml
+++ b/addons/sale/sale_view.xml
@@ -169,8 +169,6 @@
-
-
@@ -411,9 +409,6 @@
attrs="{'invisible': ['|',('state', 'not in', ('confirmed','exception')),('invoiced', '=', 0)]}"/>
-
-
-
diff --git a/addons/sale/sale_workflow.xml b/addons/sale/sale_workflow.xml
index effe7cb6fff..0ff5eb15ea0 100644
--- a/addons/sale/sale_workflow.xml
+++ b/addons/sale/sale_workflow.xml
@@ -6,7 +6,7 @@
sale.order
True
-
+
@@ -28,7 +28,7 @@
wait_ship
-
+
done
@@ -88,10 +88,6 @@
ship
function
-
action_ship_create()
@@ -113,78 +109,78 @@
stopall
action_cancel()
-
+
-
+
-
+
order_confirm
-
+
cancel
-
+
all_lines
-
+
(order_policy=='picking')
-
+
-
+
-
+
cancel
-
+
cancel
-
+
(order_policy!='prepaid') or invoiced
-
+
(order_policy=='prepaid') or ((order_policy=='postpaid') and shipped)
-
+
manual_invoice
-
+
@@ -214,7 +210,7 @@
-
+
@@ -225,10 +221,6 @@
-
test_state('canceled')
@@ -246,6 +238,6 @@
ship_cancel
-
+
diff --git a/addons/sale/stock.py b/addons/sale/stock.py
index b908c440b1d..6ff57e4d7d1 100644
--- a/addons/sale/stock.py
+++ b/addons/sale/stock.py
@@ -183,10 +183,10 @@ class stock_picking(osv.osv):
'quantity': sale_line.product_uos_qty,
'invoice_line_tax_id': [(6, 0, tax_ids)],
'account_analytic_id': account_analytic_id,
- }, context=context)
+ }, context=context)
self.pool.get('sale.order.line').write(cursor, user, [sale_line.id], {'invoiced':True,
'invoice_lines': [(6, 0, [invoice_line_id])],
- })
+ })
return result
diff --git a/addons/sale/test/advance_invoice.yml b/addons/sale/test/advance_invoice.yml
index f926548046f..7bb1ac8e902 100644
--- a/addons/sale/test/advance_invoice.yml
+++ b/addons/sale/test/advance_invoice.yml
@@ -26,11 +26,7 @@
pricelist_id: product.list0
shop_id: sale.shop
-
- I confirm the Sale Order.
--
- !workflow {model: sale.order, action: order_confirm, ref: sale_order_so5}
--
- I use the Advance Payment wizard.
+ I use the Advance Payment wizard.
-
!record {model: sale.advance.payment.inv, id: sale_advance_payment_inv_0}:
amount: 1000.0
@@ -95,19 +91,23 @@
writeoff_acc_id: account.a_sale
writeoff_journal_id: sale.account_journal_bankjournal0
-
- I verify that invoice has transit from Open to Done state
+ I verify that invoice has transit from Open to Paid state
-
!python {model: account.invoice}: |
sale_order_obj = self.pool.get('sale.order')
so = sale_order_obj.browse(cr, uid, ref("sale_order_so5"))
invoice_id = self.search(cr, uid, [('origin','=',so.name),('state','=','paid')])
- assert invoice_id, "Invoice for SO is not in done state."
+ assert invoice_id, "Invoice for SO is not in paid state."
-
I verify that Paid has been set to true.
-
!python {model: sale.order}: |
sale_id=self.browse(cr, uid, ref("sale_order_so5"))
assert(sale_id.invoiced == True), "Paid has not been set to true"
+-
+ I confirm the Sale Order.
+-
+ !workflow {model: sale.order, action: order_confirm, ref: sale_order_so5}
-
I click on "Create Invoice" button of Sales order to create the invoice.
-
diff --git a/addons/sale/test/data_test.yml b/addons/sale/test/data_test.yml
index ef3b0bfe0ed..4a9eb489500 100644
--- a/addons/sale/test/data_test.yml
+++ b/addons/sale/test/data_test.yml
@@ -38,7 +38,7 @@
I create Minimal Chart Account.
-
!record {model: account.account, id: account_account_minimalchart0}:
- code: '0'
+ code: MC
company_id: base.main_company
currency_mode: current
name: Minimal Chart
diff --git a/addons/sale/wizard/sale_make_invoice.xml b/addons/sale/wizard/sale_make_invoice.xml
index 37239aedd38..0bf0c37fdc2 100644
--- a/addons/sale/wizard/sale_make_invoice.xml
+++ b/addons/sale/wizard/sale_make_invoice.xml
@@ -27,13 +27,5 @@
new
-
-
-
-
-
-
-
-
diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py
index 3b966e014e6..ec944553cdc 100644
--- a/addons/sale/wizard/sale_make_invoice_advance.py
+++ b/addons/sale/wizard/sale_make_invoice_advance.py
@@ -33,7 +33,7 @@ class sale_advance_payment_inv(osv.osv_memory):
}
_default = {
'qtty' : lambda *a: 1
- }
+ }
def create_invoices(self, cr, uid, ids, context={}):
"""
To create invoices.
@@ -92,7 +92,7 @@ class sale_advance_payment_inv(osv.osv_memory):
'comment': '',
'payment_term':sale.payment_term.id,
'fiscal_position': sale.fiscal_position.id or sale.partner_id.property_account_position.id
- }
+ }
inv_id = inv_obj.create(cr, uid, inv)
@@ -121,15 +121,15 @@ class sale_advance_payment_inv(osv.osv_memory):
context.update({'invoice_id':list_inv})
- return {#'invoice_ids':list_inv,
- 'name': 'Open Invoice',
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'sale.open.invoice',
- 'type': 'ir.actions.act_window',
- 'target': 'new',
- 'context':context
- }
+ return {
+ 'name': 'Open Invoice',
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'sale.open.invoice',
+ 'type': 'ir.actions.act_window',
+ 'target': 'new',
+ 'context':context
+ }
sale_advance_payment_inv()
@@ -168,7 +168,6 @@ class sale_open_invoice(osv.osv_memory):
tree_id = mod_obj._get_id(cr, uid, 'account', 'invoice_tree')
tree_res = mod_obj.browse(cr, uid, tree_id, context=context).res_id
return {
-# 'domain': "[('id','in', ["+','.join(map(str, invoices))+"])]", # TODO
'name': 'Invoices',
'view_type': 'form',
'view_mode': 'form,tree',
@@ -180,9 +179,6 @@ class sale_open_invoice(osv.osv_memory):
'type': 'ir.actions.act_window',
}
-
-
-
sale_open_invoice()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/sale_crm/test/sale_crm.yml b/addons/sale_crm/test/sale_crm.yml
index 3d4542dc7b1..86095929691 100644
--- a/addons/sale_crm/test/sale_crm.yml
+++ b/addons/sale_crm/test/sale_crm.yml
@@ -36,15 +36,15 @@
Then I click on the 'Ok' button of wizard
-
!python {model: crm.make.sale}: |
+ crm_obj = self.pool.get('crm.lead')
+ crm = crm_obj.browse(cr, uid, ref("crm_lead_opportunity0"))
self.makeOrder(cr, uid, [ref("crm_make_sale_0")], {"lang": "en_US", "tz": False,
- "active_model": "crm.lead", "section_id": False, "default_type": "opportunity",
- "search_default_user_id": 1, "search_default_current": 1, "active_ids": [1],
- "active_id": (1)})
+ "active_model": "crm.lead", "section_id": "crm.section_sales_department", "default_type": "opportunity",
+ "search_default_user_id": 1, "search_default_current": 1, "active_ids": [crm.id],
+ "active_id": crm.id})
-
I verify that a sale order has been generated from an opportunity
-
- !python {model: sale.order}: |
- crm_obj = self.pool.get('crm.lead')
+ !python {model: crm.lead}: |
crm = self.browse(cr, uid, ref("crm_lead_opportunity0"))
- so = self.search(cr, uid, [('origin','=', 'Opportunity: %s' % str(crm.id))])
- assert so, "Sale order has not been created "
\ No newline at end of file
+ assert (crm.ref),("sale order has not been created")
\ No newline at end of file
diff --git a/addons/sale_crm/wizard/crm_make_sale.py b/addons/sale_crm/wizard/crm_make_sale.py
index f6a99e56578..7d9e4086f52 100644
--- a/addons/sale_crm/wizard/crm_make_sale.py
+++ b/addons/sale_crm/wizard/crm_make_sale.py
@@ -48,7 +48,7 @@ class crm_make_sale(osv.osv_memory):
return False
lead = lead_obj.read(cr, uid, active_id, ['partner_id'])
return lead['partner_id']
-
+
def view_init(self, cr, uid, fields_list, context=None):
if context is None:
context = {}
@@ -58,8 +58,8 @@ class crm_make_sale(osv.osv_memory):
if not line.section_id:
raise osv.except_osv(_('Warning !'), _(' Sales Team is not specified.'))
return super(crm_make_sale, self).view_init(cr, uid, fields_list, context=context)
-
-
+
+
def makeOrder(self, cr, uid, ids, context=None):
"""
@@ -176,9 +176,9 @@ class crm_make_sale(osv.osv_memory):
'view_id': False,
'type': 'ir.actions.act_window',
'res_id': new_ids
- }
+ }
return value
-
+
def _get_shop_id(self, cr, uid, ids, context=None):
if context is None:
context = {}
@@ -198,7 +198,7 @@ class crm_make_sale(osv.osv_memory):
'partner_id': _selectPartner,
'close': 1
}
-
+
crm_make_sale()
class sale_order_make_line(osv.osv_memory):
diff --git a/addons/sale_journal/i18n/pl.po b/addons/sale_journal/i18n/pl.po
index be9205427e7..45942986cb0 100644
--- a/addons/sale_journal/i18n/pl.po
+++ b/addons/sale_journal/i18n/pl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:44+0000\n"
+"PO-Revision-Date: 2010-08-16 09:24+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale_journal
diff --git a/addons/sale_journal/i18n/tr.po b/addons/sale_journal/i18n/tr.po
index 2514288616f..9835e066d29 100644
--- a/addons/sale_journal/i18n/tr.po
+++ b/addons/sale_journal/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:46+0000\n"
+"PO-Revision-Date: 2010-08-16 09:30+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:45+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale_journal
diff --git a/addons/sale_journal/sale_journal_view.xml b/addons/sale_journal/sale_journal_view.xml
index e59b743ed91..7340a7ef133 100644
--- a/addons/sale_journal/sale_journal_view.xml
+++ b/addons/sale_journal/sale_journal_view.xml
@@ -43,7 +43,7 @@
tree,form
-
+
@@ -479,21 +479,6 @@
-
-
-
-
stock.picking.journal.search
stock.picking
@@ -504,8 +489,8 @@
-
-
+
+
stock.picking.journal.search
stock.picking
@@ -517,7 +502,7 @@
-
+
stock.picking.journal.search
stock.picking
@@ -528,8 +513,8 @@
-
-
+
+
stock.picking.journal.search
stock.picking
@@ -540,8 +525,8 @@
-
-
-
+
+
+
diff --git a/addons/sale_layout/i18n/et.po b/addons/sale_layout/i18n/et.po
index ae9c358c668..8b16a15c4ca 100644
--- a/addons/sale_layout/i18n/et.po
+++ b/addons/sale_layout/i18n/et.po
@@ -8,13 +8,13 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-11-26 08:45+0000\n"
-"PO-Revision-Date: 2010-08-15 17:57+0000\n"
+"PO-Revision-Date: 2010-08-16 09:47+0000\n"
"Last-Translator: lyyser \n"
"Language-Team: Estonian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:01+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale_layout
diff --git a/addons/sale_layout/sale_layout.py b/addons/sale_layout/sale_layout.py
index 9bb73a8e1c3..6144ea13d05 100755
--- a/addons/sale_layout/sale_layout.py
+++ b/addons/sale_layout/sale_layout.py
@@ -57,19 +57,20 @@ class sale_order_line(osv.osv):
if (not type):
return {}
if type != 'article':
- temp = {'value': {
- 'product_id': False,
- 'uos_id': False,
- 'account_id': False,
- 'price_unit': 0.0,
- 'price_subtotal': 0.0,
- 'quantity': 0,
- 'discount': 0.0,
- 'invoice_line_tax_id': False,
- 'account_analytic_id': False,
- 'product_uom_qty':0.0,
- },
- }
+ temp = {
+ 'value': {
+ 'product_id': False,
+ 'uos_id': False,
+ 'account_id': False,
+ 'price_unit': 0.0,
+ 'price_subtotal': 0.0,
+ 'quantity': 0,
+ 'discount': 0.0,
+ 'invoice_line_tax_id': False,
+ 'account_analytic_id': False,
+ 'product_uom_qty':0.0,
+ },
+ }
if type == 'line':
temp['value']['name'] = ' '
if type == 'break':
diff --git a/addons/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py
index 722fa9809b0..add9c4f9352 100644
--- a/addons/share/wizard/share_wizard.py
+++ b/addons/share/wizard/share_wizard.py
@@ -84,60 +84,60 @@ class share_create(osv.osv_memory):
'user_type' : 'existing',
'domain': '[]',
'access_mode': 'readonly'
-
+
}
def default_get(self, cr, uid, fields, context=None):
- """
+ """
To get default values for the object.
- """
+ """
- res = super(share_create, self).default_get(cr, uid, fields, context=context)
+ res = super(share_create, self).default_get(cr, uid, fields, context=context)
if not context:
context={}
action_id = context.get('action_id', False)
- domain = context.get('domain', '[]')
-
-
+ domain = context.get('domain', '[]')
+
+
if 'action_id' in fields:
res['action_id'] = action_id
if 'domain' in fields:
- res['domain'] = domain
+ res['domain'] = domain
return res
def do_step_1(self, cr, uid, ids, context=None):
"""
This action to excute step 1
-
+
"""
if not context:
context = {}
- data_obj = self.pool.get('ir.model.data')
-
+ data_obj = self.pool.get('ir.model.data')
+
step1_form_view = data_obj._get_id(cr, uid, 'share', 'share_step1_form')
-
+
if step1_form_view:
- step1_form_view_id = data_obj.browse(cr, uid, step1_form_view, context=context).res_id
+ step1_form_view_id = data_obj.browse(cr, uid, step1_form_view, context=context).res_id
step1_id = False
for this in self.browse(cr, uid, ids, context=context):
vals ={
- 'domain': this.domain,
+ 'domain': this.domain,
'action_id': this.action_id and this.action_id.id or False,
- }
- step1_id = this.id
+ }
+ step1_id = this.id
context.update(vals)
value = {
- 'name': _('Step:2 Sharing Wizard'),
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'share.create',
+ 'name': _('Step:2 Sharing Wizard'),
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'share.create',
'view_id': False,
- 'res_id': step1_id,
- 'views': [(step1_form_view_id, 'form'), (False, 'tree'), (False, 'calendar'), (False, 'graph')],
- 'type': 'ir.actions.act_window',
+ 'res_id': step1_id,
+ 'views': [(step1_form_view_id, 'form'), (False, 'tree'), (False, 'calendar'), (False, 'graph')],
+ 'type': 'ir.actions.act_window',
'context': context,
'target': 'new'
}
@@ -147,35 +147,35 @@ class share_create(osv.osv_memory):
def do_step_2(self, cr, uid, ids, context=None):
"""
This action to excute step 2
-
+
"""
if not context:
context = {}
- data_obj = self.pool.get('ir.model.data')
-
+ data_obj = self.pool.get('ir.model.data')
+
step2_form_view = data_obj._get_id(cr, uid, 'share', 'share_step2_form')
-
+
if step2_form_view:
- step2_form_view_id = data_obj.browse(cr, uid, step2_form_view, context=context).res_id
+ step2_form_view_id = data_obj.browse(cr, uid, step2_form_view, context=context).res_id
step1_id = False
for this in self.browse(cr, uid, ids, context=context):
- vals ={
- 'user_type': this.user_type,
+ vals = {
+ 'user_type': this.user_type,
'existing_user_ids': map(lambda x:x.id, this.user_ids),
'new_user': this.new_user,
- }
+ }
context.update(vals)
value = {
- 'name': _('Step:3 Sharing Wizard'),
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'share.create',
- 'view_id': False,
- 'views': [(step2_form_view_id, 'form'), (False, 'tree'), (False, 'calendar'), (False, 'graph')],
- 'type': 'ir.actions.act_window',
+ 'name': _('Step:3 Sharing Wizard'),
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'share.create',
+ 'view_id': False,
+ 'views': [(step2_form_view_id, 'form'), (False, 'tree'), (False, 'calendar'), (False, 'graph')],
+ 'type': 'ir.actions.act_window',
'context': context,
'target': 'new'
}
@@ -185,33 +185,33 @@ class share_create(osv.osv_memory):
def do_step_3(self, cr, uid, ids, context=None):
"""
This action to excute step 3
-
+
"""
if not context:
context = {}
- for this in self.browse(cr, uid, ids, context=context):
- vals ={
+ for this in self.browse(cr, uid, ids, context=context):
+ vals = {
'access_mode': this.access_mode,
- }
+ }
context.update(vals)
-
+
group_obj = self.pool.get('res.groups')
user_obj = self.pool.get('res.users')
- fields_obj = self.pool.get('ir.model.fields')
- model_access_obj = self.pool.get('ir.model.access')
+ fields_obj = self.pool.get('ir.model.fields')
+ model_access_obj = self.pool.get('ir.model.access')
model_obj = self.pool.get('ir.model')
rule_obj = self.pool.get('ir.rule')
- action_obj = self.pool.get('ir.actions.act_window')
+ action_obj = self.pool.get('ir.actions.act_window')
new_users = context.get('new_user', False)
action_id = context.get('action_id', False)
user_type = context.get('user_type', False)
access_mode = context.get('access_mode', False)
action = action_obj.browse(cr, uid, action_id, context=context)
- active_model = action.res_model
-
+ active_model = action.res_model
+
active_id = False #TODO: Pass record id of res_model of action
existing_user_ids = context.get('existing_user_ids', False)
domain = eval(context.get('domain', '[]'))
@@ -225,10 +225,10 @@ class share_create(osv.osv_memory):
else:
group = group_obj.browse(cr, uid, group_id, context=context)
if not group.share:
- raise osv.except_osv(_('Error'), _("Share Group is exits without sharing !"))
-
- # Create new user
-
+ raise osv.except_osv(_('Error'), _("Share Group is exits without sharing !"))
+
+ # Create new user
+
current_user = user_obj.browse(cr, uid, uid)
user_ids = []
if user_type == 'new' and new_users:
@@ -242,27 +242,28 @@ class share_create(osv.osv_memory):
'groups_id': [(6,0,[group_id])],
'action_id': action_id,
'share': True,
- 'company_id': current_user.company_id and current_user.company_id.id})
+ 'company_id': current_user.company_id and current_user.company_id.id
+ })
user_ids.append(user_id)
context['new_user_ids'] = user_ids
# Modify existing user
- if user_type == 'existing':
+ if user_type == 'existing':
user_obj.write(cr, uid, existing_user_ids , {
'groups_id': [(4,group_id)],
'action_id': action_id
})
-
- #ACCESS RIGHTS / IR.RULES COMPUTATION
-
+
+ #ACCESS RIGHTS / IR.RULES COMPUTATION
+
active_model_ids = model_obj.search(cr, uid, [('model','=',active_model)])
active_model_id = active_model_ids and active_model_ids[0] or False
-
- def _get_relation(model_id, ttypes, new_obj=[]):
- obj = []
+
+ def _get_relation(model_id, ttypes, new_obj=[]):
+ obj = []
models = map(lambda x:x[1].model, new_obj)
- field_ids = fields_obj.search(cr, uid, [('model_id','=',model_id),('ttype','in', ttypes)])
+ field_ids = fields_obj.search(cr, uid, [('model_id','=',model_id),('ttype','in', ttypes)])
for field in fields_obj.browse(cr, uid, field_ids, context=context):
if field.relation not in models:
relation_model_ids = model_obj.search(cr, uid, [('model','=',field.relation)])
@@ -271,8 +272,8 @@ class share_create(osv.osv_memory):
obj.append((field.relation_field, relation_model))
if relation_model_id != model_id and field.ttype in ['one2many', 'many2many']:
- obj += _get_relation(relation_model_id, [field.ttype], obj)
-
+ obj += _get_relation(relation_model_id, [field.ttype], obj)
+
return obj
active_model = model_obj.browse(cr, uid, active_model_id, context=context)
@@ -286,7 +287,7 @@ class share_create(osv.osv_memory):
current_user = user_obj.browse(cr, uid, uid, context=context)
if access_mode == 'readonly':
res = []
- # intersect with read access rights of user running the
+ # intersect with read access rights of user running the
# wizard, to avoid adding more access than current
for group in current_user.groups_id:
for access_control in group.model_access:
@@ -299,18 +300,18 @@ class share_create(osv.osv_memory):
'model_id' : access_control.model_id.id,
'group_id' : group_id,
'perm_read' : True
- })
+ })
res = []
for rel_field, model in obj0+obj1+obj2+obj3:
if model.id in res:
continue
res.append(model.id)
model_access_obj.create(cr, uid, {
- 'name': 'Read Access of group %s on %s model'%(share_group_name, model.name),
- 'model_id' : model.id,
- 'group_id' : group_id,
- 'perm_read' : True
- })
+ 'name': 'Read Access of group %s on %s model'%(share_group_name, model.name),
+ 'model_id' : model.id,
+ 'group_id' : group_id,
+ 'perm_read' : True
+ })
if access_mode == 'readwrite':
res = []
for rel_field, model in obj0+obj1:
@@ -318,15 +319,15 @@ class share_create(osv.osv_memory):
continue
res.append(model.id)
model_access_obj.create(cr, uid, {
- 'name': 'Write Access of group %s on %s model'%(share_group_name, model.name),
- 'model_id' : model.id,
- 'group_id' : group_id,
- 'perm_read' : True,
- 'perm_write' : True,
- 'perm_unlink' : True,
- 'perm_create' : True,
- })
- # intersect with access rights of user
+ 'name': 'Write Access of group %s on %s model'%(share_group_name, model.name),
+ 'model_id' : model.id,
+ 'group_id' : group_id,
+ 'perm_read' : True,
+ 'perm_write' : True,
+ 'perm_unlink' : True,
+ 'perm_create' : True,
+ })
+ # intersect with access rights of user
# running the wizard, to avoid adding more access than current
for group in current_user.groups_id:
@@ -336,24 +337,24 @@ class share_create(osv.osv_memory):
if access_control.perm_read:
res.append(access_control.model_id.id)
model_access_obj.create(cr, uid, {
- 'name': 'Read Access of group %s on %s model'%(share_group_name, access_control.model_id.name),
- 'model_id' : access_control.model_id.id,
- 'group_id' : group_id,
- 'perm_read' : True
+ 'name': 'Read Access of group %s on %s model'%(share_group_name, access_control.model_id.name),
+ 'model_id' : access_control.model_id.id,
+ 'group_id' : group_id,
+ 'perm_read' : True
})
for rel_field, model in obj2+obj3:
if model.id in res:
continue
res.append(model.id)
model_access_obj.create(cr, uid, {
- 'name': 'Read Access of group %s on %s model'%(share_group_name, model.name),
- 'model_id' : model.id,
- 'group_id' : group_id,
- 'perm_read' : True
+ 'name': 'Read Access of group %s on %s model'%(share_group_name, model.name),
+ 'model_id' : model.id,
+ 'group_id' : group_id,
+ 'perm_read' : True
})
- #
+ #
# And on OBJ0, OBJ1, OBJ2, OBJ3: add all rules from groups of the user
- # that is sharing in the many2many of the rules on the new group
+ # that is sharing in the many2many of the rules on the new group
# (rule must be copied instead of adding it if it contains a reference to uid
# or user.xxx so it can be replaced correctly)
@@ -364,10 +365,11 @@ class share_create(osv.osv_memory):
continue
res.append(model.id)
for rule in group.rule_groups:
- if rule.model_id == model.id:
+ if rule.model_id == model.id:
rule_obj.copy(cr, uid, rule.id, default={
- 'name': '%s-%s'%(share_group_name, model.model),
- 'groups': [(6,0,[group_id])]}, context=context)
+ 'name': '%s-%s'%(share_group_name, model.model),
+ 'groups': [(6,0,[group_id])]
+ }, context=context)
rule_obj.create(cr, uid, {
'name': '%s-%s'%(share_group_name, active_model.model),
@@ -390,23 +392,23 @@ class share_create(osv.osv_memory):
context['share_model'] = active_model.model
context['share_rec_id'] = active_id
-
- data_obj = self.pool.get('ir.model.data')
-
+
+ data_obj = self.pool.get('ir.model.data')
+
form_view = data_obj._get_id(cr, uid, 'share', 'share_result_form')
form_view_id = False
if form_view:
- form_view_id = data_obj.browse(cr, uid, form_view, context=context).res_id
+ form_view_id = data_obj.browse(cr, uid, form_view, context=context).res_id
+
-
value = {
- 'name': _('Step:4 Share Users Detail'),
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'share.result',
- 'view_id': False,
- 'views': [(form_view_id, 'form'), (False, 'tree'), (False, 'calendar'), (False, 'graph')],
- 'type': 'ir.actions.act_window',
+ 'name': _('Step:4 Share Users Detail'),
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'share.result',
+ 'view_id': False,
+ 'views': [(form_view_id, 'form'), (False, 'tree'), (False, 'calendar'), (False, 'graph')],
+ 'type': 'ir.actions.act_window',
'context': context,
'target': 'new'
}
@@ -415,19 +417,19 @@ share_create()
class share_result(osv.osv_memory):
- _name = "share.result"
+ _name = "share.result"
_columns = {
- 'users': fields.text("Users", readonly=True),
+ 'users': fields.text("Users", readonly=True),
}
-
- def do_send_email(self, cr, uid, ids, context=None):
- user_obj = self.pool.get('res.users')
+
+ def do_send_email(self, cr, uid, ids, context=None):
+ user_obj = self.pool.get('res.users')
if not context:
context={}
existing_user_ids = context.get('existing_user_ids', [])
- new_user_ids = context.get('new_user_ids', [])
+ new_user_ids = context.get('new_user_ids', [])
share_url = tools.config.get('share_root_url', False)
user = user_obj.browse(cr, uid, uid, context=context)
for share_user in user_obj.browse(cr, uid, new_user_ids+existing_user_ids, context=context):
@@ -436,13 +438,13 @@ class share_result(osv.osv_memory):
body = """
Dear,
- %s wants to share private data from OpenERP with you!
+ %s wants to share private data from OpenERP with you!
"""%(user.name)
if share_url:
body += """
To view it, you can access the following URL:
%s
- """%(user.name, share_url)
+ """%(user.name, share_url)
if share_user.id in new_user_ids:
body += """
You may use the following login and password to get access to this
@@ -454,28 +456,28 @@ class share_result(osv.osv_memory):
body += """
You may use your existing login and password to get access to this
additional data. As a reminder, your login is %s.
- """%(user.name)
+ """%(user.name)
flag = tools.email_send(
user.user_email,
email_to,
subject,
- body
+ body
)
return flag
-
+
def default_get(self, cr, uid, fields, context=None):
- """
+ """
To get default values for the object.
- """
+ """
res = super(share_result, self).default_get(cr, uid, fields, context=context)
- user_obj = self.pool.get('res.users')
+ user_obj = self.pool.get('res.users')
if not context:
context={}
existing_user_ids = context.get('existing_user_ids', [])
- new_user_ids = context.get('new_user_ids', [])
+ new_user_ids = context.get('new_user_ids', [])
share_url = tools.config.get('share_root_url', False)
if 'users' in fields:
users = []
@@ -483,13 +485,13 @@ class share_result(osv.osv_memory):
txt = 'Login: %s Password: %s' %(user.login, user.password)
if share_url:
txt += ' Share URL: %s' %(share_url)
- users.append(txt)
- for user in user_obj.browse(cr, uid, existing_user_ids):
+ users.append(txt)
+ for user in user_obj.browse(cr, uid, existing_user_ids):
txt = 'Login: %s' %(user.login)
if share_url:
txt += ' Share URL: %s' %(share_url)
users.append(txt)
res['users'] = '\n'.join(users)
return res
-
-share_result()
+
+share_result()
diff --git a/addons/stock/i18n/bs.po b/addons/stock/i18n/bs.po
index f73707fbfdc..70539604361 100644
--- a/addons/stock/i18n/bs.po
+++ b/addons/stock/i18n/bs.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:36+0000\n"
+"PO-Revision-Date: 2010-08-16 09:24+0000\n"
"Last-Translator: adnan \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-08-16 06:42+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: stock
diff --git a/addons/stock/i18n/de.po b/addons/stock/i18n/de.po
index d2622c9dac8..bc017a07a52 100644
--- a/addons/stock/i18n/de.po
+++ b/addons/stock/i18n/de.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 11:44+0000\n"
+"PO-Revision-Date: 2010-08-16 09:46+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:42+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: stock
diff --git a/addons/stock/i18n/it.po b/addons/stock/i18n/it.po
index daefdc181dd..3d0e80665e0 100644
--- a/addons/stock/i18n/it.po
+++ b/addons/stock/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:42+0000\n"
+"PO-Revision-Date: 2010-08-16 09:24+0000\n"
"Last-Translator: Davide Corio - Domsense \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-08-16 06:42+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: stock
diff --git a/addons/stock/i18n/pl.po b/addons/stock/i18n/pl.po
index 698a6354ab2..9f68440f9b1 100644
--- a/addons/stock/i18n/pl.po
+++ b/addons/stock/i18n/pl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 09:58+0000\n"
+"PO-Revision-Date: 2010-08-16 09:26+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:42+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: stock
diff --git a/addons/stock/i18n/pt_BR.po b/addons/stock/i18n/pt_BR.po
index 65b9ce94e26..449763a14fc 100644
--- a/addons/stock/i18n/pt_BR.po
+++ b/addons/stock/i18n/pt_BR.po
@@ -7,14 +7,14 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 13:04+0000\n"
+"PO-Revision-Date: 2010-08-16 09:31+0000\n"
"Last-Translator: Renato Lima - http://www.akretion.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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: stock
diff --git a/addons/stock/i18n/tr.po b/addons/stock/i18n/tr.po
index 10393d8880f..ed56a2399f6 100644
--- a/addons/stock/i18n/tr.po
+++ b/addons/stock/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 14:16+0000\n"
+"PO-Revision-Date: 2010-08-16 08:51+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:42+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: stock
diff --git a/addons/stock/product.py b/addons/stock/product.py
index dfe6f82c30d..c79896f07aa 100644
--- a/addons/stock/product.py
+++ b/addons/stock/product.py
@@ -149,16 +149,16 @@ class product_product(osv.osv):
product.id,))
amount_diff = qty * -diff
move_line_obj.create(cr, uid, {
- 'name': product.name,
- 'account_id': stock_output_acc,
- 'credit': amount_diff,
- 'move_id': move_id
+ 'name': product.name,
+ 'account_id': stock_output_acc,
+ 'credit': amount_diff,
+ 'move_id': move_id
})
move_line_obj.create(cr, uid, {
- 'name': product.categ_id.name,
- 'account_id': account_variation_id,
- 'debit': amount_diff,
- 'move_id': move_id
+ 'name': product.categ_id.name,
+ 'account_id': account_variation_id,
+ 'debit': amount_diff,
+ 'move_id': move_id
})
self.write(cr, uid, rec_id, {'standard_price': new_price})
diff --git a/addons/stock/product_view.xml b/addons/stock/product_view.xml
index 10b7606533f..ef9b833ec32 100644
--- a/addons/stock/product_view.xml
+++ b/addons/stock/product_view.xml
@@ -33,8 +33,6 @@
-
-
product.template.stock.property.form.inherit
product.template
@@ -135,6 +133,5 @@
-
diff --git a/addons/stock/report/report_stock.py b/addons/stock/report/report_stock.py
index 5ea8c83c602..9f23f325e35 100644
--- a/addons/stock/report/report_stock.py
+++ b/addons/stock/report/report_stock.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -29,12 +29,12 @@ class stock_report_prodlots(osv.osv):
_description = "Stock report by production lots"
_auto = False
_columns = {
- 'name': fields.float('Quantity', readonly=True),
- 'location_id': fields.many2one('stock.location', 'Location', readonly=True, select=True),
- 'product_id': fields.many2one('product.product', 'Product', readonly=True, select=True),
- 'prodlot_id': fields.many2one('stock.production.lot', 'Production lot', readonly=True, select=True),
+ 'name': fields.float('Quantity', readonly=True),
+ 'location_id': fields.many2one('stock.location', 'Location', readonly=True, select=True),
+ 'product_id': fields.many2one('product.product', 'Product', readonly=True, select=True),
+ 'prodlot_id': fields.many2one('stock.production.lot', 'Production lot', readonly=True, select=True),
}
-
+
def init(self, cr):
drop_view_if_exists(cr, 'stock_report_prodlots')
cr.execute("""
@@ -73,11 +73,11 @@ class stock_report_prodlots(osv.osv):
) as report
group by location_id, product_id, prodlot_id
)""")
-
+
def unlink(self, cr, uid, ids, context={}):
raise osv.except_osv(_('Error !'), _('You cannot delete any record!'))
-
+
stock_report_prodlots()
class stock_report_tracklots(osv.osv):
@@ -85,17 +85,17 @@ class stock_report_tracklots(osv.osv):
_description = "Stock report by tracking lots"
_auto = False
_columns = {
- 'name': fields.float('Quantity', readonly=True),
- 'location_id': fields.many2one('stock.location', 'Location', readonly=True, select=True),
- 'product_id': fields.many2one('product.product', 'Product', readonly=True, select=True),
- 'tracking_id': fields.many2one('stock.tracking', 'Tracking lot', readonly=True, select=True),
+ 'name': fields.float('Quantity', readonly=True),
+ 'location_id': fields.many2one('stock.location', 'Location', readonly=True, select=True),
+ 'product_id': fields.many2one('product.product', 'Product', readonly=True, select=True),
+ 'tracking_id': fields.many2one('stock.tracking', 'Tracking lot', readonly=True, select=True),
}
-
+
def init(self, cr):
drop_view_if_exists(cr, 'stock_report_tracklots')
cr.execute("""
create or replace view stock_report_tracklots as (
-
+
select max(id) as id,
location_id,
product_id,
diff --git a/addons/stock/report/report_stock_view.xml b/addons/stock/report/report_stock_view.xml
index e97df880671..de7c6b41003 100644
--- a/addons/stock/report/report_stock_view.xml
+++ b/addons/stock/report/report_stock_view.xml
@@ -49,7 +49,6 @@
-
report.stock.lines.date.form
report.stock.lines.date
diff --git a/addons/stock/stock.py b/addons/stock/stock.py
index fc37f1590e0..244d9574f95 100644
--- a/addons/stock/stock.py
+++ b/addons/stock/stock.py
@@ -876,7 +876,7 @@ class stock_picking(osv.osv):
'origin': (invoice.origin or '') + ', ' + (picking.name or '') + (picking.origin and (':' + picking.origin) or ''),
'comment': (comment and (invoice.comment and invoice.comment+"\n"+comment or comment)) or (invoice.comment and invoice.comment or ''),
'date_invoice':context.get('date_inv',False),
- 'user_id':uid
+ 'user_id':uid
}
invoice_obj.write(cr, uid, [invoice_id], invoice_vals, context=context)
else:
@@ -894,7 +894,7 @@ class stock_picking(osv.osv):
'date_invoice': context.get('date_inv',False),
'company_id': picking.company_id.id,
'user_id':uid
- }
+ }
cur_id = self.get_currency_id(cr, uid, picking)
if cur_id:
invoice_vals['currency_id'] = cur_id
@@ -957,7 +957,7 @@ class stock_picking(osv.osv):
'invoice_line_tax_id': [(6, 0, tax_ids)],
'account_analytic_id': account_analytic_id,
'note': notes,
- }, context=context)
+ }, context=context)
self._invoice_line_hook(cr, uid, move_line, invoice_line_id)
invoice_obj.button_compute(cr, uid, [invoice_id], context=context,
@@ -1170,10 +1170,10 @@ class stock_picking(osv.osv):
}
message = type_list.get(pick.type, _('Document')) + " '" + (pick.name or 'n/a') + "' "
state_list = {
- 'confirmed': "is scheduled for the '" + datetime.strptime(pick.min_date, '%Y-%m-%d %H:%M:%S').strftime('%Y-%m-%d') + "'.",
- 'assigned': 'is ready to process.',
- 'cancel': 'is Cancelled.',
- 'done': 'is processed.',
+ 'confirmed': "is scheduled for the '" + datetime.strptime(pick.min_date, '%Y-%m-%d %H:%M:%S').strftime('%Y-%m-%d') + "'.",
+ 'assigned': 'is ready to process.',
+ 'cancel': 'is Cancelled.',
+ 'done': 'is processed.',
}
message += state_list[pick.state]
self.log(cr, uid, pick.id, message)
@@ -1374,7 +1374,7 @@ class stock_move(osv.osv):
'backorder_id': fields.related('picking_id','backorder_id',type='many2one', relation="stock.picking", string="Back Order"),
'origin': fields.related('picking_id','origin',type='char', size=64, relation="stock.picking", string="Origin",store=True),
'scraped': fields.related('location_dest_id','scrap_location',type='boolean',relation='stock.location',string='Scraped'),
- 'move_stock_return_history': fields.many2many('stock.move', 'stock_move_return_history', 'move_id', 'return_move_id', 'Move Return History',readonly=True),
+ 'move_stock_return_history': fields.many2many('stock.move', 'stock_move_return_history', 'move_id', 'return_move_id', 'Move Return History',readonly=True),
}
_constraints = [
(_check_tracking,
@@ -1391,7 +1391,7 @@ class stock_move(osv.osv):
if context.get('move_line', []):
if context['move_line'][0]:
if isinstance(context['move_line'][0], (tuple, list)):
- return context['move_line'][0][2] and context['move_line'][0][2]['location_dest_id'] or False
+ return context['move_line'][0][2] and context['move_line'][0][2].get('location_dest_id',False)
else:
move_list = self.pool.get('stock.move').read(cr, uid, context['move_line'][0], ['location_dest_id'])
return move_list and move_list['location_dest_id'][0] or False
@@ -1586,7 +1586,7 @@ class stock_move(osv.osv):
'invoice_state': 'none',
'date': picking.date,
'sale_id':' sale_id' in picking._columns.keys() and picking.sale_id.id or False
- })
+ })
for move, (loc, auto, delay, journal, company_id, ptype) in todo:
new_id = move_obj.copy(cr, uid, move.id, {
'location_id': move.location_dest_id.id,
@@ -1830,8 +1830,8 @@ class stock_move(osv.osv):
'type':'cont_voucher',
'line_id': line,
'ref': move.picking_id and move.picking_id.name,
- })
-
+ })
+
self.write(cr, uid, ids, {'state': 'done', 'date_planned': time.strftime('%Y-%m-%d %H:%M:%S')})
wf_service = netsvc.LocalService("workflow")
for id in ids:
@@ -1850,25 +1850,25 @@ class stock_move(osv.osv):
context = {}
partner_id = move.picking_id.address_id and (move.picking_id.address_id.partner_id and move.picking_id.address_id.partner_id.id or False) or False
lines=[(0, 0, {
- 'name': move.name,
- 'quantity': move.product_qty,
- 'product_id': move.product_id and move.product_id.id or False,
- 'credit': amount,
- 'account_id': account_id,
- 'ref': move.picking_id and move.picking_id.name or False,
- 'date': time.strftime('%Y-%m-%d') ,
- 'partner_id': partner_id,
- }),
- (0, 0, {
- 'name': move.name,
- 'product_id': move.product_id and move.product_id.id or False,
- 'quantity': move.product_qty,
- 'debit': amount,
- 'account_id': account_variation,
- 'ref': move.picking_id and move.picking_id.name or False,
- 'date': time.strftime('%Y-%m-%d') ,
- 'partner_id': partner_id,
- })]
+ 'name': move.name,
+ 'quantity': move.product_qty,
+ 'product_id': move.product_id and move.product_id.id or False,
+ 'credit': amount,
+ 'account_id': account_id,
+ 'ref': move.picking_id and move.picking_id.name or False,
+ 'date': time.strftime('%Y-%m-%d') ,
+ 'partner_id': partner_id,
+ }),
+ (0, 0, {
+ 'name': move.name,
+ 'product_id': move.product_id and move.product_id.id or False,
+ 'quantity': move.product_qty,
+ 'debit': amount,
+ 'account_id': account_variation,
+ 'ref': move.picking_id and move.picking_id.name or False,
+ 'date': time.strftime('%Y-%m-%d') ,
+ 'partner_id': partner_id,
+ })]
return lines
def unlink(self, cr, uid, ids, context=None):
@@ -1906,12 +1906,12 @@ class stock_move(osv.osv):
move_qty = move.product_qty
uos_qty = quantity / move_qty * move.product_uos_qty
default_val = {
- 'product_qty': quantity,
- 'product_uos_qty': uos_qty,
- 'state': move.state,
- 'scraped' : True,
- 'location_dest_id': location_id
- }
+ 'product_qty': quantity,
+ 'product_uos_qty': uos_qty,
+ 'state': move.state,
+ 'scraped' : True,
+ 'location_dest_id': location_id
+ }
new_move = self.copy(cr, uid, move.id, default_val)
res += [new_move]
product_obj = self.pool.get('product.product')
diff --git a/addons/stock/stock_demo.xml b/addons/stock/stock_demo.xml
index bfa1845b43c..31cd94e040d 100644
--- a/addons/stock/stock_demo.xml
+++ b/addons/stock/stock_demo.xml
@@ -37,7 +37,6 @@
Shelf 2
-
Sub Products
@@ -242,30 +241,7 @@
-
+
@@ -288,12 +264,12 @@
-
+
property_stock_variation
-
+
diff --git a/addons/stock/stock_report.xml b/addons/stock/stock_report.xml
index a214dc8045e..855a56a0f75 100644
--- a/addons/stock/stock_report.xml
+++ b/addons/stock/stock_report.xml
@@ -3,7 +3,6 @@
-
diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml
index 9665d3967ab..aa4981ac545 100644
--- a/addons/stock/stock_view.xml
+++ b/addons/stock/stock_view.xml
@@ -400,11 +400,11 @@
+ string="Internal" domain="[('usage', '=', 'internal')]" help="Internal Locations" />
+ string="Customer" domain="[('usage', '=', 'customer')]" help="Customer Locations" />
+ string="Supplier" domain="[('usage', '=', 'supplier')]" help="Supplier Locations" />
@@ -433,6 +433,7 @@
ir.actions.act_window
form
+
{'full':1, 'search_default_in_location':1}
@@ -1670,8 +1671,6 @@
-
-
# -------------------------------------------------------------
# Stock incoterms
@@ -1706,7 +1705,6 @@
form
tree,form
-
1:
- raise osv.except_osv(_('Warning'),
+ raise osv.except_osv(_('Warning'),
_('Please select one and only one inventory !'))
for id in ids:
datas = self.read(cr, uid, id)
loc = str(datas['location_id'])
-
+
cr.execute('select distinct location_id,product_id \
from stock_inventory_line \
where inventory_id=%s', (context['active_id'],))
@@ -61,11 +61,11 @@ class inventory_set_stock_zero(osv.osv_memory):
if (loc, s[0]) not in inv:
p = prod_obj.browse(cr, uid, s[0])
invent_line_obj.create(cr, uid, {
- 'inventory_id': context['active_id'],
- 'location_id': loc,
- 'product_id': s[0],
- 'product_uom': p.uom_id.id,
- 'product_qty': 0.0,
+ 'inventory_id': context['active_id'],
+ 'location_id': loc,
+ 'product_id': s[0],
+ 'product_uom': p.uom_id.id,
+ 'product_qty': 0.0,
})
return {}
diff --git a/addons/stock/wizard/stock_invoice_onshipping.py b/addons/stock/wizard/stock_invoice_onshipping.py
index e1063e7d992..b8692783824 100644
--- a/addons/stock/wizard/stock_invoice_onshipping.py
+++ b/addons/stock/wizard/stock_invoice_onshipping.py
@@ -27,13 +27,13 @@ class stock_invoice_onshipping(osv.osv_memory):
_name = "stock.invoice.onshipping"
_description = "Stock Invoice Onshipping"
_columns = {
- 'journal_id': fields.many2one('account.journal', 'Destination Journal', required=True),
- 'group': fields.boolean("Group by partner"),
- 'type': fields.selection([('out_invoice', 'Customer Invoice'),
- ('in_invoice', 'Supplier Invoice'),
- ('out_refund', 'Customer Refund'),
- ('in_refund', 'Supplier Refund')] , 'Type', required=True),
- 'invoice_date': fields.date('Invoiced date'),
+ 'journal_id': fields.many2one('account.journal', 'Destination Journal', required=True),
+ 'group': fields.boolean("Group by partner"),
+ 'type': fields.selection([('out_invoice', 'Customer Invoice'),
+ ('in_invoice', 'Supplier Invoice'),
+ ('out_refund', 'Customer Refund'),
+ ('in_refund', 'Supplier Refund')] , 'Type', required=True),
+ 'invoice_date': fields.date('Invoiced date'),
}
def _get_type(self, cr, uid, context=None):
@@ -41,12 +41,12 @@ class stock_invoice_onshipping(osv.osv_memory):
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param ids: The ID or list of IDs if we want more than one
- @param context: A standard dictionary
+ @param ids: The ID or list of IDs if we want more than one
+ @param context: A standard dictionary
@return: Invoice type
"""
if context is None:
- context = {}
+ context = {}
picking_obj = self.pool.get('stock.picking')
usage = 'customer'
pick = picking_obj.browse(cr, uid, context['active_id'], context=context)
@@ -70,7 +70,7 @@ class stock_invoice_onshipping(osv.osv_memory):
return type
_defaults = {
- 'type': _get_type,
+ 'type': _get_type,
}
def create_invoice(self, cr, uid, ids, context):
@@ -78,10 +78,10 @@ class stock_invoice_onshipping(osv.osv_memory):
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
- @param ids: the ID or list of IDs if we want more than one
- @param context: A standard dictionary
- @return: Invoice ids
- """
+ @param ids: the ID or list of IDs if we want more than one
+ @param context: A standard dictionary
+ @return: Invoice ids
+ """
result = []
picking_obj = self.pool.get('stock.picking')
mod_obj = self.pool.get('ir.model.data')
diff --git a/addons/stock/wizard/stock_partial_move.py b/addons/stock/wizard/stock_partial_move.py
index f3af091d58b..51429058eb5 100644
--- a/addons/stock/wizard/stock_partial_move.py
+++ b/addons/stock/wizard/stock_partial_move.py
@@ -81,24 +81,24 @@ class stock_partial_move(osv.osv_memory):
continue
_moves_fields.update({
'move%s_product_id'%(m.id) : {
- 'string': _('Product'),
- 'type' : 'many2one',
- 'relation': 'product.product',
- 'required' : True,
- 'readonly' : True,
- },
+ 'string': _('Product'),
+ 'type' : 'many2one',
+ 'relation': 'product.product',
+ 'required' : True,
+ 'readonly' : True,
+ },
'move%s_product_qty'%(m.id) : {
- 'string': _('Quantity'),
- 'type' : 'float',
- 'required': True,
- },
+ 'string': _('Quantity'),
+ 'type' : 'float',
+ 'required': True,
+ },
'move%s_product_uom'%(m.id) : {
- 'string': _('Product UOM'),
- 'type' : 'many2one',
- 'relation': 'product.uom',
- 'required' : True,
- 'readonly' : True,
- }
+ 'string': _('Product UOM'),
+ 'type' : 'many2one',
+ 'relation': 'product.uom',
+ 'required' : True,
+ 'readonly' : True,
+ }
})
_moves_arch_lst += """
@@ -110,15 +110,15 @@ class stock_partial_move(osv.osv_memory):
if (m.picking_id.type == 'in') and (m.product_id.cost_method == 'average'):
_moves_fields.update({
'move%s_product_price'%(m.id) : {
- 'string': _('Price'),
- 'type' : 'float',
- },
+ 'string': _('Price'),
+ 'type' : 'float',
+ },
'move%s_product_currency'%(m.id): {
- 'string': _('Currency'),
- 'type' : 'float',
- 'type' : 'many2one',
- 'relation': 'res.currency',
- }
+ 'string': _('Currency'),
+ 'type' : 'float',
+ 'type' : 'many2one',
+ 'relation': 'res.currency',
+ }
})
_moves_arch_lst += """
diff --git a/addons/stock/wizard/stock_partial_picking.py b/addons/stock/wizard/stock_partial_picking.py
index ae5fd396d3e..3b6ce21b6ee 100644
--- a/addons/stock/wizard/stock_partial_picking.py
+++ b/addons/stock/wizard/stock_partial_picking.py
@@ -27,7 +27,7 @@ class stock_partial_picking(osv.osv_memory):
_name = "stock.partial.picking"
_description = "Partial Picking"
_columns = {
- 'date': fields.datetime('Date', required=True),
+ 'date': fields.datetime('Date', required=True),
}
def view_init(self, cr, uid, fields_list, context=None):
@@ -75,30 +75,30 @@ class stock_partial_picking(osv.osv_memory):
continue
_moves_fields.update({
'move%s_product_id'%(m.id) : {
- 'string': _('Product'),
- 'type' : 'many2one',
- 'relation': 'product.product',
- 'required' : True,
- 'readonly' : True,
- },
+ 'string': _('Product'),
+ 'type' : 'many2one',
+ 'relation': 'product.product',
+ 'required' : True,
+ 'readonly' : True,
+ },
'move%s_product_qty'%(m.id) : {
- 'string': _('Quantity'),
- 'type' : 'float',
- 'required': True,
- },
+ 'string': _('Quantity'),
+ 'type' : 'float',
+ 'required': True,
+ },
'move%s_product_uom'%(m.id) : {
- 'string': _('Product UOM'),
- 'type' : 'many2one',
- 'relation': 'product.uom',
- 'required' : True,
- 'readonly' : True,
- },
+ 'string': _('Product UOM'),
+ 'type' : 'many2one',
+ 'relation': 'product.uom',
+ 'required' : True,
+ 'readonly' : True,
+ },
'move%s_prodlot_id'%(m.id): {
- 'string': _('Production Lot'),
- 'type': 'many2one',
- 'relation': 'stock.production.lot',
- 'readonly': True,
- }
+ 'string': _('Production Lot'),
+ 'type': 'many2one',
+ 'relation': 'stock.production.lot',
+ 'readonly': True,
+ }
})
_moves_arch_lst += """
@@ -111,15 +111,15 @@ class stock_partial_picking(osv.osv_memory):
if (m.product_id.cost_method == 'average'):
_moves_fields.update({
'move%s_product_price'%(m.id) : {
- 'string': _('Price'),
- 'type' : 'float',
- },
+ 'string': _('Price'),
+ 'type' : 'float',
+ },
'move%s_product_currency'%(m.id): {
- 'string': _('Currency'),
- 'type' : 'float',
- 'type' : 'many2one',
- 'relation': 'res.currency',
- }
+ 'string': _('Currency'),
+ 'type' : 'float',
+ 'type' : 'many2one',
+ 'relation': 'res.currency',
+ }
})
_moves_arch_lst += """
diff --git a/addons/stock/wizard/stock_replacement.py b/addons/stock/wizard/stock_replacement.py
index f1a1caced62..130f2469d45 100644
--- a/addons/stock/wizard/stock_replacement.py
+++ b/addons/stock/wizard/stock_replacement.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL ().
#
@@ -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 .
+# along with this program. If not, see .
#
##############################################################################
@@ -34,23 +34,23 @@ class stock_replacement(osv.osv_memory):
return {}
def replace_composant(self, cr, uid, ids, context = {}):
- """ To open a new wizard that acknowledge, a replacement task
+ """ To open a new wizard that acknowledge, a replacement task
@return: It returns the replacement acknowledgement form
- """
+ """
return {
- 'name': False,
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'stock.replacement.result',
- 'type': 'ir.actions.act_window',
- 'target':'new',
+ 'name': False,
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'stock.replacement.result',
+ 'type': 'ir.actions.act_window',
+ 'target':'new',
}
stock_replacement()
class stock_replacement_result(osv.osv_memory):
"""
- This class has been defined for replacement result
+ This class has been defined for replacement result
"""
_name = "stock.replacement.result"
_description = "Stock Replacement result"
diff --git a/addons/stock/wizard/stock_traceability.py b/addons/stock/wizard/stock_traceability.py
index b77b798a55a..063c094d296 100644
--- a/addons/stock/wizard/stock_traceability.py
+++ b/addons/stock/wizard/stock_traceability.py
@@ -53,9 +53,9 @@ class action_traceability(osv.osv_memory):
'field_parent': type1,
'view_id': (view_id,'View'),
'type': 'ir.actions.act_window'
- }
+ }
return value
-
+
action_traceability()
class stock_traceability_downstream(osv.osv_memory):
@@ -66,7 +66,7 @@ class stock_traceability_downstream(osv.osv_memory):
_name = "stock.traceability.downstream"
_inherit = "action.traceability"
_description = "Stock traceability downstream"
-
+
stock_traceability_downstream()
class stock_traceability_upstream(osv.osv_memory):
@@ -77,7 +77,7 @@ class stock_traceability_upstream(osv.osv_memory):
_name = "stock.traceability.upstream"
_inherit = "action.traceability"
_description = "Stock traceability upstream"
-
+
stock_traceability_upstream()
class stock_traceability_lot_upstream(osv.osv_memory):
diff --git a/addons/stock/wizard/stock_traceability_view.xml b/addons/stock/wizard/stock_traceability_view.xml
index 466f249a06b..47f244b2cb6 100644
--- a/addons/stock/wizard/stock_traceability_view.xml
+++ b/addons/stock/wizard/stock_traceability_view.xml
@@ -36,13 +36,11 @@
form
-
-
+
-
@@ -63,13 +61,11 @@
form
-
-
+
-
@@ -90,13 +86,11 @@
form
-
-
+
-
diff --git a/addons/stock/wizard/stock_ups.py b/addons/stock/wizard/stock_ups.py
index 03156dfe7fc..2f2315027a6 100644
--- a/addons/stock/wizard/stock_ups.py
+++ b/addons/stock/wizard/stock_ups.py
@@ -29,26 +29,26 @@ class stock_ups(osv.osv_memory):
def ups_save(self, cr, uid, ids, context = {}):
return {
- 'name': False,
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'stock.ups.final',
- 'type': 'ir.actions.act_window',
- 'target':'new',
+ 'name': False,
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'stock.ups.final',
+ 'type': 'ir.actions.act_window',
+ 'target':'new',
}
-
+
def ups_upload(self, cr, uid, ids, context = {}):
return {
- 'name': False,
- 'view_type': 'form',
- 'view_mode': 'form',
- 'res_model': 'stock.ups.upload',
- 'type': 'ir.actions.act_window',
- 'target':'new',
+ 'name': False,
+ 'view_type': 'form',
+ 'view_mode': 'form',
+ 'res_model': 'stock.ups.upload',
+ 'type': 'ir.actions.act_window',
+ 'target':'new',
}
_columns = {
- 'weight': fields.float('Lot weight', required=True),
+ 'weight': fields.float('Lot weight', required=True),
}
_defaults = {
diff --git a/addons/stock_invoice_directly/i18n/tr.po b/addons/stock_invoice_directly/i18n/tr.po
index 5bdc7074027..5df4f18f771 100644
--- a/addons/stock_invoice_directly/i18n/tr.po
+++ b/addons/stock_invoice_directly/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:40+0000\n"
+"PO-Revision-Date: 2010-08-16 09:39+0000\n"
"Last-Translator: OpenERP Administrators \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: stock_invoice_directly
diff --git a/addons/stock_location/i18n/tr.po b/addons/stock_location/i18n/tr.po
index af1632bfdbf..25dc2c8a539 100644
--- a/addons/stock_location/i18n/tr.po
+++ b/addons/stock_location/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:04+0000\n"
+"PO-Revision-Date: 2010-08-16 09:46+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: stock_location
diff --git a/addons/stock_no_autopicking/i18n/tr.po b/addons/stock_no_autopicking/i18n/tr.po
index 9e9a5d7270e..3e065ba9abe 100644
--- a/addons/stock_no_autopicking/i18n/tr.po
+++ b/addons/stock_no_autopicking/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:53+0000\n"
+"PO-Revision-Date: 2010-08-16 09:19+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: stock_no_autopicking
diff --git a/addons/stock_planning/stock_planning_view.xml b/addons/stock_planning/stock_planning_view.xml
index 0a89573e2f7..704703cb13a 100644
--- a/addons/stock_planning/stock_planning_view.xml
+++ b/addons/stock_planning/stock_planning_view.xml
@@ -247,7 +247,6 @@
-
@@ -307,7 +306,7 @@
-
+
diff --git a/addons/stock_planning/wizard/stock_planning_create_periods.py b/addons/stock_planning/wizard/stock_planning_create_periods.py
index 9a860beb564..61e699c84f7 100644
--- a/addons/stock_planning/wizard/stock_planning_create_periods.py
+++ b/addons/stock_planning/wizard/stock_planning_create_periods.py
@@ -90,11 +90,11 @@ class stock_period_createlines(osv.osv_memory):
ds = ds + RelativeDateTime(months=interval)
lines.append(new_id)
return {
- 'domain': "[('id','in', ["+','.join(map(str, lines))+"])]",
- 'view_type': 'form',
- "view_mode": 'tree, form',
- 'res_model': 'stock.period',
- 'type': 'ir.actions.act_window',
+ 'domain': "[('id','in', ["+','.join(map(str, lines))+"])]",
+ 'view_type': 'form',
+ "view_mode": 'tree, form',
+ 'res_model': 'stock.period',
+ 'type': 'ir.actions.act_window',
}
stock_period_createlines()
diff --git a/addons/stock_planning/wizard/stock_planning_createlines.py b/addons/stock_planning/wizard/stock_planning_createlines.py
index 56697beaa32..7abb15b6e7d 100644
--- a/addons/stock_planning/wizard/stock_planning_createlines.py
+++ b/addons/stock_planning/wizard/stock_planning_createlines.py
@@ -129,14 +129,14 @@ class stock_planning_createlines(osv.osv_memory):
}))
result = mod_obj._get_id(cr, uid, 'stock_planning', 'view_stock_planning_filter')
id = mod_obj.read(cr, uid, result, ['res_id'], context=context)
-
+
return {
- 'domain': "[('id','in', ["+','.join(map(str, planning_lines))+"])]",
- 'view_type': 'form',
- "view_mode": 'tree, form',
- 'res_model': 'stock.planning',
- 'type': 'ir.actions.act_window',
- 'search_view_id': id['res_id'],
+ 'domain': "[('id','in', ["+','.join(map(str, planning_lines))+"])]",
+ 'view_type': 'form',
+ "view_mode": 'tree, form',
+ 'res_model': 'stock.planning',
+ 'type': 'ir.actions.act_window',
+ 'search_view_id': id['res_id'],
}
stock_planning_createlines()
diff --git a/addons/stock_planning/wizard/stock_planning_forecast.py b/addons/stock_planning/wizard/stock_planning_forecast.py
index 569d54c5663..d38173a665d 100644
--- a/addons/stock_planning/wizard/stock_planning_forecast.py
+++ b/addons/stock_planning/wizard/stock_planning_forecast.py
@@ -37,7 +37,7 @@ class stock_sale_forecast_createlines(osv.osv_memory):
'product_categ_id': fields.many2one('product.category' , 'Product Category', required=True, \
help ='Product Category of products which created forecasts will concern.'),
'copy_forecast': fields.boolean('Copy Last Forecast', help="Copy quantities from last Stock and Sale Forecast."),
- }
+ }
_defaults = {
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.sale.forecast.createlines', context=c),
@@ -99,13 +99,13 @@ class stock_sale_forecast_createlines(osv.osv_memory):
id = mod_obj.read(cr, uid, result, ['res_id'], context=context)
return {
- 'domain': "[('id','in', ["+','.join(map(str, forecast_lines))+"])]",
- 'view_type': 'form',
- "view_mode": 'tree, form',
- 'res_model': 'stock.sale.forecast',
- 'type': 'ir.actions.act_window',
- 'search_view_id': id['res_id'],
- }
+ 'domain': "[('id','in', ["+','.join(map(str, forecast_lines))+"])]",
+ 'view_type': 'form',
+ "view_mode": 'tree, form',
+ 'res_model': 'stock.sale.forecast',
+ 'type': 'ir.actions.act_window',
+ 'search_view_id': id['res_id'],
+ }
stock_sale_forecast_createlines()
diff --git a/addons/subscription/i18n/tr.po b/addons/subscription/i18n/tr.po
index 57dbcc20c7b..0c52369a772 100644
--- a/addons/subscription/i18n/tr.po
+++ b/addons/subscription/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:44+0000\n"
+"PO-Revision-Date: 2010-08-16 09:25+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:43+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 06:57+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: subscription
diff --git a/addons/survey/survey_data.xml b/addons/survey/survey_data.xml
index dfc63a51294..c057868d6de 100644
--- a/addons/survey/survey_data.xml
+++ b/addons/survey/survey_data.xml
@@ -1,11 +1,6 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/addons/survey/survey_demo.xml b/addons/survey/survey_demo.xml
index 045a7c6cf38..855cb2b7ce7 100644
--- a/addons/survey/survey_demo.xml
+++ b/addons/survey/survey_demo.xml
@@ -1306,20 +1306,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/survey/survey_view.xml b/addons/survey/survey_view.xml
index 890d674a408..166c46dca93 100644
--- a/addons/survey/survey_view.xml
+++ b/addons/survey/survey_view.xml
@@ -692,10 +692,6 @@
-
-
-
-
survey_question_wizard_test
survey.question
@@ -1057,7 +1053,6 @@
-
@@ -1154,10 +1149,6 @@
-
-
-
-
diff --git a/addons/survey/wizard/survey_print_answer.py b/addons/survey/wizard/survey_print_answer.py
index a0775fe5f2d..f041e2f2ada 100644
--- a/addons/survey/wizard/survey_print_answer.py
+++ b/addons/survey/wizard/survey_print_answer.py
@@ -39,10 +39,10 @@ class survey_print_answer(osv.osv_memory):
}
_defaults = {
- 'orientation': lambda *a:'vertical',
- 'paper_size': lambda *a:'letter',
- 'page_number': lambda *a: 0,
- 'without_pagebreak': lambda *a: 0
+ 'orientation': lambda *a:'vertical',
+ 'paper_size': lambda *a:'letter',
+ 'page_number': lambda *a: 0,
+ 'without_pagebreak': lambda *a: 0
}
def action_next(self, cr, uid, ids, context=None):
diff --git a/addons/survey/wizard/survey_selection.py b/addons/survey/wizard/survey_selection.py
index 29eaddff164..2a9438594b2 100644
--- a/addons/survey/wizard/survey_selection.py
+++ b/addons/survey/wizard/survey_selection.py
@@ -136,7 +136,7 @@ class survey_name_wiz(osv.osv_memory):
'target': 'new',
'search_view_id': search_id[0],
'context': context
- }
+ }
def on_change_survey(self, cr, uid, ids, survey_id, context=None):
"""
diff --git a/addons/thunderbird/installer.py b/addons/thunderbird/installer.py
index cbe1db8df2d..8f852e9ebff 100644
--- a/addons/thunderbird/installer.py
+++ b/addons/thunderbird/installer.py
@@ -45,27 +45,27 @@ class thunderbird_installer(osv.osv_memory):
'plugin_file':fields.binary('Thunderbird Plug-in', readonly=True, help="Thunderbird plug-in file. Save as this file and install this plug-in in thunderbird."),
'pdf_file':fields.binary('Installation Manual', help="The documentation file :- how to install Thunderbird Plug-in.", readonly=True),
'description':fields.text('Description', readonly=True)
- }
+ }
_defaults = {
'thunderbird' : True,
'name' : 'openerp_plugin.xpi',
'pdf_name' : 'Installation Guide to OpenERP Thunderbid Plug-in.pdf',
- 'description' : """* Save the Thunderbird plugin.
-* Follows the following step to install Thunderbird plugin.
- 1. From Menu Bar of Thunderbird, open Tools > Add ons.
- 2. Click on install button and a browser window appears.
- 3. Select the plug-in(.xpi file) and click Ok.
- 4. Software installation window appears and within a short time “Install Now” button will be enabled.
+ 'description' : """* Save the Thunderbird plug-in.
+* Follow the following steps to install Thunderbird plug-in.
+ 1. From Menu Bar of Thunderbird, open Tools > Add-ons.
+ 2. Click install button and a browser window appears.
+ 3. Select the plug-in(openerp_plugin.xpi file) and click Ok.
+ 4. A software installation window appears and within a short time “Install Now” button will be enabled.
5. Click "Install Now".
6. Restart Thunderbird.
-* Follow the steps to configure OpenERP in Thunderbird.
- 1. Go to Tools > OpenERP Synchronization.
+* Follow the steps to configure OpenERP in Thunderbird.
+ 1. Go to Tools > OpenERP Configuration.
2. Check data (configured by default).
- 3. Click "Connect".
+ 3. Click "Connect".
4. A message appears with state of your connection.
- 5. If your connection failed, check if your database is open, and check your data.
- 6. If you have a good connection, you can start to archive mail in OpenERP. """
+ 5. If your connection failed, check if your database is open, and check your data again.
+ 6. If your database is connected successfully, you can start to archive your e-mail in OpenERP. """
}
thunderbird_installer()
diff --git a/addons/thunderbird/partner/partner.py b/addons/thunderbird/partner/partner.py
index d1a64e76150..a7795d1a602 100644
--- a/addons/thunderbird/partner/partner.py
+++ b/addons/thunderbird/partner/partner.py
@@ -148,19 +148,22 @@ class thunderbird_partner(osv.osv_memory):
create_id = self.pool.get('res.partner.address').create(cr, user, dictcreate)
return create_id
- def history_message(self,cr,uid,vals):
+ def history_message(self, cr, uid, vals):
dictcreate = dict(vals)
+ ref_ids = str(dictcreate.get('ref_ids')).split(';')
+ msg = dictcreate.get('message')
server_tools_pool = self.pool.get('email.server.tools')
- res_id = int(dictcreate.get('res_id'))
- model = str(dictcreate.get('model'))
- message = str(dictcreate.get('message'))
- server_tools_pool.history_message(cr,uid,model,res_id,message)
+ for ref_id in ref_ids:
+ ref = ref_id.split(',')
+ model = ref[0]
+ res_id = int(ref[1])
+ server_tools_pool.history_message(cr, uid, model, res_id, msg)
return True
def process_email(self,cr,uid,vals):
dictcreate = dict(vals)
model = str(dictcreate.get('model'))
- message = str(dictcreate.get('message'))
+ message = dictcreate.get('message')
return self.pool.get('email.server.tools').process_email(cr, uid, model, message, attach=True, context=None)
def search_contact(self, cr, user, vals):
@@ -208,19 +211,20 @@ class thunderbird_partner(osv.osv_memory):
if res_id:
address_obj = self.pool.get('res.partner.address')
address_data = address_obj.read(cr, user, int(res_id), [])
- result={ 'partner_id': address_data['partner_id'] and address_data['partner_id'][0] or False,
- 'country_id': dictcreate['country_id'] and int(dictcreate['country_id'][0]) or False,
- 'state_id': dictcreate['state_id'] and int(dictcreate['state_id'][0]) or False,
- 'name': dictcreate['name'],
- 'street': dictcreate['street'],
- 'street2': dictcreate['street2'],
- 'zip': dictcreate['zip'],
- 'city': dictcreate['city'],
- 'phone': dictcreate['phone'],
- 'fax': dictcreate['fax'],
- 'mobile': dictcreate['mobile'],
- 'email': dictcreate['email'],
- }
+ result = {
+ 'partner_id': address_data['partner_id'] and address_data['partner_id'][0] or False,
+ 'country_id': dictcreate['country_id'] and int(dictcreate['country_id'][0]) or False,
+ 'state_id': dictcreate['state_id'] and int(dictcreate['state_id'][0]) or False,
+ 'name': dictcreate['name'],
+ 'street': dictcreate['street'],
+ 'street2': dictcreate['street2'],
+ 'zip': dictcreate['zip'],
+ 'city': dictcreate['city'],
+ 'phone': dictcreate['phone'],
+ 'fax': dictcreate['fax'],
+ 'mobile': dictcreate['mobile'],
+ 'email': dictcreate['email'],
+ }
address_obj.write(cr, user,int(res_id),result )
return True
diff --git a/addons/thunderbird/plugin/openerp_plugin.xpi b/addons/thunderbird/plugin/openerp_plugin.xpi
index 99292b2283b..d3789442b4f 100644
Binary files a/addons/thunderbird/plugin/openerp_plugin.xpi and b/addons/thunderbird/plugin/openerp_plugin.xpi differ
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar
index 3c322b423f5..85e4deabccb 100644
Binary files a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar and b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar differ
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js
index 5757897de96..a9afa70e10c 100755
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/config.js
@@ -1,8 +1,6 @@
function config_close()
{
- //window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
- //ksa
window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
window.open("chrome://openerp_plugin/content/config.xul", "", "chrome");
}
@@ -62,13 +60,10 @@ function config_ok()
}
setServer("http://"+document.getElementById('txtcurl').value +":" + document.getElementById('txtcport').value);
window.close("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
- //ksa
window.open("chrome://openerp_plugin/content/config.xul", "", "chrome");
}
function openConfigChange()
{
- //window.open("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
- //ksa
window.close("chrome://openerp_plugin/content/config.xul", "", "chrome");
window.open("chrome://openerp_plugin/content/config_change.xul", "", "chrome");
}
@@ -144,7 +139,7 @@ function deleteDocument(){
document.getElementById("listObjectListBox").removeItemAt(document.getElementById("listObjectListBox").selectedIndex)
}
else{
- alert("No Document Selected");
+ alert("Please Select Any One Document ");
}
}
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/create.xul b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/create.xul
index d3d551d63e8..bfcfb40a544 100644
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/create.xul
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/create.xul
@@ -27,7 +27,7 @@
-
+
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/plugin.xul b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/plugin.xul
index 45c552452bb..e9658a9183b 100644
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/plugin.xul
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/plugin.xul
@@ -1,10 +1,9 @@
-
+ title="&title.label;" onload="myPrefObserver.loaddata()" height="500" width="1000">
@@ -14,76 +13,77 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- Documents
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Documents
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
-
+
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/selectpartner.xul b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/selectpartner.xul
index f0512339a40..f0c44cd6555 100644
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/selectpartner.xul
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/selectpartner.xul
@@ -1,7 +1,7 @@
-
diff --git a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js
index b5057a8cd09..4a7eb7c94e1 100755
--- a/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js
+++ b/addons/thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/tiny_xmlrpc.js
@@ -1,6 +1,20 @@
-/**
-* Global instance stored here
-*/
+/************************************************************
+* OpenERP, Open Source Management Solution
+* Copyright (C) 2004-2010 Tiny SPRL ().
+*
+* 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 .
+***************************************************************/
var xmlRpcClient;
@@ -151,7 +165,7 @@ var rpc= {
function handler_function( result ) {
if ( rpc.onfault( result ) ) { alert( result[0] + "\n" + result[1] ); return; }
else{
- alert("got result>>>>"+result)
+ alert("got result"+result)
}
}
@@ -1079,7 +1093,7 @@ var listSearchCheckboxHandler = {
var count = arrMethodList.Count();
var close=0;
if(count == 0 && popup_display != "no"){
- alert("No records Found");
+ alert("No Records Found");
return false;
}
else if(count ==2 )
@@ -1124,10 +1138,10 @@ var listSearchCheckboxHandler = {
arrDataPair[0] = er_val[0].QueryElementAt(j, Components.interfaces.nsISupportsCString)
arrSearchList1[j]=arrDataPair;
}
- alert( arrSearchList1 + " model not exists")
+ alert( arrSearchList1 + " Model not exists")
if (close == 1)
{
- alert("No records Found");
+ alert("No Records Found");
return false;
}
}
@@ -1197,7 +1211,7 @@ function searchCheckbox()
{
var checkboxlist = getnamesearch();
if(checkboxlist.length == 0){
- alert("Select One or More Document");
+ alert("Please Select One or More Document");
return false;
}
var branchobj = getPref();
@@ -1337,6 +1351,23 @@ function dictcontact(a,b){
return temp;
}
+//function to create the xmlrpc supported variables for xmlrpc request
+function dictcontact(a,b){
+ var temp = xmlRpcClient.createType(xmlRpcClient.ARRAY,{});
+ for(i=0;i
-
+
@@ -109,8 +109,8 @@
-
-
+
+
diff --git a/addons/warning/i18n/tr.po b/addons/warning/i18n/tr.po
index 1da04d51457..a90592c3fca 100644
--- a/addons/warning/i18n/tr.po
+++ b/addons/warning/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 10:13+0000\n"
+"PO-Revision-Date: 2010-08-16 09:41+0000\n"
"Last-Translator: Fabien (Open ERP) \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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: warning
diff --git a/addons/warning/warning.py b/addons/warning/warning.py
index 4f7b7fcc8d2..0ef75eb4be6 100644
--- a/addons/warning/warning.py
+++ b/addons/warning/warning.py
@@ -219,9 +219,6 @@ class sale_order_line(osv.osv):
result = super(sale_order_line, self).product_id_change( cr, uid, ids, pricelist, product, qty,
uom, qty_uos, uos, name, partner_id,
lang, update_tax, date_order, packaging, fiscal_position, flag)
-# if title and message:
-# warning['title'] = title
-# warning['message']= message
if result.get('warning',False):
warning['title'] = title and title +' & '+result['warning']['title'] or result['warning']['title']
diff --git a/addons/wiki/i18n/tr.po b/addons/wiki/i18n/tr.po
index a65f8a71423..85af924cd9d 100644
--- a/addons/wiki/i18n/tr.po
+++ b/addons/wiki/i18n/tr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-08-15 12:08+0000\n"
+"PO-Revision-Date: 2010-08-16 09:45+0000\n"
"Last-Translator: adsiz_1029@hotmail.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-08-16 06:46+0000\n"
+"X-Launchpad-Export-Date: 2010-08-17 07:00+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: wiki
diff --git a/addons/wiki/wiki.py b/addons/wiki/wiki.py
index 1f85f04afd2..d82ae8e41b6 100644
--- a/addons/wiki/wiki.py
+++ b/addons/wiki/wiki.py
@@ -210,13 +210,13 @@ class History(osv.osv):
_order = 'id DESC'
_columns = {
- 'create_date': fields.datetime("Date", select=True),
- 'text_area': fields.text("Text area"),
- 'minor_edit': fields.boolean('This is a major edit ?', select=True),
- 'summary': fields.char('Summary', size=256, select=True),
- 'write_uid': fields.many2one('res.users', "Modify By", select=True),
- 'wiki_id': fields.many2one('wiki.wiki', 'Wiki Id', select=True)
- }
+ 'create_date': fields.datetime("Date", select=True),
+ 'text_area': fields.text("Text area"),
+ 'minor_edit': fields.boolean('This is a major edit ?', select=True),
+ 'summary': fields.char('Summary', size=256, select=True),
+ 'write_uid': fields.many2one('res.users', "Modify By", select=True),
+ 'wiki_id': fields.many2one('wiki.wiki', 'Wiki Id', select=True)
+ }
_defaults = {
'write_uid': lambda obj, cr, uid, context: uid,
diff --git a/addons/wiki/wizard/wiki_wiki_page_open.py b/addons/wiki/wizard/wiki_wiki_page_open.py
index d6b8f4f0285..4eafe45cd35 100644
--- a/addons/wiki/wizard/wiki_wiki_page_open.py
+++ b/addons/wiki/wizard/wiki_wiki_page_open.py
@@ -45,7 +45,7 @@ class wiki_wiki_page_open(osv.osv_memory):
'res_model': 'wiki.wiki',
'view_id': False,
'type': 'ir.actions.act_window',
- }
+ }
if group.method == 'page':
value['res_id'] = group.home.id
elif group.method == 'list':