[MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130328092453-zl0vfhzxzxoaa9vs
This commit is contained in:
@@ -25,8 +25,9 @@ from dateutil.relativedelta import relativedelta
|
||||
from operator import itemgetter
|
||||
import time
|
||||
|
||||
import openerp
|
||||
from openerp import SUPERUSER_ID
|
||||
from openerp import pooler, tools
|
||||
from openerp import tools
|
||||
from openerp.osv import fields, osv
|
||||
from openerp.tools.translate import _
|
||||
from openerp.tools.float_utils import float_round
|
||||
@@ -1883,7 +1884,7 @@ class account_tax(osv.osv):
|
||||
|
||||
def get_precision_tax():
|
||||
def change_digit_tax(cr):
|
||||
res = pooler.get_pool(cr.dbname).get('decimal.precision').precision_get(cr, SUPERUSER_ID, 'Account')
|
||||
res = openerp.registry(cr.dbname)['decimal.precision'].precision_get(cr, SUPERUSER_ID, 'Account')
|
||||
return (16, res+2)
|
||||
return change_digit_tax
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ from dateutil.relativedelta import relativedelta
|
||||
from operator import itemgetter
|
||||
|
||||
from openerp import netsvc
|
||||
from openerp import pooler
|
||||
from openerp.osv import fields, osv
|
||||
import openerp.addons.decimal_precision as dp
|
||||
from openerp.tools.translate import _
|
||||
|
||||
@@ -24,7 +24,6 @@ from lxml import etree
|
||||
import openerp.addons.decimal_precision as dp
|
||||
import openerp.exceptions
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.osv import fields, osv, orm
|
||||
from openerp.tools.translate import _
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
import time
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
|
||||
#
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
import time
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
|
||||
class account_analytic_cost_ledger(report_sxw.rml_parse):
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
import time
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
|
||||
class account_inverted_analytic_balance(report_sxw.rml_parse):
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
##############################################################################
|
||||
import time
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
|
||||
class account_analytic_quantity_cost_ledger(report_sxw.rml_parse):
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
import time
|
||||
|
||||
from openerp.report import report_sxw
|
||||
from openerp import pooler
|
||||
|
||||
class Overdue(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
@@ -38,7 +37,7 @@ class Overdue(report_sxw.rml_parse):
|
||||
def _tel_get(self,partner):
|
||||
if not partner:
|
||||
return False
|
||||
res_partner = pooler.get_pool(self.cr.dbname).get('res.partner')
|
||||
res_partner = self.pool['res.partner']
|
||||
addresses = res_partner.address_get(self.cr, self.uid, [partner.id], ['invoice'])
|
||||
adr_id = addresses and addresses['invoice'] or False
|
||||
if adr_id:
|
||||
@@ -49,7 +48,7 @@ class Overdue(report_sxw.rml_parse):
|
||||
return False
|
||||
|
||||
def _lines_get(self, partner):
|
||||
moveline_obj = pooler.get_pool(self.cr.dbname).get('account.move.line')
|
||||
moveline_obj = self.pool['account.move.line']
|
||||
movelines = moveline_obj.search(self.cr, self.uid,
|
||||
[('partner_id', '=', partner.id),
|
||||
('account_id.type', 'in', ['receivable', 'payable']),
|
||||
@@ -58,7 +57,7 @@ class Overdue(report_sxw.rml_parse):
|
||||
return movelines
|
||||
|
||||
def _message(self, obj, company):
|
||||
company_pool = pooler.get_pool(self.cr.dbname).get('res.company')
|
||||
company_pool = self.pool['res.company']
|
||||
message = company_pool.browse(self.cr, self.uid, company.id, {'lang':obj.lang}).overdue_msg
|
||||
return message.split('\n')
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ import time
|
||||
from datetime import datetime
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
from openerp import pooler
|
||||
from openerp import tools
|
||||
from openerp.osv import fields,osv
|
||||
|
||||
@@ -123,7 +122,7 @@ class report_aged_receivable(osv.osv):
|
||||
""" This view will be used in dashboard
|
||||
The reason writing this code here is, we need to check date range from today to first date of fiscal year.
|
||||
"""
|
||||
pool_obj_fy = pooler.get_pool(cr.dbname).get('account.fiscalyear')
|
||||
pool_obj_fy = self.pool['account.fiscalyear']
|
||||
today = time.strftime('%Y-%m-%d')
|
||||
fy_id = pool_obj_fy.find(cr, uid, exception=False)
|
||||
LIST_RANGES = []
|
||||
@@ -141,7 +140,7 @@ class report_aged_receivable(osv.osv):
|
||||
cr.execute('delete from temp_range')
|
||||
|
||||
for range in LIST_RANGES:
|
||||
pooler.get_pool(cr.dbname).get('temp.range').create(cr, uid, {'name':range})
|
||||
self.pool['temp.range'].create(cr, uid, {'name':range})
|
||||
|
||||
cr.execute("""
|
||||
create or replace view report_aged_receivable as (
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.tools.translate import _
|
||||
|
||||
# Mixin to use with rml_parse, so self.pool will be defined.
|
||||
class common_report_header(object):
|
||||
|
||||
def _sum_debit(self, period_id=False, journal_id=False):
|
||||
@@ -75,17 +75,17 @@ class common_report_header(object):
|
||||
|
||||
def get_start_period(self, data):
|
||||
if data.get('form', False) and data['form'].get('period_from', False):
|
||||
return pooler.get_pool(self.cr.dbname).get('account.period').browse(self.cr,self.uid,data['form']['period_from']).name
|
||||
return self.pool.get('account.period').browse(self.cr,self.uid,data['form']['period_from']).name
|
||||
return ''
|
||||
|
||||
def get_end_period(self, data):
|
||||
if data.get('form', False) and data['form'].get('period_to', False):
|
||||
return pooler.get_pool(self.cr.dbname).get('account.period').browse(self.cr, self.uid, data['form']['period_to']).name
|
||||
return self.pool.get('account.period').browse(self.cr, self.uid, data['form']['period_to']).name
|
||||
return ''
|
||||
|
||||
def _get_account(self, data):
|
||||
if data.get('form', False) and data['form'].get('chart_account_id', False):
|
||||
return pooler.get_pool(self.cr.dbname).get('account.account').browse(self.cr, self.uid, data['form']['chart_account_id']).name
|
||||
return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['chart_account_id']).name
|
||||
return ''
|
||||
|
||||
def _get_sortby(self, data):
|
||||
@@ -120,12 +120,12 @@ class common_report_header(object):
|
||||
|
||||
def _get_fiscalyear(self, data):
|
||||
if data.get('form', False) and data['form'].get('fiscalyear_id', False):
|
||||
return pooler.get_pool(self.cr.dbname).get('account.fiscalyear').browse(self.cr, self.uid, data['form']['fiscalyear_id']).name
|
||||
return self.pool.get('account.fiscalyear').browse(self.cr, self.uid, data['form']['fiscalyear_id']).name
|
||||
return ''
|
||||
|
||||
def _get_company(self, data):
|
||||
if data.get('form', False) and data['form'].get('chart_account_id', False):
|
||||
return pooler.get_pool(self.cr.dbname).get('account.account').browse(self.cr, self.uid, data['form']['chart_account_id']).company_id.name
|
||||
return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['chart_account_id']).company_id.name
|
||||
return ''
|
||||
|
||||
def _get_journal(self, data):
|
||||
@@ -137,7 +137,7 @@ class common_report_header(object):
|
||||
|
||||
def _get_currency(self, data):
|
||||
if data.get('form', False) and data['form'].get('chart_account_id', False):
|
||||
return pooler.get_pool(self.cr.dbname).get('account.account').browse(self.cr, self.uid, data['form']['chart_account_id']).company_id.currency_id.symbol
|
||||
return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['chart_account_id']).company_id.currency_id.symbol
|
||||
return ''
|
||||
|
||||
#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
from openerp.osv import osv
|
||||
from openerp.tools.translate import _
|
||||
from openerp import pooler
|
||||
|
||||
class account_invoice_confirm(osv.osv_memory):
|
||||
"""
|
||||
@@ -34,8 +33,7 @@ class account_invoice_confirm(osv.osv_memory):
|
||||
def invoice_confirm(self, cr, uid, ids, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
pool_obj = pooler.get_pool(cr.dbname)
|
||||
account_invoice_obj = pool_obj.get('account.invoice')
|
||||
account_invoice_obj = self.pool['account.invoice']
|
||||
data_inv = account_invoice_obj.read(cr, uid, context['active_ids'], ['state'], context=context)
|
||||
for record in data_inv:
|
||||
if record['state'] not in ('draft','proforma','proforma2'):
|
||||
@@ -58,8 +56,7 @@ class account_invoice_cancel(osv.osv_memory):
|
||||
def invoice_cancel(self, cr, uid, ids, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
pool_obj = pooler.get_pool(cr.dbname)
|
||||
account_invoice_obj = pool_obj.get('account.invoice')
|
||||
account_invoice_obj = self.pool['account.invoice']
|
||||
data_inv = account_invoice_obj.read(cr, uid, context['active_ids'], ['state'], context=context)
|
||||
for record in data_inv:
|
||||
if record['state'] in ('cancel','paid'):
|
||||
|
||||
@@ -21,15 +21,12 @@
|
||||
##############################################################################
|
||||
|
||||
import time
|
||||
|
||||
from openerp.report import report_sxw
|
||||
from openerp import pooler
|
||||
import logging
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
class bank_statement_balance_report(report_sxw.rml_parse):
|
||||
|
||||
def set_context(self, objects, data, ids, report_type=None):
|
||||
#_logger.warning('addons.'+__name__, 'set_context, objects = %s, data = %s, ids = %s' % (objects, data, ids))
|
||||
cr = self.cr
|
||||
uid = self.uid
|
||||
context = self.context
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
import time
|
||||
import datetime
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
|
||||
class analytic_account_budget_report(report_sxw.rml_parse):
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
import time
|
||||
import datetime
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
import operator
|
||||
from openerp import osv
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
import time
|
||||
from collections import defaultdict
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
|
||||
class report_rappel(report_sxw.rml_parse):
|
||||
@@ -38,9 +37,8 @@ class report_rappel(report_sxw.rml_parse):
|
||||
})
|
||||
|
||||
def _ids_to_objects(self, ids):
|
||||
pool = pooler.get_pool(self.cr.dbname)
|
||||
all_lines = []
|
||||
for line in pool.get('account_followup.stat.by.partner').browse(self.cr, self.uid, ids):
|
||||
for line in self.pool['account_followup.stat.by.partner'].browse(self.cr, self.uid, ids):
|
||||
if line not in all_lines:
|
||||
all_lines.append(line)
|
||||
return all_lines
|
||||
@@ -49,8 +47,7 @@ class report_rappel(report_sxw.rml_parse):
|
||||
return self._lines_get_with_partner(stat_by_partner_line.partner_id, stat_by_partner_line.company_id.id)
|
||||
|
||||
def _lines_get_with_partner(self, partner, company_id):
|
||||
pool = pooler.get_pool(self.cr.dbname)
|
||||
moveline_obj = pool.get('account.move.line')
|
||||
moveline_obj = self.pool['account.move.line']
|
||||
moveline_ids = moveline_obj.search(self.cr, self.uid, [
|
||||
('partner_id', '=', partner.id),
|
||||
('account_id.type', '=', 'receivable'),
|
||||
@@ -80,7 +77,7 @@ class report_rappel(report_sxw.rml_parse):
|
||||
if context is None:
|
||||
context = {}
|
||||
context.update({'lang': stat_line.partner_id.lang})
|
||||
fp_obj = pooler.get_pool(self.cr.dbname).get('account_followup.followup')
|
||||
fp_obj = self.pool['account_followup.followup']
|
||||
fp_line = fp_obj.browse(self.cr, self.uid, followup_id, context=context).followup_line
|
||||
if not fp_line:
|
||||
raise osv.except_osv(_('Error!'),_("The followup plan defined for the current company does not have any followup action."))
|
||||
@@ -94,10 +91,10 @@ class report_rappel(report_sxw.rml_parse):
|
||||
li_delay.sort(reverse=True)
|
||||
a = {}
|
||||
#look into the lines of the partner that already have a followup level, and take the description of the higher level for which it is available
|
||||
partner_line_ids = pooler.get_pool(self.cr.dbname).get('account.move.line').search(self.cr, self.uid, [('partner_id','=',stat_line.partner_id.id),('reconcile_id','=',False),('company_id','=',stat_line.company_id.id),('blocked','=',False),('state','!=','draft'),('debit','!=',False),('account_id.type','=','receivable'),('followup_line_id','!=',False)])
|
||||
partner_line_ids = self.pool['account.move.line'].search(self.cr, self.uid, [('partner_id','=',stat_line.partner_id.id),('reconcile_id','=',False),('company_id','=',stat_line.company_id.id),('blocked','=',False),('state','!=','draft'),('debit','!=',False),('account_id.type','=','receivable'),('followup_line_id','!=',False)])
|
||||
partner_max_delay = 0
|
||||
partner_max_text = ''
|
||||
for i in pooler.get_pool(self.cr.dbname).get('account.move.line').browse(self.cr, self.uid, partner_line_ids, context=context):
|
||||
for i in self.pool['account.move.line'].browse(self.cr, self.uid, partner_line_ids, context=context):
|
||||
if i.followup_line_id.delay > partner_max_delay and i.followup_line_id.description:
|
||||
partner_max_delay = i.followup_line_id.delay
|
||||
partner_max_text = i.followup_line_id.description
|
||||
@@ -107,7 +104,7 @@ class report_rappel(report_sxw.rml_parse):
|
||||
'partner_name': stat_line.partner_id.name,
|
||||
'date': time.strftime('%Y-%m-%d'),
|
||||
'company_name': stat_line.company_id.name,
|
||||
'user_signature': pooler.get_pool(self.cr.dbname).get('res.users').browse(self.cr, self.uid, self.uid, context).signature or '',
|
||||
'user_signature': self.pool['res.users'].browse(self.cr, self.uid, self.uid, context).signature or '',
|
||||
}
|
||||
return text
|
||||
|
||||
|
||||
@@ -7,14 +7,14 @@ msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 6.0dev\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2012-12-21 17:05+0000\n"
|
||||
"PO-Revision-Date: 2011-01-30 18:36+0000\n"
|
||||
"Last-Translator: Krisztian Eyssen <krisz@eyssen.hu>\n"
|
||||
"PO-Revision-Date: 2013-03-26 14:28+0000\n"
|
||||
"Last-Translator: krnkris <Unknown>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-16 05:26+0000\n"
|
||||
"X-Generator: Launchpad (build 16532)\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-27 04:36+0000\n"
|
||||
"X-Generator: Launchpad (build 16540)\n"
|
||||
|
||||
#. module: account_payment
|
||||
#: model:ir.actions.act_window,help:account_payment.action_payment_order_tree
|
||||
@@ -28,6 +28,14 @@ msgid ""
|
||||
" </p>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
"<p class=\"oe_view_nocontent_create\">\n"
|
||||
" Kattintson átutalási megbízás létrehozásához.\n"
|
||||
" </p><p>\n"
|
||||
" Az átutalási, fizetési megbízás egy fizetési igény "
|
||||
"kiegyenlítése a beszállító felé vagy \n"
|
||||
" egy vevő jóváíró számlájához a vállalkozásánál.\n"
|
||||
" </p>\n"
|
||||
" "
|
||||
|
||||
#. module: account_payment
|
||||
#: field:payment.line,currency:0
|
||||
@@ -81,7 +89,7 @@ msgstr "Vállalat"
|
||||
#. module: account_payment
|
||||
#: model:res.groups,name:account_payment.group_account_payment
|
||||
msgid "Accounting / Payments"
|
||||
msgstr ""
|
||||
msgstr "Könyvelés / Átutalások, fizetések"
|
||||
|
||||
#. module: account_payment
|
||||
#: selection:payment.line,state:0
|
||||
@@ -123,13 +131,15 @@ msgid ""
|
||||
"You cannot cancel an invoice which has already been imported in a payment "
|
||||
"order. Remove it from the following payment order : %s."
|
||||
msgstr ""
|
||||
"Nem tud visszavonni olyan számlát ami már be lett töltve, importálva az "
|
||||
"utalásba. Vegye le a következő utalási megbízásból : %s."
|
||||
|
||||
#. module: account_payment
|
||||
#: code:addons/account_payment/account_invoice.py:43
|
||||
#: code:addons/account_payment/account_move_line.py:110
|
||||
#, python-format
|
||||
msgid "Error!"
|
||||
msgstr ""
|
||||
msgstr "Hiba!"
|
||||
|
||||
#. module: account_payment
|
||||
#: report:payment.order:0
|
||||
@@ -194,6 +204,10 @@ msgid ""
|
||||
" Once the bank is confirmed the status is set to 'Confirmed'.\n"
|
||||
" Then the order is paid the status is 'Done'."
|
||||
msgstr ""
|
||||
"Ha az utalás, megbízás be lett rögzítve akkor annak állapota 'Tervezet'.\n"
|
||||
" Ha a bank jóváhagyta annak rögzítési állapotát akkor az állapota "
|
||||
"'Jóváhagyott'.\n"
|
||||
" Ha az utalás, fizetés végrehajtva akkor annak az állapota 'Elvégezve'."
|
||||
|
||||
#. module: account_payment
|
||||
#: view:payment.order:0
|
||||
@@ -219,7 +233,7 @@ msgstr "Struktúrált"
|
||||
#. module: account_payment
|
||||
#: view:account.bank.statement:0
|
||||
msgid "Import Payment Lines"
|
||||
msgstr ""
|
||||
msgstr "Utalási sorok betöltése, importálása"
|
||||
|
||||
#. module: account_payment
|
||||
#: view:payment.line:0
|
||||
@@ -261,7 +275,7 @@ msgstr ""
|
||||
#. module: account_payment
|
||||
#: field:payment.order,date_created:0
|
||||
msgid "Creation Date"
|
||||
msgstr ""
|
||||
msgstr "Létrehozás dátuma"
|
||||
|
||||
#. module: account_payment
|
||||
#: help:payment.mode,journal:0
|
||||
@@ -271,7 +285,7 @@ msgstr "A fizetési mód bank- vagy pénztárnaplója"
|
||||
#. module: account_payment
|
||||
#: selection:payment.order,date_prefered:0
|
||||
msgid "Fixed date"
|
||||
msgstr "Rögzített"
|
||||
msgstr "Rögzített dátum"
|
||||
|
||||
#. module: account_payment
|
||||
#: field:payment.line,info_partner:0
|
||||
@@ -369,7 +383,7 @@ msgstr "Átutalás hozzáadása a kivonathoz"
|
||||
#: code:addons/account_payment/account_move_line.py:110
|
||||
#, python-format
|
||||
msgid "There is no partner defined on the entry line."
|
||||
msgstr ""
|
||||
msgstr "A beviteli soron nem lett partner meghatározva"
|
||||
|
||||
#. module: account_payment
|
||||
#: help:payment.mode,name:0
|
||||
@@ -401,7 +415,7 @@ msgstr "Tervezet"
|
||||
#: view:payment.order:0
|
||||
#: field:payment.order,state:0
|
||||
msgid "Status"
|
||||
msgstr ""
|
||||
msgstr "Állapot"
|
||||
|
||||
#. module: account_payment
|
||||
#: help:payment.line,communication2:0
|
||||
@@ -432,7 +446,7 @@ msgstr "Átutalás sorok"
|
||||
#. module: account_payment
|
||||
#: model:ir.model,name:account_payment.model_account_move_line
|
||||
msgid "Journal Items"
|
||||
msgstr "Könyvelési tételsorok"
|
||||
msgstr "Könyvelési napló tételsorok"
|
||||
|
||||
#. module: account_payment
|
||||
#: help:payment.line,move_line_id:0
|
||||
@@ -449,7 +463,7 @@ msgstr "Keresés"
|
||||
#. module: account_payment
|
||||
#: field:payment.order,user_id:0
|
||||
msgid "Responsible"
|
||||
msgstr ""
|
||||
msgstr "Felelős"
|
||||
|
||||
#. module: account_payment
|
||||
#: field:payment.line,date:0
|
||||
@@ -464,7 +478,7 @@ msgstr "Összesen:"
|
||||
#. module: account_payment
|
||||
#: field:payment.order,date_done:0
|
||||
msgid "Execution Date"
|
||||
msgstr ""
|
||||
msgstr "Kivitelezés dátuma"
|
||||
|
||||
#. module: account_payment
|
||||
#: view:account.payment.populate.statement:0
|
||||
@@ -538,12 +552,12 @@ msgstr "Közlemény"
|
||||
#: view:account.payment.populate.statement:0
|
||||
#: view:payment.order.create:0
|
||||
msgid "Cancel"
|
||||
msgstr "Mégse"
|
||||
msgstr "Visszavonás"
|
||||
|
||||
#. module: account_payment
|
||||
#: field:payment.line,bank_id:0
|
||||
msgid "Destination Bank Account"
|
||||
msgstr ""
|
||||
msgstr "Jogosult bankszámla száma"
|
||||
|
||||
#. module: account_payment
|
||||
#: view:payment.line:0
|
||||
@@ -581,7 +595,7 @@ msgstr "Közlemény folytatása"
|
||||
#. module: account_payment
|
||||
#: field:payment.order,date_scheduled:0
|
||||
msgid "Scheduled Date"
|
||||
msgstr ""
|
||||
msgstr "Tervezett dátum"
|
||||
|
||||
#. module: account_payment
|
||||
#: view:account.payment.make.payment:0
|
||||
@@ -676,14 +690,14 @@ msgstr "Átutalás végrehajtása"
|
||||
#. module: account_payment
|
||||
#: field:payment.order,date_prefered:0
|
||||
msgid "Preferred Date"
|
||||
msgstr ""
|
||||
msgstr "Előnyben részesített dátum"
|
||||
|
||||
#. module: account_payment
|
||||
#: view:account.payment.make.payment:0
|
||||
#: view:account.payment.populate.statement:0
|
||||
#: view:payment.order.create:0
|
||||
msgid "or"
|
||||
msgstr ""
|
||||
msgstr "vagy"
|
||||
|
||||
#. module: account_payment
|
||||
#: help:payment.mode,bank_id:0
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
import time
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
|
||||
class payment_order(report_sxw.rml_parse):
|
||||
@@ -38,8 +37,7 @@ class payment_order(report_sxw.rml_parse):
|
||||
|
||||
def _get_invoice_name(self, invoice_id):
|
||||
if invoice_id:
|
||||
pool = pooler.get_pool(self.cr.dbname)
|
||||
value_name = pool.get('account.invoice').name_get(self.cr, self.uid, [invoice_id])
|
||||
value_name = self.pool['account.invoice'].name_get(self.cr, self.uid, [invoice_id])
|
||||
if value_name:
|
||||
return value_name[0][1]
|
||||
return False
|
||||
@@ -67,8 +65,7 @@ class payment_order(report_sxw.rml_parse):
|
||||
|
||||
def _get_account_name(self,bank_id):
|
||||
if bank_id:
|
||||
pool = pooler.get_pool(self.cr.dbname)
|
||||
value_name = pool.get('res.partner.bank').name_get(self.cr, self.uid, [bank_id])
|
||||
value_name = self.pool['res.partner.bank'].name_get(self.cr, self.uid, [bank_id])
|
||||
if value_name:
|
||||
return value_name[0][1]
|
||||
return False
|
||||
|
||||
@@ -7,14 +7,14 @@ msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 6.0dev\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2012-12-21 17:04+0000\n"
|
||||
"PO-Revision-Date: 2012-12-27 22:53+0000\n"
|
||||
"Last-Translator: Balint (eSolve) <Unknown>\n"
|
||||
"PO-Revision-Date: 2013-03-26 15:03+0000\n"
|
||||
"Last-Translator: krnkris <Unknown>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-16 05:33+0000\n"
|
||||
"X-Generator: Launchpad (build 16532)\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-27 04:36+0000\n"
|
||||
"X-Generator: Launchpad (build 16540)\n"
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.bank.statement.line,voucher_id:0
|
||||
@@ -24,7 +24,7 @@ msgstr ""
|
||||
#. module: account_voucher
|
||||
#: model:ir.model,name:account_voucher.model_account_config_settings
|
||||
msgid "account.config.settings"
|
||||
msgstr ""
|
||||
msgstr "account.config.settings"
|
||||
|
||||
#. module: account_voucher
|
||||
#: code:addons/account_voucher/account_voucher.py:369
|
||||
@@ -59,11 +59,13 @@ msgid ""
|
||||
"Computed as the difference between the amount stated in the voucher and the "
|
||||
"sum of allocation on the voucher lines."
|
||||
msgstr ""
|
||||
"Különbség ami a nyugtán lévő végösszeg és a nyugta soraiban lévő rész "
|
||||
"összegek különbsége."
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
msgid "(Update)"
|
||||
msgstr ""
|
||||
msgstr "(Frissítés)"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
@@ -90,7 +92,7 @@ msgstr "Március"
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,message_unread:0
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
msgstr "Olvasatlan üzenetek"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
@@ -115,13 +117,13 @@ msgstr "Tranzakció hivatkozási száma"
|
||||
#. module: account_voucher
|
||||
#: view:sale.receipt.report:0
|
||||
msgid "Group by year of Invoice Date"
|
||||
msgstr ""
|
||||
msgstr "Számla kibocsátási éve szerinti csoportosítás"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:sale.receipt.report:0
|
||||
#: field:sale.receipt.report,user_id:0
|
||||
msgid "Salesperson"
|
||||
msgstr ""
|
||||
msgstr "Értékesítő"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
@@ -145,7 +147,7 @@ msgstr "Jóváhagyás"
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_vendor_payment
|
||||
#: model:ir.ui.menu,name:account_voucher.menu_action_vendor_payment
|
||||
msgid "Supplier Payments"
|
||||
msgstr ""
|
||||
msgstr "Beszállítói átutalások, fizetések"
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.act_window,help:account_voucher.action_purchase_receipt
|
||||
@@ -179,7 +181,7 @@ msgstr "Főkönyvi számla"
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,line_dr_ids:0
|
||||
msgid "Debits"
|
||||
msgstr "Tartozik"
|
||||
msgstr "Tartozások"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.statement.from.invoice.lines:0
|
||||
@@ -207,7 +209,7 @@ msgstr "Megjegyzések"
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,message_ids:0
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
msgstr "Üzenetek"
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.act_window,name:account_voucher.action_purchase_receipt
|
||||
@@ -225,7 +227,7 @@ msgstr "Könyvelési tételsor"
|
||||
#: code:addons/account_voucher/account_voucher.py:981
|
||||
#, python-format
|
||||
msgid "Error!"
|
||||
msgstr ""
|
||||
msgstr "Hiba!"
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher.line,amount:0
|
||||
@@ -347,7 +349,7 @@ msgstr "Számlák importálása"
|
||||
#: code:addons/account_voucher/account_voucher.py:1112
|
||||
#, python-format
|
||||
msgid "Wrong voucher line"
|
||||
msgstr ""
|
||||
msgstr "Nem megfelelő nyugta sorok"
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.voucher,pay_now:0
|
||||
@@ -425,7 +427,7 @@ msgstr "Típus"
|
||||
#. module: account_voucher
|
||||
#: view:sale.receipt.report:0
|
||||
msgid "Pro-forma Vouchers"
|
||||
msgstr ""
|
||||
msgstr "Pro-forma nyugták"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
@@ -468,7 +470,7 @@ msgstr ""
|
||||
#. module: account_voucher
|
||||
#: field:account.voucher,is_multi_currency:0
|
||||
msgid "Multi Currency Voucher"
|
||||
msgstr ""
|
||||
msgstr "Több pénznemű nyugták"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
@@ -524,7 +526,7 @@ msgstr "ÁFA összege"
|
||||
#. module: account_voucher
|
||||
#: view:sale.receipt.report:0
|
||||
msgid "Validated Vouchers"
|
||||
msgstr ""
|
||||
msgstr "Jóváhagyott nyugták"
|
||||
|
||||
#. module: account_voucher
|
||||
#: model:ir.actions.act_window,help:account_voucher.action_vendor_receipt
|
||||
@@ -589,7 +591,7 @@ msgstr "Költség sorok"
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
msgid "Sale voucher"
|
||||
msgstr ""
|
||||
msgstr "Értékesítési nyugta"
|
||||
|
||||
#. module: account_voucher
|
||||
#: help:account.voucher,is_multi_currency:0
|
||||
@@ -639,12 +641,12 @@ msgstr "Vevők és szállítók"
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
msgid "Voucher Payment"
|
||||
msgstr ""
|
||||
msgstr "Nyugta kiegyenlítés"
|
||||
|
||||
#. module: account_voucher
|
||||
#: field:sale.receipt.report,state:0
|
||||
msgid "Voucher Status"
|
||||
msgstr ""
|
||||
msgstr "Nyugta állapota"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
@@ -662,7 +664,7 @@ msgstr "Vállalat"
|
||||
#. module: account_voucher
|
||||
#: help:account.voucher,paid:0
|
||||
msgid "The Voucher has been totally paid."
|
||||
msgstr ""
|
||||
msgstr "A nyugta ki lett egyenlítve"
|
||||
|
||||
#. module: account_voucher
|
||||
#: selection:account.voucher,payment_option:0
|
||||
@@ -679,7 +681,7 @@ msgstr ""
|
||||
#: view:account.voucher:0
|
||||
#: view:sale.receipt.report:0
|
||||
msgid "Draft Vouchers"
|
||||
msgstr ""
|
||||
msgstr "Nyugta tervezetek"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:sale.receipt.report:0
|
||||
@@ -690,7 +692,7 @@ msgstr "Bruttó érték"
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
msgid "Purchase Voucher"
|
||||
msgstr ""
|
||||
msgstr "Beszerzési nyugta"
|
||||
|
||||
#. module: account_voucher
|
||||
#: view:account.voucher:0
|
||||
|
||||
+41
-33
@@ -7,14 +7,14 @@ msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 6.0dev\n"
|
||||
"Report-Msgid-Bugs-To: support@openerp.com\n"
|
||||
"POT-Creation-Date: 2012-12-21 17:05+0000\n"
|
||||
"PO-Revision-Date: 2011-01-30 18:54+0000\n"
|
||||
"Last-Translator: Krisztian Eyssen <krisz@eyssen.hu>\n"
|
||||
"PO-Revision-Date: 2013-03-25 13:25+0000\n"
|
||||
"Last-Translator: krnkris <Unknown>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-16 05:41+0000\n"
|
||||
"X-Generator: Launchpad (build 16532)\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-26 04:44+0000\n"
|
||||
"X-Generator: Launchpad (build 16540)\n"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,child_ids:0
|
||||
@@ -24,13 +24,13 @@ msgstr "Alárendelt gyűjtőkódok"
|
||||
#. module: analytic
|
||||
#: selection:account.analytic.account,state:0
|
||||
msgid "In Progress"
|
||||
msgstr ""
|
||||
msgstr "Folyamatban"
|
||||
|
||||
#. module: analytic
|
||||
#: code:addons/analytic/analytic.py:229
|
||||
#, python-format
|
||||
msgid "Contract: "
|
||||
msgstr ""
|
||||
msgstr "Szerződés: "
|
||||
|
||||
#. module: analytic
|
||||
#: selection:account.analytic.account,state:0
|
||||
@@ -40,7 +40,7 @@ msgstr "Sablon"
|
||||
#. module: analytic
|
||||
#: view:account.analytic.account:0
|
||||
msgid "End Date"
|
||||
msgstr ""
|
||||
msgstr "Befejezés dátuma"
|
||||
|
||||
#. module: analytic
|
||||
#: help:account.analytic.line,unit_amount:0
|
||||
@@ -64,6 +64,14 @@ msgid ""
|
||||
"The special type 'Template of Contract' allows you to define a template with "
|
||||
"default data that you can reuse easily."
|
||||
msgstr ""
|
||||
"A nézet típus kiválasztásával, megtiltja ezzel a fiókkal a napló bejegyzés "
|
||||
"készítését.\n"
|
||||
"Az 'Elemző/gyüjtő számla' típust olyan fiókokhoz használja, melyeket csak "
|
||||
"könyveléshez használ.\n"
|
||||
"Ha Szerződést vagy Projektet választ, lehetősége lesz kezelni a fiók "
|
||||
"érvényesítés és számlázási lehetőségeit.\n"
|
||||
"A speciális 'Szerződési sablon' típus lehetővé teszi alapértékekkel "
|
||||
"kitöltött sablon létrehozását, melyet könnyen ismét felhasználhat."
|
||||
|
||||
#. module: analytic
|
||||
#: view:account.analytic.account:0
|
||||
@@ -82,12 +90,12 @@ msgstr ""
|
||||
#. module: analytic
|
||||
#: selection:account.analytic.account,type:0
|
||||
msgid "Contract or Project"
|
||||
msgstr ""
|
||||
msgstr "Projekt szerződése"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,name:0
|
||||
msgid "Account/Contract Name"
|
||||
msgstr ""
|
||||
msgstr "Fiók/Szerződés neve"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,manager_id:0
|
||||
@@ -97,7 +105,7 @@ msgstr "Felelős"
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,message_follower_ids:0
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
msgstr "Követők"
|
||||
|
||||
#. module: analytic
|
||||
#: selection:account.analytic.account,state:0
|
||||
@@ -107,28 +115,28 @@ msgstr "Lezárt"
|
||||
#. module: analytic
|
||||
#: model:mail.message.subtype,name:analytic.mt_account_pending
|
||||
msgid "Contract to Renew"
|
||||
msgstr ""
|
||||
msgstr "Megújítandó szerződés"
|
||||
|
||||
#. module: analytic
|
||||
#: selection:account.analytic.account,state:0
|
||||
msgid "New"
|
||||
msgstr ""
|
||||
msgstr "Új"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,user_id:0
|
||||
msgid "Project Manager"
|
||||
msgstr ""
|
||||
msgstr "Projektmenedzser"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,state:0
|
||||
msgid "Status"
|
||||
msgstr ""
|
||||
msgstr "Állapot"
|
||||
|
||||
#. module: analytic
|
||||
#: code:addons/analytic/analytic.py:271
|
||||
#, python-format
|
||||
msgid "%s (copy)"
|
||||
msgstr ""
|
||||
msgstr "%s (másolat)"
|
||||
|
||||
#. module: analytic
|
||||
#: model:ir.model,name:analytic.model_account_analytic_line
|
||||
@@ -144,12 +152,12 @@ msgstr "Leírás"
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,message_unread:0
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
msgstr "Olvasatlan üzenetek"
|
||||
|
||||
#. module: analytic
|
||||
#: constraint:account.analytic.account:0
|
||||
msgid "Error! You cannot create recursive analytic accounts."
|
||||
msgstr ""
|
||||
msgstr "Hiba! Nem tud visszatérő Elemző/Gyűjtő számlákat létrehozni."
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,company_id:0
|
||||
@@ -160,12 +168,12 @@ msgstr "Vállalat"
|
||||
#. module: analytic
|
||||
#: view:account.analytic.account:0
|
||||
msgid "Renewal"
|
||||
msgstr ""
|
||||
msgstr "Megújítás"
|
||||
|
||||
#. module: analytic
|
||||
#: help:account.analytic.account,message_ids:0
|
||||
msgid "Messages and communication history"
|
||||
msgstr ""
|
||||
msgstr "Üzenetek és kommunikációs történet"
|
||||
|
||||
#. module: analytic
|
||||
#: model:mail.message.subtype,description:analytic.mt_account_opened
|
||||
@@ -194,7 +202,7 @@ msgstr ""
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,message_is_follower:0
|
||||
msgid "Is a Follower"
|
||||
msgstr ""
|
||||
msgstr "Ez egy követő"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.line,user_id:0
|
||||
@@ -204,7 +212,7 @@ msgstr "Felhasználó"
|
||||
#. module: analytic
|
||||
#: model:mail.message.subtype,description:analytic.mt_account_pending
|
||||
msgid "Contract <b>pending</b>"
|
||||
msgstr ""
|
||||
msgstr "Szerződés <b>függőben</b>"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.line,date:0
|
||||
@@ -214,12 +222,12 @@ msgstr "Dátum"
|
||||
#. module: analytic
|
||||
#: model:mail.message.subtype,name:analytic.mt_account_closed
|
||||
msgid "Contract Finished"
|
||||
msgstr ""
|
||||
msgstr "Szerződés végrehejtva"
|
||||
|
||||
#. module: analytic
|
||||
#: view:account.analytic.account:0
|
||||
msgid "Terms and Conditions"
|
||||
msgstr ""
|
||||
msgstr "Kikötések és feltételek"
|
||||
|
||||
#. module: analytic
|
||||
#: help:account.analytic.line,amount:0
|
||||
@@ -233,17 +241,17 @@ msgstr ""
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,partner_id:0
|
||||
msgid "Customer"
|
||||
msgstr ""
|
||||
msgstr "Vevő"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,child_complete_ids:0
|
||||
msgid "Account Hierarchy"
|
||||
msgstr ""
|
||||
msgstr "Számla fiók hierarchia, rangsor"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,message_ids:0
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
msgstr "Üzenetek"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,parent_id:0
|
||||
@@ -253,23 +261,23 @@ msgstr "Fölérendelt gyűjtőkód"
|
||||
#. module: analytic
|
||||
#: view:account.analytic.account:0
|
||||
msgid "Contract Information"
|
||||
msgstr ""
|
||||
msgstr "Szerződé információja"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,template_id:0
|
||||
#: selection:account.analytic.account,type:0
|
||||
msgid "Template of Contract"
|
||||
msgstr ""
|
||||
msgstr "Szerződés sablonja"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,message_summary:0
|
||||
msgid "Summary"
|
||||
msgstr ""
|
||||
msgstr "Összegzés"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,quantity_max:0
|
||||
msgid "Prepaid Service Units"
|
||||
msgstr ""
|
||||
msgstr "Előre fizetett szolgáltatási egység"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,credit:0
|
||||
@@ -279,12 +287,12 @@ msgstr "Követel"
|
||||
#. module: analytic
|
||||
#: model:mail.message.subtype,name:analytic.mt_account_opened
|
||||
msgid "Contract Opened"
|
||||
msgstr ""
|
||||
msgstr "Szerződés megnyitva, elindítva"
|
||||
|
||||
#. module: analytic
|
||||
#: model:mail.message.subtype,description:analytic.mt_account_closed
|
||||
msgid "Contract <b>closed</b>"
|
||||
msgstr ""
|
||||
msgstr "Szerződés <b>lezárva</b>"
|
||||
|
||||
#. module: analytic
|
||||
#: selection:account.analytic.account,state:0
|
||||
@@ -294,7 +302,7 @@ msgstr "Érvénytelenített"
|
||||
#. module: analytic
|
||||
#: selection:account.analytic.account,type:0
|
||||
msgid "Analytic View"
|
||||
msgstr ""
|
||||
msgstr "Elemző nézet"
|
||||
|
||||
#. module: analytic
|
||||
#: field:account.analytic.account,balance:0
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import openerp
|
||||
from openerp.osv import fields, osv
|
||||
import openerp.service.model
|
||||
from openerp.tools.translate import _
|
||||
from openerp import pooler
|
||||
import time
|
||||
from openerp import tools
|
||||
from openerp import SUPERUSER_ID
|
||||
@@ -113,7 +113,6 @@ class audittrail_rule(osv.osv):
|
||||
value = "ir.actions.act_window" + ',' + str(w_id[0])
|
||||
val_id = ir_values_obj.search(cr, uid, [('model', '=', thisrule.object_id.model), ('value', '=', value)])
|
||||
if val_id:
|
||||
ir_values_obj = pooler.get_pool(cr.dbname).get('ir.values')
|
||||
res = ir_values_obj.unlink(cr, uid, [val_id[0]])
|
||||
self.write(cr, uid, [thisrule.id], {"state": "draft"})
|
||||
#End Loop
|
||||
@@ -212,7 +211,7 @@ def create_log_line(cr, uid, log_id, model, lines=None):
|
||||
"""
|
||||
if lines is None:
|
||||
lines = []
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
pool = openerp.registry(cr.dbname)
|
||||
obj_pool = pool.get(model.model)
|
||||
model_pool = pool.get('ir.model')
|
||||
field_pool = pool.get('ir.model.fields')
|
||||
@@ -251,7 +250,7 @@ def log_fct(cr, uid_orig, model, method, fct_src, *args, **kw):
|
||||
|
||||
@return: Returns result as per method of Object proxy
|
||||
"""
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
pool = openerp.registry(cr.dbname)
|
||||
resource_pool = pool.get(model)
|
||||
model_pool = pool.get('ir.model')
|
||||
model_ids = model_pool.search(cr, SUPERUSER_ID, [('model', '=', model)])
|
||||
@@ -492,7 +491,7 @@ def check_rules(cr, uid, model, method):
|
||||
@param method: method to log: create, read, unlink,write,actions,workflow actions
|
||||
@return: True or False
|
||||
"""
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
pool = openerp.registry(cr.dbname)
|
||||
if 'audittrail.rule' in pool.models:
|
||||
model_ids = pool.get('ir.model').search(cr, SUPERUSER_ID, [('model', '=', model)])
|
||||
model_id = model_ids and model_ids[0] or False
|
||||
|
||||
@@ -23,7 +23,6 @@ import logging
|
||||
from ldap.filter import filter_format
|
||||
|
||||
import openerp.exceptions
|
||||
from openerp import pooler
|
||||
from openerp import tools
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import SUPERUSER_ID
|
||||
@@ -188,7 +187,7 @@ class CompanyLDAP(osv.osv):
|
||||
user_id = res[0]
|
||||
elif conf['create_user']:
|
||||
_logger.debug("Creating new OpenERP user \"%s\" from LDAP" % login)
|
||||
user_obj = self.pool.get('res.users')
|
||||
user_obj = self.pool['res.users']
|
||||
values = self.map_ldap_attributes(cr, uid, conf, login, ldap_entry)
|
||||
if conf['user']:
|
||||
user_id = user_obj.copy(cr, SUPERUSER_ID, conf['user'],
|
||||
@@ -246,8 +245,8 @@ class users(osv.osv):
|
||||
user_id = super(users, self).login(db, login, password)
|
||||
if user_id:
|
||||
return user_id
|
||||
cr = pooler.get_db(db).cursor()
|
||||
ldap_obj = pooler.get_pool(db).get('res.company.ldap')
|
||||
cr = self.pool.db.cursor()
|
||||
ldap_obj = self.pool['res.company.ldap']
|
||||
for conf in ldap_obj.get_ldap_dicts(cr):
|
||||
entry = ldap_obj.authenticate(conf, login, password)
|
||||
if entry:
|
||||
@@ -269,12 +268,12 @@ class users(osv.osv):
|
||||
except openerp.exceptions.AccessDenied:
|
||||
pass
|
||||
|
||||
cr = pooler.get_db(db).cursor()
|
||||
cr = self.pool.db.cursor()
|
||||
cr.execute('SELECT login FROM res_users WHERE id=%s AND active=TRUE',
|
||||
(int(uid),))
|
||||
res = cr.fetchone()
|
||||
if res:
|
||||
ldap_obj = pooler.get_pool(db).get('res.company.ldap')
|
||||
ldap_obj = self.pool['res.company.ldap']
|
||||
for conf in ldap_obj.get_ldap_dicts(cr):
|
||||
if ldap_obj.authenticate(conf, res[0], passwd):
|
||||
self._uid_cache.setdefault(db, {})[uid] = passwd
|
||||
|
||||
+214
-60
@@ -8,14 +8,14 @@ msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-12-21 17:05+0000\n"
|
||||
"PO-Revision-Date: 2013-03-17 23:49+0000\n"
|
||||
"PO-Revision-Date: 2013-03-27 22:52+0000\n"
|
||||
"Last-Translator: krnkris <Unknown>\n"
|
||||
"Language-Team: Hungarian <hu@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-19 05:33+0000\n"
|
||||
"X-Generator: Launchpad (build 16532)\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-28 04:41+0000\n"
|
||||
"X-Generator: Launchpad (build 16546)\n"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -441,6 +441,20 @@ msgid ""
|
||||
"category \n"
|
||||
" hierarchy."
|
||||
msgstr ""
|
||||
"Például, ha két termék kategóriával rendelkezik \n"
|
||||
" ezzel az al-névvel \"Értékesíthető\" (pl. \"Egyéb \n"
|
||||
" Termékek/Értékesíthetők\" & \"Más "
|
||||
"Termékek/Értékesíthetők\"),\n"
|
||||
" akkor a jóváhagyás meg lesz állítva, de az adatait "
|
||||
"még tudja \n"
|
||||
" importálni. Azonban, nem ajánlott az adat betöltése "
|
||||
"\n"
|
||||
" mivel az összes adat az első találhat "
|
||||
"'Értékesíthető' kategóriához \n"
|
||||
" lesz hozzárendelve a Termék kategória listában \n"
|
||||
" (\"Egyéb Termékeke/Értékesíthető\"). Ajánljuk, hogy "
|
||||
"módosítsa \n"
|
||||
" a termék kategória rangsor egyik ismétlődő értékét ."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -452,6 +466,9 @@ msgid ""
|
||||
"\n"
|
||||
" PSQL:"
|
||||
msgstr ""
|
||||
"Személyekhez CVS fájl létrehozása, vállalatokhoz\n"
|
||||
" kapcsolva, a következő SQL parancsot használva a \n"
|
||||
" PSQL-ben:"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -463,11 +480,16 @@ msgid ""
|
||||
" (in 'Save As' dialog box > click 'Tools' dropdown \n"
|
||||
" list > Encoding tab)."
|
||||
msgstr ""
|
||||
"Microsoft Excel lehetővé teszi\n"
|
||||
" csak a kódolás módosítását az elmentés alatt \n"
|
||||
" (a 'Mentés másként' párbeszéd ablakban > kattints a "
|
||||
"'Kellékek' legördülő \n"
|
||||
" listán > a Kódolás fülre)."
|
||||
|
||||
#. module: base_import
|
||||
#: field:base_import.tests.models.preview,othervalue:0
|
||||
msgid "Other Variable"
|
||||
msgstr ""
|
||||
msgstr "Másik változó"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -479,6 +501,11 @@ msgid ""
|
||||
" later, it's thus good practice to specify it\n"
|
||||
" whenever possible"
|
||||
msgstr ""
|
||||
"az eredeti importálás frissítéséhez is \n"
|
||||
" használja, ha később is fel akarja használni az újra-"
|
||||
"importált módosított\n"
|
||||
" adatot, amikor csak lehet ez egy jó gyakorlás a \n"
|
||||
" meghatározáshoz"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -488,6 +515,9 @@ msgid ""
|
||||
"file to import. If you need a sample importable file, you\n"
|
||||
" can use the export tool to generate one."
|
||||
msgstr ""
|
||||
"fájl importáláshoz, betöltéshez. Ha szüksége van egy importálható példa "
|
||||
"fájlra, akkor\n"
|
||||
" használhatja az export eszközt egy új generálásához."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -497,16 +527,19 @@ msgid ""
|
||||
"Country/Database \n"
|
||||
" ID: 21"
|
||||
msgstr ""
|
||||
"Ország/Adatbázis \n"
|
||||
" ID: 21"
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_char
|
||||
msgid "base_import.tests.models.char"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.char"
|
||||
|
||||
#. module: base_import
|
||||
#: help:base_import.import,file:0
|
||||
msgid "File to check and/or import, raw binary (not base64)"
|
||||
msgstr ""
|
||||
"Az importálandó és/vagy ellenőrizni kívánt fájl, nyers bináris (nem base64)"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -514,6 +547,7 @@ msgstr ""
|
||||
#, python-format
|
||||
msgid "Purchase orders with their respective purchase order lines"
|
||||
msgstr ""
|
||||
"Beszerzési megrendelések a hozzájuk tartozó beszerzési megrendelés sorokkal"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -525,13 +559,18 @@ msgid ""
|
||||
" field corresponding to the column. This makes imports\n"
|
||||
" simpler especially when the file has many columns."
|
||||
msgstr ""
|
||||
"Ha a fájl tartalmazza\n"
|
||||
" az oszlop neveket, OpenERP megpróbálhatja automatikusan "
|
||||
"észlelni\n"
|
||||
" oszlophoz tartozó mezőt. Ez az importálásokat egyszerűbbé\n"
|
||||
" teszi, főként, ha a fájl tele van oszlopokkal."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:26
|
||||
#, python-format
|
||||
msgid ".CSV"
|
||||
msgstr ""
|
||||
msgstr ".CSV"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -541,16 +580,18 @@ msgid ""
|
||||
". The issue is\n"
|
||||
" usually an incorrect file encoding."
|
||||
msgstr ""
|
||||
". A probléma\n"
|
||||
" általában a téves fájl kódolás."
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_m2o_required
|
||||
msgid "base_import.tests.models.m2o.required"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.m2o.required"
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_char_noreadonly
|
||||
msgid "base_import.tests.models.char.noreadonly"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.char.noreadonly"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -567,65 +608,75 @@ msgid ""
|
||||
"filter \n"
|
||||
" settings' > Save)."
|
||||
msgstr ""
|
||||
"Ha szerkeszti és menti a CSV fájlt a táblázat kezelő \n"
|
||||
" alkalmazásokban, a számítógépének területi "
|
||||
"beállítása lesz \n"
|
||||
" az elválasztáshoz és a határolójelekhez használva. \n"
|
||||
" Ajánljuk az OpenOffice vagy LibreOffice Calc \n"
|
||||
" használatát, mivel ezek lehetővé teszik mindhárom "
|
||||
"lehetőség\n"
|
||||
" módosítását (a 'Mentés másként' beszédpanelen > a\n"
|
||||
" 'Szerkesztési szűrő beállítás' négyzetnek\n"
|
||||
" a bejelölésével > Mentés)."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:30
|
||||
#, python-format
|
||||
msgid "CSV File:"
|
||||
msgstr ""
|
||||
msgstr "CSV Fájl:"
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_preview
|
||||
msgid "base_import.tests.models.preview"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.preview"
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_char_required
|
||||
msgid "base_import.tests.models.char.required"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.char.required"
|
||||
|
||||
#. module: base_import
|
||||
#: code:addons/base_import/models.py:112
|
||||
#, python-format
|
||||
msgid "Database ID"
|
||||
msgstr ""
|
||||
msgstr "Adatbázis ID azonosító"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:313
|
||||
#, python-format
|
||||
msgid "It will produce the following CSV file:"
|
||||
msgstr ""
|
||||
msgstr "Ez a következő CSV fájlt fogja létrehozni:"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:362
|
||||
#, python-format
|
||||
msgid "Here is the start of the file we could not import:"
|
||||
msgstr ""
|
||||
msgstr "Itt van a fájlnak az eleje, melyiket nem tudtuk importálni:"
|
||||
|
||||
#. module: base_import
|
||||
#: field:base_import.import,file_type:0
|
||||
msgid "File Type"
|
||||
msgstr ""
|
||||
msgstr "Fájl típus"
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_import
|
||||
msgid "base_import.import"
|
||||
msgstr ""
|
||||
msgstr "base_import.import"
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_o2m
|
||||
msgid "base_import.tests.models.o2m"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.o2m"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:360
|
||||
#, python-format
|
||||
msgid "Import preview failed due to:"
|
||||
msgstr ""
|
||||
msgstr "Import előnézet ezért nem sikerült:"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -637,18 +688,22 @@ msgid ""
|
||||
"\n"
|
||||
" that imported it)"
|
||||
msgstr ""
|
||||
"Ország/Külső ID azonosító: ennek a rekordnak az ID azonosítója\n"
|
||||
" másik alkalmazásban egy hivatkozás (vagy az .XML "
|
||||
"fájl \n"
|
||||
" ami importálta azt)"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:35
|
||||
#, python-format
|
||||
msgid "Reload data to check changes."
|
||||
msgstr ""
|
||||
msgstr "Adatok újratöltése a változások ellenőrzéséhez."
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_char_readonly
|
||||
msgid "base_import.tests.models.char.readonly"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.char.readonly"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -665,6 +720,18 @@ msgid ""
|
||||
"\n"
|
||||
" per field you want to import."
|
||||
msgstr ""
|
||||
"Egyes mezők hivatkozásokat határoznak meg más \n"
|
||||
" objektummal. Például, egy kapcsolat országa \n"
|
||||
" csatolva van egy 'Ország' tárgyú rekorddal. Ha ilyen "
|
||||
"\n"
|
||||
" mezőket szeretne importálni, OpenERP újra létre "
|
||||
"kell\n"
|
||||
" hozza a kapcsolatokat a különböző rekordokhoz. \n"
|
||||
" Ilyen mezők importálásának segítésére, OpenERP három "
|
||||
"\n"
|
||||
" módot biztosít. Kizárólag egy módszert használhat az "
|
||||
"\n"
|
||||
" importálni kívánt mezőnként."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -678,19 +745,26 @@ msgid ""
|
||||
" then you will encode it as follow \"Manufacturer,\n"
|
||||
" Retailer\" in the same column of your CSV file."
|
||||
msgstr ""
|
||||
"A címkéket vesszővel kell elválasztani egyéb szóköz használata \n"
|
||||
" nélkül. Például, ha a vevőjét két címkéhez szeretné "
|
||||
"\n"
|
||||
" társítani, mint 'Gyártó' és 'Kiskereskedő' \n"
|
||||
" akkor azt a következő képpen kell bevinnie "
|
||||
"\"Gyártó,\n"
|
||||
" Kiskereskedő\" a CVS fájl ugyanazon oszlopába."
|
||||
|
||||
#. module: base_import
|
||||
#: code:addons/base_import/models.py:264
|
||||
#, python-format
|
||||
msgid "You must configure at least one field to import"
|
||||
msgstr ""
|
||||
msgstr "Legalább egy mezőt be kell állítania az importáláshoz"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:304
|
||||
#, python-format
|
||||
msgid "company_2,Organi,True"
|
||||
msgstr ""
|
||||
msgstr "vállalat_2,Organi,Igaz"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -700,37 +774,39 @@ msgid ""
|
||||
"The first row of the\n"
|
||||
" file contains the label of the column"
|
||||
msgstr ""
|
||||
"A fájl első oszlopa\n"
|
||||
" tartalmazza az oszlop elnevezését"
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_char_states
|
||||
msgid "base_import.tests.models.char.states"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.char.states"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:7
|
||||
#, python-format
|
||||
msgid "Import a CSV File"
|
||||
msgstr ""
|
||||
msgstr "Egy CVS fájl importálása"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/js/import.js:74
|
||||
#, python-format
|
||||
msgid "Quoting:"
|
||||
msgstr ""
|
||||
msgstr "Hivatkozni:"
|
||||
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_m2o_required_related
|
||||
msgid "base_import.tests.models.m2o.required.related"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.m2o.required.related"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:293
|
||||
#, python-format
|
||||
msgid ")."
|
||||
msgstr ""
|
||||
msgstr "nkat)."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -738,21 +814,21 @@ msgstr ""
|
||||
#: code:addons/base_import/static/src/xml/import.xml:396
|
||||
#, python-format
|
||||
msgid "Import"
|
||||
msgstr ""
|
||||
msgstr "Importálás"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/js/import.js:438
|
||||
#, python-format
|
||||
msgid "Here are the possible values:"
|
||||
msgstr ""
|
||||
msgstr "Ezek a lehetséges értékek:"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:82
|
||||
#, python-format
|
||||
msgid "The"
|
||||
msgstr ""
|
||||
msgstr "A"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -762,20 +838,22 @@ msgid ""
|
||||
"A single column was found in the file, this often means the file separator "
|
||||
"is incorrect"
|
||||
msgstr ""
|
||||
"Egy oszlop található a fájlban, Ez sokszor azt jelenti, hogy a fájl "
|
||||
"elválasztó hibás"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:293
|
||||
#, python-format
|
||||
msgid "dump of such a PostgreSQL database"
|
||||
msgstr ""
|
||||
msgstr "ilyen jellegű PostgreSQL adatbázis eldobása"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:301
|
||||
#, python-format
|
||||
msgid "This SQL command will create the following CSV file:"
|
||||
msgstr ""
|
||||
msgstr "Ez az SQL parancs ezt a CSV fájlt fogja létre hozni:"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -785,6 +863,9 @@ msgid ""
|
||||
"The following CSV file shows how to import purchase \n"
|
||||
" orders with their respective purchase order lines:"
|
||||
msgstr ""
|
||||
"A következő CSV fájl megmutatja hogyan importálja a beszerzési \n"
|
||||
" megrendeléseket a hozzá tartozó beszerzési "
|
||||
"megrendelés sorokkal:"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -794,6 +875,8 @@ msgid ""
|
||||
"What can I do when the Import preview table isn't \n"
|
||||
" displayed correctly?"
|
||||
msgstr ""
|
||||
"Mit tehetek, ha a kijelzőn lévő import tábla\n"
|
||||
" előnézete hibás?"
|
||||
|
||||
#. module: base_import
|
||||
#: field:base_import.tests.models.char,value:0
|
||||
@@ -810,21 +893,21 @@ msgstr ""
|
||||
#: field:base_import.tests.models.o2m.child,parent_id:0
|
||||
#: field:base_import.tests.models.o2m.child,value:0
|
||||
msgid "unknown"
|
||||
msgstr ""
|
||||
msgstr "ismeretlen"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:317
|
||||
#, python-format
|
||||
msgid "person_2,Laurence,False,company_1"
|
||||
msgstr ""
|
||||
msgstr "személy_2,Laurence,Hamis,vállalat_1"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:149
|
||||
#, python-format
|
||||
msgid "Country/External ID: base.be"
|
||||
msgstr ""
|
||||
msgstr "Ország/Külső ID azonosító: base.be"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -839,27 +922,35 @@ msgid ""
|
||||
" the company he work for. (If you want to test this \n"
|
||||
" example, here is a"
|
||||
msgstr ""
|
||||
"Példának, feltételezzük, hogy van egy SQL adatbázis \n"
|
||||
" két importálandó táblázattal: vállalatok és \n"
|
||||
" személyek. Mindegyik személy egy vállalathoz "
|
||||
"tartozik, így \n"
|
||||
" létre kell hozni a kapcsolatot a személyek és a "
|
||||
"munkahelyi \n"
|
||||
" vállalatuk közt. (Ha tesztelni szeretné \n"
|
||||
" ezt a példát, itt van a"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/js/import.js:427
|
||||
#, python-format
|
||||
msgid "(%d more)"
|
||||
msgstr ""
|
||||
msgstr "(%d több)"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:227
|
||||
#, python-format
|
||||
msgid "File for some Quotations"
|
||||
msgstr ""
|
||||
msgstr "Fájl egy pár kérdésnek"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/js/import.js:72
|
||||
#, python-format
|
||||
msgid "Encoding:"
|
||||
msgstr ""
|
||||
msgstr "Kódolás:"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -879,6 +970,20 @@ msgid ""
|
||||
"\n"
|
||||
" table. (like 'company_1', 'person_1' instead of '1')"
|
||||
msgstr ""
|
||||
"Táblák közti relációk összefésülésének kezelése, \n"
|
||||
" használhatja a \"Külső ID azonosító\" OpenERP "
|
||||
"lehetőséget. \n"
|
||||
" A rekordhoz tartozó \"Külső ID azonosító\" a rekord "
|
||||
"egy másik \n"
|
||||
" alkalmazáson belüli egyedi azonosítója. Ez a \"Külső "
|
||||
"ID\n"
|
||||
" azonosító\" egyedi kell legyen minden rekordban és "
|
||||
"az összes \n"
|
||||
" objektumon, ezért jó gyakorlat ennek a \"Külső ID "
|
||||
"azonosítónak\"\n"
|
||||
" az alkalmazás vagy tábla előtaggal való "
|
||||
"kiegészítése. \n"
|
||||
" (mint 'vállalat_1', 'személy_1' az '1' helyett)"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -889,6 +994,9 @@ msgid ""
|
||||
" \"External ID\". In PSQL, write the following "
|
||||
"command:"
|
||||
msgstr ""
|
||||
"Először az összes vállalatot és a hozzá tartozó \"Külső ID azonosító\" lesz "
|
||||
"\n"
|
||||
" exportálva. A PSQL-ben, írja a következő parancsot:"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -898,13 +1006,15 @@ msgid ""
|
||||
"How can I import a one2many relationship (e.g. several \n"
|
||||
" Order Lines of a Sales Order)?"
|
||||
msgstr ""
|
||||
"Hogyan tudom importálni a one2many kapcsolatot (pl. egyes \n"
|
||||
" megrendelés sorokat egy megrendelésből)?"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/js/import.js:404
|
||||
#, python-format
|
||||
msgid "Everything seems valid."
|
||||
msgstr ""
|
||||
msgstr "Úgy néz ki mindegyik érvényes."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -917,13 +1027,18 @@ msgid ""
|
||||
" use make use of the external ID for this field \n"
|
||||
" 'Category'."
|
||||
msgstr ""
|
||||
"Azonban, ha nem szeretné a termék kategóriákat\n"
|
||||
" beállításait megváltoztatni, azt ajánljuk, hogy "
|
||||
"használja \n"
|
||||
" a külső ID azonosító használatát erre a 'Kategória'\n"
|
||||
" mezőre."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/js/import.js:421
|
||||
#, python-format
|
||||
msgid "at row %d"
|
||||
msgstr ""
|
||||
msgstr "Ebben a sorban %d"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -933,13 +1048,15 @@ msgid ""
|
||||
"How can I import a many2many relationship field \n"
|
||||
" (e.g. a customer that has multiple tags)?"
|
||||
msgstr ""
|
||||
"Hogyan tudom importálni egy many2many kapcsolati mezőt \n"
|
||||
" (pl. egy vevő akinek több címkéje van)?"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:80
|
||||
#, python-format
|
||||
msgid "XXX/ID"
|
||||
msgstr ""
|
||||
msgstr "XXX/ID"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -955,6 +1072,14 @@ msgid ""
|
||||
" link between each person and the company they work \n"
|
||||
" for)."
|
||||
msgstr ""
|
||||
"Ha különböző táblázatokból kell adatot importálni, \n"
|
||||
" akkor a különböző táblázatok közötti rekordok "
|
||||
"kapcsolatait\n"
|
||||
" újra létre kell hozni. (pl. ha vállalatokat és "
|
||||
"személyeket \n"
|
||||
" importál, akkor létre kell hoznia a kapcsolatot \n"
|
||||
" minden személy és a vállalata közt, ahol "
|
||||
"alakalmazott)."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -967,13 +1092,19 @@ msgid ""
|
||||
" Here is when you should use one or the other, \n"
|
||||
" according to your need:"
|
||||
msgstr ""
|
||||
"Az igénye szerint, használni kell \n"
|
||||
" egyet a lehetésges 3 közül a a rekordokra "
|
||||
"hivatkozáshoz a kapcsolatokban. \n"
|
||||
" It van, ha egyiket a másik helyett kelle használni, "
|
||||
"\n"
|
||||
" az igénye szerint:"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:319
|
||||
#, python-format
|
||||
msgid "person_4,Ramsy,False,company_3"
|
||||
msgstr ""
|
||||
msgstr "személy_4,Ramsy,Hamis,vállalat_3"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -989,13 +1120,20 @@ msgid ""
|
||||
" will set the EMPTY value in the field, instead of \n"
|
||||
" assigning the default value."
|
||||
msgstr ""
|
||||
"Ha nem állítja be az összes mezőt a CSV fájlban, \n"
|
||||
" OpenERP az alapértelmezett értéket fogja adni minden "
|
||||
"olyan mezőnak ami \n"
|
||||
" nincs meghatározva. Ha a mezőnek\n"
|
||||
" üres értéket ad a CSV fájlban, OpenERP \n"
|
||||
" az ÜRES értéket fogja beállítani a mezőre, az \n"
|
||||
" alapértelmezett érték hozzáadása helyett."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:20
|
||||
#, python-format
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
msgstr "Megszakítás"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -1005,20 +1143,22 @@ msgid ""
|
||||
"What happens if I do not provide a value for a \n"
|
||||
" specific field?"
|
||||
msgstr ""
|
||||
"Mi történik, ha nem adok meg értéket egy \n"
|
||||
" bizonyos mezőhöz?"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:68
|
||||
#, python-format
|
||||
msgid "Frequently Asked Questions"
|
||||
msgstr ""
|
||||
msgstr "Leggyakoribb kérdések"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:305
|
||||
#, python-format
|
||||
msgid "company_3,Boum,True"
|
||||
msgstr ""
|
||||
msgstr "vállalat_3,Boum,Igaz"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -1032,6 +1172,12 @@ msgid ""
|
||||
"spreadsheet \n"
|
||||
" application."
|
||||
msgstr ""
|
||||
"Ez a tulajdonság \n"
|
||||
" lehetővé teszi az OpenERP Import/Export eszköz "
|
||||
"használatát \n"
|
||||
" a rekord kötegek módosítására a kedvenc táblázat "
|
||||
"kezelőjénak \n"
|
||||
" alkalmazásával."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -1042,6 +1188,9 @@ msgid ""
|
||||
" import an other record that links to the first\n"
|
||||
" one, use"
|
||||
msgstr ""
|
||||
"oszlop az OpenERP-ben. Ha\n"
|
||||
" másik rekordot importál amelyik az elsőre\n"
|
||||
" hivatkozik, hasznája"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -1068,14 +1217,14 @@ msgstr ""
|
||||
#: code:addons/base_import/static/src/xml/import.xml:169
|
||||
#, python-format
|
||||
msgid "CSV file for categories"
|
||||
msgstr ""
|
||||
msgstr "CSV fájl kategóriákhoz"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/js/import.js:330
|
||||
#, python-format
|
||||
msgid "Normal Fields"
|
||||
msgstr ""
|
||||
msgstr "Normál mezők"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -1087,13 +1236,18 @@ msgid ""
|
||||
" identifier from the original application and\n"
|
||||
" map it to the"
|
||||
msgstr ""
|
||||
"A különböző rekordok közötti kapcsolat újboli\n"
|
||||
" létrehozásához, az eredeti alkalmazás \n"
|
||||
" egyedi azonosítójának használata\n"
|
||||
" szükséges amit\n"
|
||||
" irányítson ehhez"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:170
|
||||
#, python-format
|
||||
msgid "CSV file for Products"
|
||||
msgstr ""
|
||||
msgstr "CSV fájl a termékekhez"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -1117,31 +1271,31 @@ msgstr ""
|
||||
#. module: base_import
|
||||
#: model:ir.model,name:base_import.model_base_import_tests_models_m2o_related
|
||||
msgid "base_import.tests.models.m2o.related"
|
||||
msgstr ""
|
||||
msgstr "base_import.tests.models.m2o.related"
|
||||
|
||||
#. module: base_import
|
||||
#: field:base_import.tests.models.preview,name:0
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
msgstr "Név"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:80
|
||||
#, python-format
|
||||
msgid "to the original unique identifier."
|
||||
msgstr ""
|
||||
msgstr "az eredeti egyedi ID azonosítóhoz."
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:318
|
||||
#, python-format
|
||||
msgid "person_3,Eric,False,company_2"
|
||||
msgstr ""
|
||||
msgstr "személy_3,Eric,Hamis,vállalt_2"
|
||||
|
||||
#. module: base_import
|
||||
#: field:base_import.import,res_model:0
|
||||
msgid "Model"
|
||||
msgstr ""
|
||||
msgstr "Modell"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -1149,7 +1303,7 @@ msgstr ""
|
||||
#: code:addons/base_import/static/src/xml/import.xml:82
|
||||
#, python-format
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
msgstr "Azonosító ID"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -1184,12 +1338,12 @@ msgstr ""
|
||||
#: code:addons/base_import/static/src/js/import.js:73
|
||||
#, python-format
|
||||
msgid "Separator:"
|
||||
msgstr ""
|
||||
msgstr "Elválasztó:"
|
||||
|
||||
#. module: base_import
|
||||
#: field:base_import.import,file_name:0
|
||||
msgid "File Name"
|
||||
msgstr ""
|
||||
msgstr "Fájl neve"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
@@ -1199,28 +1353,28 @@ msgstr ""
|
||||
#: code:addons/base_import/static/src/xml/import.xml:82
|
||||
#, python-format
|
||||
msgid "External ID"
|
||||
msgstr ""
|
||||
msgstr "Külső ID azonosító"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:39
|
||||
#, python-format
|
||||
msgid "File Format Options…"
|
||||
msgstr ""
|
||||
msgstr "Fájl formátum lehetőségek…"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/js/import.js:423
|
||||
#, python-format
|
||||
msgid "between rows %d and %d"
|
||||
msgstr ""
|
||||
msgstr "oszlopok közt %d és %d"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
#: code:addons/base_import/static/src/xml/import.xml:19
|
||||
#, python-format
|
||||
msgid "or"
|
||||
msgstr ""
|
||||
msgstr "vagy"
|
||||
|
||||
#. module: base_import
|
||||
#. openerp-web
|
||||
|
||||
@@ -24,7 +24,6 @@ import openerp.modules.registry
|
||||
from openerp.osv import osv
|
||||
from openerp_sxw2rml import sxw2rml
|
||||
from StringIO import StringIO
|
||||
from openerp import pooler
|
||||
from openerp import addons
|
||||
|
||||
|
||||
@@ -46,20 +45,19 @@ class report_xml(osv.osv):
|
||||
'''
|
||||
Untested function
|
||||
'''
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
sxwval = StringIO(base64.decodestring(file_sxw))
|
||||
if file_type=='sxw':
|
||||
fp = open(addons.get_module_resource('base_report_designer','openerp_sxw2rml', 'normalized_oo2rml.xsl'),'rb')
|
||||
if file_type=='odt':
|
||||
fp = open(addons.get_module_resource('base_report_designer','openerp_sxw2rml', 'normalized_odt2rml.xsl'),'rb')
|
||||
report = pool.get('ir.actions.report.xml').write(cr, uid, [report_id], {
|
||||
report = self.pool['ir.actions.report.xml'].write(cr, uid, [report_id], {
|
||||
'report_sxw_content': base64.decodestring(file_sxw),
|
||||
'report_rml_content': str(sxw2rml(sxwval, xsl=fp.read())),
|
||||
})
|
||||
|
||||
# FIXME: this should be moved to an override of the ir.actions.report_xml.create() method
|
||||
cr.commit()
|
||||
pool.get('ir.actions.report.xml').register_all(cr)
|
||||
self.pool['ir.actions.report.xml'].register_all(cr)
|
||||
openerp.modules.registry.RegistryManager.signal_registry_change(cr.dbname)
|
||||
|
||||
return True
|
||||
|
||||
@@ -24,7 +24,7 @@ import base64
|
||||
import time
|
||||
import urllib
|
||||
|
||||
from openerp import osv, pooler, tools
|
||||
from openerp import osv, tools
|
||||
from openerp.osv import fields, osv
|
||||
from openerp.tools.translate import _
|
||||
|
||||
@@ -39,9 +39,9 @@ class base_report_sxw(osv.osv_memory):
|
||||
|
||||
def get_report(self, cr, uid, ids, context=None):
|
||||
data = self.read(cr, uid, ids, context=context)[0]
|
||||
data_obj = self.pool.get('ir.model.data')
|
||||
data_obj = self.pool['ir.model.data']
|
||||
id2 = data_obj._get_id(cr, uid, 'base_report_designer', 'view_base_report_file_sxw')
|
||||
report = self.pool.get('ir.actions.report.xml').browse(cr, uid, data['report_id'], context=context)
|
||||
report = self.pool['ir.actions.report.xml'].browse(cr, uid, data['report_id'], context=context)
|
||||
if id2:
|
||||
id2 = data_obj.browse(cr, uid, id2, context=context).res_id
|
||||
return {
|
||||
@@ -74,9 +74,9 @@ class base_report_file_sxw(osv.osv_memory):
|
||||
|
||||
"""
|
||||
res = super(base_report_file_sxw, self).default_get(cr, uid, fields, context=context)
|
||||
report_id1 = self.pool.get('base.report.sxw').search(cr,uid,[])
|
||||
data = self.pool.get('base.report.sxw').read(cr, uid, report_id1, context=context)[0]
|
||||
report = self.pool.get('ir.actions.report.xml').browse(cr, uid, data['report_id'], context=context)
|
||||
report_id1 = self.pool['base.report.sxw'].search(cr,uid,[])
|
||||
data = self.pool['base.report.sxw'].read(cr, uid, report_id1, context=context)[0]
|
||||
report = self.pool['ir.actions.report.xml'].browse(cr, uid, data['report_id'], context=context)
|
||||
if context is None:
|
||||
context={}
|
||||
if 'report_id' in fields:
|
||||
@@ -97,14 +97,14 @@ class base_report_file_sxw(osv.osv_memory):
|
||||
sxwval = StringIO.StringIO(base64.decodestring(data['file_sxw_upload']))
|
||||
fp = tools.file_open('normalized_oo2rml.xsl',subdir='addons/base_report_designer/openerp_sxw2rml')
|
||||
newrmlcontent = str(openerp_sxw2rml.sxw2rml(sxwval, xsl=fp.read()))
|
||||
report = self.pool.get('ir.actions.report.xml').write(cr, uid, [data['report_id']], {
|
||||
report = self.pool['ir.actions.report.xml'].write(cr, uid, [data['report_id']], {
|
||||
'report_sxw_content': base64.decodestring(data['file_sxw_upload']),
|
||||
'report_rml_content': newrmlcontent
|
||||
})
|
||||
cr.commit()
|
||||
data_obj = self.pool.get('ir.model.data')
|
||||
data_obj = self.pool['ir.model.data']
|
||||
id2 = data_obj._get_id(cr, uid, 'base_report_designer', 'view_base_report_file_rml')
|
||||
report = self.pool.get('ir.actions.report.xml').browse(cr, uid, data['report_id'], context=context)
|
||||
report = self.pool['ir.actions.report.xml'].browse(cr, uid, data['report_id'], context=context)
|
||||
if id2:
|
||||
id2 = data_obj.browse(cr, uid, id2, context=context).res_id
|
||||
return {
|
||||
@@ -135,9 +135,9 @@ class base_report_rml_save(osv.osv_memory):
|
||||
"""
|
||||
|
||||
res = super(base_report_rml_save, self).default_get(cr, uid, fields, context=context)
|
||||
report_id = self.pool.get('base.report.sxw').search(cr,uid,[])
|
||||
data = self.pool.get('base.report.file.sxw').read(cr, uid, report_id, context=context)[0]
|
||||
report = self.pool.get('ir.actions.report.xml').browse(cr, uid, data['report_id'], context=context)
|
||||
report_id = self.pool['base.report.sxw'].search(cr,uid,[])
|
||||
data = self.pool['base.report.file.sxw'].read(cr, uid, report_id, context=context)[0]
|
||||
report = self.pool['ir.actions.report.xml'].browse(cr, uid, data['report_id'], context=context)
|
||||
|
||||
if 'file_rml' in fields:
|
||||
res['file_rml'] = base64.encodestring(report.report_rml_content)
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
import simplejson
|
||||
import cgi
|
||||
from openerp import pooler
|
||||
from openerp import tools
|
||||
from openerp.osv import fields, osv
|
||||
from openerp.tools.translate import _
|
||||
|
||||
+1718
-3348
File diff suppressed because it is too large
Load Diff
@@ -19,8 +19,9 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import openerp
|
||||
from openerp import SUPERUSER_ID
|
||||
from openerp import pooler, tools
|
||||
from openerp import tools
|
||||
from openerp.osv import osv, fields
|
||||
|
||||
class decimal_precision(osv.osv):
|
||||
@@ -57,7 +58,7 @@ class decimal_precision(osv.osv):
|
||||
res = super(decimal_precision, self).write(cr, uid, ids, data, *args, **argv)
|
||||
self.precision_get.clear_cache(self)
|
||||
for obj in self.pool.obj_list():
|
||||
for colname, col in self.pool.get(obj)._columns.items():
|
||||
for colname, col in self.pool[obj]._columns.items():
|
||||
if isinstance(col, (fields.float, fields.function)):
|
||||
col.digits_change(cr)
|
||||
return res
|
||||
@@ -66,7 +67,8 @@ decimal_precision()
|
||||
|
||||
def get_precision(application):
|
||||
def change_digit(cr):
|
||||
res = pooler.get_pool(cr.dbname).get('decimal.precision').precision_get(cr, SUPERUSER_ID, application)
|
||||
decimal_precision = openerp.registry(cr.dbname)['decimal.precision']
|
||||
res = decimal_precision.precision_get(cr, SUPERUSER_ID, application)
|
||||
return (16, res)
|
||||
return change_digit
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ from StringIO import StringIO
|
||||
import psycopg2
|
||||
|
||||
import openerp
|
||||
from openerp import pooler
|
||||
from openerp import tools
|
||||
from openerp.osv import fields, osv
|
||||
from openerp.osv.orm import except_orm
|
||||
@@ -620,7 +619,7 @@ class node_context(object):
|
||||
if context is None:
|
||||
context = {}
|
||||
context['uid'] = uid
|
||||
self._dirobj = pooler.get_pool(cr.dbname).get('document.directory')
|
||||
self._dirobj = openerp.registry(cr.dbname).get('document.directory')
|
||||
self.node_file_class = node_file
|
||||
self.extra_ctx = {} # Extra keys for context, that do _not_ trigger inequality
|
||||
assert self._dirobj
|
||||
@@ -1999,7 +1998,7 @@ class nodefd_content(StringIO, node_descriptor):
|
||||
|
||||
par = self._get_parent()
|
||||
uid = par.context.uid
|
||||
cr = pooler.get_db(par.context.dbname).cursor()
|
||||
cr = openerp.registry(par.context.dbname).db.cursor()
|
||||
try:
|
||||
if self.mode in ('w', 'w+', 'r+'):
|
||||
data = self.getvalue()
|
||||
@@ -2052,7 +2051,7 @@ class nodefd_static(StringIO, node_descriptor):
|
||||
|
||||
par = self._get_parent()
|
||||
# uid = par.context.uid
|
||||
cr = pooler.get_db(par.context.dbname).cursor()
|
||||
cr = openerp.registry(par.context.dbname).db.cursor()
|
||||
try:
|
||||
if self.mode in ('w', 'w+', 'r+'):
|
||||
data = self.getvalue()
|
||||
|
||||
@@ -9,7 +9,8 @@ import errno
|
||||
import glob
|
||||
import fnmatch
|
||||
|
||||
from openerp import pooler, netsvc, sql_db
|
||||
import openerp
|
||||
from openerp import sql_db
|
||||
import openerp.service
|
||||
from openerp.service import security
|
||||
from openerp.osv import osv
|
||||
@@ -192,7 +193,7 @@ class abstracted_fs(object):
|
||||
if dir:
|
||||
cr = dir.cr
|
||||
uid = dir.uid
|
||||
pool = pooler.get_pool(node.context.dbname)
|
||||
pool = openerp.registry(node.context.dbname)
|
||||
object=dir and dir.object or False
|
||||
object2=dir and dir.object2 or False
|
||||
res=pool.get('ir.attachment').search(cr,uid,[('name','like',prefix),('parent_id','=',object and object.type in ('directory','ressource') and object.id or False),('res_id','=',object2 and object2.id or False),('res_model','=',object2 and object2._name or False)])
|
||||
@@ -291,7 +292,7 @@ class abstracted_fs(object):
|
||||
if dbname not in self.db_list():
|
||||
raise IOError(errno.ENOENT,'Invalid database path: %s.' % dbname)
|
||||
try:
|
||||
db = pooler.get_db(dbname)
|
||||
db = openerp.registry(dbname).db
|
||||
except Exception:
|
||||
raise OSError(1, 'Database cannot be used.')
|
||||
cr = db.cursor()
|
||||
@@ -324,7 +325,7 @@ class abstracted_fs(object):
|
||||
""" Get cr, uid, pool from a node
|
||||
"""
|
||||
assert node
|
||||
db = pooler.get_db(node.context.dbname)
|
||||
db = openerp.registry.(node.context.dbname).db
|
||||
return db.cursor(), node.context.uid
|
||||
|
||||
def get_node_cr(self, node):
|
||||
|
||||
@@ -48,7 +48,6 @@ class authorizer:
|
||||
if not len(paths)>2:
|
||||
return True
|
||||
db_name = paths[1]
|
||||
db,pool = pooler.get_db_and_pool(db_name)
|
||||
res = security.login(db_name, username, self.password)
|
||||
return bool(res)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ except ImportError:
|
||||
from DAV.davcmd import copyone, copytree, moveone, movetree, delone, deltree
|
||||
|
||||
import openerp
|
||||
from openerp import pooler, sql_db, netsvc
|
||||
from openerp import sql_db, netsvc
|
||||
import openerp.service
|
||||
from openerp.tools import misc
|
||||
|
||||
@@ -494,9 +494,9 @@ class openerp_dav_handler(dav_interface):
|
||||
self.parent.auth_provider.checkRequest(self.parent, uri, dbname)
|
||||
res = self.parent.auth_provider.auth_creds[dbname]
|
||||
user, passwd, dbn2, uid = res
|
||||
db,pool = pooler.get_db_and_pool(dbname)
|
||||
cr = db.cursor()
|
||||
return cr, uid, pool, dbname, uri2
|
||||
registry = openerp.registry(dbname)
|
||||
cr = registery.db.cursor()
|
||||
return cr, uid, registry, dbname, uri2
|
||||
|
||||
def uri2object(self, cr, uid, pool, uri):
|
||||
if not uid:
|
||||
|
||||
@@ -0,0 +1,335 @@
|
||||
# Czech translation for openobject-addons
|
||||
# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2013.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-12-21 17:05+0000\n"
|
||||
"PO-Revision-Date: 2013-03-27 09:03+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Czech <cs@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-28 04:41+0000\n"
|
||||
"X-Generator: Launchpad (build 16546)\n"
|
||||
|
||||
#. module: fetchmail
|
||||
#: selection:fetchmail.server,state:0
|
||||
msgid "Confirmed"
|
||||
msgstr "Potvrzeno"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,server:0
|
||||
msgid "Server Name"
|
||||
msgstr "Název serveru"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "POP"
|
||||
msgstr "POP"
|
||||
|
||||
#. module: fetchmail
|
||||
#: help:fetchmail.server,priority:0
|
||||
msgid "Defines the order of processing, lower values mean higher priority"
|
||||
msgstr "Určuje pořadí provádění, nižší hodnota znamená vyšší prioritu"
|
||||
|
||||
#. module: fetchmail
|
||||
#: help:fetchmail.server,is_ssl:0
|
||||
msgid ""
|
||||
"Connections are encrypted with SSL/TLS through a dedicated port (default: "
|
||||
"IMAPS=993, POP3S=995)"
|
||||
msgstr ""
|
||||
"Přenos je zabezpečen certifikáty SSL/TSL a probíhá přes vyhrazené porty "
|
||||
"(standardně: IMAPS=993, POP3S=995)"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,attach:0
|
||||
msgid "Keep Attachments"
|
||||
msgstr "Ponechat přílohy"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,is_ssl:0
|
||||
msgid "SSL/TLS"
|
||||
msgstr "SSL/TLS"
|
||||
|
||||
#. module: fetchmail
|
||||
#: help:fetchmail.server,original:0
|
||||
msgid ""
|
||||
"Whether a full original copy of each email should be kept for referenceand "
|
||||
"attached to each processed message. This will usually double the size of "
|
||||
"your message database."
|
||||
msgstr ""
|
||||
"Mají-li být zahrnuty také originály každého e-mailu u zpracovávaných zpráv. "
|
||||
"To obvykle zdvojnásí velikost databáze zpráv."
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:base.config.settings:0
|
||||
msgid "Configure the incoming email gateway"
|
||||
msgstr "Nastavení příchozí poštovní brány"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Fetch Now"
|
||||
msgstr "Zkontrolovat"
|
||||
|
||||
#. module: fetchmail
|
||||
#: model:ir.actions.act_window,name:fetchmail.action_email_server_tree
|
||||
#: model:ir.ui.menu,name:fetchmail.menu_action_fetchmail_server_tree
|
||||
msgid "Incoming Mail Servers"
|
||||
msgstr "Servery příchozí pošty"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Server type IMAP."
|
||||
msgstr "IMAP server."
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "POP/IMAP Servers"
|
||||
msgstr "POP/IMAP servery"
|
||||
|
||||
#. module: fetchmail
|
||||
#: selection:fetchmail.server,type:0
|
||||
msgid "Local Server"
|
||||
msgstr "Místní server"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,state:0
|
||||
msgid "Status"
|
||||
msgstr "Stav"
|
||||
|
||||
#. module: fetchmail
|
||||
#: model:ir.model,name:fetchmail.model_fetchmail_server
|
||||
msgid "POP/IMAP Server"
|
||||
msgstr "POP/IMAP server"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Reset Confirmation"
|
||||
msgstr "Obnovit potvrzení"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "SSL"
|
||||
msgstr "SSL"
|
||||
|
||||
#. module: fetchmail
|
||||
#: model:ir.model,name:fetchmail.model_fetchmail_config_settings
|
||||
msgid "fetchmail.config.settings"
|
||||
msgstr "fetchmail.config.settings"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,date:0
|
||||
msgid "Last Fetch Date"
|
||||
msgstr "Poslední kontrola pošty"
|
||||
|
||||
#. module: fetchmail
|
||||
#: help:fetchmail.server,action_id:0
|
||||
msgid ""
|
||||
"Optional custom server action to trigger for each incoming mail, on the "
|
||||
"record that was created or updated by this mail"
|
||||
msgstr ""
|
||||
"Volitelné vlastní akce serveru pro příchozí e-mail – na záznamu, který byl "
|
||||
"vytvořen nebo aktualizován tímto e-mailem."
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "# of emails"
|
||||
msgstr "# e-mailů"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,original:0
|
||||
msgid "Keep Original"
|
||||
msgstr "Ponechat originál"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Advanced Options"
|
||||
msgstr "Rozšířené volby"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
#: field:fetchmail.server,configuration:0
|
||||
msgid "Configuration"
|
||||
msgstr "Nastavení"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,script:0
|
||||
msgid "Script"
|
||||
msgstr "Skript"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Incoming Mail Server"
|
||||
msgstr "Server příchozí pošty"
|
||||
|
||||
#. module: fetchmail
|
||||
#: code:addons/fetchmail/fetchmail.py:164
|
||||
#, python-format
|
||||
msgid "Connection test failed!"
|
||||
msgstr "Tes připojení byl neúspěšný!"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,user:0
|
||||
msgid "Username"
|
||||
msgstr "Uživatelské jméno"
|
||||
|
||||
#. module: fetchmail
|
||||
#: help:fetchmail.server,server:0
|
||||
msgid "Hostname or IP of the mail server"
|
||||
msgstr "Název nebo IP adresa e-mail serveru"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,name:0
|
||||
msgid "Name"
|
||||
msgstr "Název"
|
||||
|
||||
#. module: fetchmail
|
||||
#: code:addons/fetchmail/fetchmail.py:164
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Here is what we got instead:\n"
|
||||
" %s."
|
||||
msgstr ""
|
||||
"Bylo obdrženo namísto:\n"
|
||||
" %s."
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Test & Confirm"
|
||||
msgstr "Test & Potvrzení"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,action_id:0
|
||||
msgid "Server Action"
|
||||
msgstr "Akce serveru"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:mail.mail,fetchmail_server_id:0
|
||||
msgid "Inbound Mail Server"
|
||||
msgstr "Server příchozí pošty"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,message_ids:0
|
||||
#: model:ir.actions.act_window,name:fetchmail.act_server_history
|
||||
msgid "Messages"
|
||||
msgstr "Zprávy"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Search Incoming Mail Servers"
|
||||
msgstr "Hledat servery příchozí pošty"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,active:0
|
||||
msgid "Active"
|
||||
msgstr "Aktivní"
|
||||
|
||||
#. module: fetchmail
|
||||
#: help:fetchmail.server,attach:0
|
||||
msgid ""
|
||||
"Whether attachments should be downloaded. If not enabled, incoming emails "
|
||||
"will be stripped of any attachments before being processed"
|
||||
msgstr ""
|
||||
"Mají-li být za zahrnuty také přílohy. Pokud nebude povoleno, budou příchozí "
|
||||
"e-maily zbaveny všech příloh před dalším zpracováním."
|
||||
|
||||
#. module: fetchmail
|
||||
#: model:ir.model,name:fetchmail.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr "Odchozí e-maily"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,priority:0
|
||||
msgid "Server Priority"
|
||||
msgstr "Priorita serveru"
|
||||
|
||||
#. module: fetchmail
|
||||
#: selection:fetchmail.server,type:0
|
||||
msgid "IMAP Server"
|
||||
msgstr "IMAP server"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "IMAP"
|
||||
msgstr "IMAP"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Server type POP."
|
||||
msgstr "POP server."
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,password:0
|
||||
msgid "Password"
|
||||
msgstr "Heslo"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Actions to Perform on Incoming Mails"
|
||||
msgstr "Akce prováděné s příchozími e-maily"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,type:0
|
||||
msgid "Server Type"
|
||||
msgstr "Druh serveru"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Login Information"
|
||||
msgstr "Přihlašovací údaje"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Server Information"
|
||||
msgstr "Údaje o serveru"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "If SSL required."
|
||||
msgstr "Je-li požádován SSL."
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Advanced"
|
||||
msgstr "Rozšířené"
|
||||
|
||||
#. module: fetchmail
|
||||
#: view:fetchmail.server:0
|
||||
msgid "Server & Login"
|
||||
msgstr "Server & Přihlášení"
|
||||
|
||||
#. module: fetchmail
|
||||
#: help:fetchmail.server,object_id:0
|
||||
msgid ""
|
||||
"Process each incoming mail as part of a conversation corresponding to this "
|
||||
"document type. This will create new documents for new conversations, or "
|
||||
"attach follow-up emails to the existing conversations (documents)."
|
||||
msgstr ""
|
||||
"Zpracuje každý příchozí e-mail jako součást konverzace podle druhu "
|
||||
"dokumentu. Buď se nové konverzaci se vytvoří nové dokumenty, nebo se ke "
|
||||
"stávající konverzaci připojí navazující e-maily (dokumenty)."
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,object_id:0
|
||||
msgid "Create a New Record"
|
||||
msgstr "Vytvořit nový záznam"
|
||||
|
||||
#. module: fetchmail
|
||||
#: selection:fetchmail.server,state:0
|
||||
msgid "Not Confirmed"
|
||||
msgstr "Nepotvrzeno"
|
||||
|
||||
#. module: fetchmail
|
||||
#: selection:fetchmail.server,type:0
|
||||
msgid "POP Server"
|
||||
msgstr "POP server"
|
||||
|
||||
#. module: fetchmail
|
||||
#: field:fetchmail.server,port:0
|
||||
msgid "Port"
|
||||
msgstr "Port"
|
||||
@@ -23,7 +23,7 @@ from datetime import datetime, timedelta
|
||||
from dateutil.relativedelta import relativedelta
|
||||
import time
|
||||
|
||||
from openerp import netsvc, pooler
|
||||
import openerp
|
||||
from openerp.report import report_sxw
|
||||
from openerp.report.interface import report_rml
|
||||
from openerp.report.interface import toxml
|
||||
@@ -46,7 +46,8 @@ def lengthmonth(year, month):
|
||||
class report_custom(report_rml):
|
||||
|
||||
def create_xml(self, cr, uid, ids, datas, context=None):
|
||||
obj_emp = pooler.get_pool(cr.dbname).get('hr.employee')
|
||||
registry = openerp.registry(cr.dbname)
|
||||
obj_emp = registry['hr.employee']
|
||||
if context is None:
|
||||
context = {}
|
||||
month = datetime(datas['form']['year'], datas['form']['month'], 1)
|
||||
@@ -102,14 +103,14 @@ class report_custom(report_rml):
|
||||
days_xml.append(today_xml)
|
||||
user_xml.append(user_repr % '\n'.join(days_xml))
|
||||
|
||||
rpt_obj = pooler.get_pool(cr.dbname).get('hr.employee')
|
||||
rpt_obj = obj_emp
|
||||
rml_obj=report_sxw.rml_parse(cr, uid, rpt_obj._name,context)
|
||||
header_xml = '''
|
||||
<header>
|
||||
<date>%s</date>
|
||||
<company>%s</company>
|
||||
</header>
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),to_xml(pooler.get_pool(cr.dbname).get('res.users').browse(cr,uid,uid).company_id.name))
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),to_xml(registry['res.users'].browse(cr,uid,uid).company_id.name))
|
||||
|
||||
first_date = str(month)
|
||||
som = datetime.strptime(first_date, '%Y-%m-%d %H:%M:%S')
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
import datetime
|
||||
import time
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
|
||||
class attendance_print(report_sxw.rml_parse):
|
||||
|
||||
@@ -24,7 +24,8 @@ from datetime import datetime
|
||||
from dateutil.relativedelta import relativedelta
|
||||
import time
|
||||
|
||||
from openerp import pooler, tools
|
||||
import openerp
|
||||
from openerp import tools
|
||||
from openerp.report import report_sxw
|
||||
from openerp.report.interface import report_rml, toxml
|
||||
from openerp.tools.translate import _
|
||||
@@ -38,7 +39,8 @@ def to_hour(h):
|
||||
class report_custom(report_rml):
|
||||
|
||||
def create_xml(self, cr, uid, ids, datas, context=None):
|
||||
obj_emp = pooler.get_pool(cr.dbname).get('hr.employee')
|
||||
registry = openerp.registry(cr.dbname)
|
||||
obj_emp = registry['hr.employee']
|
||||
|
||||
emp_ids = datas['active_ids']
|
||||
start_date = datetime.strptime(datas['form']['init_date'], '%Y-%m-%d')
|
||||
@@ -49,14 +51,14 @@ class report_custom(report_rml):
|
||||
if last_monday < first_monday:
|
||||
first_monday, last_monday = last_monday, first_monday
|
||||
|
||||
rpt_obj = pooler.get_pool(cr.dbname).get('hr.employee')
|
||||
rpt_obj = obj_emp
|
||||
rml_obj=report_sxw.rml_parse(cr, uid, rpt_obj._name,context)
|
||||
header_xml = '''
|
||||
<header>
|
||||
<date>%s</date>
|
||||
<company>%s</company>
|
||||
</header>
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),pooler.get_pool(cr.dbname).get('res.users').browse(cr,uid,uid).company_id.name)
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),registry['res.users'].browse(cr,uid,uid).company_id.name)
|
||||
user_xml = []
|
||||
for employee_id in emp_ids:
|
||||
emp = obj_emp.read(cr, uid, [employee_id], ['id', 'name'])[0]
|
||||
|
||||
@@ -22,12 +22,11 @@
|
||||
import datetime
|
||||
import time
|
||||
|
||||
import openerp
|
||||
from openerp.osv import fields, osv
|
||||
from openerp.report.interface import report_rml
|
||||
from openerp.report.interface import toxml
|
||||
|
||||
from openerp import pooler
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
from openerp.tools import ustr
|
||||
from openerp.tools.translate import _
|
||||
@@ -50,8 +49,9 @@ def emp_create_xml(self, cr, uid, dept, holiday_type, row_id, empid, name, som,
|
||||
display={}
|
||||
if dept==0:
|
||||
count=0
|
||||
p_id=pooler.get_pool(cr.dbname).get('hr.holidays').search(cr, uid, [('employee_id','in',[empid,False]), ('type', '=', 'remove')])
|
||||
ids_date = pooler.get_pool(cr.dbname).get('hr.holidays').read(cr, uid, p_id, ['date_from','date_to','holiday_status_id','state'])
|
||||
registry = openerp.registry(cr.dbname)
|
||||
p_id = registry['hr.holidays'].search(cr, uid, [('employee_id','in',[empid,False]), ('type', '=', 'remove')])
|
||||
ids_date = registry['hr.holidays'].read(cr, uid, p_id, ['date_from','date_to','holiday_status_id','state'])
|
||||
|
||||
for index in range(1,61):
|
||||
diff=index-1
|
||||
@@ -85,12 +85,12 @@ def emp_create_xml(self, cr, uid, dept, holiday_type, row_id, empid, name, som,
|
||||
|
||||
class report_custom(report_rml):
|
||||
def create_xml(self, cr, uid, ids, data, context):
|
||||
obj_dept = pooler.get_pool(cr.dbname).get('hr.department')
|
||||
obj_emp = pooler.get_pool(cr.dbname).get('hr.employee')
|
||||
registry = openerp.registry(cr.dbname)
|
||||
obj_dept = registry['hr.department']
|
||||
obj_emp = registry['hr.employee']
|
||||
depts=[]
|
||||
emp_id={}
|
||||
# done={}
|
||||
rpt_obj = pooler.get_pool(cr.dbname).get('hr.holidays')
|
||||
rpt_obj = registry['hr.holidays']
|
||||
rml_obj=report_sxw.rml_parse(cr, uid, rpt_obj._name,context)
|
||||
cr.execute("SELECT name FROM res_company")
|
||||
res=cr.fetchone()[0]
|
||||
@@ -242,7 +242,7 @@ class report_custom(report_rml):
|
||||
<date>%s</date>
|
||||
<company>%s</company>
|
||||
</header>
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),to_xml(pooler.get_pool(cr.dbname).get('res.users').browse(cr,uid,uid).company_id.name))
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),to_xml(registry['res.users'].browse(cr,uid,uid).company_id.name))
|
||||
|
||||
# Computing the xml
|
||||
xml='''<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
##############################################################################
|
||||
|
||||
import datetime
|
||||
import time
|
||||
|
||||
import openerp
|
||||
from openerp.report.interface import report_rml
|
||||
from openerp.report.interface import toxml
|
||||
from openerp.tools.translate import _
|
||||
import time
|
||||
from openerp import pooler
|
||||
from openerp.report import report_sxw
|
||||
from openerp.tools import ustr
|
||||
from openerp.tools import to_xml
|
||||
@@ -45,10 +45,11 @@ class report_custom(report_rml):
|
||||
return _weekdays[weekday]
|
||||
|
||||
def create_xml(self, cr, uid, ids, data, context):
|
||||
registry = openerp.registry(cr.dbname)
|
||||
|
||||
# Get the user id from the selected employee record
|
||||
emp_id = data['form']['employee_id']
|
||||
emp_obj = pooler.get_pool(cr.dbname).get('hr.employee')
|
||||
emp_obj = registry['hr.employee']
|
||||
user_id = emp_obj.browse(cr, uid, emp_id).user_id.id
|
||||
empl_name = emp_obj.browse(cr, uid, emp_id).name
|
||||
|
||||
@@ -87,7 +88,7 @@ class report_custom(report_rml):
|
||||
<amount>%.2f</amount>
|
||||
</time-element>
|
||||
'''
|
||||
rpt_obj = pooler.get_pool(cr.dbname).get('hr.employee')
|
||||
rpt_obj = registry['hr.employee']
|
||||
rml_obj = report_sxw.rml_parse(cr, uid, rpt_obj._name,context)
|
||||
if user_id:
|
||||
header_xml = '''
|
||||
@@ -95,12 +96,12 @@ class report_custom(report_rml):
|
||||
<date>%s</date>
|
||||
<company>%s</company>
|
||||
</header>
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),to_xml(pooler.get_pool(cr.dbname).get('res.users').browse(cr,uid,user_id).company_id.name))
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),to_xml(registry['res.users'].browse(cr,uid,user_id).company_id.name))
|
||||
|
||||
account_xml = []
|
||||
for account, telems in accounts.iteritems():
|
||||
aid, aname = account
|
||||
aname = pooler.get_pool(cr.dbname).get('account.analytic.account').name_get(cr, uid, [aid], context)
|
||||
aname = registry['account.analytic.account'].name_get(cr, uid, [aid], context)
|
||||
aname = aname[0][1]
|
||||
|
||||
account_xml.append('<account id="%d" name="%s">' % (aid, toxml(aname)))
|
||||
|
||||
@@ -20,10 +20,11 @@
|
||||
##############################################################################
|
||||
|
||||
import datetime
|
||||
import time
|
||||
|
||||
import openerp
|
||||
from openerp.report.interface import report_rml
|
||||
from openerp.report.interface import toxml
|
||||
import time
|
||||
from openerp import pooler
|
||||
from openerp.tools.translate import _
|
||||
from openerp.report import report_sxw
|
||||
from openerp.tools import ustr
|
||||
@@ -78,6 +79,7 @@ class report_custom(report_rml):
|
||||
return _weekdays[weekday]
|
||||
|
||||
def create_xml(self, cr, uid, ids, data, context):
|
||||
registry = openerp.registry(cr.dbname)
|
||||
|
||||
# Computing the dates (start of month: som, and end of month: eom)
|
||||
som = datetime.date(data['form']['year'], data['form']['month'], 1)
|
||||
@@ -88,7 +90,7 @@ class report_custom(report_rml):
|
||||
date_xml.append('<cols>2.5cm%s,2cm</cols>\n' % (',0.7cm' * lengthmonth(som.year, som.month)))
|
||||
|
||||
emp_xml=''
|
||||
emp_obj = pooler.get_pool(cr.dbname).get('hr.employee')
|
||||
emp_obj = registry['hr.employee']
|
||||
for id in data['form']['employee_ids']:
|
||||
user = emp_obj.browse(cr, uid, id).user_id.id
|
||||
empl_name = emp_obj.browse(cr, uid, id).name
|
||||
@@ -97,14 +99,14 @@ class report_custom(report_rml):
|
||||
# Computing the xml
|
||||
#Without this, report don't show non-ascii characters (TO CHECK)
|
||||
date_xml = '\n'.join(date_xml)
|
||||
rpt_obj = pooler.get_pool(cr.dbname).get('hr.employee')
|
||||
rpt_obj = emp_obj
|
||||
rml_obj=report_sxw.rml_parse(cr, uid, rpt_obj._name,context)
|
||||
header_xml = '''
|
||||
<header>
|
||||
<date>%s</date>
|
||||
<company>%s</company>
|
||||
</header>
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),pooler.get_pool(cr.dbname).get('res.users').browse(cr,uid,uid).company_id.name)
|
||||
''' % (str(rml_obj.formatLang(time.strftime("%Y-%m-%d"),date=True))+' ' + str(time.strftime("%H:%M")),registry['res.users'].browse(cr,uid,uid).company_id.name)
|
||||
|
||||
xml='''<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<report>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
##############################################################################
|
||||
|
||||
from openerp.report import report_sxw
|
||||
from openerp import pooler
|
||||
|
||||
class account_analytic_profit(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
@@ -32,13 +31,13 @@ class account_analytic_profit(report_sxw.rml_parse):
|
||||
'line': self._line,
|
||||
})
|
||||
def _user_ids(self, lines):
|
||||
user_obj=pooler.get_pool(self.cr.dbname).get('res.users')
|
||||
user_obj = self.pool['res.users']
|
||||
ids=list(set([b.user_id.id for b in lines]))
|
||||
return user_obj.browse(self.cr, self.uid, ids)
|
||||
|
||||
def _journal_ids(self, form, user_id):
|
||||
line_obj=pooler.get_pool(self.cr.dbname).get('account.analytic.line')
|
||||
journal_obj=pooler.get_pool(self.cr.dbname).get('account.analytic.journal')
|
||||
line_obj = self.pool['account.analytic.line']
|
||||
journal_obj = self.pool['account.analytic.journal']
|
||||
line_ids=line_obj.search(self.cr, self.uid, [
|
||||
('date', '>=', form['date_from']),
|
||||
('date', '<=', form['date_to']),
|
||||
@@ -49,10 +48,9 @@ class account_analytic_profit(report_sxw.rml_parse):
|
||||
return journal_obj.browse(self.cr, self.uid, ids)
|
||||
|
||||
def _line(self, form, journal_ids, user_ids):
|
||||
pool=pooler.get_pool(self.cr.dbname)
|
||||
line_obj=pool.get('account.analytic.line')
|
||||
product_obj=pool.get('product.product')
|
||||
price_obj=pool.get('product.pricelist')
|
||||
line_obj = self.pool['account.analytic.line']
|
||||
product_obj = self.pool['product.product']
|
||||
price_obj = self.pool['product.pricelist']
|
||||
ids=line_obj.search(self.cr, self.uid, [
|
||||
('date', '>=', form['date_from']),
|
||||
('date', '<=', form['date_to']),
|
||||
@@ -109,7 +107,7 @@ class account_analytic_profit(report_sxw.rml_parse):
|
||||
return res.values()
|
||||
|
||||
def _lines(self, form):
|
||||
line_obj=pooler.get_pool(self.cr.dbname).get('account.analytic.line')
|
||||
line_obj = self.pool['account.analytic.line']
|
||||
ids=line_obj.search(self.cr, self.uid, [
|
||||
('date', '>=', form['date_from']),
|
||||
('date', '<=', form['date_to']),
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
||||
#################################################################################
|
||||
|
||||
from openerp import pooler
|
||||
import openerp
|
||||
from openerp.osv import fields, osv
|
||||
|
||||
TAX_CODE_COLUMNS = {
|
||||
@@ -92,7 +92,8 @@ class account_tax_code(osv.osv):
|
||||
|
||||
def get_precision_tax():
|
||||
def change_digit_tax(cr):
|
||||
res = pooler.get_pool(cr.dbname).get('decimal.precision').precision_get(cr, 1, 'Account')
|
||||
decimal_precision = openerp.registry(cr.dbname)['decimal.precision']
|
||||
res = decimal_precision.precision_get(cr, 1, 'Account')
|
||||
return (16, res+2)
|
||||
return change_digit_tax
|
||||
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
#Tranquil IT Systems
|
||||
|
||||
from __future__ import with_statement
|
||||
|
||||
import openerp
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import pooler
|
||||
from openerp import tools
|
||||
from openerp.tools.translate import _
|
||||
from openerp.report.render import render
|
||||
@@ -30,8 +31,8 @@ class report_custom(report_int):
|
||||
|
||||
def create(self, cr, uid, ids, datas, context=None):
|
||||
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
taxobj = pool.get('account.tax.code')
|
||||
registry = openerp.registry(cr.dbname)
|
||||
taxobj = registry['account.tax.code']
|
||||
|
||||
if context is None:
|
||||
context = {}
|
||||
@@ -40,7 +41,7 @@ class report_custom(report_int):
|
||||
for t in taxobj.browse(cr, uid, code_ids, {'period_id': datas['form']['period_id']}):
|
||||
if str(t.code):
|
||||
result['case_'+str(t.code)] = '%.2f' % (t.sum_period or 0.0, )
|
||||
user = pool.get('res.users').browse(cr, uid, uid, context)
|
||||
user = registry['res.users'].browse(cr, uid, uid, context)
|
||||
|
||||
# Not Clean, to be changed
|
||||
partner = user.company_id.partner_id
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@ import sys
|
||||
import urllib
|
||||
import urllib2
|
||||
|
||||
from openerp import pooler
|
||||
import openerp
|
||||
from openerp import release
|
||||
from openerp.osv import fields, osv
|
||||
from openerp.tools.translate import _
|
||||
@@ -26,7 +26,7 @@ def get_sys_logs(self, cr, uid):
|
||||
"""
|
||||
Utility method to send a publisher warranty get logs messages.
|
||||
"""
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
pool = openerp.registry(cr.dbname)
|
||||
|
||||
dbuuid = pool.get('ir.config_parameter').get_param(cr, uid, 'database.uuid')
|
||||
db_create_date = pool.get('ir.config_parameter').get_param(cr, uid, 'database.create_date')
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
from openerp.osv import osv
|
||||
from openerp import pooler
|
||||
|
||||
class bom_structure(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
##############################################################################
|
||||
|
||||
import time
|
||||
from openerp import pooler
|
||||
|
||||
import openerp
|
||||
from openerp.report.interface import report_rml
|
||||
from openerp.tools import to_xml
|
||||
from openerp.report import report_sxw
|
||||
@@ -30,14 +31,14 @@ from openerp.tools.translate import _
|
||||
class report_custom(report_rml):
|
||||
def create_xml(self, cr, uid, ids, datas, context=None):
|
||||
number = (datas.get('form', False) and datas['form']['number']) or 1
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
product_pool = pool.get('product.product')
|
||||
product_uom_pool = pool.get('product.uom')
|
||||
supplier_info_pool = pool.get('product.supplierinfo')
|
||||
workcenter_pool = pool.get('mrp.workcenter')
|
||||
user_pool = pool.get('res.users')
|
||||
bom_pool = pool.get('mrp.bom')
|
||||
pricelist_pool = pool.get('product.pricelist')
|
||||
registry = openerp.registry(cr.dbname)
|
||||
product_pool = registry.get('product.product')
|
||||
product_uom_pool = registry.get('product.uom')
|
||||
supplier_info_pool = registry.get('product.supplierinfo')
|
||||
workcenter_pool = registry.get('mrp.workcenter')
|
||||
user_pool = registry.get('res.users')
|
||||
bom_pool = registry.get('mrp.bom')
|
||||
pricelist_pool = registry.get('product.pricelist')
|
||||
rml_obj=report_sxw.rml_parse(cr, uid, product_pool._name,context)
|
||||
rml_obj.localcontext.update({'lang':context.get('lang',False)})
|
||||
company_currency = user_pool.browse(cr, uid, uid).company_id.currency_id
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
##############################################################################
|
||||
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import pooler
|
||||
from openerp.tools.translate import _
|
||||
|
||||
class mrp_config_settings(osv.osv_memory):
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import pooler
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import pooler
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
|
||||
|
||||
@@ -0,0 +1,284 @@
|
||||
# Czech translation for openobject-addons
|
||||
# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2013.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-12-21 17:04+0000\n"
|
||||
"PO-Revision-Date: 2013-03-27 09:45+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Czech <cs@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2013-03-28 04:41+0000\n"
|
||||
"X-Generator: Launchpad (build 16546)\n"
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,memo:0
|
||||
msgid "Note Content"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.stage:0
|
||||
msgid "Stages of Notes"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:note.stage,name:note.demo_note_stage_04
|
||||
#: model:note.stage,name:note.note_stage_02
|
||||
msgid "This Week"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:ir.model,name:note.model_base_config_settings
|
||||
msgid "base.config.settings"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:ir.model,name:note.model_note_tag
|
||||
msgid "Note Tag"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:res.groups,name:note.group_note_fancy
|
||||
msgid "Notes / Fancy mode"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:ir.model,name:note.model_note_note
|
||||
#: view:note.note:0
|
||||
msgid "Note"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.note:0
|
||||
msgid "Group By..."
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,message_follower_ids:0
|
||||
msgid "Followers"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:ir.actions.act_window,help:note.action_note_note
|
||||
msgid ""
|
||||
"<p class=\"oe_view_nocontent_create\">\n"
|
||||
" Click to add a personal note.\n"
|
||||
" </p><p>\n"
|
||||
" Use notes to organize personal tasks or notes. All\n"
|
||||
" notes are private; no one else will be able to see them. "
|
||||
"However\n"
|
||||
" you can share some notes with other people by inviting "
|
||||
"followers\n"
|
||||
" on the note. (Useful for meeting minutes, especially if\n"
|
||||
" you activate the pad feature for collaborative writings).\n"
|
||||
" </p><p>\n"
|
||||
" You can customize how you process your notes/tasks by adding,\n"
|
||||
" removing or modifying columns.\n"
|
||||
" </p>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:note.stage,name:note.demo_note_stage_01
|
||||
#: model:note.stage,name:note.note_stage_01
|
||||
msgid "Today"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:ir.model,name:note.model_res_users
|
||||
msgid "Users"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.note:0
|
||||
msgid "í"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.stage:0
|
||||
msgid "Stage of Notes"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,message_unread:0
|
||||
msgid "Unread Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,current_partner_id:0
|
||||
msgid "unknown"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.note:0
|
||||
msgid "By sticky note Category"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: help:note.note,message_unread:0
|
||||
msgid "If checked new messages require your attention."
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.stage,name:0
|
||||
msgid "Stage Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,message_is_follower:0
|
||||
msgid "Is a Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:note.stage,name:note.demo_note_stage_02
|
||||
msgid "Tomorrow"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.note:0
|
||||
#: field:note.note,open:0
|
||||
msgid "Active"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: help:note.stage,user_id:0
|
||||
msgid "Owner of the note stage."
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:ir.ui.menu,name:note.menu_notes_stage
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.note:0
|
||||
#: field:note.note,stage_id:0
|
||||
msgid "Stage"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.tag,name:0
|
||||
msgid "Tag Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,message_ids:0
|
||||
msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:base.config.settings:0
|
||||
#: model:ir.actions.act_window,name:note.action_note_note
|
||||
#: model:ir.ui.menu,name:note.menu_note_notes
|
||||
#: view:note.note:0
|
||||
#: model:note.stage,name:note.note_stage_04
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:note.stage,name:note.demo_note_stage_03
|
||||
#: model:note.stage,name:note.note_stage_03
|
||||
msgid "Later"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:ir.model,name:note.model_note_stage
|
||||
msgid "Note Stage"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,message_summary:0
|
||||
msgid "Summary"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,stage_ids:0
|
||||
msgid "Stages of Users"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,name:0
|
||||
msgid "Note Summary"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: model:ir.actions.act_window,name:note.action_note_stage
|
||||
#: view:note.note:0
|
||||
msgid "Stages"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: help:note.note,message_ids:0
|
||||
msgid "Messages and communication history"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.note:0
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,color:0
|
||||
msgid "Color Index"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,sequence:0
|
||||
#: field:note.stage,sequence:0
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.note:0
|
||||
#: field:note.note,tag_ids:0
|
||||
msgid "Tags"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: view:note.note:0
|
||||
msgid "Archive"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:base.config.settings,module_note_pad:0
|
||||
msgid "Use collaborative pads (etherpad)"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: help:note.note,message_summary:0
|
||||
msgid ""
|
||||
"Holds the Chatter summary (number of messages, ...). This summary is "
|
||||
"directly in html format in order to be inserted in kanban views."
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:base.config.settings,group_note_fancy:0
|
||||
msgid "Use fancy layouts for notes"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,current_partner_id:0
|
||||
#: field:note.stage,user_id:0
|
||||
msgid "Owner"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: help:note.stage,sequence:0
|
||||
msgid "Used to order the note stages"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.note,date_done:0
|
||||
msgid "Date done"
|
||||
msgstr ""
|
||||
|
||||
#. module: note
|
||||
#: field:note.stage,fold:0
|
||||
msgid "Folded by Default"
|
||||
msgstr ""
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
from openerp import pooler
|
||||
|
||||
def titlize(journal_name):
|
||||
words = journal_name.split()
|
||||
@@ -34,7 +33,7 @@ class order(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
super(order, self).__init__(cr, uid, name, context=context)
|
||||
|
||||
user = pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, uid, context=context)
|
||||
user = self.pool['res.users'].browse(cr, uid, uid, context=context)
|
||||
partner = user.company_id.partner_id
|
||||
|
||||
self.localcontext.update({
|
||||
|
||||
+21
-25
@@ -19,7 +19,6 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import pooler
|
||||
from openerp import tools
|
||||
from openerp.osv import fields, osv
|
||||
|
||||
@@ -53,24 +52,23 @@ class process_process(osv.osv):
|
||||
}
|
||||
|
||||
def search_by_model(self, cr, uid, res_model, context=None):
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
model_ids = (res_model or None) and pool.get('ir.model').search(cr, uid, [('model', '=', res_model)])
|
||||
model_ids = (res_model or None) and self.pool['ir.model'].search(cr, uid, [('model', '=', res_model)])
|
||||
|
||||
domain = (model_ids or []) and [('model_id', 'in', model_ids)]
|
||||
result = []
|
||||
|
||||
# search all processes
|
||||
res = pool.get('process.process').search(cr, uid, domain)
|
||||
res = self.pool['process.process'].search(cr, uid, domain)
|
||||
if res:
|
||||
res = pool.get('process.process').browse(cr, uid, res, context=context)
|
||||
res = self.pool['process.process'].browse(cr, uid, res, context=context)
|
||||
for process in res:
|
||||
result.append((process.id, process.name))
|
||||
return result
|
||||
|
||||
# else search process nodes
|
||||
res = pool.get('process.node').search(cr, uid, domain)
|
||||
res = self.pool['process.node'].search(cr, uid, domain)
|
||||
if res:
|
||||
res = pool.get('process.node').browse(cr, uid, res, context=context)
|
||||
res = self.pool['process.node'].browse(cr, uid, res, context=context)
|
||||
for node in res:
|
||||
if (node.process_id.id, node.process_id.name) not in result:
|
||||
result.append((node.process_id.id, node.process_id.name))
|
||||
@@ -79,9 +77,8 @@ class process_process(osv.osv):
|
||||
|
||||
def graph_get(self, cr, uid, id, res_model, res_id, scale, context=None):
|
||||
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
|
||||
process = pool.get('process.process').browse(cr, uid, id, context=context)
|
||||
process = self.pool['process.process'].browse(cr, uid, id, context=context)
|
||||
|
||||
name = process.name
|
||||
resource = False
|
||||
@@ -92,16 +89,16 @@ class process_process(osv.osv):
|
||||
perm = False
|
||||
|
||||
if res_model:
|
||||
states = dict(pool.get(res_model).fields_get(cr, uid, context=context).get('state', {}).get('selection', {}))
|
||||
states = dict(self.pool[res_model].fields_get(cr, uid, context=context).get('state', {}).get('selection', {}))
|
||||
|
||||
if res_id:
|
||||
current_object = pool.get(res_model).browse(cr, uid, res_id, context=context)
|
||||
current_user = pool.get('res.users').browse(cr, uid, uid, context=context)
|
||||
current_object = self.pool[res_model].browse(cr, uid, res_id, context=context)
|
||||
current_user = self.pool['res.users'].browse(cr, uid, uid, context=context)
|
||||
expr_context = Env(current_object, current_user)
|
||||
resource = current_object.name
|
||||
if 'state' in current_object:
|
||||
state = states.get(current_object.state, 'N/A')
|
||||
perm = pool.get(res_model).perm_read(cr, uid, [res_id], context=context)[0]
|
||||
perm = self.pool[res_model].perm_read(cr, uid, [res_id], context=context)[0]
|
||||
|
||||
notes = process.note or "N/A"
|
||||
nodes = {}
|
||||
@@ -122,12 +119,12 @@ class process_process(osv.osv):
|
||||
|
||||
# get assosiated workflow
|
||||
if data['model']:
|
||||
wkf_ids = self.pool.get('workflow').search(cr, uid, [('osv', '=', data['model'])])
|
||||
wkf_ids = self.pool['workflow'].search(cr, uid, [('osv', '=', data['model'])])
|
||||
data['workflow'] = (wkf_ids or False) and wkf_ids[0]
|
||||
|
||||
if 'directory_id' in node and node.directory_id:
|
||||
data['directory_id'] = node.directory_id.id
|
||||
data['directory'] = self.pool.get('document.directory').get_resource_path(cr, uid, data['directory_id'], data['model'], False)
|
||||
data['directory'] = self.pool['document.directory'].get_resource_path(cr, uid, data['directory_id'], data['model'], False)
|
||||
|
||||
if node.menu_id:
|
||||
data['menu'] = {'name': node.menu_id.complete_name, 'id': node.menu_id.id}
|
||||
@@ -189,15 +186,15 @@ class process_process(osv.osv):
|
||||
|
||||
nodes[nid]['res'] = resource = {'id': ref_id, 'model': ref_model}
|
||||
|
||||
refobj = pool.get(ref_model).browse(cr, uid, ref_id, context=context)
|
||||
fields = pool.get(ref_model).fields_get(cr, uid, context=context)
|
||||
refobj = self.pool[ref_model].browse(cr, uid, ref_id, context=context)
|
||||
fields = self.pool[ref_model].fields_get(cr, uid, context=context)
|
||||
|
||||
# check for directory_id from inherited from document module
|
||||
if nodes[nid].get('directory_id', False):
|
||||
resource['directory'] = self.pool.get('document.directory').get_resource_path(cr, uid, nodes[nid]['directory_id'], ref_model, ref_id)
|
||||
resource['directory'] = self.pool['document.directory'].get_resource_path(cr, uid, nodes[nid]['directory_id'], ref_model, ref_id)
|
||||
|
||||
resource['name'] = pool.get(ref_model).name_get(cr, uid, [ref_id], context=context)[0][1]
|
||||
resource['perm'] = pool.get(ref_model).perm_read(cr, uid, [ref_id], context=context)[0]
|
||||
resource['name'] = self.pool[ref_model].name_get(cr, uid, [ref_id], context=context)[0][1]
|
||||
resource['perm'] = self.pool[ref_model].perm_read(cr, uid, [ref_id], context=context)[0]
|
||||
|
||||
ref_expr_context = Env(refobj, current_user)
|
||||
try:
|
||||
@@ -261,8 +258,7 @@ class process_process(osv.osv):
|
||||
if not default:
|
||||
default = {}
|
||||
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
process = pool.get('process.process').browse(cr, uid, id, context=context)
|
||||
process = self.pool['process.process'].browse(cr, uid, id, context=context)
|
||||
|
||||
nodes = {}
|
||||
transitions = {}
|
||||
@@ -275,7 +271,7 @@ class process_process(osv.osv):
|
||||
for t in node.transition_out:
|
||||
tr = transitions.setdefault(t.id, {})
|
||||
tr['source'] = node.id
|
||||
nodes[node.id] = pool.get('process.node').copy(cr, uid, node.id, context=context)
|
||||
nodes[node.id] = self.pool['process.node'].copy(cr, uid, node.id, context=context)
|
||||
|
||||
# then copy transitions with new nodes
|
||||
for tid, tr in transitions.items():
|
||||
@@ -283,7 +279,7 @@ class process_process(osv.osv):
|
||||
'source_node_id': nodes[tr['source']],
|
||||
'target_node_id': nodes[tr['target']]
|
||||
}
|
||||
tr = pool.get('process.transition').copy(cr, uid, tid, default=vals, context=context)
|
||||
tr = self.pool['process.transition'].copy(cr, uid, tid, default=vals, context=context)
|
||||
|
||||
# and finally copy the process itself with new nodes
|
||||
default.update({
|
||||
@@ -379,7 +375,7 @@ class process_transition_action(osv.osv):
|
||||
if not default:
|
||||
default = {}
|
||||
|
||||
state = self.pool.get('process.transition.action').browse(cr, uid, id, context=context).state
|
||||
state = self.pool['process.transition.action'].browse(cr, uid, id, context=context).state
|
||||
if state:
|
||||
default['state'] = state
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
|
||||
from datetime import datetime
|
||||
from dateutil.relativedelta import relativedelta
|
||||
from openerp import netsvc
|
||||
from openerp import pooler
|
||||
|
||||
import openerp
|
||||
from openerp.osv import osv
|
||||
from openerp.osv import fields
|
||||
from openerp.tools.translate import _
|
||||
@@ -56,7 +56,7 @@ class procurement_order(osv.osv):
|
||||
context = {}
|
||||
try:
|
||||
if use_new_cursor:
|
||||
cr = pooler.get_db(use_new_cursor).cursor()
|
||||
cr = openerp.registry(use_new_cursor).db.cursor()
|
||||
|
||||
procurement_obj = self.pool.get('procurement.order')
|
||||
if not ids:
|
||||
@@ -218,7 +218,7 @@ class procurement_order(osv.osv):
|
||||
if context is None:
|
||||
context = {}
|
||||
if use_new_cursor:
|
||||
cr = pooler.get_db(use_new_cursor).cursor()
|
||||
cr = openerp.registry(use_new_cursor).db.cursor()
|
||||
orderpoint_obj = self.pool.get('stock.warehouse.orderpoint')
|
||||
|
||||
procurement_obj = self.pool.get('procurement.order')
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#
|
||||
|
||||
import threading
|
||||
from openerp import pooler
|
||||
from openerp.osv import fields,osv
|
||||
|
||||
class procurement_compute(osv.osv_memory):
|
||||
@@ -50,7 +49,7 @@ class procurement_compute(osv.osv_memory):
|
||||
"""
|
||||
proc_obj = self.pool.get('procurement.order')
|
||||
#As this function is in a new thread, I need to open a new cursor, because the old one may be closed
|
||||
new_cr = pooler.get_db(cr.dbname).cursor()
|
||||
new_cr = self.pool.db.cursor()
|
||||
for proc in self.browse(new_cr, uid, ids, context=context):
|
||||
proc_obj._procure_orderpoint_confirm(new_cr, uid, automatic=proc.automatic, use_new_cursor=new_cr.dbname, context=context)
|
||||
#close the new cursor
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
##############################################################################
|
||||
|
||||
import threading
|
||||
from openerp import pooler
|
||||
|
||||
from openerp.osv import fields, osv
|
||||
|
||||
@@ -46,7 +45,7 @@ class procurement_compute_all(osv.osv_memory):
|
||||
"""
|
||||
proc_obj = self.pool.get('procurement.order')
|
||||
#As this function is in a new thread, i need to open a new cursor, because the old one may be closed
|
||||
new_cr = pooler.get_db(cr.dbname).cursor()
|
||||
new_cr = self.pool.db.cursor()
|
||||
for proc in self.browse(new_cr, uid, ids, context=context):
|
||||
proc_obj.run_scheduler(new_cr, uid, automatic=proc.automatic, use_new_cursor=new_cr.dbname,\
|
||||
context=context)
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
import time
|
||||
|
||||
from openerp import pooler
|
||||
from openerp.osv import osv
|
||||
from openerp.report import report_sxw
|
||||
from openerp.tools.translate import _
|
||||
@@ -63,20 +62,17 @@ class product_pricelist(report_sxw.rml_parse):
|
||||
return True
|
||||
|
||||
def _get_pricelist(self, pricelist_id):
|
||||
pool = pooler.get_pool(self.cr.dbname)
|
||||
pricelist = pool.get('product.pricelist').read(self.cr, self.uid, [pricelist_id], ['name'], context=self.localcontext)[0]
|
||||
pricelist = self.pool.get('product.pricelist').read(self.cr, self.uid, [pricelist_id], ['name'], context=self.localcontext)[0]
|
||||
return pricelist['name']
|
||||
|
||||
def _get_currency(self, pricelist_id):
|
||||
pool = pooler.get_pool(self.cr.dbname)
|
||||
pricelist = pool.get('product.pricelist').read(self.cr, self.uid, [pricelist_id], ['currency_id'], context=self.localcontext)[0]
|
||||
pricelist = self.pool.get('product.pricelist').read(self.cr, self.uid, [pricelist_id], ['currency_id'], context=self.localcontext)[0]
|
||||
return pricelist['currency_id'][1]
|
||||
|
||||
# TODO 7.0 - remove this method, its unused
|
||||
def _get_currency_symbol(self, pricelist_id):
|
||||
pool = pooler.get_pool(self.cr.dbname)
|
||||
pricelist = pool.get('product.pricelist').read(self.cr, self.uid, [pricelist_id], ['currency_id'], context=self.localcontext)[0]
|
||||
symbol = pool.get('res.currency').read(self.cr, self.uid, [pricelist['currency_id'][0]], ['symbol'], context=self.localcontext)[0]
|
||||
pricelist = self.pool.get('product.pricelist').read(self.cr, self.uid, [pricelist_id], ['currency_id'], context=self.localcontext)[0]
|
||||
symbol = self.pool.get('res.currency').read(self.cr, self.uid, [pricelist['currency_id'][0]], ['symbol'], context=self.localcontext)[0]
|
||||
return symbol['symbol'] or ''
|
||||
|
||||
def _get_categories(self, products, form):
|
||||
@@ -84,20 +80,19 @@ class product_pricelist(report_sxw.rml_parse):
|
||||
res=[]
|
||||
self.pricelist = form['price_list']
|
||||
self._set_quantity(form)
|
||||
pool = pooler.get_pool(self.cr.dbname)
|
||||
pro_ids=[]
|
||||
for product in products:
|
||||
pro_ids.append(product.id)
|
||||
if product.categ_id.id not in cat_ids:
|
||||
cat_ids.append(product.categ_id.id)
|
||||
|
||||
cats = pool.get('product.category').name_get(self.cr, self.uid, cat_ids, context=self.localcontext)
|
||||
cats = self.pool.get('product.category').name_get(self.cr, self.uid, cat_ids, context=self.localcontext)
|
||||
if not cats:
|
||||
return res
|
||||
for cat in cats:
|
||||
product_ids=pool.get('product.product').search(self.cr, self.uid, [('id', 'in', pro_ids), ('categ_id', '=', cat[0])], context=self.localcontext)
|
||||
product_ids=self.pool.get('product.product').search(self.cr, self.uid, [('id', 'in', pro_ids), ('categ_id', '=', cat[0])], context=self.localcontext)
|
||||
products = []
|
||||
for product in pool.get('product.product').read(self.cr, self.uid, product_ids, ['name', 'code'], context=self.localcontext):
|
||||
for product in self.pool.get('product.product').read(self.cr, self.uid, product_ids, ['name', 'code'], context=self.localcontext):
|
||||
val = {
|
||||
'id':product['id'],
|
||||
'name':product['name'],
|
||||
@@ -116,13 +111,12 @@ class product_pricelist(report_sxw.rml_parse):
|
||||
|
||||
def _get_price(self, pricelist_id, product_id, qty):
|
||||
sale_price_digits = self.get_digits(dp='Product Price')
|
||||
pool = pooler.get_pool(self.cr.dbname)
|
||||
pricelist = self.pool.get('product.pricelist').browse(self.cr, self.uid, [pricelist_id], context=self.localcontext)[0]
|
||||
price_dict = pool.get('product.pricelist').price_get(self.cr, self.uid, [pricelist_id], product_id, qty, context=self.localcontext)
|
||||
price_dict = self.pool.get('product.pricelist').price_get(self.cr, self.uid, [pricelist_id], product_id, qty, context=self.localcontext)
|
||||
if price_dict[pricelist_id]:
|
||||
price = self.formatLang(price_dict[pricelist_id], digits=sale_price_digits, currency_obj=pricelist.currency_id)
|
||||
else:
|
||||
res = pool.get('product.product').read(self.cr, self.uid, [product_id])
|
||||
res = self.pool.get('product.product').read(self.cr, self.uid, [product_id])
|
||||
price = self.formatLang(res[0]['list_price'], digits=sale_price_digits, currency_obj=pricelist.currency_id)
|
||||
return price
|
||||
|
||||
|
||||
@@ -19,8 +19,9 @@
|
||||
##############################################################################
|
||||
|
||||
import datetime
|
||||
|
||||
import openerp
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import pooler
|
||||
|
||||
class stock_production_lot(osv.osv):
|
||||
_inherit = 'stock.production.lot'
|
||||
@@ -34,7 +35,7 @@ class stock_production_lot(osv.osv):
|
||||
if not context.get('product_id', False):
|
||||
date = False
|
||||
else:
|
||||
product = pooler.get_pool(cr.dbname).get('product.product').browse(
|
||||
product = openerp.registry(cr.dbname)['product.product'].browse(
|
||||
cr, uid, context['product_id'])
|
||||
duration = getattr(product, dtype)
|
||||
# set date to False when no expiry time specified on the product
|
||||
|
||||
@@ -22,7 +22,6 @@ import time
|
||||
import datetime
|
||||
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import pooler
|
||||
from openerp import tools
|
||||
from openerp.tools.translate import _
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ from dateutil.relativedelta import relativedelta
|
||||
from operator import attrgetter
|
||||
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import pooler
|
||||
from openerp.tools.translate import _
|
||||
import openerp.addons.decimal_precision as dp
|
||||
from openerp.osv.orm import browse_record, browse_null
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
from openerp.osv import osv
|
||||
from openerp import pooler
|
||||
|
||||
class order(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
from openerp.osv import osv
|
||||
from openerp import pooler
|
||||
|
||||
class request_quotation(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
##############################################################################
|
||||
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import pooler
|
||||
from openerp.tools.translate import _
|
||||
|
||||
class purchase_config_settings(osv.osv_memory):
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
import time
|
||||
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import netsvc
|
||||
from openerp import pooler
|
||||
from openerp.osv.orm import browse_record, browse_null
|
||||
from openerp.tools.translate import _
|
||||
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
from openerp.osv import osv
|
||||
from openerp import pooler
|
||||
|
||||
class requisition(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
from openerp import pooler
|
||||
|
||||
class account_invoice_intrastat(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
|
||||
@@ -92,6 +92,9 @@ TODO:
|
||||
'demo': [
|
||||
"report/webkit_report_demo.xml",
|
||||
],
|
||||
'test': [
|
||||
"test/print.yml",
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
'images': ['images/companies_webkit.jpeg','images/header_html.jpeg','images/header_img.jpeg'],
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import pooler
|
||||
import openerp
|
||||
|
||||
class WebKitHelper(object):
|
||||
"""Set of usefull report helper"""
|
||||
@@ -37,7 +37,7 @@ class WebKitHelper(object):
|
||||
"constructor"
|
||||
self.cursor = cursor
|
||||
self.uid = uid
|
||||
self.pool = pooler.get_pool(self.cursor.dbname)
|
||||
self.pool = openerp.registry(self.cursor.dbname)
|
||||
self.report_id = report_id
|
||||
self.context = context
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
-
|
||||
Print the report_webkit demo report.
|
||||
-
|
||||
!python {model: ir.actions.report.xml}: |
|
||||
import os
|
||||
from openerp import netsvc, tools
|
||||
ids = self.pool['ir.actions.report.xml'].search(cr, uid, [], {})
|
||||
(data, format) = netsvc.LocalService('report.webkit.ir.actions.report.xml').create(cr, uid, ids, {}, {})
|
||||
if tools.config['test_report_directory']:
|
||||
file(os.path.join(tools.config['test_report_directory'], 'report_webkit_demo_report.'+format), 'wb+').write(data)
|
||||
@@ -39,7 +39,6 @@ import time
|
||||
import logging
|
||||
|
||||
from openerp import netsvc
|
||||
from openerp import pooler
|
||||
from report_helper import WebKitHelper
|
||||
from openerp.report.report_sxw import *
|
||||
from openerp import addons
|
||||
@@ -126,7 +125,7 @@ class WebKitParser(report_sxw):
|
||||
|
||||
def get_lib(self, cursor, uid):
|
||||
"""Return the lib wkhtml path"""
|
||||
proxy = self.pool.get('ir.config_parameter')
|
||||
proxy = self.pool['ir.config_parameter']
|
||||
webkit_path = proxy.get_param(cursor, uid, 'webkit_path')
|
||||
|
||||
if not webkit_path:
|
||||
@@ -242,7 +241,7 @@ class WebKitParser(report_sxw):
|
||||
|
||||
def translate_call(self, src):
|
||||
"""Translate String."""
|
||||
ir_translation = self.pool.get('ir.translation')
|
||||
ir_translation = self.pool['ir.translation']
|
||||
res = ir_translation._get_source(self.parser_instance.cr, self.parser_instance.uid,
|
||||
None, 'report', self.parser_instance.localcontext.get('lang', 'en_US'), src)
|
||||
if not res :
|
||||
@@ -255,13 +254,12 @@ class WebKitParser(report_sxw):
|
||||
|
||||
# just try to find an xml id for the report
|
||||
cr = cursor
|
||||
import openerp.pooler as pooler
|
||||
pool = pooler.get_pool(cr.dbname)
|
||||
found_xml_ids = pool.get("ir.model.data").search(cr, uid, [["model", "=", "ir.actions.report.xml"], \
|
||||
pool = openerp.registry(cr.dbname)
|
||||
found_xml_ids = pool["ir.model.data"].search(cr, uid, [["model", "=", "ir.actions.report.xml"], \
|
||||
["res_id", "=", report_xml.id]], context=context)
|
||||
xml_id = None
|
||||
if found_xml_ids:
|
||||
xml_id = pool.get("ir.model.data").read(cr, uid, found_xml_ids[0], ["module", "name"])
|
||||
xml_id = pool["ir.model.data"].read(cr, uid, found_xml_ids[0], ["module", "name"])
|
||||
xml_id = "%s.%s" % (xml_id["module"], xml_id["name"])
|
||||
|
||||
if context is None:
|
||||
@@ -275,7 +273,7 @@ class WebKitParser(report_sxw):
|
||||
self.name2,
|
||||
context=context)
|
||||
|
||||
self.pool = pooler.get_pool(cursor.dbname)
|
||||
self.pool = pool
|
||||
objs = self.getObjects(cursor, uid, ids, context)
|
||||
self.parser_instance.set_context(objs, data, ids, report_xml.report_type)
|
||||
|
||||
@@ -367,8 +365,8 @@ class WebKitParser(report_sxw):
|
||||
def create(self, cursor, uid, ids, data, context=None):
|
||||
"""We override the create function in order to handle generator
|
||||
Code taken from report openoffice. Thanks guys :) """
|
||||
pool = pooler.get_pool(cursor.dbname)
|
||||
ir_obj = pool.get('ir.actions.report.xml')
|
||||
pool = openerp.registry(cursor.dbname)
|
||||
ir_obj = pool['ir.actions.report.xml']
|
||||
report_xml_ids = ir_obj.search(cursor, uid,
|
||||
[('report_name', '=', self.name[7:])], context=context)
|
||||
if report_xml_ids:
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
|
||||
from openerp.tools.translate import _
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import pooler
|
||||
|
||||
class report_webkit_actions(osv.osv_memory):
|
||||
_name = "report.webkit.actions"
|
||||
@@ -61,13 +60,13 @@ class report_webkit_actions(osv.osv_memory):
|
||||
if not record_id or (active_model and active_model != 'ir.actions.report.xml'):
|
||||
return res
|
||||
|
||||
report = self.pool.get('ir.actions.report.xml').browse(
|
||||
report = self.pool['ir.actions.report.xml'].browse(
|
||||
cr,
|
||||
uid,
|
||||
context.get('active_id'),
|
||||
context=context
|
||||
)
|
||||
ir_values_obj = self.pool.get('ir.values')
|
||||
ir_values_obj = self.pool['ir.values']
|
||||
ids = ir_values_obj.search(
|
||||
cr,
|
||||
uid,
|
||||
@@ -93,7 +92,7 @@ class report_webkit_actions(osv.osv_memory):
|
||||
"""
|
||||
if context is None:
|
||||
context = {}
|
||||
report_obj = self.pool.get('ir.actions.report.xml')
|
||||
report_obj = self.pool['ir.actions.report.xml']
|
||||
for current in self.browse(cr, uid, ids, context=context):
|
||||
report = report_obj.browse(
|
||||
cr,
|
||||
@@ -102,7 +101,7 @@ class report_webkit_actions(osv.osv_memory):
|
||||
context=context
|
||||
)
|
||||
if current.print_button:
|
||||
ir_values_obj = pooler.get_pool(cr.dbname).get('ir.values')
|
||||
ir_values_obj = self.pool['ir.values']
|
||||
res = ir_values_obj.set(
|
||||
cr,
|
||||
uid,
|
||||
@@ -114,7 +113,7 @@ class report_webkit_actions(osv.osv_memory):
|
||||
isobject=True
|
||||
)
|
||||
else:
|
||||
ir_values_obj = pooler.get_pool(cr.dbname).get('ir.values')
|
||||
ir_values_obj = self.pool['ir.values']
|
||||
res = ir_values_obj.set(
|
||||
cr,
|
||||
uid,
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
import logging
|
||||
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import pooler
|
||||
from openerp.tools.translate import _
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
from datetime import datetime, timedelta
|
||||
from dateutil.relativedelta import relativedelta
|
||||
import time
|
||||
from openerp import pooler
|
||||
from openerp.osv import fields, osv
|
||||
from openerp.tools.translate import _
|
||||
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP, float_compare
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
##############################################################################
|
||||
|
||||
from openerp.osv import fields, osv
|
||||
from openerp import pooler
|
||||
from openerp.tools.translate import _
|
||||
|
||||
class sale_configuration(osv.osv_memory):
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
from openerp import pooler
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
|
||||
@@ -35,7 +34,7 @@ class lot_overview(report_sxw.rml_parse):
|
||||
})
|
||||
|
||||
def process(self, location_id):
|
||||
location_obj = pooler.get_pool(self.cr.dbname).get('stock.location')
|
||||
location_obj = self.pool['stock.location']
|
||||
data = location_obj._product_get_report(self.cr,self.uid, [location_id])
|
||||
|
||||
data['location_name'] = location_obj.read(self.cr, self.uid, [location_id],['complete_name'])[0]['complete_name']
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
from openerp import pooler
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
|
||||
@@ -35,7 +34,7 @@ class lot_overview_all(report_sxw.rml_parse):
|
||||
})
|
||||
|
||||
def process(self, location_id):
|
||||
location_obj = pooler.get_pool(self.cr.dbname).get('stock.location')
|
||||
location_obj = self.pool['stock.location']
|
||||
data = location_obj._product_get_all_report(self.cr,self.uid, [location_id])
|
||||
data['location_name'] = location_obj.read(self.cr, self.uid, [location_id],['complete_name'])[0]['complete_name']
|
||||
self.price_total = 0.0
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
import time
|
||||
from openerp.report import report_sxw
|
||||
from openerp.osv import osv
|
||||
from openerp import pooler
|
||||
|
||||
class picking(report_sxw.rml_parse):
|
||||
def __init__(self, cr, uid, name, context):
|
||||
|
||||
@@ -22,13 +22,13 @@
|
||||
from datetime import datetime
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
import openerp
|
||||
from openerp import osv
|
||||
import time
|
||||
from openerp.report.interface import report_int
|
||||
from openerp.report.render import render
|
||||
|
||||
import stock_graph
|
||||
from openerp import pooler
|
||||
import StringIO
|
||||
|
||||
class external_pdf(render):
|
||||
@@ -45,24 +45,25 @@ class report_stock(report_int):
|
||||
def create(self, cr, uid, ids, datas, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
registry = openerp.registry(cr.dbname)
|
||||
product_ids = ids
|
||||
if 'location_id' in context:
|
||||
location_id = context['location_id']
|
||||
else:
|
||||
warehouse_id = pooler.get_pool(cr.dbname).get('stock.warehouse').search(cr, uid, [])[0]
|
||||
location_id = pooler.get_pool(cr.dbname).get('stock.warehouse').browse(cr, uid, warehouse_id).lot_stock_id.id
|
||||
warehouse_id = registry['stock.warehouse'].search(cr, uid, [])[0]
|
||||
location_id = registry['stock.warehouse'].browse(cr, uid, warehouse_id).lot_stock_id.id
|
||||
|
||||
loc_ids = pooler.get_pool(cr.dbname).get('stock.location').search(cr, uid, [('location_id','child_of',[location_id])])
|
||||
loc_ids = registry['stock.location'].search(cr, uid, [('location_id','child_of',[location_id])])
|
||||
|
||||
now = time.strftime('%Y-%m-%d')
|
||||
dt_from = now
|
||||
dt_to = now
|
||||
|
||||
names = dict(pooler.get_pool(cr.dbname).get('product.product').name_get(cr, uid, product_ids))
|
||||
names = dict(registry['product.product'].name_get(cr, uid, product_ids))
|
||||
for name in names:
|
||||
names[name] = names[name].encode('utf8')
|
||||
products = {}
|
||||
prods = pooler.get_pool(cr.dbname).get('stock.location')._product_all_get(cr, uid, location_id, product_ids)
|
||||
prods = registry['stock.location']._product_all_get(cr, uid, location_id, product_ids)
|
||||
|
||||
for p in prods:
|
||||
products[p] = [(now,prods[p])]
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import pooler
|
||||
import openerp
|
||||
from openerp.report.interface import report_rml
|
||||
from openerp.report.interface import toxml
|
||||
|
||||
@@ -47,16 +47,17 @@ class report_custom(report_rml):
|
||||
"""
|
||||
|
||||
def process(location_id, level):
|
||||
registry = openerp.registry(cr.dbname)
|
||||
xml = '<row>'
|
||||
location_name = pooler.get_pool(cr.dbname).get('stock.location').read(cr, uid, [location_id], ['name'])
|
||||
location_name = registry['stock.location'].read(cr, uid, [location_id], ['name'])
|
||||
xml += "<col para='yes' tree='yes' space='" + str(3*level) + "mm'>"
|
||||
xml += location_name[0]['name'] + '</col>'
|
||||
|
||||
prod_info = pooler.get_pool(cr.dbname).get('stock.location')._product_get(cr, uid, location_id)
|
||||
prod_info = registry['stock.location']._product_get(cr, uid, location_id)
|
||||
xml += "<col>"
|
||||
for prod_id in prod_info.keys():
|
||||
if prod_info[prod_id] != 0.0:
|
||||
prod_name = pooler.get_pool(cr.dbname).get('product.product').read(cr, uid, [prod_id], ['name'])
|
||||
prod_name = registry['product.product'].read(cr, uid, [prod_id], ['name'])
|
||||
xml += prod_name[0]['name'] + '\n'
|
||||
xml += '</col>'
|
||||
|
||||
@@ -66,7 +67,7 @@ class report_custom(report_rml):
|
||||
xml += str(prod_info[prod_id]) + '\n'
|
||||
xml += '</col></row>'
|
||||
|
||||
location_child = pooler.get_pool(cr.dbname).get('stock.location').read(cr, uid, [location_id], ['child_ids'])
|
||||
location_child = registry['stock.location'].read(cr, uid, [location_id], ['child_ids'])
|
||||
for child_id in location_child[0]['child_ids']:
|
||||
xml += process(child_id, level+1)
|
||||
return xml
|
||||
|
||||
@@ -22,15 +22,17 @@
|
||||
|
||||
import time
|
||||
|
||||
from openerp import pooler, tools
|
||||
import openerp
|
||||
from openerp import tools
|
||||
from openerp.report import report_sxw
|
||||
from openerp.report.interface import report_rml
|
||||
from openerp.tools import to_xml
|
||||
|
||||
class survey_analysis(report_rml):
|
||||
def create(self, cr, uid, ids, datas, context):
|
||||
surv_obj = pooler.get_pool(cr.dbname).get('survey')
|
||||
user_obj = pooler.get_pool(cr.dbname).get('res.users')
|
||||
registry = openerp.registry(cr.dbname)
|
||||
surv_obj = registry['survey']
|
||||
user_obj = registry['res.users']
|
||||
rml_obj=report_sxw.rml_parse(cr, uid, surv_obj._name,context)
|
||||
company=user_obj.browse(cr,uid,[uid],context)[0].company_id
|
||||
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
import time
|
||||
|
||||
from openerp import pooler, tools
|
||||
import openerp
|
||||
from openerp import tools
|
||||
from openerp.report import report_sxw
|
||||
from openerp.report.interface import report_rml
|
||||
from openerp.tools import to_xml
|
||||
@@ -33,6 +34,8 @@ class survey_browse_response(report_rml):
|
||||
_display_ans_in_rows = 5
|
||||
_pageSize = ('29.7cm','21.1cm')
|
||||
|
||||
registry = openerp.registry(cr.dbname)
|
||||
|
||||
if datas.has_key('form') and datas['form'].get('orientation','') == 'vertical':
|
||||
if datas['form'].get('paper_size','') == 'letter':
|
||||
_pageSize = ('21.6cm','27.9cm')
|
||||
@@ -187,7 +190,7 @@ class survey_browse_response(report_rml):
|
||||
</stylesheet>
|
||||
<images/>
|
||||
<story>"""
|
||||
surv_resp_obj = pooler.get_pool(cr.dbname).get('survey.response')
|
||||
surv_resp_obj = registry['survey.response']
|
||||
rml_obj=report_sxw.rml_parse(cr, uid, surv_resp_obj._name,context)
|
||||
if datas.has_key('form') and datas['form'].has_key('response_ids'):
|
||||
response_id = datas['form']['response_ids']
|
||||
@@ -196,8 +199,8 @@ class survey_browse_response(report_rml):
|
||||
else:
|
||||
response_id = surv_resp_obj.search(cr, uid, [('survey_id', 'in', ids)])
|
||||
|
||||
surv_resp_line_obj = pooler.get_pool(cr.dbname).get('survey.response.line')
|
||||
surv_obj = pooler.get_pool(cr.dbname).get('survey')
|
||||
surv_resp_line_obj = registry['survey.response.line']
|
||||
surv_obj = registry['survey']
|
||||
|
||||
for response in surv_resp_obj.browse(cr, uid, response_id):
|
||||
for survey in surv_obj.browse(cr, uid, [response.survey_id.id]):
|
||||
@@ -261,7 +264,7 @@ class survey_browse_response(report_rml):
|
||||
|
||||
elif que.type in ['table']:
|
||||
if len(answer) and answer[0].state == "done":
|
||||
col_heading = pooler.get_pool(cr.dbname).get('survey.tbl.column.heading')
|
||||
col_heading = registry['survey.tbl.column.heading']
|
||||
cols_widhts = []
|
||||
tbl_width = float(_tbl_widths.replace('cm', ''))
|
||||
for i in range(0, len(que.column_heading_ids)):
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import pooler, tools
|
||||
import openerp
|
||||
from openerp import tools
|
||||
from openerp.report.interface import report_rml
|
||||
from openerp.tools import to_xml
|
||||
|
||||
@@ -146,7 +147,7 @@ class survey_form(report_rml):
|
||||
<paraStyle name="terp_default_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
||||
</stylesheet>
|
||||
<story>"""
|
||||
surv_obj = pooler.get_pool(cr.dbname).get('survey')
|
||||
surv_obj = openerp.registry(cr.dbname)['survey']
|
||||
for survey in surv_obj.browse(cr,uid,ids):
|
||||
rml += """
|
||||
<blockTable colWidths='"""+_tbl_widths+"""' style="title_tbl">
|
||||
|
||||
Reference in New Issue
Block a user