diff --git a/addons/account/account.py b/addons/account/account.py
index 61319f7f973..e30912aa187 100644
--- a/addons/account/account.py
+++ b/addons/account/account.py
@@ -1567,8 +1567,42 @@ class account_tax(osv.osv):
cur_price_unit+=amount2
return res
- def compute(self, cr, uid, taxes, price_unit, quantity, address_id=None, product=None, partner=None):
+ def compute_all(self, cr, uid, taxes, price_unit, quantity, address_id=None, product=None, partner=None):
+ """
+ RETURN: {
+ 'total': 0.0, # Total without taxes
+ 'total_included: 0.0, # Total with taxes
+ 'taxes': [] # List of taxes, see compute for the format
+ }
+ """
+ precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
+ totalin = totalex = round(price_unit * quantity, precision)
+ tin = []
+ tex = []
+ for tax in taxes:
+ if tax.price_include:
+ tin.append(tax)
+ else:
+ tex.append(tax)
+ tin = self.compute_inv(cr, uid, tin, price_unit, quantity, address_id=address_id, product=product, partner=partner)
+ for r in tin:
+ totalex -= r['amount']
+ tex = self._compute(cr, uid, tex, totalex/quantity, quantity, address_id=address_id, product=product, partner=partner)
+ for r in tex:
+ totalin += r['amount']
+ return {
+ 'total': totalex,
+ 'total_included': totalin,
+ 'taxes': tin + tex
+ }
+ def compute(self, cr, uid, taxes, price_unit, quantity, address_id=None, product=None, partner=None):
+ logger = netsvc.Logger()
+ logger.notifyChannel("warning", netsvc.LOG_WARNING,
+ "Deprecated, use compute_all(...)['taxes'] instead of compute(...) to manage prices with tax included")
+ return self._compute(cr, uid, taxes, price_unit, quantity, address_id, product, partner)
+
+ def _compute(self, cr, uid, taxes, price_unit, quantity, address_id=None, product=None, partner=None):
"""
Compute tax values for given PRICE_UNIT, QUANTITY and a buyer/seller ADDRESS_ID.
@@ -1585,7 +1619,6 @@ class account_tax(osv.osv):
else:
r['amount'] = round(r['amount'] * quantity, self.pool.get('decimal.precision').precision_get(cr, uid, 'Account'))
total += r['amount']
-
return res
def _unit_compute_inv(self, cr, uid, taxes, price_unit, address_id=None, product=None, partner=None):
diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index 77369bdca25..aa4ccfc74ff 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -63,6 +63,7 @@
+
@@ -146,7 +147,7 @@
-
+
@@ -345,9 +346,9 @@
-
-
-
+
+
+
@@ -356,16 +357,16 @@
-
-
-
+
+
+
-
-
-
+
+
+
-
-
+
+
diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml
index a2729676fe3..ca777ea61ae 100644
--- a/addons/account/account_view.xml
+++ b/addons/account/account_view.xml
@@ -623,7 +623,7 @@
-
+
@@ -836,8 +836,8 @@
-
-
+
+
@@ -979,8 +979,8 @@
-
-
+
+
diff --git a/addons/account/i18n/ca.po b/addons/account/i18n/ca.po
index 6a5f47dfb24..7d325b771ea 100644
--- a/addons/account/i18n/ca.po
+++ b/addons/account/i18n/ca.po
@@ -7,14 +7,14 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-04-18 09:39+0000\n"
-"Last-Translator: Albert Cervera i Areny - http://www.NaN-tic.com \n"
+"PO-Revision-Date: 2010-06-04 09:39+0000\n"
+"Last-Translator: Jordi Esteve (www.zikzakmedia.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-04-21 04:06+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
@@ -61,12 +61,12 @@ msgstr "Nom de model no vàlid en la definició de l'acció."
#. module: account
#: help:account.journal,currency:0
msgid "The currency used to enter statement"
-msgstr "La moneda utilitzada per introduir assentaments"
+msgstr "La divisa utilitzada per introduir assentaments"
#. module: account
#: wizard_view:account_use_models,init_form:0
msgid "Select Message"
-msgstr "Selecciona missatge"
+msgstr "Seleccioneu missatge"
#. module: account
#: help:product.category,property_account_income_categ:0
@@ -189,7 +189,7 @@ msgstr "Plans comptables"
#. module: account
#: model:ir.actions.wizard,name:account.wizard_move_line_select
msgid "Move line select"
-msgstr "Selecciona línia moviment"
+msgstr "Seleccioneu línia moviment"
#. module: account
#: rml:account.journal.period.print:0
@@ -202,7 +202,7 @@ msgstr "Ref. assentament"
#. module: account
#: model:ir.model,name:account.model_account_model_line
msgid "Account Model Entries"
-msgstr "Línia de model d'assentament"
+msgstr "Líniees de model d'assentament"
#. module: account
#: field:account.tax.code,sum_period:0
@@ -315,7 +315,7 @@ msgstr "Pagaments fora de termini"
#: wizard_view:account.analytic.account.quantity_cost_ledger.report,init:0
#: wizard_view:account.vat.declaration,init:0
msgid "Select period"
-msgstr "Selecciona període"
+msgstr "Seleccioneu període"
#. module: account
#: field:account.invoice,origin:0
@@ -457,7 +457,7 @@ msgstr "Estat"
#: model:ir.actions.act_window,name:account.action_invoice_tree13
#: model:ir.ui.menu,name:account.menu_action_invoice_tree13
msgid "Unpaid Supplier Refunds"
-msgstr "Factures d'abonament de proveïdor sense pagar"
+msgstr "Factures rectificatives (abonament) de proveïdor sense pagar"
#. module: account
#: view:account.tax:0
@@ -710,7 +710,7 @@ msgstr "Informació addicional"
#. module: account
#: selection:account.invoice,type:0
msgid "Customer Refund"
-msgstr "Factura d'abonament de client"
+msgstr "Factura rectificativa (abonament) de client"
#. module: account
#: wizard_view:account.analytic.account.chart,init:0
@@ -909,7 +909,7 @@ msgstr "Diari de desajust"
#: field:account.model.line,amount_currency:0
#: field:account.move.line,amount_currency:0
msgid "Amount Currency"
-msgstr "Import canvi"
+msgstr "Import divisa"
#. module: account
#: field:account.chart.template,property_account_expense_categ:0
@@ -938,7 +938,7 @@ msgstr "Exercici fiscal per obrir"
#. module: account
#: view:account.config.wizard:0
msgid "Select Chart of Accounts"
-msgstr "Selecciona pla comptable"
+msgstr "Seleccioneu un pla comptable"
#. module: account
#: field:account.analytic.account,quantity:0
@@ -1242,7 +1242,7 @@ msgstr ""
#. module: account
#: field:account.account,company_currency_id:0
msgid "Company Currency"
-msgstr "Moneda de la companyia"
+msgstr "Divisa de la companyia"
#. module: account
#: model:ir.model,name:account.model_account_fiscal_position_account_template
@@ -1353,7 +1353,7 @@ msgstr "Missatge"
#. module: account
#: model:process.node,note:account.process_node_supplierpaymentorder0
msgid "Select invoices you want to pay and manages advances"
-msgstr "Selecciona factures que es volen pagar i gestiona avançaments"
+msgstr "Seleccioneu les factures que voleu pagar i gestionar avançaments"
#. module: account
#: selection:account.account,type:0
@@ -1887,7 +1887,7 @@ msgstr "Data inicial"
#. module: account
#: model:account.journal,name:account.refund_expenses_journal
msgid "x Expenses Credit Notes Journal"
-msgstr "x Diari factures d'abonament de despeses"
+msgstr "x Diari factures rectificatives (abonament) de despeses"
#. module: account
#: field:account.analytic.journal,type:0
@@ -1914,7 +1914,7 @@ msgstr "Base imposable"
#: field:account.tax,account_collected_id:0
#: field:account.tax.template,account_collected_id:0
msgid "Invoice Tax Account"
-msgstr "Compte impostos de factura"
+msgstr "Compte impostos de factures"
#. module: account
#: view:account.move.line:0
@@ -2026,7 +2026,7 @@ msgstr "Informe analític de diari"
#: model:ir.actions.act_window,name:account.action_invoice_tree3
#: model:ir.ui.menu,name:account.menu_action_invoice_tree3
msgid "Customer Refunds"
-msgstr "Factures d'abonament de client"
+msgstr "Factures rectificatives (abonament) de client"
#. module: account
#: rml:account.vat.declaration:0
@@ -2047,7 +2047,7 @@ msgstr "Nom diari-període"
#: field:account.tax.code,name:0
#: field:account.tax.code.template,name:0
msgid "Tax Case Name"
-msgstr "Nom impost del cas"
+msgstr "Nom codi d'impost"
#. module: account
#: help:account.journal,entry_posted:0
@@ -2057,7 +2057,7 @@ msgid ""
"manual validation."
msgstr ""
"Marqueu aquesta casella si no voleu que els nous assentaments passin per "
-"l'estat 'esborrany' i vagin directament a l'estat 'fixat' sense validar-se "
+"l'estat 'Esborrany' i vagin directament a l'estat 'Fixat' sense validar-los "
"manualment."
#. module: account
@@ -2144,7 +2144,7 @@ msgstr "Anterior"
#: field:account.model.line,currency_id:0
#: field:account.move.line,currency_id:0
msgid "Currency"
-msgstr "Moneda"
+msgstr "Divisa"
#. module: account
#: model:ir.actions.act_window,name:account.act_account_journal_2_account_invoice_opened
@@ -2179,7 +2179,8 @@ msgid "Analytic Entry"
msgstr "Assentament analític"
#. module: account
-#: view:res.company:0 field:res.company,overdue_msg:0
+#: view:res.company:0
+#: field:res.company,overdue_msg:0
msgid "Overdue Payments Message"
msgstr "Missatge de pagaments fora de termini"
@@ -2285,7 +2286,7 @@ msgstr "Diari assentaments d'obertura"
#. module: account
#: view:account.config.wizard:0
msgid "Create a Fiscal Year"
-msgstr "Crea un exercici fiscal"
+msgstr "Creeu un exercici fiscal"
#. module: account
#: field:product.template,taxes_id:0
@@ -2320,7 +2321,8 @@ msgstr "2"
#: wizard_view:account.chart,init:0
msgid "(If you do not select Fiscal year it will take all open fiscal years)"
msgstr ""
-"(Si no es selecciona cap any fiscal s'utilitzen tots els anys fiscals oberts)"
+"(Si no es selecciona cap exercici fiscal s'utilitzen tots els exercicis "
+"fiscals oberts)"
#. module: account
#: help:account.invoice.tax,base_code_id:0
@@ -2467,7 +2469,7 @@ msgstr "Data final"
#: model:ir.actions.act_window,name:account.action_move_line_tree1
#: model:ir.ui.menu,name:account.menu_action_move_line_search
msgid "Entry Lines"
-msgstr "Línies de l'extracte"
+msgstr "Apunts"
#. module: account
#: view:account.tax:0
@@ -2526,7 +2528,7 @@ msgstr "Assentaments conciliats"
#. module: account
#: help:account.bank.statement.reconcile,total_second_amount:0
msgid "The amount in the currency of the journal"
-msgstr "La quantitat en la moneda del diari"
+msgstr "La quantitat en la divisa del diari"
#. module: account
#: wizard_field:account.general.ledger.report,checktype,landscape:0
@@ -2836,7 +2838,7 @@ msgstr "Companyies que es refereixen a l'empresa"
#. module: account
#: field:account.move.line,date:0
msgid "Effective date"
-msgstr "Data vigència"
+msgstr "Data"
#. module: account
#: help:account.tax.template,sequence:0
@@ -2961,7 +2963,7 @@ msgstr "1cm 27.7cm 20cm 27.7cm"
#: model:ir.actions.act_window,name:account.action_invoice_tree12
#: model:ir.ui.menu,name:account.menu_action_invoice_tree12
msgid "Draft Supplier Refunds"
-msgstr "Factures d'abonament de proveïdor esborrany"
+msgstr "Factures rectificatives (abonament) de proveïdor esborrany"
#. module: account
#: model:process.node,name:account.process_node_accountingstatemententries0
@@ -3048,7 +3050,7 @@ msgstr "Taxa de divises de sortida"
#: model:ir.actions.act_window,name:account.action_invoice_tree10
#: model:ir.ui.menu,name:account.menu_action_invoice_tree10
msgid "Draft Customer Refunds"
-msgstr "Factures d'abonament de client esborrany"
+msgstr "Factures rectificatives (abonament) de client esborrany"
#. module: account
#: field:account.journal.column,readonly:0
@@ -3606,7 +3608,7 @@ msgstr "Impressió"
#: model:ir.actions.act_window,name:account.action_invoice_tree4_new
#: model:ir.ui.menu,name:account.menu_action_invoice_tree4_new
msgid "New Supplier Refund"
-msgstr "Nova factura d'abonament de proveïdor"
+msgstr "Nova factura rectificativa (abonament) de proveïdor"
#. module: account
#: view:account.model:0
@@ -3616,7 +3618,7 @@ msgstr "Model d'assentament"
#. module: account
#: wizard_field:account.general.ledger.report,checktype,amount_currency:0
msgid "With Currency"
-msgstr "Amb moneda"
+msgstr "Mostra divisa"
#. module: account
#: view:account.account:0
@@ -3721,12 +3723,12 @@ msgstr "Codificació extracte"
#: wizard_view:account.invoice.refund,init:0
#: model:ir.actions.wizard,name:account.wizard_invoice_refund
msgid "Credit Note"
-msgstr "Factura d'abonament"
+msgstr "Factura rectificativa (abonament)"
#. module: account
#: model:ir.actions.todo,note:account.config_fiscalyear
msgid "Define Fiscal Years and Select Charts of Account"
-msgstr "Defineix exercicis fiscals i selecciona pla comptable"
+msgstr "Definiu els exercicis fiscals i seleccioneu el pla comptable"
#. module: account
#: wizard_field:account.move.line.reconcile,addendum,period_id:0
@@ -3736,7 +3738,7 @@ msgstr "Període de desajust"
#. module: account
#: selection:account.config.wizard,period:0
msgid "3 Months"
-msgstr "3 mesos"
+msgstr "Trimestral"
#. module: account
#: wizard_view:account.move.journal,init:0
@@ -3800,7 +3802,7 @@ msgstr "Data inicial"
#. module: account
#: wizard_view:account.general.ledger.report,account_selection:0
msgid "Select Chart"
-msgstr "Selecciona pla comptable"
+msgstr "Seleccioneu un pla comptable"
#. module: account
#: selection:account.chart,init,target_move:0
@@ -3867,7 +3869,7 @@ msgstr "Seqüència de l'assentament"
#: selection:account.account,type:0
#: selection:account.account.template,type:0
msgid "Closed"
-msgstr "Tancat"
+msgstr "Tancament"
#. module: account
#: model:process.node,name:account.process_node_paymententries0
@@ -4022,7 +4024,7 @@ msgstr "Propietats de comptabilitat del client"
#. module: account
#: view:account.bank.statement:0
msgid "Select entries"
-msgstr "Selecciona les entrades"
+msgstr "Seleccioneu les entrades"
#. module: account
#: selection:account.chart,init,target_move:0
@@ -4048,7 +4050,7 @@ msgstr "Compte a pagar"
#: field:account.account,currency_id:0
#: field:account.account.template,currency_id:0
msgid "Secondary Currency"
-msgstr "Moneda secundària"
+msgstr "Divisa secundària"
#. module: account
#: field:account.account,credit:0
@@ -4083,7 +4085,7 @@ msgstr ""
#: field:account.tax,account_paid_id:0
#: field:account.tax.template,account_paid_id:0
msgid "Refund Tax Account"
-msgstr "Compte impostos de devolucions"
+msgstr "Compte impostos de reintegraments"
#. module: account
#: field:account.tax.code,child_ids:0
@@ -4186,7 +4188,7 @@ msgstr "Seqüències de diaris separades"
#. module: account
#: help:account.bank.statement.reconcile,total_second_currency:0
msgid "The currency of the journal"
-msgstr "La moneda del diari"
+msgstr "La divisa del diari"
#. module: account
#: view:account.journal.column:0
@@ -4429,7 +4431,7 @@ msgstr "Fixat"
#: view:account.tax:0
#: view:account.tax.template:0
msgid "Credit Notes"
-msgstr "Factures d'abonament"
+msgstr "Factures rectificatives (abonament)"
#. module: account
#: field:account.config.wizard,date2:0
@@ -4621,7 +4623,7 @@ msgstr "Per data"
#: model:ir.actions.act_window,name:account.action_invoice_tree4
#: model:ir.ui.menu,name:account.menu_action_invoice_tree4
msgid "Supplier Refunds"
-msgstr "Factures d'abonament de proveïdor"
+msgstr "Factures rectificatives (abonament) de proveïdor"
#. module: account
#: help:account.model.line,date:0
@@ -4951,7 +4953,7 @@ msgstr "Confirmat"
#. module: account
#: wizard_view:account.account.balance.report,account_selection:0
msgid "Select parent account"
-msgstr "Selecciona compte pare"
+msgstr "Seleccioneu el compte pare"
#. module: account
#: field:account.account.template,parent_id:0
@@ -5126,7 +5128,7 @@ msgstr "Compte d'ingressos en plantilla producte"
#: help:account.account.template,currency_id:0
msgid "Force all moves for this account to have this secondary currency."
msgstr ""
-"Força a tots els moviments d'aquest compte que tinguin aquesta moneda "
+"Força a tots els moviments d'aquest compte que tinguin aquesta divisa "
"secundària."
#. module: account
@@ -5140,7 +5142,7 @@ msgstr "_Cancel·la"
#: wizard_view:account.partner.balance.report,init:0
#: wizard_view:account.third_party_ledger.report,init:0
msgid "Select Date-Period"
-msgstr "Selecciona data-període"
+msgstr "Seleccioneu data-període"
#. module: account
#: rml:account.analytic.account.inverted.balance:0
@@ -5169,7 +5171,7 @@ msgstr "Grup de l'impost"
#: model:ir.actions.act_window,name:account.action_invoice_tree3_new
#: model:ir.ui.menu,name:account.menu_action_invoice_tree3_new
msgid "New Customer Refund"
-msgstr "Nova factura d'abonament de client"
+msgstr "Nova factura rectificativa (abonament) de client"
#. module: account
#: help:wizard.multi.charts.accounts,seq_journal:0
@@ -5343,7 +5345,7 @@ msgstr "Filtrat per data"
#. module: account
#: wizard_view:populate_statement_from_inv,init:0
msgid "Choose Journal and Payment Date"
-msgstr "Selecciona diari i data de pagament"
+msgstr "Seleccioneu diari i data de pagament"
#. module: account
#: selection:account.analytic.account,state:0
@@ -5367,7 +5369,7 @@ msgstr "Pagat"
#: model:ir.actions.act_window,name:account.action_invoice_tree11
#: model:ir.ui.menu,name:account.menu_action_invoice_tree11
msgid "Unpaid Customer Refunds"
-msgstr "Factures d'abonament de client sense pagar"
+msgstr "Factures rectificatives (abonament) de client sense pagar"
#. module: account
#: help:account.invoice,residual:0
@@ -5524,7 +5526,7 @@ msgstr "Fi del període"
#: view:account.move:0
#: model:ir.model,name:account.model_account_move
msgid "Account Entry"
-msgstr "Assentament de compte"
+msgstr "Assentament comptable"
#. module: account
#: rml:account.general.journal:0
@@ -5555,7 +5557,7 @@ msgstr "Saldo pendent"
#. module: account
#: rml:account.invoice:0
msgid "Refund"
-msgstr "Factura d'abonament"
+msgstr "Factura rectificativa (abonament)"
#. module: account
#: model:ir.model,name:account.model_account_invoice_tax
@@ -5792,7 +5794,7 @@ msgstr ""
#: field:account.tax.code,code:0
#: field:account.tax.code.template,code:0
msgid "Case Code"
-msgstr "Codi cas"
+msgstr "Codi"
#. module: account
#: selection:account.automatic.reconcile,init,power:0
@@ -5916,7 +5918,7 @@ msgstr "Deixeu-lo buit per a tots els exercicis fiscals oberts"
#: rml:account.invoice:0
#: selection:account.invoice,type:0
msgid "Supplier Refund"
-msgstr "Factura d'abonament de proveïdor"
+msgstr "Factura rectificativa (abonament) de proveïdor"
#. module: account
#: model:process.transition,note:account.process_transition_entriesreconcile0
@@ -6072,3 +6074,6 @@ msgstr ""
#: wizard_button:account.subscription.generate,init,generate:0
msgid "Compute Entry Dates"
msgstr "Calcula les dates de l'assentament"
+
+#~ msgid "account.config.wizard"
+#~ msgstr "account.config.assistent"
diff --git a/addons/account/i18n/de.po b/addons/account/i18n/de.po
index 4f9893960bf..d2659e92d1c 100644
--- a/addons/account/i18n/de.po
+++ b/addons/account/i18n/de.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-04-16 09:47+0000\n"
+"PO-Revision-Date: 2010-06-03 20:09+0000\n"
"Last-Translator: Ferdinand @ ChriCar \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-04-21 04:06+0000\n"
+"X-Launchpad-Export-Date: 2010-06-04 03:45+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
@@ -272,10 +272,6 @@ msgid ""
"in which order. You can create your own view for a faster encoding in each "
"journal."
msgstr ""
-"zeigt die Ansicht des Journalberichtes. Open ERP wird gezeigt welche Felder "
-"sichtbar sein sollen, welche erforderlich sind oder keine Schreibrechte habe "
-"und in der Reihenfolge der Auftragsnummern. Sie können einen eigenen View "
-"für eine schnellere Buchungsbearbeitung herstellen."
#. module: account
#: help:account.invoice,date_due:0
@@ -2176,7 +2172,8 @@ msgid "Analytic Entry"
msgstr "Buchung Analysekonto"
#. module: account
-#: view:res.company:0 field:res.company,overdue_msg:0
+#: view:res.company:0
+#: field:res.company,overdue_msg:0
msgid "Overdue Payments Message"
msgstr "Text Zahlungserinnerung"
@@ -3314,7 +3311,9 @@ msgstr "Buchen OP Ausgleich"
#. module: account
#: wizard_view:account.wizard_paid_open,init:0
msgid "(Invoice should be unreconciled if you want to open it)"
-msgstr "(Rechnungen müssen ausgeglichen werden)"
+msgstr ""
+"(Rechnungen dürfen nicht ausgeglichen sein, wenn diese wieder geöffnet "
+"werden sollen)"
#. module: account
#: view:account.invoice:0
@@ -5314,7 +5313,7 @@ msgstr "Benutze Buchungsvorlage"
#. module: account
#: wizard_button:account.wizard_paid_open,init,end:0
msgid "No"
-msgstr "Nummer"
+msgstr "Nein"
#. module: account
#: model:ir.actions.act_window,name:account.act_account_partner_account_move
@@ -6062,3 +6061,6 @@ msgstr "Aktivieren, wenn Benutzer das Konto ausgleichen dürfen."
#: wizard_button:account.subscription.generate,init,generate:0
msgid "Compute Entry Dates"
msgstr "Berechne eingegebene Daten"
+
+#~ msgid "account.config.wizard"
+#~ msgstr "account.config.wizard"
diff --git a/addons/account/i18n/it.po b/addons/account/i18n/it.po
index d5cb2f7dc84..b37100f9c97 100644
--- a/addons/account/i18n/it.po
+++ b/addons/account/i18n/it.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-05-13 14:03+0000\n"
-"Last-Translator: Carlo - didotech.com \n"
+"PO-Revision-Date: 2010-06-04 16:42+0000\n"
+"Last-Translator: eLBati - albatos.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-05-14 04:55+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account
@@ -3047,7 +3047,7 @@ msgstr ""
#. module: account
#: field:account.invoice.line,uos_id:0
msgid "Unit of Measure"
-msgstr ""
+msgstr "Unità di misura"
#. module: account
#: field:account.chart.template,property_account_receivable:0
@@ -3107,7 +3107,7 @@ msgstr "Imposta come bozza"
#: help:account.invoice,origin:0
#: help:account.invoice.line,origin:0
msgid "Reference of the document that produced this invoice."
-msgstr ""
+msgstr "Riferimento al documento che ha prodotto questa fattura."
#. module: account
#: selection:account.account,type:0
@@ -3608,7 +3608,7 @@ msgstr "Manuale"
#. module: account
#: view:account.invoice:0
msgid "Compute Taxes"
-msgstr ""
+msgstr "Calcola tasse"
#. module: account
#: field:wizard.multi.charts.accounts,code_digits:0
@@ -4596,7 +4596,7 @@ msgstr ""
#. module: account
#: field:account.tax,price_include:0
msgid "Tax Included in Price"
-msgstr ""
+msgstr "Tassa compresa nel prezzo"
#. module: account
#: model:ir.actions.act_window,name:account.action_account_analytic_journal_tree2
diff --git a/addons/account/invoice.py b/addons/account/invoice.py
index 2ff9759a434..b15b4e94ad6 100644
--- a/addons/account/invoice.py
+++ b/addons/account/invoice.py
@@ -333,6 +333,7 @@ class account_invoice(osv.osv):
raise orm.except_orm(_('Configuration Error!'),
_('There is no Accounting Journal of type Sale/Purchase defined!'))
else:
+ raise
raise orm.except_orm(_('UnknownError'), str(e))
def confirm_paid(self, cr, uid, ids, context=None):
@@ -1141,17 +1142,17 @@ account_invoice()
class account_invoice_line(osv.osv):
def _amount_line(self, cr, uid, ids, prop, unknow_none,unknow_dict):
res = {}
- cur_obj=self.pool.get('res.currency')
+ tax_obj = self.pool.get('account.tax')
+ cur_obj = self.pool.get('res.currency')
for line in self.browse(cr, uid, ids):
+ price = line.price_unit * (1-(line.discount or 0.0)/100.0)
+ taxes = tax_obj.compute_all(cr, uid, line.invoice_line_tax_id, price, line.quantity)
+ res[line.id] = taxes['total']
if line.invoice_id:
- res[line.id] = line.price_unit * line.quantity * (1-(line.discount or 0.0)/100.0)
cur = line.invoice_id.currency_id
res[line.id] = cur_obj.round(cr, uid, cur, res[line.id])
- else:
- res[line.id] = round(line.price_unit * line.quantity * (1-(line.discount or 0.0)/100.0),self.pool.get('decimal.precision').precision_get(cr, uid, 'Account'))
return res
-
def _price_unit_default(self, cr, uid, context=None):
if context is None:
context = {}
@@ -1165,7 +1166,7 @@ class account_invoice_line(osv.osv):
taxes = l[2].get('invoice_line_tax_id')
if len(taxes[0]) >= 3 and taxes[0][2]:
taxes = tax_obj.browse(cr, uid, taxes[0][2])
- for tax in tax_obj.compute(cr, uid, taxes, p,l[2].get('quantity'), context.get('address_invoice_id', False), l[2].get('product_id', False), context.get('partner_id', False)):
+ for tax in tax_obj.compute_all(cr, uid, taxes, p,l[2].get('quantity'), context.get('address_invoice_id', False), l[2].get('product_id', False), context.get('partner_id', False))['taxes']:
t = t - tax['amount']
return t
return 0
@@ -1180,7 +1181,8 @@ class account_invoice_line(osv.osv):
'product_id': fields.many2one('product.product', 'Product', ondelete='set null'),
'account_id': fields.many2one('account.account', 'Account', required=True, domain=[('type','<>','view'), ('type', '<>', 'closed')], help="The income or expense account related to the selected product."),
'price_unit': fields.float('Unit Price', required=True, digits_compute= dp.get_precision('Account')),
- 'price_subtotal': fields.function(_amount_line, method=True, string='Subtotal',store=True, type="float", digits_compute= dp.get_precision('Account')),
+ 'price_subtotal': fields.function(_amount_line, method=True, string='Subtotal', type="float",
+ digits_compute= dp.get_precision('Account'), store=True),
'quantity': fields.float('Quantity', required=True),
'discount': fields.float('Discount (%)', digits_compute= dp.get_precision('Account')),
'invoice_line_tax_id': fields.many2many('account.tax', 'account_invoice_line_tax', 'invoice_line_id', 'tax_id', 'Taxes', domain=[('parent_id','=',False)]),
@@ -1349,10 +1351,10 @@ class account_invoice_line(osv.osv):
continue
res.append(mres)
tax_code_found= False
- for tax in tax_obj.compute(cr, uid, line.invoice_line_tax_id,
+ for tax in tax_obj.compute_all(cr, uid, line.invoice_line_tax_id,
(line.price_unit * (1.0 - (line['discount'] or 0.0) / 100.0)),
line.quantity, inv.address_invoice_id.id, line.product_id,
- inv.partner_id):
+ inv.partner_id)['taxes']:
if inv.type in ('out_invoice', 'in_invoice'):
tax_code_id = tax['base_code_id']
@@ -1455,7 +1457,7 @@ class account_invoice_tax(osv.osv):
company_currency = inv.company_id.currency_id.id
for line in inv.invoice_line:
- for tax in tax_obj.compute(cr, uid, line.invoice_line_tax_id, (line.price_unit* (1-(line.discount or 0.0)/100.0)), line.quantity, inv.address_invoice_id.id, line.product_id, inv.partner_id):
+ for tax in tax_obj.compute_all(cr, uid, line.invoice_line_tax_id, (line.price_unit* (1-(line.discount or 0.0)/100.0)), line.quantity, inv.address_invoice_id.id, line.product_id, inv.partner_id)['taxes']:
val={}
val['invoice_id'] = inv.id
val['name'] = tax['name']
@@ -1517,11 +1519,7 @@ account_invoice_tax()
class res_partner(osv.osv):
""" Inherits partner and adds invoice information in the partner form """
_inherit = 'res.partner'
-
_columns = {
- 'invoice_ids': fields.one2many('account.invoice.line', 'partner_id', 'Invoices', readonly=True),
- }
-
+ 'invoice_ids': fields.one2many('account.invoice.line', 'partner_id', 'Invoices', readonly=True),
+ }
res_partner()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account/project/project_view.xml b/addons/account/project/project_view.xml
index b4a7b67a05a..363eeec138b 100644
--- a/addons/account/project/project_view.xml
+++ b/addons/account/project/project_view.xml
@@ -25,8 +25,8 @@
-
-
+
+
@@ -396,8 +396,8 @@
-
-
+
+
diff --git a/addons/account/report/account_account_report_view.xml b/addons/account/report/account_account_report_view.xml
index 137fa0c69ae..bd9101a3382 100644
--- a/addons/account/report/account_account_report_view.xml
+++ b/addons/account/report/account_account_report_view.xml
@@ -45,10 +45,10 @@
-
-
@@ -56,15 +56,15 @@
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
diff --git a/addons/account/report/account_analytic_entries_report_view.xml b/addons/account/report/account_analytic_entries_report_view.xml
index 82a063256c1..1564859540a 100644
--- a/addons/account/report/account_analytic_entries_report_view.xml
+++ b/addons/account/report/account_analytic_entries_report_view.xml
@@ -35,14 +35,14 @@
-
-
-
-
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
-
+
+
-
-
-
+
+
+
diff --git a/addons/account/report/account_analytic_report_view.xml b/addons/account/report/account_analytic_report_view.xml
index f853b809867..290e6950569 100644
--- a/addons/account/report/account_analytic_report_view.xml
+++ b/addons/account/report/account_analytic_report_view.xml
@@ -36,26 +36,26 @@
-
-
-
-
-
-
@@ -63,28 +63,28 @@
-
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/addons/account/report/account_entries_report_view.xml b/addons/account/report/account_entries_report_view.xml
index 5d1b99b578e..0c3a77db2a7 100644
--- a/addons/account/report/account_entries_report_view.xml
+++ b/addons/account/report/account_entries_report_view.xml
@@ -50,25 +50,25 @@
-
-
-
@@ -78,24 +78,24 @@
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py
index 523d77c84e3..1fb90a86bec 100644
--- a/addons/account/report/account_invoice_report.py
+++ b/addons/account/report/account_invoice_report.py
@@ -49,6 +49,7 @@ class account_invoice_report(osv.osv):
'price_total':fields.float('Total Price', readonly=True),
'price_average':fields.float('Average Price', readonly=True),
'nbr':fields.integer('# of Lines', readonly=True),
+ 'reconciled':fields.integer('# reconciled lines', readonly=True),
'type': fields.selection([
('out_invoice','Customer Invoice'),
('in_invoice','Supplier Invoice'),
@@ -62,7 +63,7 @@ class account_invoice_report(osv.osv):
('open','Open'),
('paid','Done'),
('cancel','Cancelled')
- ], 'Order State', readonly=True),
+ ], 'Invoice State', readonly=True),
'date_due': fields.date('Due Date', readonly=True),
'address_contact_id': fields.many2one('res.partner.address', 'Contact Address Name', readonly=True),
'address_invoice_id': fields.many2one('res.partner.address', 'Invoice Address Name', readonly=True),
@@ -89,6 +90,7 @@ class account_invoice_report(osv.osv):
l.quantity * u.factor
end) as product_qty,
s.partner_id as partner_id,
+ s.reconciled::integer,
s.payment_term as payment_term,
s.period_id as period_id,
u.name as uom_name,
@@ -137,6 +139,7 @@ class account_invoice_report(osv.osv):
l.product_id,
u.name,
l.uos_id,
+ s.reconciled,
s.user_id,
s.state,
s.residual,
diff --git a/addons/account/report/account_invoice_report_view.xml b/addons/account/report/account_invoice_report_view.xml
index 965d5078ae9..542b695e7dd 100644
--- a/addons/account/report/account_invoice_report_view.xml
+++ b/addons/account/report/account_invoice_report_view.xml
@@ -20,8 +20,6 @@
-
-
@@ -29,8 +27,11 @@
-
+
+
+
+
@@ -56,87 +57,78 @@
-
-
-
-
+
-
-
+
+
-
-
-
-
-
-
+
+
+
+
-
-
-
+
+
-
-
-
+
+
-
-
-
+
+
+
+
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
+
-
-
+
+
+
+
diff --git a/addons/account/report/account_report_view.xml b/addons/account/report/account_report_view.xml
index 9b1688730aa..190ff856c8a 100644
--- a/addons/account/report/account_report_view.xml
+++ b/addons/account/report/account_report_view.xml
@@ -153,8 +153,8 @@
search
-
-
+
+
@@ -221,8 +221,8 @@
search
-
-
+
+
diff --git a/addons/account_budget/crossovered_budget_view.xml b/addons/account_budget/crossovered_budget_view.xml
index b48ccc55daa..e7a0faf069d 100644
--- a/addons/account_budget/crossovered_budget_view.xml
+++ b/addons/account_budget/crossovered_budget_view.xml
@@ -185,8 +185,8 @@
-
-
+
+
diff --git a/addons/account_followup/i18n/hr.po b/addons/account_followup/i18n/hr.po
index 45fce2cbd2b..e647ce85b34 100644
--- a/addons/account_followup/i18n/hr.po
+++ b/addons/account_followup/i18n/hr.po
@@ -7,24 +7,24 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-09-08 12:18+0000\n"
-"Last-Translator: Ivica Perić \n"
+"PO-Revision-Date: 2010-06-07 04:28+0000\n"
+"Last-Translator: nafterburner \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-04-17 04:05+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_followup
#: rml:account_followup.followup.print:0
msgid "Date :"
-msgstr ""
+msgstr "Datum :"
#. module: account_followup
#: wizard_field:account_followup.followup.print.all,next,partner_ids:0
msgid "Partners"
-msgstr ""
+msgstr "Partneri"
#. module: account_followup
#: rml:account_followup.followup.print:0
@@ -35,17 +35,17 @@ msgstr ""
#: model:ir.actions.act_window,name:account_followup.act_account_partner_account_move_payable_all
#: model:ir.ui.menu,name:account_followup.menu_account_move_open_unreconcile_payable
msgid "All payable entries"
-msgstr ""
+msgstr "Sve stavke potraživanja"
#. module: account_followup
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr ""
+msgstr "Nepravilno ime modela u definiciji radnje."
#. module: account_followup
#: field:account_followup.followup.line,description:0
msgid "Printed Message"
-msgstr ""
+msgstr "Ispisana Poruka"
#. module: account_followup
#: rml:account_followup.followup.print:0
@@ -60,18 +60,18 @@ msgstr ""
#. module: account_followup
#: view:account.move.line:0
msgid "Total debit"
-msgstr ""
+msgstr "Ukupni dug"
#. module: account_followup
#: view:account_followup.followup.line:0
#: wizard_view:account_followup.followup.print.all,next:0
msgid "%(user_signature)s: User name"
-msgstr ""
+msgstr "%(user_signature)s: Korisničko ime"
#. module: account_followup
#: wizard_view:account_followup.followup.print.all,next:0
msgid "Select partners"
-msgstr ""
+msgstr "Odaberi partnere"
#. module: account_followup
#: view:account_followup.followup:0
@@ -82,17 +82,17 @@ msgstr ""
#. module: account_followup
#: field:account_followup.stat,debit:0
msgid "Debit"
-msgstr ""
+msgstr "Dug"
#. module: account_followup
#: wizard_view:account_followup.followup.print.all,next:0
msgid "Email Settings"
-msgstr ""
+msgstr "Email Postavke"
#. module: account_followup
#: field:account_followup.stat,account_type:0
msgid "Account Type"
-msgstr ""
+msgstr "Tip Računa"
#. module: account_followup
#: rml:account_followup.followup.print:0
@@ -108,7 +108,7 @@ msgstr ""
#: view:account_followup.followup.line:0
#: wizard_view:account_followup.followup.print.all,next:0
msgid "%(date)s: Current Date"
-msgstr ""
+msgstr "%(date)s: Trenutni Datum"
#. module: account_followup
#: field:account.move.line,followup_date:0
@@ -131,7 +131,7 @@ msgstr ""
#: field:account_followup.followup,description:0
#: rml:account_followup.followup.print:0
msgid "Description"
-msgstr ""
+msgstr "Opis"
#. module: account_followup
#: rml:account_followup.followup.print:0
@@ -141,27 +141,27 @@ msgstr ""
#. module: account_followup
#: rml:account_followup.followup.print:0
msgid "VAT:"
-msgstr ""
+msgstr "VAT:"
#. module: account_followup
#: field:account_followup.followup,company_id:0
msgid "Company"
-msgstr ""
+msgstr "Tvrtka"
#. module: account_followup
#: rml:account_followup.followup.print:0
msgid "Invoice Date"
-msgstr ""
+msgstr "Datum Računa"
#. module: account_followup
#: wizard_field:account_followup.followup.print.all,next,email_subject:0
msgid "Email Subject"
-msgstr ""
+msgstr "Predmet email-a"
#. module: account_followup
#: rml:account_followup.followup.print:0
msgid "Paid"
-msgstr ""
+msgstr "Plaćeno"
#. module: account_followup
#: wizard_view:account_followup.followup.print.all,next:0
@@ -186,17 +186,17 @@ msgstr ""
#. module: account_followup
#: wizard_view:account_followup.followup.print.all,next:0
msgid "Partner Selection"
-msgstr ""
+msgstr "Odabir Partnera"
#. module: account_followup
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
-msgstr ""
+msgstr "Nepravilan XML format za Arhitekturu Prikaza!"
#. module: account_followup
#: field:account_followup.followup.line,start:0
msgid "Type of Term"
-msgstr ""
+msgstr "Tip Uvjeta"
#. module: account_followup
#: wizard_view:account_followup.followup.print.all,init:0
@@ -206,12 +206,12 @@ msgstr ""
#. module: account_followup
#: wizard_view:account_followup.followup.print.all,next:0
msgid "Select partners to remind"
-msgstr ""
+msgstr "Odaberite partnere za opomenu"
#. module: account_followup
#: rml:account_followup.followup.print:0
msgid "Li."
-msgstr ""
+msgstr "Li."
#. module: account_followup
#: model:account_followup.followup.line,description:account_followup.demo_followup_line1
@@ -240,23 +240,23 @@ msgstr ""
#. module: account_followup
#: wizard_button:account_followup.followup.print.all,summary,end:0
msgid "Ok"
-msgstr ""
+msgstr "Ok"
#. module: account_followup
#: field:account_followup.followup,name:0
#: field:account_followup.followup.line,name:0
msgid "Name"
-msgstr ""
+msgstr "Ime"
#. module: account_followup
#: field:account_followup.stat,date_move:0
msgid "First move"
-msgstr ""
+msgstr "Prvi potez"
#. module: account_followup
#: selection:account_followup.followup.line,start:0
msgid "End of Month"
-msgstr ""
+msgstr "Kraj Mjeseca"
#. module: account_followup
#: view:account_followup.followup.line:0
@@ -273,7 +273,7 @@ msgstr ""
#. module: account_followup
#: view:account_followup.followup:0
msgid "Lines"
-msgstr ""
+msgstr "Linije"
#. module: account_followup
#: model:ir.actions.wizard,name:account_followup.action_account_followup_all_wizard
diff --git a/addons/account_payment/i18n/zh_CN.po b/addons/account_payment/i18n/zh_CN.po
index 2dbc570776c..519155a16d0 100644
--- a/addons/account_payment/i18n/zh_CN.po
+++ b/addons/account_payment/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.6\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-20 07:13+0000\n"
-"Last-Translator: Black Jack \n"
+"PO-Revision-Date: 2010-06-04 13:32+0000\n"
+"Last-Translator: Eleanor Chen \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-04-17 04:12+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_payment
@@ -251,12 +251,12 @@ msgstr "无效XML视图结构!"
#: wizard_button:populate_payment,search,end:0
#: wizard_button:populate_statement,init,end:0
msgid "_Cancel"
-msgstr "取消"
+msgstr "取消(_C)"
#. module: account_payment
#: field:payment.line,create_date:0
msgid "Created"
-msgstr "创建"
+msgstr "已创建"
#. module: account_payment
#: view:payment.line:0
diff --git a/addons/account_tax_include/i18n/ru.po b/addons/account_tax_include/i18n/ru.po
index e61c38be4a1..de13c665c78 100644
--- a/addons/account_tax_include/i18n/ru.po
+++ b/addons/account_tax_include/i18n/ru.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-09-08 13:39+0000\n"
-"Last-Translator: Sergei Kostigoff \n"
+"PO-Revision-Date: 2010-06-06 06:51+0000\n"
+"Last-Translator: mr.The \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-04-17 04:05+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_tax_include
@@ -44,7 +44,7 @@ msgstr "До налогов"
#. module: account_tax_include
#: view:account.tax:0
msgid "Compute Code for Taxes included prices"
-msgstr ""
+msgstr "Выполнить код для цен с налогами"
#. module: account_tax_include
#: field:account.invoice.line,price_subtotal_incl:0
diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml
index 6eb6988480d..0049c5ff5de 100644
--- a/addons/account_voucher/voucher_view.xml
+++ b/addons/account_voucher/voucher_view.xml
@@ -71,7 +71,7 @@
-
+
account.voucher.select
account.voucher
@@ -79,10 +79,10 @@
-
-
-
-
+
+
+
+
@@ -92,14 +92,14 @@
-
-
-
-
-
+
+
+
+
+
-
+
@@ -107,7 +107,7 @@
-
+
Voucher Entries
@@ -245,7 +245,7 @@
-
+
account.journal.form.inherit
account.journal
@@ -257,7 +257,7 @@
-
+
-
+
diff --git a/addons/account_voucher_payment/i18n/ca.po b/addons/account_voucher_payment/i18n/ca.po
index daf15f0ea67..6a76e867e21 100644
--- a/addons/account_voucher_payment/i18n/ca.po
+++ b/addons/account_voucher_payment/i18n/ca.po
@@ -1,20 +1,20 @@
-# Translation of OpenERP Server.
-# This file contains the translation of the following modules:
-# * account_voucher_payment
+# Catalan 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: OpenERP Server 5.0.0\n"
-"Report-Msgid-Bugs-To: support@openerp.com\n"
+"Project-Id-Version: openobject-addons\n"
+"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-05-13 20:11+0000\n"
-"PO-Revision-Date: 2010-01-26 11:00+0000\n"
-"Last-Translator: Jordi Esteve (www.zikzakmedia.com) "
-"\n"
-"Language-Team: \n"
+"PO-Revision-Date: 2010-06-04 09:33+0000\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: Catalan \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-05-21 03:47+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_voucher_payment
diff --git a/addons/account_voucher_payment/i18n/es.po b/addons/account_voucher_payment/i18n/es.po
index a3df62eaec2..600b962c9d6 100644
--- a/addons/account_voucher_payment/i18n/es.po
+++ b/addons/account_voucher_payment/i18n/es.po
@@ -1,19 +1,20 @@
-# Translation of OpenERP Server.
-# This file contains the translation of the following modules:
-# * account_voucher_payment
+# Spanish translation for openobject-addons
+# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
+# This file is distributed under the same license as the openobject-addons package.
+# FIRST AUTHOR , 2010.
#
msgid ""
msgstr ""
-"Project-Id-Version: OpenERP Server 5.0.0\n"
-"Report-Msgid-Bugs-To: support@openerp.com\n"
+"Project-Id-Version: openobject-addons\n"
+"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-05-13 20:11+0000\n"
-"PO-Revision-Date: 2010-02-19 05:54+0000\n"
-"Last-Translator: Luis Alejandro Rangel Sánchez \n"
-"Language-Team: \n"
+"PO-Revision-Date: 2010-06-04 09:33+0000\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: Spanish \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-05-21 03:47+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: account_voucher_payment
diff --git a/addons/auction/i18n/pl.po b/addons/auction/i18n/pl.po
index c5219bd77b3..aab4490920c 100644
--- a/addons/auction/i18n/pl.po
+++ b/addons/auction/i18n/pl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-02-03 11:09+0000\n"
-"Last-Translator: Fabien (Open ERP) \n"
+"PO-Revision-Date: 2010-06-04 21:56+0000\n"
+"Last-Translator: ErnestŻyciński \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-04-17 04:14+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: auction
@@ -39,12 +39,12 @@ msgstr ""
#: field:report.seller.auction,seller:0
#: field:report.seller.auction2,seller:0
msgid "Seller"
-msgstr ""
+msgstr "Sprzedawca"
#. module: auction
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr ""
+msgstr "Nieprawidłowa nazwa modelu w definicji akcji."
#. module: auction
#: selection:auction.lots.send.aie,date_ask,numerotation:0
@@ -102,7 +102,7 @@ msgstr ""
#: field:report.buyer.auction,buyer:0
#: field:report.buyer.auction2,buyer:0
msgid "Buyer"
-msgstr ""
+msgstr "Kupujący"
#. module: auction
#: field:report.auction.view,nobjects:0
@@ -140,7 +140,7 @@ msgstr ""
#: wizard_field:auction.lots.make_invoice,init,amount:0
#: wizard_field:auction.lots.make_invoice_buyer,init,amount:0
msgid "Invoiced Amount"
-msgstr ""
+msgstr "Kwota zafakturowana"
#. module: auction
#: selection:auction.lot.category,aie_categ:0
@@ -165,7 +165,7 @@ msgstr ""
#. module: auction
#: field:auction.deposit.cost,amount:0
msgid "Amount"
-msgstr ""
+msgstr "Kwota"
#. module: auction
#: model:ir.actions.act_window,name:auction.action_deposit_border
@@ -191,12 +191,12 @@ msgstr ""
#. module: auction
#: field:auction.dates,account_analytic_id:0
msgid "Analytic Account"
-msgstr ""
+msgstr "Konto analityczne"
#. module: auction
#: selection:auction.lot.category,aie_categ:0
msgid "Unclassifieds"
-msgstr ""
+msgstr "Niesklasyfikowane"
#. module: auction
#: model:ir.ui.menu,name:auction.menu_auction_dates_next_by_auction
@@ -232,7 +232,7 @@ msgstr "Rodzaj obiektu"
#. module: auction
#: wizard_field:auction.lots.sms_send,init,text:0
msgid "SMS Message"
-msgstr ""
+msgstr "Wiadomość SMS"
#. module: auction
#: selection:auction.lot.category,aie_categ:0
@@ -243,7 +243,7 @@ msgstr "Sztuka nowoczesna"
#: view:auction.lots:0
#: view:report.unclassified.objects:0
msgid "Ref"
-msgstr ""
+msgstr "Odnośnik"
#. module: auction
#: field:report.auction.view,nseller:0
diff --git a/addons/auction/i18n/zh_CN.po b/addons/auction/i18n/zh_CN.po
index 58ebcb44914..bde1b397caa 100644
--- a/addons/auction/i18n/zh_CN.po
+++ b/addons/auction/i18n/zh_CN.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-20 07:33+0000\n"
-"Last-Translator: Black Jack \n"
+"PO-Revision-Date: 2010-06-04 12:37+0000\n"
+"Last-Translator: Eleanor Chen \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-04-17 04:14+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: auction
@@ -415,7 +415,7 @@ msgstr "库存数量"
#: wizard_button:auction.lots.numerotate,search,end:0
#: wizard_button:auction.lots.numerotate_cont,init,end:0
msgid "Exit"
-msgstr "出口"
+msgstr "退出"
#. module: auction
#: field:report.buyer.auction2,net_revenue:0
diff --git a/addons/base_calendar/base_calendar_view.xml b/addons/base_calendar/base_calendar_view.xml
index fc5140c8303..d0c1a57ba84 100644
--- a/addons/base_calendar/base_calendar_view.xml
+++ b/addons/base_calendar/base_calendar_view.xml
@@ -95,10 +95,10 @@
search
-
-
@@ -108,19 +108,19 @@
-
-
+
-
-
-
-
-
+
@@ -383,7 +383,7 @@
-
@@ -396,15 +396,15 @@
-
-
+
-
-
-
diff --git a/addons/base_report_designer/i18n/hr.po b/addons/base_report_designer/i18n/hr.po
index f63fe3a567e..e9ea4ca9884 100755
--- a/addons/base_report_designer/i18n/hr.po
+++ b/addons/base_report_designer/i18n/hr.po
@@ -7,25 +7,25 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-24 09:27+0000\n"
+"PO-Revision-Date: 2010-06-06 23:30+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:13+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: base_report_designer
#: wizard_field:base_report_designer.modify,init,text:0
msgid "Introduction"
-msgstr ""
+msgstr "Uvod"
#. module: base_report_designer
#: wizard_view:base_report_designer.modify,send_form:0
msgid "Upload your modified report"
-msgstr ""
+msgstr "Pošalji promijenjen izvještaj na Server"
#. module: base_report_designer
#: wizard_button:base_report_designer.modify,get_form_result,send_form:0
diff --git a/addons/base_setup/base_setup_todo.xml b/addons/base_setup/base_setup_todo.xml
index 97c9ea0d301..2d6b400d2c5 100644
--- a/addons/base_setup/base_setup_todo.xml
+++ b/addons/base_setup/base_setup_todo.xml
@@ -28,9 +28,9 @@
-
+
diff --git a/addons/base_setup/gtk_contact_form.py b/addons/base_setup/gtk_contact_form.py
index a9fde39ffde..c62951b13b7 100644
--- a/addons/base_setup/gtk_contact_form.py
+++ b/addons/base_setup/gtk_contact_form.py
@@ -71,7 +71,6 @@ class base_gtkcontactform(osv.osv_memory):
'other':fields.boolean('Other'),
'ebook':fields.boolean('ebook'),
'updates':fields.boolean('Updates'),
- 'contact_me':fields.boolean('Contact Me'),
}
def execute(self, cr, uid, ids, context=None):
if context is None:
@@ -81,10 +80,10 @@ class base_gtkcontactform(osv.osv_memory):
company_data = self.pool.get('base.setup.company').read(cr, uid, company_id, context=context)
company_data = company_data and company_data[0] or {}
country = ''
-
+
if company_data.get('country_id', False):
country = self.pool.get('res.country').read(cr, uid, company_data['country_id'],['name'], context=context)['name']
-
+
for res in self.read(cr, uid, ids, context=context):
email = res.get('email','')
result = "\ncompany: "+ tools.ustr(company_data.get('name',''))
diff --git a/addons/base_setup/gtk_contact_form.xml b/addons/base_setup/gtk_contact_form.xml
index c5578f9bc9a..41711032bf0 100644
--- a/addons/base_setup/gtk_contact_form.xml
+++ b/addons/base_setup/gtk_contact_form.xml
@@ -24,9 +24,7 @@
-
-
-
+
diff --git a/addons/base_setup/i18n/hr.po b/addons/base_setup/i18n/hr.po
index 0774c70a0e7..3b01565a325 100644
--- a/addons/base_setup/i18n/hr.po
+++ b/addons/base_setup/i18n/hr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-26 01:09+0000\n"
+"PO-Revision-Date: 2010-06-06 23:31+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:05+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
@@ -22,7 +22,7 @@ msgstr ""
#: wizard_field:base_setup.base_setup,init,city:0
#: wizard_field:base_setup.base_setup,update,city:0
msgid "City"
-msgstr ""
+msgstr "Grad"
#. module: base_setup
#: wizard_view:base_setup.base_setup,finish:0
diff --git a/addons/base_vat/i18n/id.po b/addons/base_vat/i18n/id.po
index e969ecfa9ad..b6255217c5a 100644
--- a/addons/base_vat/i18n/id.po
+++ b/addons/base_vat/i18n/id.po
@@ -13,7 +13,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2010-06-03 03:33+0000\n"
+"X-Launchpad-Export-Date: 2010-06-04 03:45+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: base_vat
diff --git a/addons/crm/crm_installer_view.xml b/addons/crm/crm_installer_view.xml
index e0d84c6eed2..9d92f6f1b95 100644
--- a/addons/crm/crm_installer_view.xml
+++ b/addons/crm/crm_installer_view.xml
@@ -17,6 +17,13 @@
You can enhance OpenERP's basic CRM support with a few additional OpenERP applications
+
+
+ 13
+
+
+
+ Configure
diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml
index dbfbeedf0a8..465c63ae626 100644
--- a/addons/crm/crm_lead_view.xml
+++ b/addons/crm/crm_lead_view.xml
@@ -50,7 +50,7 @@
name="convert_opportunity"
string="Convert"
help="Convert to Opportunity"
- icon="gtk-index"
+ icon="gtk-index"
type="object"/>
search
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
diff --git a/addons/crm/crm_meeting_view.xml b/addons/crm/crm_meeting_view.xml
index e2decc30340..cd3b7866a89 100644
--- a/addons/crm/crm_meeting_view.xml
+++ b/addons/crm/crm_meeting_view.xml
@@ -263,32 +263,32 @@
-
-
-
-
+
-
-
-
-
diff --git a/addons/crm/crm_opportunity_view.xml b/addons/crm/crm_opportunity_view.xml
index 407c3c53cf4..eadc4158d69 100644
--- a/addons/crm/crm_opportunity_view.xml
+++ b/addons/crm/crm_opportunity_view.xml
@@ -275,21 +275,21 @@
search
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/crm/crm_phonecall_view.xml b/addons/crm/crm_phonecall_view.xml
index c5813a38b09..db8adda789c 100644
--- a/addons/crm/crm_phonecall_view.xml
+++ b/addons/crm/crm_phonecall_view.xml
@@ -136,7 +136,7 @@
-
+
@@ -196,9 +196,9 @@
-
+
-
+
CRM - Inbound Phone Calls Tree
crm.phonecall
@@ -247,12 +247,12 @@
search
-
-
-
-
-
-
-
-
-
+
diff --git a/addons/crm/crm_report_view.xml b/addons/crm/crm_report_view.xml
index 2992959bdd0..ee5a6ac35f4 100644
--- a/addons/crm/crm_report_view.xml
+++ b/addons/crm/crm_report_view.xml
@@ -70,10 +70,10 @@
-
-
@@ -162,10 +162,10 @@
-
-
@@ -237,10 +237,10 @@
-
-
@@ -330,10 +330,10 @@
-
-
diff --git a/addons/crm/report/crm_lead_report.py b/addons/crm/report/crm_lead_report.py
index 39806c50803..db9837b5d0c 100644
--- a/addons/crm/report/crm_lead_report.py
+++ b/addons/crm/report/crm_lead_report.py
@@ -21,6 +21,7 @@
from osv import fields,osv
import tools
+from crm import crm
AVAILABLE_STATES = [
('draft','Draft'),
@@ -91,9 +92,11 @@ class crm_lead_report(osv.osv):
'create_date': fields.datetime('Create Date', readonly=True),
'day': fields.char('Day', size=128, readonly=True),
'email': fields.integer('# of Emails', size=128, readonly=True),
- 'expected_closing_days': fields.integer('# of Expected Closing Days', size=128, readonly=True),
'delay_open': fields.float('Delay to open',digits=(16,2),readonly=True, group_operator="avg",help="Number of Days to open the case"),
+ 'delay_expected': fields.float('Overpassed Deadline',digits=(16,2),readonly=True, group_operator="avg"),
'delay_close': fields.float('Delay to close',digits=(16,2),readonly=True, group_operator="avg",help="Number of Days to close the case"),
+ 'probability': fields.float('Probability',digits=(16,2),readonly=True),
+ 'planned_revenue': fields.float('Planned Revenue',digits=(16,2),readonly=True),
'categ_id': fields.many2one('crm.case.categ', 'Category',\
domain="[('section_id','=',section_id),\
('object_id.model', '=', 'crm.lead')]" , readonly=True),
@@ -101,7 +104,12 @@ class crm_lead_report(osv.osv):
domain="[('section_id','=',section_id),\
('object_id.model', '=', 'crm.lead')]", readonly=True),
'partner_id': fields.many2one('res.partner', 'Partner' , readonly=True),
+ 'opening_date': fields.date('Opening Date', readonly=True),
+ 'creation_date': fields.date('Creation Date', readonly=True),
+ 'date_closed': fields.date('Close Date', readonly=True),
'company_id': fields.many2one('res.company', 'Company', readonly=True),
+ 'priority': fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority'),
+
'type':fields.selection([
('lead','Lead'),
('opportunity','Opportunity'),
@@ -122,36 +130,47 @@ class crm_lead_report(osv.osv):
to_char(c.create_date, 'YYYY') as name,
to_char(c.create_date, 'MM') as month,
to_char(c.create_date, 'YYYY-MM-DD') as day,
+ to_char(c.create_date, 'YYYY-MM-DD') as creation_date,
+ to_char(c.date_open, 'YYYY-MM-DD') as opening_date,
+ to_char(c.date_closed, 'YYYY-mm-dd') as date_closed,
c.state as state,
c.user_id,
+ c.probability,
c.stage_id,
c.type as type,
c.company_id,
+ c.priority,
c.section_id,
c.categ_id,
c.partner_id,
- count(*) as nbr,
+ c.planned_revenue,
+ (select 1) as nbr,
0 as avg_answers,
0.0 as perc_done,
0.0 as perc_cancel,
(select count(id) from mailgate_message where thread_id=c.id) as email,
date_trunc('day',c.create_date) as create_date,
- sum(cast(to_char(date_trunc('day',c.date_open) - date_trunc('day',c.date_deadline),'DD') as int)) as expected_closing_days,
avg(extract('epoch' from (c.date_closed-c.create_date)))/(3600*24) as delay_close,
+ avg(extract('epoch' from (c.date_deadline - c.date_closed)))/(3600*24) as delay_expected,
avg(extract('epoch' from (c.date_open-c.create_date)))/(3600*24) as delay_open
from
crm_lead c
group by
to_char(c.create_date, 'YYYY'),
+ to_char(c.date_open, 'YYYY-MM-DD'),
+ to_char(c.date_closed, 'YYYY-mm-dd'),
to_char(c.create_date, 'MM'),
c.state,
c.user_id,
c.id,
c.section_id,
c.stage_id,
- categ_id,
+ c.probability,
+ c.categ_id,
c.partner_id,
+ c.planned_revenue,
c.company_id,
+ c.priority,
c.type,
c.create_date,
to_char(c.create_date, 'YYYY-MM-DD')
diff --git a/addons/crm/report/crm_lead_report_view.xml b/addons/crm/report/crm_lead_report_view.xml
index 770d9292b6f..f6ac9238b3c 100644
--- a/addons/crm/report/crm_lead_report_view.xml
+++ b/addons/crm/report/crm_lead_report_view.xml
@@ -10,19 +10,24 @@
tree
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -71,20 +76,17 @@
-
-
-
-
-
-
+
@@ -98,40 +100,51 @@
help="My section" />
-
+
-
-
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -144,23 +157,26 @@
crm.lead.report
tree
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -173,7 +189,7 @@
form
{"search_default_User":1,"search_default_This Month":1,'group_by_no_leaf':1,'group_by':[]}
tree,graph
- [('type', '=', 'lead')]
+ ['|',('type', '=', 'lead'),('type', '=', False)]
diff --git a/addons/crm/report/crm_phonecall_report.py b/addons/crm/report/crm_phonecall_report.py
index c1954f8607f..c0e666e4eaa 100644
--- a/addons/crm/report/crm_phonecall_report.py
+++ b/addons/crm/report/crm_phonecall_report.py
@@ -21,6 +21,7 @@
from osv import fields,osv
import tools
+from crm import crm
AVAILABLE_STATES = [
('draft','Draft'),
@@ -78,6 +79,7 @@ class crm_phonecall_report(osv.osv):
'name': fields.char('Year', size=64, required=False, readonly=True),
'user_id':fields.many2one('res.users', 'User', readonly=True),
'section_id':fields.many2one('crm.case.section', 'Section', readonly=True),
+ 'priority': fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority'),
'nbr': fields.integer('# of Cases', readonly=True),
'state': fields.selection(AVAILABLE_STATES, 'State', size=16, readonly=True),
'avg_answers': fields.function(_get_data, string='Avg. Answers', method=True, type="integer"),
@@ -89,15 +91,22 @@ class crm_phonecall_report(osv.osv):
('07', 'July'), ('08', 'August'),\
('09', 'September'), ('10', 'October'),\
('11', 'November'), ('12', 'December')], 'Month', readonly=True),
- 'company_id': fields.many2one('res.company', 'Company', readonly=True),
'create_date': fields.datetime('Create Date', readonly=True),
'day': fields.char('Day', size=128, readonly=True),
'delay_close': fields.float('Delay to close', digits=(16,2),readonly=True, group_operator="avg",help="Number of Days to close the case"),
+ 'duration': fields.float('Duration', digits=(16,2),readonly=True, group_operator="avg"),
+ 'delay_open': fields.float('Delay to open',digits=(16,2),readonly=True, group_operator="avg",help="Number of Days to open the case"),
'categ_id': fields.many2one('crm.case.categ', 'Category', \
domain="[('section_id','=',section_id),\
('object_id.model', '=', 'crm.phonecall')]"),
'partner_id': fields.many2one('res.partner', 'Partner' , readonly=True),
+ 'stage_id': fields.many2one ('crm.case.stage', 'Stage', \
+ domain="[('section_id','=',section_id),\
+ ('object_id.model', '=', 'crm.phonecall')]", readonly=True),
'company_id': fields.many2one('res.company', 'Company', readonly=True),
+ 'opening_date': fields.date('Opening Date', readonly=True),
+ 'creation_date': fields.date('Creation Date', readonly=True),
+ 'date_closed': fields.date('Close Date', readonly=True),
}
def init(self, cr):
@@ -114,23 +123,45 @@ class crm_phonecall_report(osv.osv):
to_char(c.create_date, 'YYYY') as name,
to_char(c.create_date, 'MM') as month,
to_char(c.create_date, 'YYYY-MM-DD') as day,
+ to_char(c.create_date, 'YYYY-MM-DD') as creation_date,
+ to_char(c.date_open, 'YYYY-MM-DD') as opening_date,
+ to_char(c.date_closed, 'YYYY-mm-dd') as date_closed,
+ c.state,
+ c.user_id,
+ c.section_id,
+ c.categ_id,
+ c.partner_id,
+ c.stage_id,
+ c.duration,
+ c.company_id,
+ c.priority,
+ (select 1) as nbr,
+ 0 as avg_answers,
+ 0.0 as perc_done,
+ 0.0 as perc_cancel,
+ date_trunc('day',c.create_date) as create_date,
+ avg(extract('epoch' from (c.date_closed-c.create_date)))/(3600*24) as delay_close,
+ avg(extract('epoch' from (c.date_open-c.create_date)))/(3600*24) as delay_open
+
+ from
+ crm_phonecall c
+ where c.categ_id in (select res_id from ir_model_data where (name = 'categ_phone1' or name ='categ_phone2'))
+ group by
+ to_char(c.create_date, 'YYYY'),
+ to_char(c.create_date, 'MM'),\
c.state,
c.user_id,
c.section_id,
c.categ_id,
c.partner_id,
c.company_id,
- count(*) as nbr,
- 0 as avg_answers,
- 0.0 as perc_done,
- 0.0 as perc_cancel,
- date_trunc('day',c.create_date) as create_date,
- avg(extract('epoch' from (c.date_closed-c.create_date)))/(3600*24) as delay_close
- from
- crm_phonecall c
- group by to_char(c.create_date, 'YYYY'), to_char(c.create_date, 'MM'),\
- c.state, c.user_id,c.section_id, c.categ_id,c.partner_id,c.company_id
- ,to_char(c.create_date, 'YYYY-MM-DD'),c.create_date
+ c.duration,
+ c.priority,
+ to_char(c.date_open, 'YYYY-MM-DD'),
+ to_char(c.date_closed, 'YYYY-mm-dd'),
+ c.stage_id,
+ to_char(c.create_date, 'YYYY-MM-DD'),
+ c.create_date
)""")
crm_phonecall_report()
diff --git a/addons/crm/report/crm_phonecall_report_view.xml b/addons/crm/report/crm_phonecall_report_view.xml
index 4e57ba1d474..ddc50460e31 100644
--- a/addons/crm/report/crm_phonecall_report_view.xml
+++ b/addons/crm/report/crm_phonecall_report_view.xml
@@ -10,18 +10,22 @@
tree
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+
@@ -36,9 +40,9 @@
-
+
-
+
@@ -73,97 +77,86 @@
-
-
-
+
-
-
+
-
+
-
-
-
-
-
-
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
diff --git a/addons/crm/wizard/crm_forward_to_partner.py b/addons/crm/wizard/crm_forward_to_partner.py
index 156ab3311f4..945066506d7 100644
--- a/addons/crm/wizard/crm_forward_to_partner.py
+++ b/addons/crm/wizard/crm_forward_to_partner.py
@@ -107,8 +107,8 @@ class crm_lead_forward_to_partner(osv.osv_memory):
#TODO: ids and context are not comming
res = False
msg_val = ''
- res_id = False # Comes from context
- model = None # Comes from context
+ res_id = context.get('active_id')
+ model = context.get('active_model')
model_pool = self.pool.get(model)
if not res_id or not model:
return res
diff --git a/addons/crm/wizard/crm_forward_to_partner_view.xml b/addons/crm/wizard/crm_forward_to_partner_view.xml
index 1e8c6fc8583..b6295cfa3a9 100644
--- a/addons/crm/wizard/crm_forward_to_partner_view.xml
+++ b/addons/crm/wizard/crm_forward_to_partner_view.xml
@@ -9,7 +9,7 @@
diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml
index 1dc0cd5a561..d912534bbc2 100644
--- a/addons/document/document_view.xml
+++ b/addons/document/document_view.xml
@@ -233,22 +233,22 @@
search
-
-
-
-
+
-
+
diff --git a/addons/document/report/document_report_view.xml b/addons/document/report/document_report_view.xml
index 4afc66fb4d7..00743d768e7 100644
--- a/addons/document/report/document_report_view.xml
+++ b/addons/document/report/document_report_view.xml
@@ -41,8 +41,8 @@
-
-
+
+
diff --git a/addons/email_template/email_template_account_view.xml b/addons/email_template/email_template_account_view.xml
index 5f11fa033f4..573b03e7027 100755
--- a/addons/email_template/email_template_account_view.xml
+++ b/addons/email_template/email_template_account_view.xml
@@ -1,10 +1,10 @@
-
+
-
+
email_template.account.form
email_template.account
@@ -74,12 +74,12 @@
search
-
-
-
+
+
+
-
-
+
+
diff --git a/addons/email_template/email_template_mailbox_view.xml b/addons/email_template/email_template_mailbox_view.xml
index e6ff86d1087..f94fa886ee6 100755
--- a/addons/email_template/email_template_mailbox_view.xml
+++ b/addons/email_template/email_template_mailbox_view.xml
@@ -129,14 +129,14 @@
search
-
-
+
+
-
-
+
+
-
-
+
+
diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml
index 8bc1712dbf9..a238f637dad 100644
--- a/addons/event/event_view.xml
+++ b/addons/event/event_view.xml
@@ -127,8 +127,8 @@
-
-
+
+
@@ -282,8 +282,8 @@
-
-
+
+
diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml
index 36524395355..75da20cef20 100644
--- a/addons/hr/hr_view.xml
+++ b/addons/hr/hr_view.xml
@@ -106,7 +106,7 @@
search
-
@@ -114,12 +114,12 @@
-
-
-
+
+
+
-
-
+
+
@@ -358,15 +358,15 @@
search
-
-
-
@@ -374,7 +374,7 @@
-
diff --git a/addons/hr/i18n/hr.po b/addons/hr/i18n/hr.po
index 28004486e04..d342519af6c 100644
--- a/addons/hr/i18n/hr.po
+++ b/addons/hr/i18n/hr.po
@@ -1,162 +1,163 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
-# * hr
-#
+# * hr
+# Drazen Bosak , 2010.
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-02-03 06:25+0000\n"
-"Last-Translator: <>\n"
+"PO-Revision-Date: 2010-06-07 21:48+0000\n"
+"Last-Translator: Drazen Bosak \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-04-17 04:16+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
+"Language: hr\n"
#. module: hr
#: model:process.node,name:hr.process_node_openerpuser0
#: model:process.transition,name:hr.process_transition_employeeuser0
msgid "Openerp user"
-msgstr ""
+msgstr "OpenERP korisnik"
#. module: hr
#: model:ir.actions.act_window,name:hr.edit_workgroup
#: model:ir.ui.menu,name:hr.menu_edit_workgroup
msgid "Working Time Categories"
-msgstr ""
+msgstr "Kategorije radnog vremena"
#. module: hr
#: constraint:hr.department:0
msgid "Error! You can not create recursive departments."
-msgstr ""
+msgstr "Greška! Ne možete kreirati rekurzivne odjele!"
#. module: hr
#: field:hr.employee,sinid:0
msgid "SIN No"
-msgstr ""
+msgstr "SIN No"
#. module: hr
#: model:ir.module.module,shortdesc:hr.module_meta_information
#: model:ir.ui.menu,name:hr.menu_hr_root
msgid "Human Resources"
-msgstr ""
+msgstr "Ljudski Resursi"
#. module: hr
#: selection:hr.timesheet,dayofweek:0
msgid "Sunday"
-msgstr ""
+msgstr "Nedjelja"
#. module: hr
#: view:res.users:0
msgid "Parents"
-msgstr ""
+msgstr "Roditelji"
#. module: hr
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr ""
+msgstr "Nepravilno ime modela u definiciji radnje."
#. module: hr
#: view:hr.department:0
msgid "Department"
-msgstr ""
+msgstr "Odjel"
#. module: hr
#: model:process.transition,name:hr.process_transition_contactofemployee0
msgid "Contact of employee"
-msgstr ""
+msgstr "Kontakt Djelatnika"
#. module: hr
#: field:hr.employee,work_email:0
msgid "Work Email"
-msgstr ""
+msgstr "Poslovni Email"
#. module: hr
#: field:hr.timesheet.group,name:0
msgid "Group name"
-msgstr ""
+msgstr "Ime Grupe"
#. module: hr
#: field:hr.department,company_id:0
#: field:hr.employee,company_id:0
msgid "Company"
-msgstr ""
+msgstr "Tvrtka"
#. module: hr
#: selection:hr.timesheet,dayofweek:0
msgid "Friday"
-msgstr ""
+msgstr "Petak"
#. module: hr
#: field:hr.department,parent_id:0
msgid "Parent Department"
-msgstr ""
+msgstr "Ishodni Odjel"
#. module: hr
#: view:hr.department:0
#: view:hr.employee:0
#: field:hr.employee,notes:0
msgid "Notes"
-msgstr ""
+msgstr "Bilješke"
#. module: hr
#: field:hr.timesheet,hour_from:0
msgid "Work from"
-msgstr ""
+msgstr "Posao od"
#. module: hr
#: model:ir.actions.act_window,name:hr.action2
msgid "Employee Hierarchy"
-msgstr ""
+msgstr "Hijerarhija Djelatnika"
#. module: hr
#: model:ir.ui.menu,name:hr.menu_hr_configuration
msgid "Configuration"
-msgstr ""
+msgstr "Konfiguracija"
#. module: hr
#: selection:hr.employee,marital:0
msgid "Unmaried"
-msgstr ""
+msgstr "Nije u braku"
#. module: hr
#: selection:hr.employee,gender:0
msgid "Female"
-msgstr ""
+msgstr "Žensko"
#. module: hr
#: view:hr.timesheet.group:0
msgid "Working Time Category"
-msgstr ""
+msgstr "Kategorija radnog vremena"
#. module: hr
#: model:ir.actions.act_window,name:hr.open_view_employee_tree
#: model:ir.ui.menu,name:hr.menu_open_view_employee_tree
msgid "Employees Structure"
-msgstr ""
+msgstr "Struktura Djelatnika"
#. module: hr
#: view:hr.employee:0
msgid "Social IDs"
-msgstr ""
+msgstr "Osobni ID brojevi"
#. module: hr
#: field:hr.employee,work_phone:0
msgid "Work Phone"
-msgstr ""
+msgstr "Poslovni telefon"
#. module: hr
#: field:hr.employee.category,child_ids:0
msgid "Child Categories"
-msgstr ""
+msgstr "Slijedne Kategorije"
#. module: hr
#: field:hr.employee,work_location:0
msgid "Office Location"
-msgstr ""
+msgstr "Lokacija ureda"
#. module: hr
#: view:hr.employee:0
@@ -164,52 +165,52 @@ msgstr ""
#: model:ir.model,name:hr.model_hr_employee
#: model:process.node,name:hr.process_node_employee0
msgid "Employee"
-msgstr ""
+msgstr "Djelatnik"
#. module: hr
#: field:hr.timesheet.group,manager:0
msgid "Workgroup manager"
-msgstr ""
+msgstr "Voditelj Radne Grupe"
#. module: hr
#: field:hr.employee,child_ids:0
msgid "Subordinates"
-msgstr ""
+msgstr "Podređeni Djelatnici"
#. module: hr
#: model:ir.ui.menu,name:hr.menu_hr_reporting
msgid "Reporting"
-msgstr ""
+msgstr "Izvještavanje"
#. module: hr
#: field:hr.department,member_ids:0
msgid "Members"
-msgstr ""
+msgstr "Članovi"
#. module: hr
#: field:hr.employee,ssnid:0
msgid "SSN No"
-msgstr ""
+msgstr "SSN No"
#. module: hr
#: model:process.transition,note:hr.process_transition_contactofemployee0
msgid "Fill up contact information"
-msgstr ""
+msgstr "Ispunite kontakt podatke"
#. module: hr
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
-msgstr ""
+msgstr "Neispravan XML za Arhitekturu Prikaza!"
#. module: hr
#: selection:hr.employee,marital:0
msgid "Divorced"
-msgstr ""
+msgstr "Razveden-a"
#. module: hr
#: field:hr.employee.category,parent_id:0
msgid "Parent Category"
-msgstr ""
+msgstr "Ishodna Kategorija"
#. module: hr
#: model:ir.actions.act_window,name:hr.open_module_tree_department
@@ -217,276 +218,277 @@ msgstr ""
#: model:ir.ui.menu,name:hr.menu_department_def
#: model:ir.ui.menu,name:hr.menu_department_tree
msgid "Departments"
-msgstr ""
+msgstr "Odjeli"
#. module: hr
#: model:process.node,name:hr.process_node_employeecontact0
msgid "Employee Contact"
-msgstr ""
+msgstr "Kontakt Djelatnika"
#. module: hr
#: selection:hr.employee,marital:0
msgid "Maried"
-msgstr ""
+msgstr "U braku"
#. module: hr
#: field:hr.timesheet,tgroup_id:0
msgid "Employee's timesheet group"
-msgstr ""
+msgstr "Grupa kontrolnih kartica Djelatnika"
#. module: hr
#: selection:hr.employee,gender:0
msgid "Male"
-msgstr ""
+msgstr "Muško"
#. module: hr
#: model:process.transition,note:hr.process_transition_employeeuser0
msgid "Create openerp user"
-msgstr ""
+msgstr "Kreiraj OpenERP Korisnika"
#. module: hr
#: view:hr.employee.category:0
#: model:ir.model,name:hr.model_hr_employee_category
msgid "Employee Category"
-msgstr ""
+msgstr "Kategorija Djelatnika"
#. module: hr
#: selection:hr.timesheet,dayofweek:0
msgid "Tuesday"
-msgstr ""
+msgstr "Utorak"
#. module: hr
#: model:ir.model,name:hr.model_hr_department
msgid "hr.department"
-msgstr ""
+msgstr "Odjel Ljudskih Resursa"
#. module: hr
#: field:hr.employee,user_id:0
msgid "Related User"
-msgstr ""
+msgstr "Povezani Korisnik"
#. module: hr
#: field:hr.employee,category_id:0
#: field:hr.employee.category,name:0
msgid "Category"
-msgstr ""
+msgstr "Kategorija"
#. module: hr
#: field:hr.department,note:0
msgid "Note"
-msgstr ""
+msgstr "Bilješka"
#. module: hr
#: view:hr.employee:0
msgid "Contact Information"
-msgstr ""
+msgstr "Kontakt podaci"
#. module: hr
#: view:hr.employee:0
msgid "Status"
-msgstr ""
+msgstr "Status"
#. module: hr
#: selection:hr.timesheet,dayofweek:0
msgid "Monday"
-msgstr ""
+msgstr "Ponedjeljak"
#. module: hr
#: model:ir.actions.act_window,name:hr.open_view_categ_tree
#: model:ir.ui.menu,name:hr.menu_view_employee_category_tree
msgid "Categories structure"
-msgstr ""
+msgstr "Struktura Kategorija"
#. module: hr
#: field:hr.timesheet,dayofweek:0
msgid "Day of week"
-msgstr ""
+msgstr "Dan u tjednu"
#. module: hr
#: field:hr.employee,birthday:0
msgid "Birthday"
-msgstr ""
+msgstr "Rođendan"
#. module: hr
#: field:hr.employee,active:0
msgid "Active"
-msgstr ""
+msgstr "Aktivan"
#. module: hr
#: constraint:hr.employee:0
msgid "Error ! You cannot create recursive Hierarchy of Employees."
-msgstr ""
+msgstr "Greška! Ne možete kreirati rekurzivnu Hijerarhiju Djelatnika"
#. module: hr
#: model:process.process,name:hr.process_process_employeecontractprocess0
msgid "Employee Contract Process"
-msgstr ""
+msgstr "Proces rada s Ugovorom Djelatnika"
#. module: hr
#: model:process.node,note:hr.process_node_openerpuser0
msgid "Create OpenERP User"
-msgstr ""
+msgstr "Kreiraj OpenERP Korisnika"
#. module: hr
#: model:process.node,note:hr.process_node_employee0
msgid "Employee Complete Form"
-msgstr ""
+msgstr "Cjelovit formular Djelatnika"
#. module: hr
#: view:hr.department:0
msgid "Companies"
-msgstr ""
+msgstr "Tvrtke"
#. module: hr
#: selection:hr.timesheet,dayofweek:0
msgid "Wednesday"
-msgstr ""
+msgstr "Srijeda"
#. module: hr
#: model:ir.actions.act_window,name:hr.open_view_categ_form
#: model:ir.ui.menu,name:hr.menu_view_employee_category_form
msgid "Categories of Employee"
-msgstr ""
+msgstr "Kategorije djelatnika"
#. module: hr
#: field:hr.timesheet,date_from:0
msgid "Starting date"
-msgstr ""
+msgstr "Početni datum"
#. module: hr
#: field:res.users,parent_id:0
msgid "Parent Users"
-msgstr ""
+msgstr "Ishodni korisnici"
#. module: hr
#: field:hr.employee,address_id:0
msgid "Working Address"
-msgstr ""
+msgstr "Poslovna adresa"
#. module: hr
#: field:hr.employee,marital:0
msgid "Marital Status"
-msgstr ""
+msgstr "Bračni status"
#. module: hr
#: model:ir.model,name:hr.model_hr_timesheet
msgid "Timesheet Line"
-msgstr ""
+msgstr "Niz Kontrolne kartice"
#. module: hr
#: view:hr.employee:0
msgid "Personal Information"
-msgstr ""
+msgstr "Osobni podaci"
#. module: hr
#: constraint:ir.model:0
msgid ""
"The Object name must start with x_ and not contain any special character !"
msgstr ""
+"Naziv Objekta mora početi s x_ i ne smije sadržavati bilo koji posebni znak !"
#. module: hr
#: view:hr.timesheet:0
#: field:hr.timesheet.group,timesheet_id:0
#: model:ir.model,name:hr.model_hr_timesheet_group
msgid "Working Time"
-msgstr ""
+msgstr "Radno vrijeme"
#. module: hr
#: selection:hr.timesheet,dayofweek:0
msgid "Thursday"
-msgstr ""
+msgstr "Četvrtak"
#. module: hr
#: field:hr.timesheet,hour_to:0
msgid "Work to"
-msgstr ""
+msgstr "Rad do"
#. module: hr
#: selection:hr.employee,marital:0
msgid "Other"
-msgstr ""
+msgstr "Drugi"
#. module: hr
#: view:hr.employee.category:0
msgid "Employees Categories"
-msgstr ""
+msgstr "Kategorije Djelatnika"
#. module: hr
#: field:hr.employee,address_home_id:0
msgid "Home Address"
-msgstr ""
+msgstr "Kućna adresa"
#. module: hr
#: view:hr.department:0
msgid "department"
-msgstr ""
+msgstr "Odjel"
#. module: hr
#: field:hr.employee,country_id:0
msgid "Nationality"
-msgstr ""
+msgstr "Narodnost"
#. module: hr
#: field:hr.employee,otherid:0
msgid "Other ID"
-msgstr ""
+msgstr "Drugi ID broj"
#. module: hr
#: field:hr.timesheet,name:0
msgid "Name"
-msgstr ""
+msgstr "Ime"
#. module: hr
#: field:hr.employee,gender:0
msgid "Gender"
-msgstr ""
+msgstr "Spol"
#. module: hr
#: view:hr.employee:0
#: model:ir.actions.act_window,name:hr.open_view_employee_list
#: model:ir.ui.menu,name:hr.menu_open_view_employee_list
msgid "Employees"
-msgstr ""
+msgstr "Djelatnici"
#. module: hr
#: field:hr.department,name:0
msgid "Department Name"
-msgstr ""
+msgstr "Ime Odjela"
#. module: hr
#: field:hr.department,child_ids:0
msgid "Child Departments"
-msgstr ""
+msgstr "Slijedni Odjeli"
#. module: hr
#: view:hr.employee:0
msgid "Job Information"
-msgstr ""
+msgstr "Poslovni podaci"
#. module: hr
#: model:process.node,note:hr.process_node_employeecontact0
msgid "Fill up employee's contact information"
-msgstr ""
+msgstr "Ispunite kontakt podatke Djelatnika"
#. module: hr
#: field:hr.department,manager_id:0
#: field:hr.employee,parent_id:0
msgid "Manager"
-msgstr ""
+msgstr "Voditelj"
#. module: hr
#: model:ir.actions.act_window,name:hr.open_view_employee_list_my
#: model:ir.ui.menu,name:hr.menu_open_view_employee_list_my
msgid "All Employees"
-msgstr ""
+msgstr "Svi Djelatnici"
#. module: hr
#: selection:hr.timesheet,dayofweek:0
msgid "Saturday"
-msgstr ""
+msgstr "Subota"
#. module: hr
#: model:ir.actions.act_window,name:hr.open_view_employee_new
#: model:ir.ui.menu,name:hr.menu_open_view_employee_new
msgid "New Employee"
-msgstr ""
+msgstr "Novi Djelatnik"
diff --git a/addons/hr_attendance/hr_attendance_view.xml b/addons/hr_attendance/hr_attendance_view.xml
index 8b9a68575b0..e3db974ebb5 100644
--- a/addons/hr_attendance/hr_attendance_view.xml
+++ b/addons/hr_attendance/hr_attendance_view.xml
@@ -48,16 +48,16 @@
search
-
-
+
+
-
-
-
+
+
+
diff --git a/addons/hr_contract/hr_contract_view.xml b/addons/hr_contract/hr_contract_view.xml
index e4e8259bda4..84cc82ebe8b 100644
--- a/addons/hr_contract/hr_contract_view.xml
+++ b/addons/hr_contract/hr_contract_view.xml
@@ -146,8 +146,8 @@
-
-
+
+
diff --git a/addons/hr_evaluation/hr_evaluation_view.xml b/addons/hr_evaluation/hr_evaluation_view.xml
index d02c76bc44c..a3e4cac2a5f 100644
--- a/addons/hr_evaluation/hr_evaluation_view.xml
+++ b/addons/hr_evaluation/hr_evaluation_view.xml
@@ -13,8 +13,8 @@
-
-
+
+
@@ -243,15 +243,15 @@
-
-
-
+
+
+
-
-
@@ -261,12 +261,12 @@
-
-
-
-
+
+
+
+
-
+
@@ -344,10 +344,10 @@
-
+
-
+
diff --git a/addons/hr_evaluation/i18n/hr.po b/addons/hr_evaluation/i18n/hr.po
new file mode 100644
index 00000000000..4c93f32f7de
--- /dev/null
+++ b/addons/hr_evaluation/i18n/hr.po
@@ -0,0 +1,277 @@
+# Croatian 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: 2009-11-25 12:18+0000\n"
+"PO-Revision-Date: 2010-06-06 23:51+0000\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: Croatian
\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
+"X-Generator: Launchpad (build Unknown)\n"
+
+#. module: hr_evaluation
+#: view:hr_evaluation.type:0
+#: field:hr_evaluation.type,info:0
+msgid "Information"
+msgstr ""
+
+#. module: hr_evaluation
+#: constraint:ir.model:0
+msgid ""
+"The Object name must start with x_ and not contain any special character !"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+msgid "Schedule next evaluation"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+#: field:hr_evaluation.evaluation,info_bad:0
+msgid "Bad Points"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.actions.act_window,name:hr_evaluation.open_view_employee_evaluation_next_my_list
+msgid "My Next Evaluation"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.type,value_ids:0
+msgid "Values"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+#: field:hr_evaluation.evaluation,info_good:0
+msgid "Good Points"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.evaluation,state:0
+msgid "State"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.evaluation,score:0
+#: field:hr_evaluation.quote,score:0
+#: field:hr_evaluation.type,score:0
+#: field:hr_evaluation.type.value,score:0
+msgid "Score"
+msgstr ""
+
+#. module: hr_evaluation
+#: selection:hr_evaluation.evaluation,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+msgid "Informal Data"
+msgstr ""
+
+#. module: hr_evaluation
+#: constraint:ir.actions.act_window:0
+msgid "Invalid model name in the action definition."
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.evaluation,employee_id:0
+msgid "Employee"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+#: field:hr_evaluation.evaluation,info_improve:0
+msgid "To Improve"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.quote,evaluation_id:0
+msgid "Evaluation"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.type.value,type_id:0
+msgid "Evaluation Type"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+msgid "Status"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.type:0
+msgid "Apply to categories"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.module.module,description:hr_evaluation.module_meta_information
+msgid "Ability to create employees evaluation."
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.quote,name:0
+msgid "Quote"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.type,category_ids:0
+msgid "Appliable Role"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.evaluation,user_id:0
+msgid "Evaluation User"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.type:0
+msgid "Choices Results"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.evaluation,date:0
+msgid "Date"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.ui.menu,name:hr_evaluation.menu_eval_hr
+#: model:ir.ui.menu,name:hr_evaluation.menu_open_view_employee_evaluation_form
+msgid "Evaluations"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.ui.menu,name:hr_evaluation.menu_eval_config
+msgid "Configuration"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.ui.menu,name:hr_evaluation.menu_open_view_employee_evaluation_next_list
+msgid "Next Evaluations"
+msgstr ""
+
+#. module: hr_evaluation
+#: constraint:ir.ui.view:0
+msgid "Invalid XML for View Architecture!"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.ui.menu,name:hr_evaluation.menu_open_view_evaluation_type_form
+msgid "Evaluation Criterions"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.ui.menu,name:hr_evaluation.menu_open_view_employee_my_old_evaluation_list
+msgid "My Preceeding Evaluations"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.ui.menu,name:hr_evaluation.menu_resp_hr
+msgid "HR Responsible"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.quote,value_id:0
+#: field:hr_evaluation.type.value,name:0
+msgid "Value"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.evaluation,name:0
+msgid "Summary"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.type,active:0
+msgid "Active"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.type:0
+msgid "Notes"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+#: model:ir.model,name:hr_evaluation.model_hr_evaluation_evaluation
+msgid "Employee Evaluation"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.model,name:hr_evaluation.model_hr_evaluation_type
+msgid "Employee Evaluation Type"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+msgid "Quotations"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.actions.act_window,name:hr_evaluation.open_view_employee_evaluation_next_list
+msgid "Next Employee Evaluation"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.quote,type_id:0
+msgid "Type"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.type:0
+#: field:hr_evaluation.type,name:0
+msgid "Evaluation Criterion"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.ui.menu,name:hr_evaluation.menu_open_view_employee_evaluation_next_my_list
+msgid "My Next Evaluations"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.quote:0
+msgid "Evalution Quote"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.module.module,shortdesc:hr_evaluation.module_meta_information
+msgid "Human Resources Evaluation"
+msgstr ""
+
+#. module: hr_evaluation
+#: field:hr_evaluation.evaluation,quote_ids:0
+msgid "Quotes"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+#: selection:hr_evaluation.evaluation,state:0
+msgid "Done"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.model,name:hr_evaluation.model_hr_evaluation_quote
+msgid "Employee Evaluation Quote"
+msgstr ""
+
+#. module: hr_evaluation
+#: view:hr_evaluation.evaluation:0
+#: field:hr_evaluation.evaluation,info_employee:0
+msgid "Employee Response"
+msgstr ""
+
+#. module: hr_evaluation
+#: model:ir.model,name:hr_evaluation.model_hr_evaluation_type_value
+msgid "Evaluation Type Value"
+msgstr ""
diff --git a/addons/hr_evaluation/report/hr_evaluation_report_view.xml b/addons/hr_evaluation/report/hr_evaluation_report_view.xml
index 6ccd1e80ab9..5406a7a3fbd 100644
--- a/addons/hr_evaluation/report/hr_evaluation_report_view.xml
+++ b/addons/hr_evaluation/report/hr_evaluation_report_view.xml
@@ -42,32 +42,32 @@
-
-
-
-
@@ -75,16 +75,16 @@
-
-
-
+
+
+
-
-
+
+
-
-
-
+
+
+
diff --git a/addons/hr_expense/__openerp__.py b/addons/hr_expense/__openerp__.py
index 83113558c43..08103af1b68 100644
--- a/addons/hr_expense/__openerp__.py
+++ b/addons/hr_expense/__openerp__.py
@@ -40,7 +40,7 @@
""",
'author': 'Tiny',
'website': 'http://www.openerp.com',
- 'depends': ['hr', 'account', 'account_tax_include'],
+ 'depends': ['hr', 'account'],
'init_xml': [],
'update_xml': [
'security/ir.model.access.csv',
diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py
index 820d3467660..e0d55bee5fe 100644
--- a/addons/hr_expense/hr_expense.py
+++ b/addons/hr_expense/hr_expense.py
@@ -153,7 +153,6 @@ class hr_expense_expense(osv.osv):
'address_contact_id': exp.employee_id.address_id.id,
'origin': exp.name,
'invoice_line': lines,
- 'price_type': 'tax_included',
'currency_id': exp.currency_id.id,
'payment_term': payment_term_id,
'fiscal_position': exp.employee_id.address_id.partner_id.property_account_position.id
diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml
index abce10e80f3..35ffc931831 100644
--- a/addons/hr_expense/hr_expense_view.xml
+++ b/addons/hr_expense/hr_expense_view.xml
@@ -127,18 +127,18 @@
@@ -146,18 +146,18 @@
-
-
-
-
+
+
+
-
+
diff --git a/addons/hr_expense/report/hr_expense_report.py b/addons/hr_expense/report/hr_expense_report.py
index 2b0f6b4addf..85fa541ec10 100644
--- a/addons/hr_expense/report/hr_expense_report.py
+++ b/addons/hr_expense/report/hr_expense_report.py
@@ -29,7 +29,7 @@ class hr_expense_report(osv.osv):
_auto = False
_rec_name = 'date'
_columns = {
- 'date': fields.date('Date', readonly=True),
+ 'date': fields.date('Date ', readonly=True),
'year': fields.char('Year', size=4, readonly=True),
'day': fields.char('Day', size=128, readonly=True),
'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'),
@@ -44,9 +44,11 @@ class hr_expense_report(osv.osv):
'invoice_id': fields.many2one('account.invoice', 'Invoice',readonly=True),
'department_id':fields.many2one('hr.department','Department',readonly=True),
'company_id':fields.many2one('res.company', 'Company', readonly=True),
- 'user_id':fields.many2one('res.users', 'User', readonly=True),
+ 'user_id':fields.many2one('res.users', 'Validation User', readonly=True),
'currency_id': fields.many2one('res.currency', 'Currency', readonly=True),
'price_total':fields.float('Total Price', readonly=True),
+ 'delay_valid':fields.float('Delay Valid', readonly=True),
+ 'delay_confirm':fields.float('Delay Confirm', readonly=True),
'analytic_account': fields.many2one('account.analytic.account','Analytic account',readonly=True),
'price_average':fields.float('Average Price', readonly=True),
'nbr':fields.integer('# of Lines', readonly=True),
@@ -75,20 +77,22 @@ class hr_expense_report(osv.osv):
to_date(to_char(s.date_confirm, 'dd-MM-YYYY'),'dd-MM-YYYY') as date_confirm,
to_date(to_char(s.date_valid, 'dd-MM-YYYY'),'dd-MM-YYYY') as date_valid,
s.invoice_id,
+ s.user_valid as user_id,
s.department_id,
to_char(date_trunc('day',s.create_date), 'YYYY') as year,
to_char(date_trunc('day',s.create_date), 'MM') as month,
to_char(date_trunc('day',s.create_date), 'YYYY-MM-DD') as day,
+ avg(extract('epoch' from age(s.date_valid,s.date)))/(3600*24) as delay_valid,
+ avg(extract('epoch' from age(s.date_valid,s.date_confirm)))/(3600*24) as delay_confirm,
l.product_id as product_id,
l.analytic_account as analytic_account,
sum(l.unit_quantity * u.factor) as product_qty,
- s.user_id as user_id,
s.company_id as company_id,
sum(l.unit_quantity*l.unit_amount) as price_total,
(sum(l.unit_quantity*l.unit_amount)/sum(l.unit_quantity * u.factor))::decimal(16,2) as price_average,
count(*) as nbr,
(select unit_quantity from hr_expense_line where id=l.id and product_id is not null) as no_of_products,
- (select count(analytic_account) from hr_expense_line where id=l.id and analytic_account is not null) as no_of_account,
+ (select analytic_account from hr_expense_line where id=l.id and analytic_account is not null) as no_of_account,
s.state
from hr_expense_line l
left join hr_expense_expense s on (s.id=l.expense_id)
@@ -104,10 +108,10 @@ class hr_expense_report(osv.osv):
l.analytic_account,
s.invoice_id,
s.currency_id,
+ s.user_valid,
s.department_id,
l.uom_id,
l.id,
- s.user_id,
s.state,
s.journal_id,
s.company_id,
diff --git a/addons/hr_expense/report/hr_expense_report_view.xml b/addons/hr_expense/report/hr_expense_report_view.xml
index 6507ff87342..bcc560573ab 100644
--- a/addons/hr_expense/report/hr_expense_report_view.xml
+++ b/addons/hr_expense/report/hr_expense_report_view.xml
@@ -9,7 +9,6 @@
-
@@ -21,12 +20,13 @@
+
-
+
+
-
@@ -37,7 +37,7 @@
graph
-
+
@@ -51,73 +51,74 @@
-
-
-
+
-
-
-
-
-
+
-
-
-
+
+
-
-
-
+
-
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
@@ -128,7 +129,7 @@
hr.expense.report
form
tree,graph
- {'search_default_month':1,'search_default_User':1,'group_by_no_leaf':1,'group_by':[]}
+ {'search_default_month':1,'search_default_employee':1,'group_by_no_leaf':1,'group_by':[]}
diff --git a/addons/hr_holidays/hr_holidays_view.xml b/addons/hr_holidays/hr_holidays_view.xml
index 74546ff1388..fc9626d831d 100644
--- a/addons/hr_holidays/hr_holidays_view.xml
+++ b/addons/hr_holidays/hr_holidays_view.xml
@@ -8,27 +8,27 @@
-
-
-
+
+
-
-
-
-
-
+
+
+
+
-
-
+
diff --git a/addons/hr_holidays/report/available_holidays_view.xml b/addons/hr_holidays/report/available_holidays_view.xml
index 34f14271758..5fd9a9c0199 100644
--- a/addons/hr_holidays/report/available_holidays_view.xml
+++ b/addons/hr_holidays/report/available_holidays_view.xml
@@ -48,21 +48,21 @@
-
-
-
-
-
-
@@ -82,15 +82,15 @@
-
-
+
+
-
-
+
+
-
-
-
+
+
+
diff --git a/addons/hr_holidays/report/hr_holidays_report_view.xml b/addons/hr_holidays/report/hr_holidays_report_view.xml
index b6afe32fb25..24ea6745270 100644
--- a/addons/hr_holidays/report/hr_holidays_report_view.xml
+++ b/addons/hr_holidays/report/hr_holidays_report_view.xml
@@ -45,36 +45,36 @@
-
-
-
-
-
@@ -83,20 +83,20 @@
-
-
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
@@ -105,7 +105,7 @@
-
diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml
index 65d5db06fe3..5183587e992 100644
--- a/addons/hr_recruitment/hr_recruitment_view.xml
+++ b/addons/hr_recruitment/hr_recruitment_view.xml
@@ -216,20 +216,20 @@
search
-
-
-
-
@@ -238,27 +238,27 @@
-
+
-
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
+
-
+
diff --git a/addons/hr_recruitment/report/hr_recruitment_report_view.xml b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
index 8a9e913a454..4fca4a8b239 100644
--- a/addons/hr_recruitment/report/hr_recruitment_report_view.xml
+++ b/addons/hr_recruitment/report/hr_recruitment_report_view.xml
@@ -47,29 +47,29 @@
-
-
-
@@ -83,21 +83,21 @@
-
-
-
-
+
+
+
+
-
-
+
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/addons/hr_timesheet/hr_timesheet_view.xml b/addons/hr_timesheet/hr_timesheet_view.xml
index d7c12b14df7..947f0d34c41 100644
--- a/addons/hr_timesheet/hr_timesheet_view.xml
+++ b/addons/hr_timesheet/hr_timesheet_view.xml
@@ -50,7 +50,7 @@
-
+
diff --git a/addons/hr_timesheet/i18n/hr.po b/addons/hr_timesheet/i18n/hr.po
index b86674b1aa8..6e180f8cd55 100644
--- a/addons/hr_timesheet/i18n/hr.po
+++ b/addons/hr_timesheet/i18n/hr.po
@@ -1,382 +1,388 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
-# * hr_timesheet
-#
+# * hr_timesheet_sheet
+# Drazen Bosak , 2010.
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-02-03 06:25+0000\n"
-"Last-Translator: <>\n"
+"PO-Revision-Date: 2010-06-07 21:18+0000\n"
+"Last-Translator: Drazen Bosak \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-04-17 04:11+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
+"Language: hr\n"
#. module: hr_timesheet
#: wizard_view:hr.analytical.timesheet,init:0
#: wizard_view:hr.analytical.timesheet.my,init:0
msgid "Choose your month"
-msgstr ""
+msgstr "Izaberite svoj mjesec"
#. module: hr_timesheet
#: constraint:ir.model:0
msgid ""
"The Object name must start with x_ and not contain any special character !"
msgstr ""
+"Naziv Objekta mora početi s x_ i ne smije sadržavati bilo koji posebni znak !"
#. module: hr_timesheet
#: model:ir.actions.report.xml,name:hr_timesheet.report_user_timesheet
msgid "Employee timesheet"
-msgstr ""
+msgstr "Kontrolna kartica Djelatnika"
#. module: hr_timesheet
#: model:ir.actions.wizard,name:hr_timesheet.si_so
#: model:ir.ui.menu,name:hr_timesheet.menu_si_so
msgid "Sign in / Sign out by project"
-msgstr ""
+msgstr "Prijava / Odjava po Projektu"
#. module: hr_timesheet
#: wizard_button:hr_timesheet.si_so,sign_in,so_result_end:0
msgid "Stop Working"
-msgstr ""
+msgstr "Prestanite s radom"
#. module: hr_timesheet
#: wizard_view:hr_timesheet.si_so,sign_in:0
msgid "(Keep empty for current_time)"
-msgstr ""
+msgstr "(Treba ostati prazno za current_time)"
#. module: hr_timesheet
#: constraint:product.template:0
msgid ""
"Error: The default UOM and the purchase UOM must be in the same category."
msgstr ""
+"Greška: Zadana Jedinica Mjere (JM) i kupovna Jedinica Mjere (JM) moraju biti "
+"u istoj kategoriji."
#. module: hr_timesheet
#: wizard_view:hr_timesheet.si_so,sign_in:0
msgid "Sign in status"
-msgstr ""
+msgstr "Status Prijave"
#. module: hr_timesheet
#: wizard_view:hr_timesheet.si_so,sign_out:0
msgid "(Keep empty for current time)"
-msgstr ""
+msgstr "(Treba ostati prazno za tekuće vijeme)"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_out,server_date:0
msgid "Current Date"
-msgstr ""
+msgstr "Tekući Datumž"
#. module: hr_timesheet
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
-msgstr ""
+msgstr "Nepravilno ime modela u definiciji radnje."
#. module: hr_timesheet
#: wizard_button:hr.analytical.timesheet,init,report:0
#: wizard_button:hr.analytical.timesheet.my,init,report:0
#: wizard_button:hr.analytical.timesheet_users,init,report:0
msgid "Print"
-msgstr ""
+msgstr "Tiskaj"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_in,analytic_amount:0
msgid "Minimum Analytic Amount"
-msgstr ""
+msgstr "Minimalni Analitički Konto"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_in,server_date:0
msgid "Current Server Date"
-msgstr ""
+msgstr "Tekući datum Servera"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_in,date_start:0
#: wizard_field:hr_timesheet.si_so,sign_out,date:0
msgid "Starting Date"
-msgstr ""
+msgstr "Početni Datum"
#. module: hr_timesheet
#: field:hr.employee,product_id:0
msgid "Product"
-msgstr ""
+msgstr "Proizvod"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "août"
-msgstr ""
+msgstr "\"août\""
#. module: hr_timesheet
#: field:hr.employee,journal_id:0
msgid "Analytic Journal"
-msgstr ""
+msgstr "Analitički Dnevnik"
#. module: hr_timesheet
#: model:product.uom,name:hr_timesheet.uom_hour
msgid "Hour"
-msgstr ""
+msgstr "Sat"
#. module: hr_timesheet
#: model:ir.actions.wizard,name:hr_timesheet.wizard_hr_timesheet
#: model:ir.ui.menu,name:hr_timesheet.menu_wizard_hr_timesheet
msgid "Employee Timesheet"
-msgstr ""
+msgstr "Kontrolna kartica Djelatnika"
#. module: hr_timesheet
#: view:account.analytic.account:0
msgid "Work done stats"
-msgstr ""
+msgstr "Statistika obavljenog Posla"
#. module: hr_timesheet
#: model:ir.actions.act_window,name:hr_timesheet.act_hr_timesheet_line_evry1_all_form
#: model:ir.ui.menu,name:hr_timesheet.menu_act_hr_timesheet_line_evry1_all_form
#: model:ir.ui.menu,name:hr_timesheet.menu_act_hr_timesheet_line_today_form
msgid "Working Hours"
-msgstr ""
+msgstr "Radno vrijeme"
#. module: hr_timesheet
#: view:hr.analytic.timesheet:0
msgid "Timesheet Lines"
-msgstr ""
+msgstr "Linije Kontrolne kartice"
#. module: hr_timesheet
#: view:hr.analytic.timesheet:0
msgid "Total time"
-msgstr ""
+msgstr "Ukupna cijena"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "juillet"
-msgstr ""
+msgstr "\"juillet\""
#. module: hr_timesheet
#: xsl:hr.analytical.timesheet:0
#: xsl:hr.analytical.timesheet_users:0
#: model:ir.ui.menu,name:hr_timesheet.next_id_48
msgid "Timesheet"
-msgstr ""
+msgstr "Kontrolna Kartica"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "janvier"
-msgstr ""
+msgstr "Siječanj"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "juin"
-msgstr ""
+msgstr "Svibanj"
#. module: hr_timesheet
#: model:ir.actions.wizard,name:hr_timesheet.wizard_hr_timesheet_my
#: model:ir.ui.menu,name:hr_timesheet.menu_wizard_hr_timesheet_my
msgid "Print My Timesheet"
-msgstr ""
+msgstr "Tiskaj moju Kontrolnu Karticu"
#. module: hr_timesheet
#: wizard_field:hr.analytical.timesheet,init,user_id:0
#: wizard_field:hr.analytical.timesheet.my,init,user_id:0
msgid "User"
-msgstr ""
+msgstr "Korisnik"
#. module: hr_timesheet
#: wizard_view:hr_timesheet.si_so,sign_out:0
msgid "Sign in"
-msgstr ""
+msgstr "Prijava"
#. module: hr_timesheet
#: model:ir.actions.act_window,name:hr_timesheet.act_hr_timesheet_line_evry1_today_form
#: model:ir.ui.menu,name:hr_timesheet.menu_act_hr_timesheet_line_evry1_today_form
msgid "Working Hours of The Day"
-msgstr ""
+msgstr "Radni sati u danu"
#. module: hr_timesheet
#: wizard_view:hr_timesheet.si_so,sign_out:0
msgid "(local time on the server side)"
-msgstr ""
+msgstr "(Lokalno vrijeme na serveru)"
#. module: hr_timesheet
#: view:hr.analytic.timesheet:0
msgid "Total cost"
-msgstr ""
+msgstr "Ukupni trošak"
#. module: hr_timesheet
#: model:product.uom,name:hr_timesheet.uom_day
msgid "Day"
-msgstr ""
+msgstr "Dan"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_in,date:0
msgid "Closing Date"
-msgstr ""
+msgstr "Datum zaključenja"
#. module: hr_timesheet
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
-msgstr ""
+msgstr "Neispravan XML za Arhitekturu Prikaza!"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "avril"
-msgstr ""
+msgstr "Travanj"
#. module: hr_timesheet
#: field:hr.analytic.timesheet,line_id:0
msgid "Analytic line"
-msgstr ""
+msgstr "Analitička linija"
#. module: hr_timesheet
#: constraint:product.template:0
msgid "Error: UOS must be in a different category than the UOM"
msgstr ""
+"Greška: Jedinica skladištenja (JS) mora biti u različitoj kategoriji od "
+"Jedinice Mjere (JM)"
#. module: hr_timesheet
#: wizard_view:hr.analytical.timesheet_users,init:0
msgid "Choose Users"
-msgstr ""
+msgstr "Odaberite Korisnike"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "novembre"
-msgstr ""
+msgstr "Studeni"
#. module: hr_timesheet
#: wizard_view:hr_timesheet.si_so,sign_out:0
msgid "Sign in / Sign out"
-msgstr ""
+msgstr "Prijava / Odjava"
#. module: hr_timesheet
#: wizard_view:hr_timesheet.si_so,sign_in:0
msgid "Work done in the last period"
-msgstr ""
+msgstr "Posao obavljen u zadnjem razdoblju"
#. module: hr_timesheet
#: view:account.analytic.account:0
msgid "Key dates"
-msgstr ""
+msgstr "Ključni datumi"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_in,state:0
#: wizard_field:hr_timesheet.si_so,sign_out,state:0
msgid "Current state"
-msgstr ""
+msgstr "Tekuće stanje"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "octobre"
-msgstr ""
+msgstr "Listopad"
#. module: hr_timesheet
#: view:account.analytic.account:0
msgid "Analysis stats"
-msgstr ""
+msgstr "Analitičke statistike"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "décembre"
-msgstr ""
+msgstr "Prosinac"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_in,info:0
msgid "Work Description"
-msgstr ""
+msgstr "Opis Posla"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_in,name:0
#: wizard_field:hr_timesheet.si_so,sign_out,name:0
msgid "Employee's name"
-msgstr ""
+msgstr "Ime Djelatnika"
#. module: hr_timesheet
#: model:product.template,name:hr_timesheet.product_consultant_product_template
msgid "Consultancy - Senior Developer"
-msgstr ""
+msgstr "Savjetovanje - Stariji Programer"
#. module: hr_timesheet
#: model:ir.actions.act_window,name:hr_timesheet.act_hr_timesheet_line_me_all_form
#: model:ir.ui.menu,name:hr_timesheet.menu_act_hr_timesheet_line_me_all_form
msgid "My Working Hours"
-msgstr ""
+msgstr "Moji radni sati"
#. module: hr_timesheet
#: model:ir.model,name:hr_timesheet.model_hr_analytic_timesheet
msgid "Timesheet line"
-msgstr ""
+msgstr "Niz Kontrolne kartice"
#. module: hr_timesheet
#: xsl:hr.analytical.timesheet:0
msgid "Sum"
-msgstr ""
+msgstr "Zbroj"
#. module: hr_timesheet
#: model:ir.actions.act_window,name:hr_timesheet.act_hr_timesheet_line_evry1_today_form_my
#: model:ir.ui.menu,name:hr_timesheet.menu_act_hr_timesheet_line_evry1_today_form_my
msgid "My Working Hours of The Day"
-msgstr ""
+msgstr "Moji radni sati u danu"
#. module: hr_timesheet
#: model:ir.module.module,shortdesc:hr_timesheet.module_meta_information
msgid "Human Resources (Timesheet encoding)"
-msgstr ""
+msgstr "Ljudski Resursi (Kodiranje Kontrolna Kartica)"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "mars"
-msgstr ""
+msgstr "Travanj"
#. module: hr_timesheet
#: xsl:hr.analytical.timesheet:0
#: xsl:hr.analytical.timesheet_users:0
msgid "Total"
-msgstr ""
+msgstr "Ukupno"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "mai"
-msgstr ""
+msgstr "Svibanj"
#. module: hr_timesheet
#: wizard_button:hr_timesheet.si_so,sign_out,si_result:0
msgid "Start Working"
-msgstr ""
+msgstr "Započnite s radom"
#. module: hr_timesheet
#: wizard_button:hr_timesheet.si_so,sign_in,so_result:0
msgid "Change Work"
-msgstr ""
+msgstr "Promijenite posao"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "février"
-msgstr ""
+msgstr "Veljača"
#. module: hr_timesheet
#: view:account.analytic.account:0
msgid "Stats by month"
-msgstr ""
+msgstr "Satistike po mjesecu"
#. module: hr_timesheet
#: view:account.analytic.account:0
@@ -384,49 +390,49 @@ msgstr ""
#: wizard_field:hr.analytical.timesheet.my,init,month:0
#: wizard_field:hr.analytical.timesheet_users,init,month:0
msgid "Month"
-msgstr ""
+msgstr "Mjesec"
#. module: hr_timesheet
#: wizard_field:hr_timesheet.si_so,sign_in,account_id:0
msgid "Analytic Account"
-msgstr ""
+msgstr "Analitički Konto"
#. module: hr_timesheet
#: wizard_view:hr_timesheet.si_so,sign_in:0
msgid "General Information"
-msgstr ""
+msgstr "Opći Podaci"
#. module: hr_timesheet
#: model:process.process,name:hr_timesheet.process_process_timesheetprocess0
msgid "Timesheet Process"
-msgstr ""
+msgstr "Proces Kontrolne kartice"
#. module: hr_timesheet
#: constraint:product.product:0
msgid "Error: Invalid ean code"
-msgstr ""
+msgstr "Greška: Nepravila EAN kod"
#. module: hr_timesheet
#: view:account.analytic.account:0
msgid "Stats by user"
-msgstr ""
+msgstr "Statistike po Korisniku"
#. module: hr_timesheet
#: view:hr.analytic.timesheet:0
msgid "Timesheet Line"
-msgstr ""
+msgstr "Niz Kontrolne kartice"
#. module: hr_timesheet
#: view:account.analytic.account:0
msgid "Analysis summary"
-msgstr ""
+msgstr "Zbirna Analiza"
#. module: hr_timesheet
#: wizard_field:hr.analytical.timesheet,init,year:0
#: wizard_field:hr.analytical.timesheet.my,init,year:0
#: wizard_field:hr.analytical.timesheet_users,init,year:0
msgid "Year"
-msgstr ""
+msgstr "Godina"
#. module: hr_timesheet
#: wizard_button:hr.analytical.timesheet,init,end:0
@@ -435,39 +441,39 @@ msgstr ""
#: wizard_button:hr_timesheet.si_so,sign_in,end:0
#: wizard_button:hr_timesheet.si_so,sign_out,end:0
msgid "Cancel"
-msgstr ""
+msgstr "Odustani"
#. module: hr_timesheet
#: view:account.analytic.account:0
#: wizard_field:hr.analytical.timesheet_users,init,user_ids:0
msgid "Users"
-msgstr ""
+msgstr "Korisnici"
#. module: hr_timesheet
#: model:product.uom.categ,name:hr_timesheet.uom_categ_wtime
msgid "Working Time"
-msgstr ""
+msgstr "Radno vrijeme"
#. module: hr_timesheet
#: view:account.analytic.account:0
msgid "To be invoiced"
-msgstr ""
+msgstr "Treba izdati račun"
#. module: hr_timesheet
#: model:ir.actions.report.xml,name:hr_timesheet.report_users_timesheet
#: model:ir.actions.wizard,name:hr_timesheet.wizard_hr_timesheet_users
#: model:ir.ui.menu,name:hr_timesheet.menu_wizard_hr_timesheet_users
msgid "Employees Timesheet"
-msgstr ""
+msgstr "Kontrolna kartica Djelatnika"
#. module: hr_timesheet
#: selection:hr.analytical.timesheet,init,month:0
#: selection:hr.analytical.timesheet.my,init,month:0
#: selection:hr.analytical.timesheet_users,init,month:0
msgid "septembre"
-msgstr ""
+msgstr "Rujan"
#. module: hr_timesheet
#: view:hr.employee:0
msgid "Timesheets"
-msgstr ""
+msgstr "Kontrolne Kartice"
diff --git a/addons/hr_timesheet_invoice/i18n/pl.po b/addons/hr_timesheet_invoice/i18n/pl.po
index 8f95108f331..2309fa6b3d2 100644
--- a/addons/hr_timesheet_invoice/i18n/pl.po
+++ b/addons/hr_timesheet_invoice/i18n/pl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-05-24 15:59+0000\n"
-"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \n"
+"PO-Revision-Date: 2010-06-04 21:45+0000\n"
+"Last-Translator: ErnestŻyciński \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-05-25 03:42+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: hr_timesheet_invoice
@@ -327,7 +327,7 @@ msgstr "Upust (%)"
#. module: hr_timesheet_invoice
#: rml:account.analytic.profit:0
msgid "Eff."
-msgstr ""
+msgstr "Eff."
#. module: hr_timesheet_invoice
#: wizard_field:hr.timesheet.invoice.create,init,accounts:0
@@ -433,7 +433,7 @@ msgstr "Produkt"
#. module: hr_timesheet_invoice
#: rml:account.analytic.profit:0
msgid "%"
-msgstr ""
+msgstr "%"
#. module: hr_timesheet_invoice
#: field:hr_timesheet_invoice.factor,name:0
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 880e5837fd2..b3f81e5fbb1 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,21 +47,21 @@
-
-
-
-
@@ -69,28 +69,16 @@
-
-
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -177,8 +165,8 @@
-
-
+
+
@@ -316,8 +304,8 @@
-
-
+
+
@@ -390,8 +378,8 @@
-
-
+
+
report.analytic.account.close.tree
report.analytic.account.close
@@ -36,7 +36,7 @@
-
+
report.analytic.account.close.graph
report.analytic.account.close
@@ -45,11 +45,11 @@
-
+
-
+
Expired analytic accounts
report.analytic.account.close
@@ -116,8 +116,8 @@
-
-
+
+
@@ -138,6 +138,6 @@
-
+
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
index 35c20fdce08..f686daf575e 100644
--- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
+++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
@@ -192,21 +192,21 @@
-
-
+
+
-
-
-
-
+
+
+
diff --git a/addons/hr_timesheet_sheet/report/timesheet_report.py b/addons/hr_timesheet_sheet/report/timesheet_report.py
index 3dd8d161c5f..a8c0440a053 100644
--- a/addons/hr_timesheet_sheet/report/timesheet_report.py
+++ b/addons/hr_timesheet_sheet/report/timesheet_report.py
@@ -39,6 +39,9 @@ class timesheet_report(osv.osv):
'to_invoice': fields.many2one('hr_timesheet_invoice.factor', 'Type of Invoicing',readonly=True),
'account_id': fields.many2one('account.analytic.account', 'Analytic Account',readonly=True),
'nbr': fields.integer('#Nbr',readonly=True),
+ 'total_diff': fields.float('#Total Diff',readonly=True),
+ 'total_timesheet': fields.float('#Total Timesheet',readonly=True),
+ 'total_attendance': fields.float('#Total Attendance',readonly=True),
'company_id': fields.many2one('res.company', 'Company',readonly=True),
'department_id':fields.many2one('hr.department','Department',readonly=True),
'date_from': fields.date('Date from',readonly=True,),
@@ -67,10 +70,25 @@ class timesheet_report(osv.osv):
to_char(htss.date_current,'MM') as month,
to_char(htss.date_current, 'YYYY-MM-DD') as day,
count(*) as nbr,
- sum(aal.unit_amount) as quantity,
- sum(aal.amount) as cost,
+ aal.unit_amount as quantity,
+ aal.amount as cost,
aal.account_id,
aal.product_id,
+ (SELECT sum(day.total_difference)
+ FROM hr_timesheet_sheet_sheet AS sheet
+ LEFT JOIN hr_timesheet_sheet_sheet_day AS day
+ ON (sheet.id = day.sheet_id
+ AND day.name = sheet.date_current) where sheet.id=htss.id) as total_diff,
+ (SELECT sum(day.total_timesheet)
+ FROM hr_timesheet_sheet_sheet AS sheet
+ LEFT JOIN hr_timesheet_sheet_sheet_day AS day
+ ON (sheet.id = day.sheet_id
+ AND day.name = sheet.date_current) where sheet.id=htss.id) as total_timesheet,
+ (SELECT sum(day.total_attendance)
+ FROM hr_timesheet_sheet_sheet AS sheet
+ LEFT JOIN hr_timesheet_sheet_sheet_day AS day
+ ON (sheet.id = day.sheet_id
+ AND day.name = sheet.date_current) where sheet.id=htss.id) as total_attendance,
aal.to_invoice,
aal.general_account_id,
htss.user_id,
@@ -87,6 +105,8 @@ class timesheet_report(osv.osv):
aal.account_id,
htss.date_from,
htss.date_to,
+ aal.unit_amount,
+ aal.amount,
htss.date_current,
aal.to_invoice,
aal.product_id,
@@ -94,8 +114,9 @@ class timesheet_report(osv.osv):
htss.name,
htss.company_id,
htss.state,
+ htss.id,
htss.department_id,
htss.user_id
)
""")
-timesheet_report()
\ No newline at end of file
+timesheet_report()
diff --git a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
index 32e8bda4f7f..51e6b5d295c 100644
--- a/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
+++ b/addons/hr_timesheet_sheet/report/timesheet_report_view.xml
@@ -24,8 +24,6 @@
-
-
@@ -36,6 +34,11 @@
+
+
+
+
+
@@ -46,71 +49,65 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -121,7 +118,7 @@
timesheet.report
form
tree,graph
- {'search_default_month':1,'search_default_User':1,'search_default_user_id':uid,'group_by_no_leaf':1,'group_by':[]}
+ {'search_default_month':1,'search_default_User_id':1,'group_by_no_leaf':1,'group_by':[]}
diff --git a/addons/idea/i18n/hr.po b/addons/idea/i18n/hr.po
index 97112788aea..34c35557cc1 100644
--- a/addons/idea/i18n/hr.po
+++ b/addons/idea/i18n/hr.po
@@ -1,19 +1,19 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
-# * idea
+# * hr_attendance
# Drazen Bosak , 2010.
msgid ""
msgstr ""
-"Project-Id-Version: OpenERP Server 5.0.4\n"
+"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-05-10 06:56+0000\n"
-"Last-Translator: nafterburner \n"
-"Language-Team: Vinteh\n"
+"PO-Revision-Date: 2010-06-07 19:29+0000\n"
+"Last-Translator: Drazen Bosak \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-05-11 04:19+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
@@ -174,7 +174,7 @@ msgstr "idea.vote"
#: field:idea.comment,user_id:0
#: field:idea.vote,user_id:0
msgid "User"
-msgstr ""
+msgstr "Korisnik"
#. module: idea
#: view:idea.idea:0
diff --git a/addons/idea/idea_view.xml b/addons/idea/idea_view.xml
index 8aa0802fcda..90ee35d21e2 100644
--- a/addons/idea/idea_view.xml
+++ b/addons/idea/idea_view.xml
@@ -61,15 +61,15 @@
-
+
-
-
+ action="action_idea_select"/>
@@ -139,7 +139,7 @@
-
+
@@ -153,10 +153,10 @@
-
-
-
-
+
+
+
+
@@ -218,20 +218,20 @@
-
-
+
+
-
+
-
+
@@ -249,7 +249,7 @@
-
+
@@ -263,9 +263,9 @@
-
-
@@ -273,10 +273,10 @@
-
-
-
-
+
+
+
+
diff --git a/addons/l10n_ch/__openerp__.py b/addons/l10n_ch/__openerp__.py
index 9d0b2852abd..7de9b5eb77e 100644
--- a/addons/l10n_ch/__openerp__.py
+++ b/addons/l10n_ch/__openerp__.py
@@ -77,7 +77,6 @@ TODO :
"base_vat",
"base_iban",
"account_payment",
- "account_tax_include",
],
"init_xml" : [
"dta_data.xml",
diff --git a/addons/l10n_fr/i18n/pl.po b/addons/l10n_fr/i18n/pl.po
index 9ab5656cf1c..2638031c7b9 100644
--- a/addons/l10n_fr/i18n/pl.po
+++ b/addons/l10n_fr/i18n/pl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-02-03 09:18+0000\n"
-"Last-Translator: Fabien (Open ERP) \n"
+"PO-Revision-Date: 2010-06-04 21:52+0000\n"
+"Last-Translator: ErnestŻyciński \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-04-17 04:04+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: l10n_fr
@@ -77,7 +77,7 @@ msgstr "Własność"
#. module: l10n_fr
#: model:account.account.type,name:l10n_fr.account_type_income
msgid "Income"
-msgstr ""
+msgstr "Przychody"
#. module: l10n_fr
#: rml:l10n.fr.cdr:0
@@ -113,12 +113,12 @@ msgstr ""
#. module: l10n_fr
#: model:account.account.type,name:l10n_fr.account_type_payable
msgid "Payable"
-msgstr ""
+msgstr "Należności"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
msgid "( IV )"
-msgstr ""
+msgstr "( IV )"
#. module: l10n_fr
#: model:account.fiscal.position.template,name:l10n_fr.fiscal_position_template_4
@@ -138,7 +138,7 @@ msgstr ""
#. module: l10n_fr
#: rml:l10n.fr.cdr:0
msgid "+ IV+ V+ VI"
-msgstr ""
+msgstr "+ IV+ V+ VI"
#. module: l10n_fr
#: rml:l10n.fr.cdr:0
@@ -153,12 +153,12 @@ msgstr ""
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
msgid "D"
-msgstr ""
+msgstr "D"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
msgid "PROVISIONS"
-msgstr ""
+msgstr "PROWIZJA"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
@@ -183,7 +183,7 @@ msgstr ""
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
msgid "P"
-msgstr ""
+msgstr "P"
#. module: l10n_fr
#: model:account.account.type,name:l10n_fr.account_type_stocks
@@ -193,7 +193,7 @@ msgstr ""
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
msgid "T"
-msgstr ""
+msgstr "T"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
@@ -213,12 +213,12 @@ msgstr ""
#. module: l10n_fr
#: wizard_view:l10n.fr.cdr.report,init:0
msgid "Select period"
-msgstr ""
+msgstr "Wybierz okres"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
msgid "RÉSERVES"
-msgstr ""
+msgstr "ZAREZERWOWANY"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
@@ -228,7 +228,7 @@ msgstr ""
#. module: l10n_fr
#: model:account.account.type,name:l10n_fr.account_type_tax
msgid "Tax"
-msgstr ""
+msgstr "Podatek"
#. module: l10n_fr
#: rml:l10n.fr.cdr:0
@@ -290,7 +290,7 @@ msgstr ""
#: model:account.fiscal.position.template,name:l10n_fr.fiscal_position_template_1
#: model:account.fiscal.position.template,name:l10n_fr.fiscal_position_template_5
msgid "France"
-msgstr ""
+msgstr "Francja"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
@@ -306,7 +306,7 @@ msgstr ""
#: wizard_button:l10n.fr.bilan.report,init,report:0
#: wizard_button:l10n.fr.cdr.report,init,report:0
msgid "Print"
-msgstr ""
+msgstr "Drukuj"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
@@ -316,7 +316,7 @@ msgstr ""
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
msgid "Net"
-msgstr ""
+msgstr "Sieć"
#. module: l10n_fr
#: rml:l10n.fr.cdr:0
@@ -331,7 +331,7 @@ msgstr ""
#. module: l10n_fr
#: rml:l10n.fr.cdr:0
msgid "( VI )"
-msgstr ""
+msgstr "( VI )"
#. module: l10n_fr
#: constraint:account.account.template:0
@@ -341,7 +341,7 @@ msgstr ""
#. module: l10n_fr
#: model:account.account.type,name:l10n_fr.account_type_provision
msgid "Provisions"
-msgstr ""
+msgstr "Prowizja"
#. module: l10n_fr
#: rml:l10n.fr.cdr:0
@@ -378,7 +378,7 @@ msgstr ""
#. module: l10n_fr
#: field:l10n.fr.line,report_id:0
msgid "Report"
-msgstr ""
+msgstr "Raport"
#. module: l10n_fr
#: constraint:account.tax.code.template:0
@@ -408,12 +408,12 @@ msgstr ""
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
msgid "C"
-msgstr ""
+msgstr "C"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
msgid "M"
-msgstr ""
+msgstr "M"
#. module: l10n_fr
#: model:ir.module.module,description:l10n_fr.module_meta_information
@@ -441,7 +441,7 @@ msgstr ""
#. module: l10n_fr
#: model:account.account.type,name:l10n_fr.account_type_expense
msgid "Expense"
-msgstr ""
+msgstr "Koszty"
#. module: l10n_fr
#: rml:l10n.fr.bilan:0
diff --git a/addons/marketing/marketing_view.xml b/addons/marketing/marketing_view.xml
index cc6200537cf..78f5a742bb6 100644
--- a/addons/marketing/marketing_view.xml
+++ b/addons/marketing/marketing_view.xml
@@ -1,7 +1,7 @@
-
+
@@ -21,6 +21,13 @@
position="attributes">
OpenERP provides tools to automate your leads process, design marketing campaigns and profile efficiently your customers.
+
+ 13
+
+
+
+ Configure
+
diff --git a/addons/marketing_campaign/marketing_campaign_view.xml b/addons/marketing_campaign/marketing_campaign_view.xml
index fb88b6d283d..3e2d7330291 100755
--- a/addons/marketing_campaign/marketing_campaign_view.xml
+++ b/addons/marketing_campaign/marketing_campaign_view.xml
@@ -29,20 +29,20 @@
-
+
-
+
-
+
-
+
+
+
@@ -121,7 +121,7 @@
-
+
@@ -139,19 +139,19 @@
search
-
-
+
+
-
-
+
+
-
-
-
-
+
+
+
+
@@ -165,12 +165,12 @@
{'group_by': [], 'search_default_draft': 1, 'search_default_test': 1}
-
+
-
+
-
+
-
-
-
-
-
-
+
+
-
-
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
@@ -179,7 +154,7 @@
project.issue.report
form
graph,tree
- {"search_default_This Month":1,"search_default_User":1,"search_default_user_id":uid,'group_by_no_leaf':1,'group_by':[]}
+ {'search_default_This Month':1,'search_default_project':1,'group_by_no_leaf':1,'group_by':[]}
diff --git a/addons/project_issue_sheet/project_issue_sheet.py b/addons/project_issue_sheet/project_issue_sheet.py
index c48ff73b0f0..4027dab3572 100644
--- a/addons/project_issue_sheet/project_issue_sheet.py
+++ b/addons/project_issue_sheet/project_issue_sheet.py
@@ -19,17 +19,7 @@
#
##############################################################################
-import base64
-import os
-import re
-import time
-import mx.DateTime
-from datetime import datetime, timedelta
-
-import tools
-from crm import crm
from osv import fields,osv,orm
-from osv.orm import except_orm
from tools.translate import _
class project_issue(osv.osv):
diff --git a/addons/purchase/i18n/pl.po b/addons/purchase/i18n/pl.po
index 214ea309fba..2e46481a6e1 100644
--- a/addons/purchase/i18n/pl.po
+++ b/addons/purchase/i18n/pl.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-02-18 15:42+0000\n"
+"PO-Revision-Date: 2010-06-04 18:08+0000\n"
"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \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-04-17 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: purchase
@@ -195,11 +195,11 @@ msgid ""
msgstr ""
"Stan zamówienia zakupu lub zapytania ofertowego. Zapytanie ofertowe jest "
"zamówieniem zakupu w stanie 'Projekt'. Następnie zamówienie może być "
-"potwierdzone i jego stan zmieni się w 'Zatwierdzone'. Następnie po "
-"potwierdzeniu przez dostawcę stan zmienia się w 'Zaaprobowane'. Kiedy "
+"potwierdzone i jego stan zmieni się w 'Potwierdzone'. Następnie po "
+"zaaprobowaniu przez dostawcę stan zmienia się w 'Zaaprobowane'. Kiedy "
"zamówienie jest zrealizowane i zapłacone stan zmienia się na 'Wykonano'. "
-"Jeśłi wystąpi operacja anulowania lub w trakcie fakturowania lub "
-"przyjmowania towarów, to stan zmieni się na Wyjątek."
+"Jeśli wystąpi operacja anulowania w trakcie fakturowania lub przyjmowania "
+"towarów, to stan zmieni się na Wyjątek."
#. module: purchase
#: field:purchase.order,origin:0
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py
index 79b240e3ed4..2cfd4247bcf 100644
--- a/addons/purchase/purchase.py
+++ b/addons/purchase/purchase.py
@@ -59,12 +59,13 @@ class purchase_order(osv.osv):
val = val1 = 0.0
cur=order.pricelist_id.currency_id
for line in order.order_line:
- for c in self.pool.get('account.tax').compute(cr, uid, line.taxes_id, line.price_unit, line.product_qty, order.partner_address_id.id, line.product_id, order.partner_id):
+ for c in self.pool.get('account.tax').compute_all(cr, uid, line.taxes_id, line.price_unit, line.product_qty, order.partner_address_id.id, line.product_id, order.partner_id)['taxes']:
val+= c['amount']
val1 += line.price_subtotal
res[order.id]['amount_tax']=cur_obj.round(cr, uid, cur, val)
res[order.id]['amount_untaxed']=cur_obj.round(cr, uid, cur, val1)
res[order.id]['amount_total']=res[order.id]['amount_untaxed'] + res[order.id]['amount_tax']
+ print res
return res
def _set_minimum_planned_date(self, cr, uid, ids, name, value, arg, context):
@@ -211,6 +212,7 @@ class purchase_order(osv.osv):
}
_name = "purchase.order"
_description = "Purchase Order"
+ _log_create = True
_order = "name desc"
def unlink(self, cr, uid, ids, context=None):
@@ -568,12 +570,14 @@ class purchase_order(osv.osv):
purchase_order()
class purchase_order_line(osv.osv):
- def _amount_line(self, cr, uid, ids, prop, unknow_none,unknow_dict):
+ def _amount_line(self, cr, uid, ids, prop, arg,context):
res = {}
cur_obj=self.pool.get('res.currency')
- for line in self.browse(cr, uid, ids):
+ tax_obj = self.pool.get('account.tax')
+ for line in self.browse(cr, uid, ids, context=context):
+ taxes = tax_obj.compute_all(cr, uid, line.taxes_id, line.price_unit, line.product_qty)
cur = line.order_id.pricelist_id.currency_id
- res[line.id] = cur_obj.round(cr, uid, cur, line.price_unit * line.product_qty)
+ res[line.id] = cur_obj.round(cr, uid, cur, taxes['total'])
return res
_columns = {
@@ -722,22 +726,24 @@ class mrp_procurement(osv.osv):
po_obj = self.pool.get('purchase.order')
for procurement in self.browse(cr, uid, ids):
res_id = procurement.move_id.id
- partner = procurement.product_id.seller_ids[0].name
- partner_id = partner.id
+ partner_list = sorted([(partner_id.sequence, partner_id) for partner_id in procurement.product_id.seller_ids if partner_id])
+ partner_rec = partner_list and partner_list[0] and partner_list[0][1] or False
+ partner = partner_rec.name or False
+ partner_id = partner_rec.id or False
address_id = partner_obj.address_get(cr, uid, [partner_id], ['delivery'])['delivery']
pricelist_id = partner.property_product_pricelist_purchase.id
uom_id = procurement.product_id.uom_po_id.id
qty = uom_obj._compute_qty(cr, uid, procurement.product_uom.id, procurement.product_qty, uom_id)
- if procurement.product_id.seller_ids[0].qty:
- qty = max(qty,procurement.product_id.seller_ids[0].qty)
+ if partner_rec.qty:
+ qty = max(qty,partner_rec.qty)
price = pricelist_obj.price_get(cr, uid, [pricelist_id], procurement.product_id.id, qty, False, {'uom': uom_id})[pricelist_id]
newdate = DateTime.strptime(procurement.date_planned, '%Y-%m-%d %H:%M:%S')
newdate = newdate - DateTime.RelativeDateTime(days=company.po_lead)
- newdate = newdate - procurement.product_id.seller_ids[0].delay
+ newdate = newdate - partner_rec.delay
#Passing partner_id to context for purchase order line integrity of Line name
context.update({'lang': partner.lang, 'partner_id': partner_id})
diff --git a/addons/purchase/purchase_unit_test.xml b/addons/purchase/purchase_unit_test.xml
index 00678589999..d32f2f30a53 100644
--- a/addons/purchase/purchase_unit_test.xml
+++ b/addons/purchase/purchase_unit_test.xml
@@ -29,7 +29,7 @@
3
-
+
@@ -50,9 +50,11 @@
-
+
+
draft
diff --git a/addons/purchase/report/purchase_report.py b/addons/purchase/report/purchase_report.py
index cf177319ea5..71f2638d628 100644
--- a/addons/purchase/report/purchase_report.py
+++ b/addons/purchase/report/purchase_report.py
@@ -31,7 +31,7 @@ class purchase_report(osv.osv):
_description = "Purchases Orders"
_auto = False
_columns = {
- 'date': fields.date('Date', readonly=True),
+ 'date': fields.date('Date order', readonly=True),
'name': fields.char('Year',size=64,required=False, readonly=True),
'day': fields.char('Day', size=128, readonly=True),
'state': fields.selection([
@@ -61,7 +61,11 @@ class purchase_report(osv.osv):
'expected_date':fields.date('Expected Date', readonly=True),
'validator' : fields.many2one('res.users', 'Validated by', readonly=True),
'company_id':fields.many2one('res.company', 'Company', readonly=True),
+ 'shipped_qty':fields.integer('Received Qty', readonly=True),
+ 'invoiced_qty':fields.integer('Invoiced Qty', readonly=True),
'user_id':fields.many2one('res.users', 'Responsible', readonly=True),
+ 'delay':fields.float('Days to Close', digits=(16,2), readonly=True),
+ 'delay_pass':fields.float('Overpassed expected', digits=(16,2), readonly=True),
'quantity': fields.float('# of Products', readonly=True),
'price_total': fields.float('Total Price', readonly=True),
'price_average': fields.float('Average Price', readonly=True),
@@ -94,9 +98,13 @@ class purchase_report(osv.osv):
s.create_uid as user_id,
s.company_id as company_id,
s.invoice_method,
+ s.shipped::integer as shipped_qty,
+ l.invoiced::integer as invoiced_qty,
l.product_id,
s.location_id as location_id,
sum(l.product_qty*u.factor) as quantity,
+ extract(epoch from age(s.date_approve,s.date_order))/(24*60*60)::decimal(16,2) as delay,
+ extract(epoch from age(s.minimum_planned_date,s.date_order))/(24*60*60)::decimal(16,2) as delay_pass,
count(*) as nbr,
sum(l.product_qty*l.price_unit) as price_total,
(sum(l.product_qty*l.price_unit)/sum(l.product_qty*u.factor))::decimal(16,2) as price_average
@@ -107,9 +115,12 @@ class purchase_report(osv.osv):
group by
s.company_id,
s.create_uid,
+ s.shipped,
+ l.invoiced,
s.partner_id,
s.location_id,
s.date_approve,
+ s.minimum_planned_date,
date_trunc('day',s.minimum_planned_date),
s.partner_address_id,
s.pricelist_id,
diff --git a/addons/purchase/report/purchase_report_view.xml b/addons/purchase/report/purchase_report_view.xml
deleted file mode 100644
index 8fb7836468d..00000000000
--- a/addons/purchase/report/purchase_report_view.xml
+++ /dev/null
@@ -1,220 +0,0 @@
-
-
-
-
- product.month.graph
- purchase.report
- graph
-
-
-
-
-
-
-
-
-
-
- purchase.order.tree
- purchase.report
- tree
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- report.purchase.order.search
- purchase.report
- search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Purchase Orders
- purchase.report
- form
- tree,graph
-
- {'search_default_month':1,'search_default_Responsible':1,'group_by_no_leaf':1,'group_by':[]}
-
-
-
-
-
-
- purchase.order.qty.amount.graph
- purchase.order.qty.amount
- graph
-
-
-
-
-
-
-
-
-
-
- purchase.order.qty.amount.tree
- purchase.order.qty.amount
- tree
-
-
-
-
-
-
-
-
-
-
- Total Qty and Amount by month
- purchase.order.qty.amount
- form
- graph,tree
-
-
-
- purchase.order.by.user.graph
- purchase.order.by.user
- graph
-
-
-
-
-
-
-
-
-
-
- purchase.order.by.user.tree
- purchase.order.by.user
- tree
-
-
-
-
-
-
-
-
-
-
- Total Orders by User per month
- purchase.order.by.user
- form
- graph,tree
-
-
-
diff --git a/addons/purchase/wizard/purchase_installer.xml b/addons/purchase/wizard/purchase_installer.xml
index b105b6ba3aa..635297d0f21 100644
--- a/addons/purchase/wizard/purchase_installer.xml
+++ b/addons/purchase/wizard/purchase_installer.xml
@@ -22,7 +22,9 @@
position="attributes">
After having installed the core purchase application, you can extend it with more modules on needs of your organization
-
+
+ Configure
+
diff --git a/addons/purchase_requisition/wizard/purchase_requisition_partner.py b/addons/purchase_requisition/wizard/purchase_requisition_partner.py
index e886ba302b9..3f74e857035 100644
--- a/addons/purchase_requisition/wizard/purchase_requisition_partner.py
+++ b/addons/purchase_requisition/wizard/purchase_requisition_partner.py
@@ -82,15 +82,15 @@ class purchase_requisition_partner(osv.osv_memory):
purchase_order_line={}
for tender in tender_obj.browse(cr, uid, record_ids):
for line in tender.line_ids:
-
+ partner_list = sorted([(partner.sequence, partner) for partner in line.product_id.seller_ids if partner])
+ partner_rec = partner_list and partner_list[0] and partner_list[0][1] or False
uom_id = line.product_id.uom_po_id and line.product_id.uom_po_id.id or False
newdate = DateTime.strptime(tender.date_start, '%Y-%m-%d %H:%M:%S')
newdate = newdate - DateTime.RelativeDateTime(days=company.po_lead)
- newdate = newdate -(line.product_id.seller_ids and line.product_id.seller_ids[0].delay or DateTime.strptime(tender.date_start, '%Y-%m-%d %H:%M:%S') )
-
-
- partner = line.product_id.seller_ids and line.product_id.seller_ids[0].name or supplier_data
- pricelist_id = partner.property_product_pricelist_purchase and partner.property_product_pricelist_purchase.id
+ delay = partner_rec and partner_rec.delay or False
+ newdate = newdate -(delay or DateTime.strptime(tender.date_start, '%Y-%m-%d %H:%M:%S') )
+ partner = partner_rec and partner_rec.name or supplier_data
+ pricelist_id = partner.property_product_pricelist_purchase and partner.property_product_pricelist_purchase.id or False
price = pricelist_obj.price_get(cr, uid, [pricelist_id], line.product_id.id, line.product_qty, False, {'uom': uom_id})[pricelist_id]
product = prod_obj.browse(cr, uid, line.product_id.id, context=context)
diff --git a/addons/report_account/i18n/hr.po b/addons/report_account/i18n/hr.po
index 27ea37fd939..55cdcb73b85 100644
--- a/addons/report_account/i18n/hr.po
+++ b/addons/report_account/i18n/hr.po
@@ -7,20 +7,20 @@ 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: 2010-03-25 00:58+0000\n"
+"PO-Revision-Date: 2010-06-06 23:33+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:11+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: report_account
#: selection:report.invoice.created,type:0
msgid "Customer Refund"
-msgstr ""
+msgstr "Povrat novca kupcu"
#. module: report_account
#: constraint:ir.model:0
diff --git a/addons/report_analytic/i18n/hr.po b/addons/report_analytic/i18n/hr.po
index 4a2873d8fad..2eb92737c78 100644
--- a/addons/report_analytic/i18n/hr.po
+++ b/addons/report_analytic/i18n/hr.po
@@ -7,20 +7,20 @@ 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: 2010-03-25 10:39+0000\n"
+"PO-Revision-Date: 2010-06-06 23:37+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: report_analytic
#: model:ir.model,name:report_analytic.model_report_analytic_account_close
msgid "Analytic account to close"
-msgstr ""
+msgstr "Analitički konto koji treba zatvoriti"
#. module: report_analytic
#: constraint:ir.model:0
diff --git a/addons/report_analytic_planning/i18n/hr.po b/addons/report_analytic_planning/i18n/hr.po
index 2d5dabb1225..8fad3d2c47d 100644
--- a/addons/report_analytic_planning/i18n/hr.po
+++ b/addons/report_analytic_planning/i18n/hr.po
@@ -7,20 +7,20 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-25 10:49+0000\n"
+"PO-Revision-Date: 2010-06-06 23:40+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: report_analytic_planning
#: rml:report_account_analytic.planning.print:0
msgid "To:"
-msgstr ""
+msgstr "Za:"
#. module: report_analytic_planning
#: view:report_account_analytic.planning:0
@@ -202,7 +202,7 @@ msgstr "Korisnik"
#. module: report_analytic_planning
#: rml:report_account_analytic.planning.print:0
msgid "Project"
-msgstr ""
+msgstr "Projekt"
#. module: report_analytic_planning
#: view:report_account_analytic.planning:0
@@ -317,7 +317,7 @@ msgstr "Planiranje"
#. module: report_analytic_planning
#: selection:report_account_analytic.planning,state:0
msgid "Done"
-msgstr ""
+msgstr "Gotovo"
#. module: report_analytic_planning
#: view:report_account_analytic.planning:0
diff --git a/addons/report_designer/report_designer_installer.xml b/addons/report_designer/report_designer_installer.xml
index bcd0250fb7e..6a48c919460 100644
--- a/addons/report_designer/report_designer_installer.xml
+++ b/addons/report_designer/report_designer_installer.xml
@@ -22,6 +22,9 @@
OpenERP's built-in reporting abilities can be improved even further with some of the following applications
+
+ Configure
+
diff --git a/addons/report_document/i18n/hr.po b/addons/report_document/i18n/hr.po
index c357a52df8f..5670e89f04f 100644
--- a/addons/report_document/i18n/hr.po
+++ b/addons/report_document/i18n/hr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-25 10:49+0000\n"
+"PO-Revision-Date: 2010-06-06 23:40+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:17+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
@@ -21,7 +21,7 @@ msgstr ""
#: field:report.document.user,create_date:0
#: field:report.files.partner,create_date:0
msgid "Date Created"
-msgstr ""
+msgstr "Datum stvaranja"
#. module: report_document
#: model:ir.actions.act_window,name:report_document.action_view_files_by_partner
diff --git a/addons/report_intrastat/i18n/hr.po b/addons/report_intrastat/i18n/hr.po
index 70646bd777f..b89b14d5461 100644
--- a/addons/report_intrastat/i18n/hr.po
+++ b/addons/report_intrastat/i18n/hr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-25 10:49+0000\n"
+"PO-Revision-Date: 2010-06-06 23:41+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:09+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
@@ -174,7 +174,7 @@ msgstr "Porezi"
#. module: report_intrastat
#: rml:account.invoice.intrastat:0
msgid "Amount"
-msgstr ""
+msgstr "Iznos"
#. module: report_intrastat
#: view:report.intrastat:0
diff --git a/addons/report_project/i18n/hr.po b/addons/report_project/i18n/hr.po
index e5bfa077090..185c661427d 100644
--- a/addons/report_project/i18n/hr.po
+++ b/addons/report_project/i18n/hr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-22 19:24+0000\n"
+"PO-Revision-Date: 2010-06-06 23:41+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 03:59+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
@@ -21,7 +21,7 @@ msgstr ""
#: model:ir.actions.act_window,name:report_project.action_project_task_tree_month
#: model:ir.ui.menu,name:report_project.menu_project_task_tree_month
msgid "Tasks finished by project (this month)"
-msgstr ""
+msgstr "Izvršeni zadaci prema Projektu (Ovaj mjesec)"
#. module: report_project
#: constraint:ir.model:0
diff --git a/addons/report_purchase/i18n/hr.po b/addons/report_purchase/i18n/hr.po
index 35c7a3d8ce8..164b32e6849 100644
--- a/addons/report_purchase/i18n/hr.po
+++ b/addons/report_purchase/i18n/hr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-22 21:23+0000\n"
+"PO-Revision-Date: 2010-06-06 23:42+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 03:54+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
@@ -21,7 +21,7 @@ msgstr ""
#: field:report.purchase.order.category,price_average:0
#: field:report.purchase.order.product,price_average:0
msgid "Average Price"
-msgstr ""
+msgstr "Prosječna cijena"
#. module: report_purchase
#: field:report.purchase.order.category,state:0
diff --git a/addons/report_sale/i18n/hr.po b/addons/report_sale/i18n/hr.po
index 6e2d5c4d644..e9e89fc8e0c 100644
--- a/addons/report_sale/i18n/hr.po
+++ b/addons/report_sale/i18n/hr.po
@@ -7,33 +7,33 @@ 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: 2010-03-22 21:28+0000\n"
+"PO-Revision-Date: 2010-06-06 23:42+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:13+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: report_sale
#: selection:report.sale.order.created,state:0
msgid "In Progress"
-msgstr ""
+msgstr "U razvoju"
#. module: report_sale
#: field:report.sale.order.category,price_average:0
#: field:report.sale.order.product,price_average:0
msgid "Average Price"
-msgstr ""
+msgstr "Prosječna cijena"
#. module: report_sale
#: field:report.sale.order.category,state:0
#: field:report.sale.order.created,state:0
#: field:report.sale.order.product,state:0
msgid "Order State"
-msgstr ""
+msgstr "Stanje Narudžbe"
#. module: report_sale
#: model:ir.model,name:report_sale.model_report_sale_order_created
diff --git a/addons/report_task/i18n/es.po b/addons/report_task/i18n/es.po
index 0f580ae034e..419b48300af 100644
--- a/addons/report_task/i18n/es.po
+++ b/addons/report_task/i18n/es.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-11-17 10:28+0000\n"
-"Last-Translator: Fabien (Open ERP) \n"
+"PO-Revision-Date: 2010-06-04 12:29+0000\n"
+"Last-Translator: Jonay \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-04-17 04:21+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: report_task
@@ -179,7 +179,7 @@ msgstr "Proyecto"
#. module: report_task
#: field:report.task.user.pipeline.open,task_nbr:0
msgid "Task Number"
-msgstr ""
+msgstr "Número de tarea"
#. module: report_task
#: model:ir.model,name:report_task.model_report_timesheet_task_user
@@ -194,13 +194,13 @@ msgstr "Tareas por usuario y proyecto"
#. module: report_task
#: view:report.closed.task:0
msgid "Planned"
-msgstr ""
+msgstr "Planificado"
#. module: report_task
#: selection:report.closed.task,state:0
#: selection:report.task.user.pipeline.open,task_state:0
msgid "Cancelled"
-msgstr ""
+msgstr "Cancelado"
#. module: report_task
#: view:report.timesheet.task.user:0
@@ -210,22 +210,22 @@ msgstr ""
#. module: report_task
#: field:report.task.user.pipeline.open,task_progress:0
msgid "Task Progress"
-msgstr ""
+msgstr "Progreso de la tarea"
#. module: report_task
#: field:report.closed.task,date_close:0
msgid "Date Closed"
-msgstr ""
+msgstr "Fecha de cierre"
#. module: report_task
#: field:report.closed.task,user_id:0
msgid "Assigned to"
-msgstr ""
+msgstr "Asignado a"
#. module: report_task
#: field:report.closed.task,sequence:0
msgid "Sequence"
-msgstr ""
+msgstr "Secuencia"
#. module: report_task
#: model:ir.model,name:report_task.model_report_closed_task
@@ -235,17 +235,17 @@ msgstr ""
#. module: report_task
#: field:report.timesheet.task.user,name:0
msgid "Month"
-msgstr ""
+msgstr "Mes"
#. module: report_task
#: selection:report.closed.task,priority:0
msgid "Urgent"
-msgstr ""
+msgstr "Urgente"
#. module: report_task
#: field:report.closed.task,date_deadline:0
msgid "Deadline"
-msgstr ""
+msgstr "Fecha límite"
#. module: report_task
#: field:report.timesheet.task.user,timesheet_hrs:0
@@ -255,12 +255,12 @@ msgstr ""
#. module: report_task
#: view:report.closed.task:0
msgid "Closed Tasks"
-msgstr ""
+msgstr "Tareas cerradas"
#. module: report_task
#: selection:report.task.user.pipeline.open,task_state:0
msgid "Open"
-msgstr ""
+msgstr "Abrir"
#. module: report_task
#: field:report.closed.task,planned_hours:0
diff --git a/addons/resource/resource.py b/addons/resource/resource.py
index 6e8b7539fdc..d8eb378b7d8 100644
--- a/addons/resource/resource.py
+++ b/addons/resource/resource.py
@@ -37,21 +37,28 @@ class resource_calendar(osv.osv):
_defaults = {
'company_id': lambda self, cr, uid, context: self.pool.get('res.company')._company_default_get(cr, uid, 'resource.calendar', context=context)
}
-
- def interval_min_get(self, cr, uid, id, dt_from, hours, resource=False):
+
+ def _get_leaves(self, cr, uid, id, resource):
resource_cal_leaves = self.pool.get('resource.calendar.leaves')
dt_leave = []
- if not id:
- return [(dt_from - mx.DateTime.RelativeDateTime(hours=int(hours)*3), dt_from)]
+
resource_leave_ids = resource_cal_leaves.search(cr, uid, [('calendar_id','=',id), '|', ('resource_id','=',False), ('resource_id','=',resource)])
res_leaves = resource_cal_leaves.read(cr, uid, resource_leave_ids, ['date_from', 'date_to'])
+
for leave in res_leaves:
dtf = mx.DateTime.strptime(leave['date_from'], '%Y-%m-%d %H:%M:%S')
dtt = mx.DateTime.strptime(leave['date_to'], '%Y-%m-%d %H:%M:%S')
no = dtt - dtf
[dt_leave.append((dtf + mx.DateTime.RelativeDateTime(days=x)).strftime('%Y-%m-%d')) for x in range(int(no.days + 1))]
dt_leave.sort()
- dt_leave.reverse()
+
+ return dt_leave
+
+ def interval_min_get(self, cr, uid, id, dt_from, hours, resource=False):
+ if not id:
+ return [(dt_from - mx.DateTime.RelativeDateTime(hours=int(hours)*3), dt_from)]
+ dt_leave = self._get_leaves(cr, uid, id, resource)
+ dt_leave.reverse()
todo = hours
cycle = 0
result = []
@@ -85,18 +92,9 @@ class resource_calendar(osv.osv):
return result
def interval_get(self, cr, uid, id, dt_from, hours, resource=False, byday=True):
- resource_cal_leaves = self.pool.get('resource.calendar.leaves')
- dt_leave = []
if not id:
return [(dt_from,dt_from + mx.DateTime.RelativeDateTime(hours=int(hours)*3))]
- resource_leave_ids = resource_cal_leaves.search(cr, uid, [('calendar_id','=',id), '|', ('resource_id','=',False), ('resource_id','=',resource)])
- res_leaves = resource_cal_leaves.read(cr, uid, resource_leave_ids, ['date_from', 'date_to'])
- for leave in res_leaves:
- dtf = mx.DateTime.strptime(leave['date_from'], '%Y-%m-%d %H:%M:%S')
- dtt = mx.DateTime.strptime(leave['date_to'], '%Y-%m-%d %H:%M:%S')
- no = dtt - dtf
- [dt_leave.append((dtf + mx.DateTime.RelativeDateTime(days=x)).strftime('%Y-%m-%d')) for x in range(int(no.days + 1))]
- dt_leave.sort()
+ dt_leave = self._get_leaves(cr, uid, id, resource)
todo = hours
cycle = 0
result = []
@@ -105,29 +103,70 @@ class resource_calendar(osv.osv):
while (todo>0) and maxrecur:
cr.execute("select hour_from,hour_to from resource_calendar_week where dayofweek='%s' and calendar_id=%s order by hour_from", (dt_from.day_of_week,id))
for (hour_from,hour_to) in cr.fetchall():
- leave_flag = False
- if (hour_to>current_hour) and (todo>0):
- m = max(hour_from, current_hour)
- if (hour_to-m)>todo:
- hour_to = m+todo
- dt_check = dt_from.strftime('%Y-%m-%d')
- for leave in dt_leave:
- if dt_check == leave:
- dt_check = mx.DateTime.strptime(dt_check, "%Y-%m-%d") + mx.DateTime.RelativeDateTime(days=1)
- leave_flag = True
- if leave_flag:
- break
- else:
- d1 = mx.DateTime.DateTime(dt_from.year, dt_from.month, dt_from.day, int(math.floor(m)), int((m%1) * 60))
- d2 = mx.DateTime.DateTime(dt_from.year, dt_from.month, dt_from.day, int(math.floor(hour_to)), int((hour_to%1) * 60))
- result.append((d1, d2))
- current_hour = hour_to
- todo -= (hour_to - m)
+ leave_flag = False
+ if (hour_to>current_hour) and (todo>0):
+ m = max(hour_from, current_hour)
+ if (hour_to-m)>todo:
+ hour_to = m+todo
+ dt_check = dt_from.strftime('%Y-%m-%d')
+ for leave in dt_leave:
+ if dt_check == leave:
+ dt_check = mx.DateTime.strptime(dt_check, "%Y-%m-%d") + mx.DateTime.RelativeDateTime(days=1)
+ leave_flag = True
+ if leave_flag:
+ break
+ else:
+ d1 = mx.DateTime.DateTime(dt_from.year, dt_from.month, dt_from.day, int(math.floor(m)), int((m%1) * 60))
+ d2 = mx.DateTime.DateTime(dt_from.year, dt_from.month, dt_from.day, int(math.floor(hour_to)), int((hour_to%1) * 60))
+ result.append((d1, d2))
+ current_hour = hour_to
+ todo -= (hour_to - m)
dt_from += mx.DateTime.RelativeDateTime(days=1)
current_hour = 0
maxrecur -= 1
return result
+
+ def interval_hours_get(self, cr, uid, id, dt_from, dt_to, resource=False):
+ result = []
+ if not id:
+ return 0.0
+ dt_leave = self._get_leaves(cr, uid, id, resource)
+ hours = 0.0
+
+ current_hour = dt_from.hour
+ while (dt_from <= dt_to):
+ cr.execute("select hour_from,hour_to from resource_calendar_week where dayofweek='%s' and calendar_id=%s order by hour_from", (dt_from.day_of_week,id))
+ der = cr.fetchall()
+ for (hour_from,hour_to) in der:
+ if hours != 0.0:#For first time of the loop only,hours will be 0
+ current_hour = hour_from
+ leave_flag = False
+ if (hour_to>=current_hour):
+ dt_check = dt_from.strftime('%Y-%m-%d')
+ for leave in dt_leave:
+ if dt_check == leave:
+ dt_check = mx.DateTime.strptime(dt_check, "%Y-%m-%d") + mx.DateTime.RelativeDateTime(days=1)
+ leave_flag = True
+
+ if leave_flag:
+ break
+ else:
+ d1 = dt_from
+ d2 = mx.DateTime.DateTime(dt_from.year, dt_from.month, dt_from.day, int(math.floor(hour_to)), int((hour_to%1) * 60))
+
+ if hours != 0.0:#For first time of the loop only,hours will be 0
+ d1 = mx.DateTime.DateTime(dt_from.year, dt_from.month, dt_from.day, int(math.floor(current_hour)), int((current_hour%1) * 60))
+
+ if dt_from.day == dt_to.day:
+ if hour_from <= dt_to.hour <= hour_to:
+ d2 = dt_to
+ dt_from = d2
+ hours += (d2-d1).seconds
+ dt_from = mx.DateTime.DateTime(dt_from.year, dt_from.month, dt_from.day, int(math.floor(current_hour)), int((current_hour%1) * 60)) + mx.DateTime.RelativeDateTime(days=1)
+ current_hour = 0.0
+ return (hours/3600)
+
resource_calendar()
class resource_calendar_week(osv.osv):
diff --git a/addons/sale/i18n/ca.po b/addons/sale/i18n/ca.po
index 40ef81e54c5..3514576e132 100644
--- a/addons/sale/i18n/ca.po
+++ b/addons/sale/i18n/ca.po
@@ -7,14 +7,14 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.0_rc3\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2009-12-31 12:42+0000\n"
-"Last-Translator: Albert Cervera i Areny - http://www.NaN-tic.com \n"
+"PO-Revision-Date: 2010-06-04 09:30+0000\n"
+"Last-Translator: Jordi Esteve (www.zikzakmedia.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-04-17 04:09+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
#. module: sale
@@ -659,8 +659,8 @@ msgid ""
"This Configuration step use to set default picking policy when make sale "
"order"
msgstr ""
-"Aquest pas en la configuració fixa la política d'empaquetament per defecte "
-"quan es crea una comanda de venda"
+"Aquest pas fixa la política d'empaquetament per defecte quan es crea una "
+"comanda de venda"
#. module: sale
#: model:process.process,name:sale.process_process_salesprocess0
@@ -734,7 +734,7 @@ msgstr "Proveïment de venda"
#. module: sale
#: view:sale.config.picking_policy:0
msgid "Configure Sale Order Logistic"
-msgstr "Configura logística comanda de venda"
+msgstr "Configureu la logística de les comandes de venda"
#. module: sale
#: field:sale.order,amount_untaxed:0
@@ -749,7 +749,7 @@ msgstr "Estat"
#. module: sale
#: field:sale.order,picking_policy:0
msgid "Packing Policy"
-msgstr "Política d'enviament"
+msgstr "Forma d'enviament"
#. module: sale
#: model:ir.actions.act_window,name:sale.action_order_line_product_tree
@@ -1200,10 +1200,10 @@ msgid ""
"and simple methods to deliver products to the customer in one or two "
"operations by the worker."
msgstr ""
-"Por defecte, OpenERP pot gestionar rutes complexes i rutes de productes en "
-"el vostre magatzem i en les ubicacions d'empreses. Això configurarà els "
-"mètodes més comuns i senzills per enviar productes al client en una o dues "
-"operacions realitzades pel treballador."
+"Per defecte, OpenERP pot gestionar rutes complexes i rutes de productes en "
+"el vostre magatzem i en les ubicacions d'empreses. Aquesta opció us "
+"configurarà els mètodes més comuns i senzills per enviar productes al client "
+"en una o dues operacions realitzades pel treballador."
#. module: sale
#: model:ir.actions.act_window,name:sale.action_config_picking_policy
diff --git a/addons/sale/i18n/hr.po b/addons/sale/i18n/hr.po
index b2ba5dbc8d4..071135f332d 100644
--- a/addons/sale/i18n/hr.po
+++ b/addons/sale/i18n/hr.po
@@ -7,13 +7,13 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2009-08-28 16:01+0000\n"
-"PO-Revision-Date: 2010-03-24 00:11+0000\n"
+"PO-Revision-Date: 2010-06-06 23:44+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:09+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
@@ -797,7 +797,7 @@ msgstr "Ponuda"
#. module: sale
#: model:product.template,name:sale.advance_product_0_product_template
msgid "Advance Product"
-msgstr ""
+msgstr "Proslijediti Proizvod"
#. module: sale
#: model:process.transition,note:sale.process_transition_invoice0
@@ -1031,7 +1031,7 @@ msgstr "Želite li zaista kreirati Račune?"
#. module: sale
#: model:process.node,note:sale.process_node_invoiceafterdelivery0
msgid "Invoice based on packing lists"
-msgstr ""
+msgstr "Račun napravljen prema tovarnom listi"
#. module: sale
#: view:sale.config.picking_policy:0
diff --git a/addons/sale/report/sale_report.py b/addons/sale/report/sale_report.py
index d9be5f49274..68f50068ec0 100644
--- a/addons/sale/report/sale_report.py
+++ b/addons/sale/report/sale_report.py
@@ -71,7 +71,8 @@ class sale_report(osv.osv):
cr.execute("""
create or replace view sale_report as (
select el.*,
- (select count(1) from sale_order_line where order_id = s.id) as nbr,
+ -- (select count(1) from sale_order_line where order_id = s.id) as nbr,
+ (select 1) as nbr,
s.date_order as date,
s.date_confirm as date_confirm,
to_char(s.date_order, 'YYYY') as year,
@@ -101,7 +102,7 @@ class sale_report(osv.osv):
sale_order_line l
left join product_uom u on (u.id=l.product_uom)
left join product_template pt on (pt.id=l.product_id)
- group by l.id, l.order_id, l.product_id, u.name, pt.categ_id) el
+ group by l.id, l.order_id, l.product_id, u.name, pt.categ_id) el
where s.id = el.order_id
)
""")
diff --git a/addons/sale/report/sale_report_view.xml b/addons/sale/report/sale_report_view.xml
index 75dd9d55642..f6090638891 100644
--- a/addons/sale/report/sale_report_view.xml
+++ b/addons/sale/report/sale_report_view.xml
@@ -19,7 +19,7 @@
-
+
@@ -85,19 +85,19 @@
-
+
-
-
+
-
+
+
+
-
-
-
+
+
@@ -109,7 +109,6 @@
-
diff --git a/addons/sale/sale.py b/addons/sale/sale.py
index e684a1a6c1d..07c66ef91dc 100644
--- a/addons/sale/sale.py
+++ b/addons/sale/sale.py
@@ -72,7 +72,7 @@ class sale_order(osv.osv):
if context is None:
context = {}
val = 0.0
- for c in self.pool.get('account.tax').compute(cr, uid, line.tax_id, line.price_unit * (1-(line.discount or 0.0)/100.0), line.product_uom_qty, line.order_id.partner_invoice_id.id, line.product_id, line.order_id.partner_id):
+ for c in self.pool.get('account.tax').compute_all(cr, uid, line.tax_id, line.price_unit * (1-(line.discount or 0.0)/100.0), line.product_uom_qty, line.order_id.partner_invoice_id.id, line.product_id, line.order_id.partner_id)['taxes']:
val += c['amount']
return val
@@ -774,23 +774,16 @@ sale_order()
# - update it on change product and unit price
# - use it in report if there is a uos
class sale_order_line(osv.osv):
- def _amount_line_net(self, cr, uid, ids, field_name, arg, context=None):
- if context is None:
- context = {}
- res = {}
- for line in self.browse(cr, uid, ids, context=context):
- res[line.id] = line.price_unit * (1 - (line.discount or 0.0) / 100.0)
- return res
-
def _amount_line(self, cr, uid, ids, field_name, arg, context=None):
- if context is None:
- context = {}
res = {}
+ context = context or {}
+ tax_obj = self.pool.get('account.tax')
cur_obj = self.pool.get('res.currency')
for line in self.browse(cr, uid, ids, context=context):
- res[line.id] = line.price_unit * line.product_uom_qty * (1 - (line.discount or 0.0) / 100.0)
+ price = line.price_unit * line.product_uom_qty * (1 - (line.discount or 0.0) / 100.0)
+ taxes = tax_obj.compute_all(cr, uid, line.tax_id, price, line.product_uom_qty)
cur = line.order_id.pricelist_id.currency_id
- res[line.id] = cur_obj.round(cr, uid, cur, res[line.id])
+ res[line.id] = cur_obj.round(cr, uid, cur, taxes['total'])
return res
def _number_packages(self, cr, uid, ids, field_name, arg, context=None):
@@ -799,7 +792,7 @@ class sale_order_line(osv.osv):
res = {}
for line in self.browse(cr, uid, ids, context=context):
try:
- res[line.id] = int(line.product_uom_qty / line.product_packaging.qty)
+ res[line.id] = int((line.product_uom_qty+line.product_packaging.qty-0.0001) / line.product_packaging.qty)
except:
res[line.id] = 1
return res
@@ -816,7 +809,6 @@ class sale_order_line(osv.osv):
'invoiced': fields.boolean('Invoiced', readonly=True),
'procurement_id': fields.many2one('mrp.procurement', 'Procurement'),
'price_unit': fields.float('Unit Price', required=True, digits_compute= dp.get_precision('Sale Price'), readonly=True, states={'draft':[('readonly',False)]}),
- 'price_net': fields.function(_amount_line_net, method=True, string='Net Price', digits_compute= dp.get_precision('Sale Price')),
'price_subtotal': fields.function(_amount_line, method=True, string='Subtotal', digits_compute= dp.get_precision('Sale Price')),
'tax_id': fields.many2many('account.tax', 'sale_order_tax', 'order_line_id', 'tax_id', 'Taxes', readonly=True, states={'draft':[('readonly',False)]}),
'type': fields.selection([('make_to_stock', 'from stock'), ('make_to_order', 'on order')], 'Procurement Method', required=True, readonly=True, states={'draft':[('readonly',False)]}),
diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml
index 4d82e8595ad..c236b669580 100644
--- a/addons/sale/sale_view.xml
+++ b/addons/sale/sale_view.xml
@@ -131,8 +131,7 @@
on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order, product_packaging, parent.fiscal_position, True)"
/>
+ on_change="product_uom_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, 'lang' in context and context['lang'], False, parent.date_order)"/>
-
-
+
@@ -351,7 +349,6 @@
-
diff --git a/addons/sale_crm/i18n/hr.po b/addons/sale_crm/i18n/hr.po
index 5ab251827fc..9118f4fc765 100644
--- a/addons/sale_crm/i18n/hr.po
+++ b/addons/sale_crm/i18n/hr.po
@@ -7,20 +7,20 @@ 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: 2010-03-22 00:56+0000\n"
+"PO-Revision-Date: 2010-06-06 23:44+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:03+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: sale_crm
#: model:process.transition,name:sale_crm.process_transition_crmopportunityquotation
msgid "Crm opportunity quotation"
-msgstr ""
+msgstr "Ponuda CRM prilici"
#. module: sale_crm
#: model:process.transition,name:sale_crm.process_transition_opportunityanalytic0
diff --git a/addons/sale_journal/i18n/hr.po b/addons/sale_journal/i18n/hr.po
index 87f36a5ca04..adb16bbb9f7 100644
--- a/addons/sale_journal/i18n/hr.po
+++ b/addons/sale_journal/i18n/hr.po
@@ -7,20 +7,20 @@ 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: 2010-03-24 00:49+0000\n"
+"PO-Revision-Date: 2010-06-06 23:45+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:12+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:40+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: sale_journal
#: model:ir.actions.act_window,name:sale_journal.act_sale_journal_sale_journal_2_sale_journal_sale_stats
msgid "Monthly sales"
-msgstr ""
+msgstr "Mjesečne prodaje"
#. module: sale_journal
#: model:ir.actions.act_window,name:sale_journal.act_sale_journal_picking_journal_2_stock_picking_assigned
@@ -378,7 +378,7 @@ msgstr "Pregled Pakiranja"
#: selection:sale_journal.sale.journal,state:0
#: selection:sale_journal.sale.stats,state:0
msgid "Done"
-msgstr ""
+msgstr "Gotovo"
#. module: sale_journal
#: selection:sale_journal.sale.stats,state:0
@@ -441,7 +441,7 @@ msgstr "Tip Računa"
#. module: sale_journal
#: selection:sale_journal.invoice.type.stats,invoice_state:0
msgid "invoiced"
-msgstr ""
+msgstr "Izdan račun"
#. module: sale_journal
#: selection:sale_journal.invoice.type.stats,state:0
diff --git a/addons/stock/wizard/stock_move.py b/addons/stock/wizard/stock_move.py
index 00b7b616aa5..aa7bb42cf8b 100644
--- a/addons/stock/wizard/stock_move.py
+++ b/addons/stock/wizard/stock_move.py
@@ -258,7 +258,7 @@ class split_in_production_lot(osv.osv_memory):
quantity_rest -= quantity
uos_qty = quantity / move_qty * move.product_uos_qty
uos_qty_rest = quantity_rest / move_qty * move.product_uos_qty
- if quantity_rest <= 0:
+ if quantity_rest < 0:
quantity_rest = quantity
break
default_val = {
@@ -266,8 +266,11 @@ class split_in_production_lot(osv.osv_memory):
'product_uos_qty': uos_qty,
'state': move.state
}
- current_move = move_obj.copy(cr, uid, move.id, default_val)
- new_move.append(current_move)
+ if quantity_rest > 0:
+ current_move = move_obj.copy(cr, uid, move.id, default_val)
+ new_move.append(current_move)
+ if quantity_rest == 0:
+ current_move = move.id
prodlot_id = False
if line.use_exist and line.name:
prodlot_id = prodlot_obj.search(cr, uid, [('prefix','=',line.name),('product_id','=',data.product_id.id)])
diff --git a/addons/survey/i18n/hr.po b/addons/survey/i18n/hr.po
index b652ccf0225..39cb6d5b773 100644
--- a/addons/survey/i18n/hr.po
+++ b/addons/survey/i18n/hr.po
@@ -8,20 +8,20 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-11-26 06:01+0000\n"
-"PO-Revision-Date: 2010-03-22 00:56+0000\n"
+"PO-Revision-Date: 2010-06-06 23:46+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:21+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: survey
#: model:ir.ui.menu,name:survey.menu_survey_form
msgid "Surveys"
-msgstr ""
+msgstr "Upitnici"
#. module: survey
#: model:ir.actions.report.xml,name:survey.survey
@@ -310,18 +310,18 @@ msgstr "Manualno"
#. module: survey
#: model:ir.actions.act_window,name:survey.action_survey_form1
msgid "All Surveys"
-msgstr ""
+msgstr "Svi Upitnici"
#. module: survey
#: view:survey:0
#: field:survey,users:0
msgid "Users"
-msgstr ""
+msgstr "Korisnici"
#. module: survey
#: wizard_view:wizard.send.invitation,init:0
msgid "Message"
-msgstr ""
+msgstr "Poruka"
#. module: survey
#: field:survey.name.wiz,page_no:0
diff --git a/addons/thunderbird/i18n/hr.po b/addons/thunderbird/i18n/hr.po
index e7accb0d6e0..4ac0603558f 100644
--- a/addons/thunderbird/i18n/hr.po
+++ b/addons/thunderbird/i18n/hr.po
@@ -8,20 +8,20 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2009-11-26 06:05+0000\n"
-"PO-Revision-Date: 2010-03-21 23:36+0000\n"
+"PO-Revision-Date: 2010-06-06 23:47+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:21+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: thunderbird
#: field:tinythunderbird.partner,copy_to:0
msgid "Copy To"
-msgstr ""
+msgstr "Kopiraj na"
#. module: thunderbird
#: constraint:ir.model:0
diff --git a/addons/warning/i18n/hr.po b/addons/warning/i18n/hr.po
index 53602bfba7d..e126c187a9c 100644
--- a/addons/warning/i18n/hr.po
+++ b/addons/warning/i18n/hr.po
@@ -7,20 +7,20 @@ 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: 2010-03-22 00:56+0000\n"
+"PO-Revision-Date: 2010-06-06 23:49+0000\n"
"Last-Translator: Drazen Bosak \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-04-17 04:19+0000\n"
+"X-Launchpad-Export-Date: 2010-06-08 03:41+0000\n"
"X-Generator: Launchpad (build Unknown)\n"
"Language: hr\n"
#. module: warning
#: field:product.product,purchase_line_warn:0
msgid "Purchase Order Line"
-msgstr ""
+msgstr "Niz Prodajne Narudžbe"
#. module: warning
#: field:product.product,sale_line_warn_msg:0