diff --git a/addons/account/account.py b/addons/account/account.py index 1d3b9b0dc4d..329ae2579e2 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -30,7 +30,7 @@ from osv import fields, osv import decimal_precision as dp from tools.translate import _ -def check_cycle(self, cr, uid, ids): +def check_cycle(self, cr, uid, ids, context=None): """ climbs the ``self._table.parent_id`` chains for 100 levels or until it can't find any more parent(s) @@ -116,7 +116,7 @@ class account_payment_term_line(osv.osv): _order = "sequence" def _check_percent(self, cr, uid, ids, context=None): - obj = self.browse(cr, uid, ids[0]) + obj = self.browse(cr, uid, ids[0], context=context) if obj.value == 'procent' and ( obj.value_amount < 0.0 or obj.value_amount > 1.0): return False return True @@ -194,7 +194,7 @@ class account_account(osv.osv): if not args[pos][2]: del args[pos] continue - jour = self.pool.get('account.journal').browse(cr, uid, args[pos][2]) + jour = self.pool.get('account.journal').browse(cr, uid, args[pos][2], context=context) if (not (jour.account_control_ids or jour.type_control_ids)) or not args[pos][2]: args[pos] = ('type','not in',('consolidation','view')) continue @@ -207,7 +207,7 @@ class account_account(osv.osv): if context and context.has_key('consolidate_childs'): #add consolidated childs of accounts ids = super(account_account, self).search(cr, uid, args, offset, limit, order, context=context, count=count) - for consolidate_child in self.browse(cr, uid, context['account_id']).child_consol_ids: + for consolidate_child in self.browse(cr, uid, context['account_id'], context=context).child_consol_ids: ids.append(consolidate_child.id) return ids @@ -215,8 +215,6 @@ class account_account(osv.osv): order, context=context, count=count) def _get_children_and_consol(self, cr, uid, ids, context=None): - if context is None: - context = {} #this function search for all the children and all consolidated children (recursively) of the given account ids ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)], context=context) ids3 = [] @@ -309,15 +307,15 @@ class account_account(osv.osv): res[id] = sums.get(id, null_result) return res - def _get_company_currency(self, cr, uid, ids, field_name, arg, context={}): + def _get_company_currency(self, cr, uid, ids, field_name, arg, context=None): result = {} - for rec in self.browse(cr, uid, ids, context): + for rec in self.browse(cr, uid, ids, context=context): result[rec.id] = (rec.company_id.currency_id.id,rec.company_id.currency_id.symbol) return result - def _get_child_ids(self, cr, uid, ids, field_name, arg, context={}): + def _get_child_ids(self, cr, uid, ids, field_name, arg, context=None): result = {} - for record in self.browse(cr, uid, ids, context): + for record in self.browse(cr, uid, ids, context=context): if record.child_parent_ids: result[record.id] = [x.id for x in record.child_parent_ids] else: @@ -330,9 +328,9 @@ class account_account(osv.osv): return result - def _get_level(self, cr, uid, ids, field_name, arg, context={}): + def _get_level(self, cr, uid, ids, field_name, arg, context=None): res={} - accounts = self.browse(cr, uid, ids) + accounts = self.browse(cr, uid, ids, context=context) for account in accounts: level = 0 if account.parent_id: @@ -396,8 +394,8 @@ class account_account(osv.osv): 'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'account.account', context=c), } - def _check_recursion(self, cr, uid, ids): - obj_self = self.browse(cr, uid, ids[0]) + def _check_recursion(self, cr, uid, ids, context=None): + obj_self = self.browse(cr, uid, ids[0], context=context) p_id = obj_self.parent_id and obj_self.parent_id.id if (obj_self in obj_self.child_consol_ids) or (p_id and (p_id is obj_self.id)): return False @@ -426,14 +424,12 @@ class account_account(osv.osv): def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if not args: args = [] - if not context: - context = {} args = args[:] ids = [] try: if name and str(name).startswith('partner:'): part_id = int(name.split(':')[1]) - part = self.pool.get('res.partner').browse(cr, user, part_id, context) + part = self.pool.get('res.partner').browse(cr, user, part_id, context=context) args += [('id', 'in', (part.property_account_payable.id, part.property_account_receivable.id))] name = False if name and str(name).startswith('type:'): @@ -685,7 +681,7 @@ class account_journal(osv.osv): @return: Returns a list of tupples containing id, name """ - result = self.browse(cr, user, ids, context) + result = self.browse(cr, user, ids, context=context) res = [] for rs in result: name = rs.name @@ -733,7 +729,7 @@ class account_journal(osv.osv): view_id = 'account_journal_bank_view_multi' data_id = obj_data.search(cr, uid, [('model','=','account.journal.view'), ('name','=',view_id)]) - data = obj_data.browse(cr, uid, data_id[0]) + data = obj_data.browse(cr, uid, data_id[0], context=context) res.update({ 'centralisation':type == 'situation', @@ -778,8 +774,8 @@ class account_fiscalyear(osv.osv): return False return True - def _check_duration(self,cr,uid,ids): - obj_fy = self.browse(cr,uid,ids[0]) + def _check_duration(self, cr, uid, ids, context=None): + obj_fy = self.browse(cr, uid, ids[0], context=context) if obj_fy.date_stop < obj_fy.date_start: return False return True @@ -789,11 +785,11 @@ class account_fiscalyear(osv.osv): (_check_fiscal_year, 'Error! You cannot define overlapping fiscal years',['date_start', 'date_stop']) ] - def create_period3(self,cr, uid, ids, context={}): + def create_period3(self,cr, uid, ids, context=None): return self.create_period(cr, uid, ids, context, 3) - def create_period(self,cr, uid, ids, context={}, interval=1): - for fy in self.browse(cr, uid, ids, context): + def create_period(self,cr, uid, ids, context=None, interval=1): + for fy in self.browse(cr, uid, ids, context=context): ds = datetime.strptime(fy.date_start, '%Y-%m-%d') while ds.strftime('%Y-%m-%d')=', dt)]) @@ -856,14 +852,14 @@ class account_period(osv.osv): } _order = "date_start" - def _check_duration(self,cr,uid,ids,context={}): - obj_period=self.browse(cr,uid,ids[0]) + def _check_duration(self,cr,uid,ids,context=None): + obj_period = self.browse(cr, uid, ids[0], context=context) if obj_period.date_stop < obj_period.date_start: return False return True - def _check_year_limit(self,cr,uid,ids,context={}): - for obj_period in self.browse(cr,uid,ids): + def _check_year_limit(self,cr,uid,ids,context=None): + for obj_period in self.browse(cr, uid, ids, context=context): if obj_period.special: continue @@ -884,13 +880,13 @@ class account_period(osv.osv): (_check_year_limit, 'Invalid period ! Some periods overlap or the date period is not in the scope of the fiscal year. ', ['date_stop']) ] - def next(self, cr, uid, period, step, context={}): + def next(self, cr, uid, period, step, context=None): ids = self.search(cr, uid, [('date_start','>',period.date_start)]) if len(ids)>=step: return ids[step-1] return False - def find(self, cr, uid, dt=None, context={}): + def find(self, cr, uid, dt=None, context=None): if not dt: dt = time.strftime('%Y-%m-%d') #CHECKME: shouldn't we check the state of the period? @@ -906,7 +902,7 @@ class account_period(osv.osv): cr.execute('update account_period set state=%s where id=%s', (mode, id)) return True - def name_search(self, cr, user, name, args=None, operator='ilike', context={}, limit=80): + def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if args is None: args = [] if context is None: @@ -918,7 +914,7 @@ class account_period(osv.osv): ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit) return self.name_get(cr, user, ids, context=context) - def write(self, cr, uid, ids, vals, context={}): + def write(self, cr, uid, ids, vals, context=None): if 'company_id' in vals: move_lines = self.pool.get('account.move.line').search(cr, uid, [('period_id', 'in', ids)]) if move_lines: @@ -944,7 +940,7 @@ class account_journal_period(osv.osv): _name = "account.journal.period" _description = "Journal Period" - def _icon_get(self, cr, uid, ids, field_name, arg=None, context={}): + def _icon_get(self, cr, uid, ids, field_name, arg=None, context=None): result = {}.fromkeys(ids, 'STOCK_NEW') for r in self.read(cr, uid, ids, ['state']): result[r['id']] = { @@ -966,28 +962,28 @@ class account_journal_period(osv.osv): 'company_id': fields.related('journal_id', 'company_id', type='many2one', relation='res.company', string='Company') } - def _check(self, cr, uid, ids, context={}): - for obj in self.browse(cr, uid, ids, context): + def _check(self, cr, uid, ids, context=None): + for obj in self.browse(cr, uid, ids, context=context): cr.execute('select * from account_move_line where journal_id=%s and period_id=%s limit 1', (obj.journal_id.id, obj.period_id.id)) res = cr.fetchall() if res: raise osv.except_osv(_('Error !'), _('You can not modify/delete a journal with entries for this period !')) return True - def write(self, cr, uid, ids, vals, context={}): - self._check(cr, uid, ids, context) - return super(account_journal_period, self).write(cr, uid, ids, vals, context) + def write(self, cr, uid, ids, vals, context=None): + self._check(cr, uid, ids, context=context) + return super(account_journal_period, self).write(cr, uid, ids, vals, context=context) - def create(self, cr, uid, vals, context={}): + def create(self, cr, uid, vals, context=None): period_id=vals.get('period_id',False) if period_id: - period = self.pool.get('account.period').browse(cr, uid,period_id) + period = self.pool.get('account.period').browse(cr, uid, period_id, context=context) vals['state']=period.state return super(account_journal_period, self).create(cr, uid, vals, context) - def unlink(self, cr, uid, ids, context={}): - self._check(cr, uid, ids, context) - return super(account_journal_period, self).unlink(cr, uid, ids, context) + def unlink(self, cr, uid, ids, context=None): + self._check(cr, uid, ids, context=context) + return super(account_journal_period, self).unlink(cr, uid, ids, context=context) _defaults = { 'state': 'draft', @@ -1038,8 +1034,6 @@ class account_move(osv.osv): if not args: args = [] - if not context: - context = {} ids = [] if name: ids += self.search(cr, user, [('name','ilike',name)]+args, limit=limit, context=context) @@ -1058,7 +1052,7 @@ class account_move(osv.osv): if not ids: return [] res = [] - data_move = self.pool.get('account.move').browse(cursor,user,ids) + data_move = self.pool.get('account.move').browse(cursor, user, ids, context=context) for move in data_move: if move.state=='draft': name = '*' + str(move.id) @@ -1067,7 +1061,7 @@ class account_move(osv.osv): res.append((move.id, name)) return res - def _get_period(self, cr, uid, context): + def _get_period(self, cr, uid, context=None): periods = self.pool.get('account.period').find(cr, uid) if periods: return periods[0] @@ -1128,8 +1122,8 @@ class account_move(osv.osv): 'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id, } - def _check_centralisation(self, cursor, user, ids): - for move in self.browse(cursor, user, ids): + def _check_centralisation(self, cursor, user, ids, context=None): + for move in self.browse(cursor, user, ids, context=context): if move.journal_id.centralisation: move_ids = self.search(cursor, user, [ ('period_id', '=', move.period_id.id), @@ -1139,8 +1133,8 @@ class account_move(osv.osv): return False return True - def _check_period_journal(self, cursor, user, ids): - for move in self.browse(cursor, user, ids): + def _check_period_journal(self, cursor, user, ids, context=None): + for move in self.browse(cursor, user, ids, context=context): for line in move.line_id: if line.period_id.id != move.period_id.id: return False @@ -1166,7 +1160,7 @@ class account_move(osv.osv): if not valid_moves: raise osv.except_osv(_('Integrity Error !'), _('You cannot validate a non-balanced entry !\nMake sure you have configured Payment Term properly !\nIt should contain atleast one Payment Term Line with type "Balance" !')) obj_sequence = self.pool.get('ir.sequence') - for move in self.browse(cr, uid, valid_moves): + for move in self.browse(cr, uid, valid_moves, context=context): if move.name =='/': new_name = False journal = move.journal_id @@ -1191,7 +1185,7 @@ class account_move(osv.osv): return True def button_validate(self, cursor, user, ids, context=None): - for move in self.browse(cursor, user, ids): + for move in self.browse(cursor, user, ids, context=context): top = None for line in move.line_id: account = line.account_id @@ -1204,8 +1198,8 @@ class account_move(osv.osv): raise osv.except_osv(_('Error !'), _('You cannot validate a Journal Entry unless all journal items are in same chart of accounts !')) return self.post(cursor, user, ids, context=context) - def button_cancel(self, cr, uid, ids, context={}): - for line in self.browse(cr, uid, ids, context): + def button_cancel(self, cr, uid, ids, context=None): + for line in self.browse(cr, uid, ids, context=context): if not line.journal_id.update_posted: raise osv.except_osv(_('Error !'), _('You can not modify a posted entry of this journal !\nYou should set the journal to allow cancelling entries if you want to do that.')) if ids: @@ -1214,18 +1208,21 @@ class account_move(osv.osv): 'WHERE id IN %s', ('draft', tuple(ids),)) return True - def write(self, cr, uid, ids, vals, context={}): + def write(self, cr, uid, ids, vals, context=None): + if context is None: + context = {} c = context.copy() c['novalidate'] = True result = super(osv.osv, self).write(cr, uid, ids, vals, c) - self.validate(cr, uid, ids, context) + self.validate(cr, uid, ids, context=context) return result # # TODO: Check if period is closed ! # def create(self, cr, uid, vals, context=None): - context = context or {} + if context is None: + context = {} if 'line_id' in vals and context.get('copy'): for l in vals['line_id']: if not l[0]: @@ -1265,8 +1262,9 @@ class account_move(osv.osv): result = super(account_move, self).create(cr, uid, vals, context) return result - def copy(self, cr, uid, id, default={}, context={}): - context = context or {} + def copy(self, cr, uid, id, default={}, context=None): + if context is None: + context = {} default.update({ 'state':'draft', 'name':'/', @@ -1277,10 +1275,9 @@ class account_move(osv.osv): return super(account_move, self).copy(cr, uid, id, default, context) def unlink(self, cr, uid, ids, context=None, check=True): - context = context or {} toremove = [] obj_move_line = self.pool.get('account.move.line') - for move in self.browse(cr, uid, ids, context): + for move in self.browse(cr, uid, ids, context=context): if move['state'] != 'draft': raise osv.except_osv(_('UserError'), _('You can not delete posted movement: "%s"!') % \ @@ -1294,8 +1291,8 @@ class account_move(osv.osv): result = super(account_move, self).unlink(cr, uid, toremove, context) return result - def _compute_balance(self, cr, uid, id, context={}): - move = self.browse(cr, uid, [id])[0] + def _compute_balance(self, cr, uid, id, context=None): + move = self.browse(cr, uid, id, context=context) amount = 0 for line in move.line_id: amount+= (line.debit - line.credit) @@ -1358,7 +1355,7 @@ class account_move(osv.osv): # # Validate a balanced move. If it is a centralised journal, create a move. # - def validate(self, cr, uid, ids, context={}): + def validate(self, cr, uid, ids, context=None): if context and ('__last_update' in context): del context['__last_update'] @@ -1472,9 +1469,9 @@ class account_move_reconcile(osv.osv): _defaults = { 'name': lambda self,cr,uid,ctx={}: self.pool.get('ir.sequence').get(cr, uid, 'account.reconcile') or '/', } - def reconcile_partial_check(self, cr, uid, ids, type='auto', context={}): + def reconcile_partial_check(self, cr, uid, ids, type='auto', context=None): total = 0.0 - for rec in self.browse(cr, uid, ids, context): + for rec in self.browse(cr, uid, ids, context=context): for line in rec.line_partial_ids: total += (line.debit or 0.0) - (line.credit or 0.0) if not total: @@ -1488,7 +1485,7 @@ class account_move_reconcile(osv.osv): if not ids: return [] result = [] - for r in self.browse(cr, uid, ids, context): + for r in self.browse(cr, uid, ids, context=context): total = reduce(lambda y,t: (t.debit or 0.0) - (t.credit or 0.0) + y, r.line_partial_ids, 0.0) if total: name = '%s (%.2f)' % (r.name, total) @@ -1537,7 +1534,7 @@ class account_tax_code(osv.osv): (parent_ids,) + where_params) res=dict(cr.fetchall()) obj_precision = self.pool.get('decimal.precision') - for record in self.browse(cr, uid, ids, context): + for record in self.browse(cr, uid, ids, context=context): def _rec_get(record): amount = res.get(record.id, 0.0) for rec in record.child_ids: @@ -1619,7 +1616,7 @@ class account_tax_code(osv.osv): return [(x['id'], (x['code'] and (x['code'] + ' - ') or '') + x['name']) \ for x in reads] - def _default_company(self, cr, uid, context={}): + def _default_company(self, cr, uid, context=None): user = self.pool.get('res.users').browse(cr, uid, uid, context=context) if user.company_id: return user.company_id.id @@ -1723,7 +1720,7 @@ class account_tax(osv.osv): """ if not args: args = [] - if not context: + if context is None: context = {} ids = [] if name: @@ -2062,7 +2059,7 @@ class account_model(osv.osv): raise osv.except_osv(_('No period found !'), _('Unable to find a valid period !')) period_id = period_id[0] - for model in self.browse(cr, uid, ids, context): + for model in self.browse(cr, uid, ids, context=context): entry['name'] = model.name%{'year':time.strftime('%Y'), 'month':time.strftime('%m'), 'date':time.strftime('%Y-%m')} move_id = account_move_obj.create(cr, uid, { 'ref': entry['name'], @@ -2168,13 +2165,13 @@ class account_subscription(osv.osv): 'period_nbr': 1, 'state': 'draft', } - def state_draft(self, cr, uid, ids, context={}): + def state_draft(self, cr, uid, ids, context=None): self.write(cr, uid, ids, {'state':'draft'}) return False - def check(self, cr, uid, ids, context={}): + def check(self, cr, uid, ids, context=None): todone = [] - for sub in self.browse(cr, uid, ids, context): + for sub in self.browse(cr, uid, ids, context=context): ok = True for line in sub.lines_id: if not line.move_id.id: @@ -2186,9 +2183,9 @@ class account_subscription(osv.osv): self.write(cr, uid, todone, {'state':'done'}) return False - def remove_line(self, cr, uid, ids, context={}): + def remove_line(self, cr, uid, ids, context=None): toremove = [] - for sub in self.browse(cr, uid, ids, context): + for sub in self.browse(cr, uid, ids, context=context): for line in sub.lines_id: if not line.move_id.id: toremove.append(line.id) @@ -2197,8 +2194,8 @@ class account_subscription(osv.osv): self.write(cr, uid, ids, {'state':'draft'}) return False - def compute(self, cr, uid, ids, context={}): - for sub in self.browse(cr, uid, ids, context): + def compute(self, cr, uid, ids, context=None): + for sub in self.browse(cr, uid, ids, context=context): ds = sub.date_start for i in range(sub.period_total): self.pool.get('account.subscription.line').create(cr, uid, { @@ -2296,10 +2293,10 @@ class account_account_template(osv.osv): ] - def name_get(self, cr, uid, ids, context={}): + def name_get(self, cr, uid, ids, context=None): if not ids: return [] - reads = self.read(cr, uid, ids, ['name','code'], context) + reads = self.read(cr, uid, ids, ['name','code'], context=context) res = [] for record in reads: name = record['name'] @@ -2316,7 +2313,7 @@ class account_add_tmpl_wizard(osv.osv_memory): With the 'nocreate' option, some accounts may not be created. Use this to add them later.""" _name = 'account.addtmpl.wizard' - def _get_def_cparent(self, cr, uid, context): + def _get_def_cparent(self, cr, uid, context=None): acc_obj=self.pool.get('account.account') tmpl_obj=self.pool.get('account.account.template') tids=tmpl_obj.read(cr, uid, [context['tmpl_ids']], ['parent_id']) @@ -2338,6 +2335,8 @@ class account_add_tmpl_wizard(osv.osv_memory): } def action_create(self,cr,uid,ids,context=None): + if context is None: + context = {} acc_obj = self.pool.get('account.account') tmpl_obj = self.pool.get('account.account.template') data = self.read(cr, uid, ids) @@ -2463,16 +2462,16 @@ class account_tax_template(osv.osv): 'price_include': fields.boolean('Tax Included in Price', help="Check this if the price you use on the product and invoices includes this tax."), } - def name_get(self, cr, uid, ids, context={}): + def name_get(self, cr, uid, ids, context=None): if not ids: return [] res = [] - for record in self.read(cr, uid, ids, ['description','name'], context): + for record in self.read(cr, uid, ids, ['description','name'], context=context): name = record['description'] and record['description'] or record['name'] res.append((record['id'],name )) return res - def _default_company(self, cr, uid, context={}): + def _default_company(self, cr, uid, context=None): user = self.pool.get('res.users').browse(cr, uid, uid, context=context) if user.company_id: return user.company_id.id @@ -2579,7 +2578,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): res['value']["purchase_tax"] = purchase_tax_ids and purchase_tax_ids[0] or False return res - def _get_chart(self, cr, uid, context={}): + def _get_chart(self, cr, uid, context=None): ids = self.pool.get('account.chart.template').search(cr, uid, [], context=context) if ids: return ids[0] @@ -2625,7 +2624,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): #create all the tax code children_tax_code_template = self.pool.get('account.tax.code.template').search(cr, uid, [('parent_id','child_of',[tax_code_root_id])], order='id') children_tax_code_template.sort() - for tax_code_template in self.pool.get('account.tax.code.template').browse(cr, uid, children_tax_code_template): + for tax_code_template in self.pool.get('account.tax.code.template').browse(cr, uid, children_tax_code_template, context=context): vals={ 'name': (tax_code_root_id == tax_code_template.id) and obj_multi.company_id.name or tax_code_template.name, 'code': tax_code_template.code, @@ -2682,7 +2681,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): children_acc_template = obj_acc_template.search(cr, uid, [('parent_id','child_of',[obj_acc_root.id]),('nocreate','!=',True)]) children_acc_template.sort() - for account_template in obj_acc_template.browse(cr, uid, children_acc_template): + for account_template in obj_acc_template.browse(cr, uid, children_acc_template,context=context): tax_ids = [] for tax in account_template.tax_ids: tax_ids.append(tax_template_ref[tax.id]) @@ -2722,7 +2721,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): # Creating Journals Sales and Purchase vals_journal={} data_id = obj_data.search(cr, uid, [('model','=','account.journal.view'), ('name','=','account_sp_journal_view')]) - data = obj_data.browse(cr, uid, data_id[0]) + data = obj_data.browse(cr, uid, data_id[0], context=context) view_id = data.res_id seq_id = obj_sequence.search(cr, uid, [('name','=','Account Journal')])[0] @@ -2835,11 +2834,11 @@ class wizard_multi_charts_accounts(osv.osv_memory): # Bank Journals data_id = obj_data.search(cr, uid, [('model','=','account.journal.view'), ('name','=','account_journal_bank_view')]) - data = obj_data.browse(cr, uid, data_id[0]) + data = obj_data.browse(cr, uid, data_id[0], context=context) view_id_cash = data.res_id data_id = obj_data.search(cr, uid, [('model','=','account.journal.view'), ('name','=','account_journal_bank_view_multi')]) - data = obj_data.browse(cr, uid, data_id[0]) + data = obj_data.browse(cr, uid, data_id[0], context=context) view_id_cur = data.res_id ref_acc_bank = obj_multi.chart_template_id.bank_account_view_id @@ -2932,7 +2931,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): obj_tax_fp = self.pool.get('account.fiscal.position.tax') obj_ac_fp = self.pool.get('account.fiscal.position.account') - for position in obj_fiscal_position_template.browse(cr, uid, fp_ids): + for position in obj_fiscal_position_template.browse(cr, uid, fp_ids, context=context): vals_fp = { 'company_id': company_id, diff --git a/addons/account/account_analytic_line.py b/addons/account/account_analytic_line.py index 329eb59ab05..a8d8044a6c2 100644 --- a/addons/account/account_analytic_line.py +++ b/addons/account/account_analytic_line.py @@ -58,8 +58,8 @@ class account_analytic_line(osv.osv): return super(account_analytic_line, self).search(cr, uid, args, offset, limit, order, context=context, count=count) - def _check_company(self, cr, uid, ids): - lines = self.browse(cr, uid, ids) + def _check_company(self, cr, uid, ids, context=None): + lines = self.browse(cr, uid, ids, context=context) for l in lines: if l.move_id and not l.account_id.company_id.id == l.move_id.account_id.company_id.id: return False @@ -80,7 +80,7 @@ class account_analytic_line(osv.osv): analytic_journal_obj =self.pool.get('account.analytic.journal') product_price_type_obj = self.pool.get('product.price.type') j_id = analytic_journal_obj.browse(cr, uid, journal_id, context=context) - prod = product_obj.browse(cr, uid, prod_id) + prod = product_obj.browse(cr, uid, prod_id, context=context) result = 0.0 if j_id.type <> 'sale': @@ -105,13 +105,13 @@ class account_analytic_line(osv.osv): flag = False # Compute based on pricetype product_price_type_ids = product_price_type_obj.search(cr, uid, [('field','=','standard_price')], context=context) - pricetype = product_price_type_obj.browse(cr, uid, product_price_type_ids, context)[0] + pricetype = product_price_type_obj.browse(cr, uid, product_price_type_ids, context=context)[0] if journal_id: - journal = analytic_journal_obj.browse(cr, uid, journal_id) + journal = analytic_journal_obj.browse(cr, uid, journal_id, context=context) if journal.type == 'sale': product_price_type_ids = product_price_type_obj.search(cr, uid, [('field','=','list_price')], context) if product_price_type_ids: - pricetype = product_price_type_obj.browse(cr, uid, product_price_type_ids, context)[0] + pricetype = product_price_type_obj.browse(cr, uid, product_price_type_ids, context=context)[0] # Take the company currency as the reference one if pricetype.field == 'list_price': flag = True @@ -133,7 +133,9 @@ class account_analytic_line(osv.osv): } } - def view_header_get(self, cr, user, view_id, view_type, context): + def view_header_get(self, cr, user, view_id, view_type, context=None): + if context is None: + context = {} if context.get('account_id', False): # account_id in context may also be pointing to an account.account.id cr.execute('select name from account_analytic_account where id=%s', (context['account_id'],)) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index 93d2a6fb00d..ab2f72e92dd 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -46,7 +46,9 @@ class account_bank_statement(osv.osv): account_bank_statement_line_obj.write(cr, uid, [line.id], {'sequence': seq}, context=context) return res - def _default_journal_id(self, cr, uid, context={}): + def _default_journal_id(self, cr, uid, context=None): + if context is None: + context = {} journal_pool = self.pool.get('account.journal') journal_type = context.get('journal_type', False) journal_id = False @@ -56,11 +58,11 @@ class account_bank_statement(osv.osv): journal_id = ids[0] return journal_id - def _default_balance_start(self, cr, uid, context={}): + def _default_balance_start(self, cr, uid, context=None): cr.execute('select id from account_bank_statement where journal_id=%s order by date desc limit 1', (1,)) res = cr.fetchone() if res: - return self.browse(cr, uid, [res[0]], context)[0].balance_end + return self.browse(cr, uid, res[0], context=context).balance_end return 0.0 def _end_balance(self, cursor, user, ids, name, attr, context=None): @@ -95,7 +97,7 @@ class account_bank_statement(osv.osv): res[r] = round(res[r], 2) return res - def _get_period(self, cr, uid, context={}): + def _get_period(self, cr, uid, context=None): periods = self.pool.get('account.period').find(cr, uid) if periods: return periods[0] @@ -195,11 +197,13 @@ class account_bank_statement(osv.osv): return self.write(cr, uid, ids, {}, context=context) def create_move_from_st_line(self, cr, uid, st_line_id, company_currency_id, st_line_number, context=None): + if context is None: + context = {} res_currency_obj = self.pool.get('res.currency') account_move_obj = self.pool.get('account.move') account_move_line_obj = self.pool.get('account.move.line') account_bank_statement_line_obj = self.pool.get('account.bank.statement.line') - st_line = account_bank_statement_line_obj.browse(cr, uid, st_line_id, context) + st_line = account_bank_statement_line_obj.browse(cr, uid, st_line_id, context=context) st = st_line.statement_id context.update({'date': st_line.date}) @@ -299,7 +303,7 @@ class account_bank_statement(osv.osv): return st_number + '/' + str(st_line.sequence) def balance_check(self, cr, uid, st_id, journal_type='bank', context=None): - st = self.browse(cr, uid, st_id, context) + st = self.browse(cr, uid, st_id, context=context) if not (abs((st.balance_end or 0.0) - st.balance_end_real) < 0.0001): raise osv.except_osv(_('Error !'), _('The statement balance is incorrect !\n') + @@ -318,7 +322,7 @@ class account_bank_statement(osv.osv): if context is None: context = {} - for st in self.browse(cr, uid, ids, context): + for st in self.browse(cr, uid, ids, context=context): j_type = st.journal_id.type company_currency_id = st.journal_id.company_id.currency_id.id if not self.check_status_condition(cr, uid, st.state, journal_type=j_type): @@ -360,7 +364,7 @@ class account_bank_statement(osv.osv): def button_cancel(self, cr, uid, ids, context=None): done = [] account_move_obj = self.pool.get('account.move') - for st in self.browse(cr, uid, ids, context): + for st in self.browse(cr, uid, ids, context=context): if st.state=='draft': continue ids = [] @@ -381,7 +385,7 @@ class account_bank_statement(osv.osv): return {'value': {'balance_start': balance_start, 'account_id': account_id}} def unlink(self, cr, uid, ids, context=None): - stat = self.read(cr, uid, ids, ['state']) + stat = self.read(cr, uid, ids, ['state'], context=context) unlink_ids = [] for t in stat: if t['state'] in ('draft'): @@ -412,7 +416,7 @@ class account_bank_statement_line(osv.osv): if not partner_id: return res account_id = False - line = self.browse(cr, uid, line_id) + line = self.browse(cr, uid, line_id, context=context) if not line or (line and not line[0].account_id): part = obj_partner.browse(cr, uid, partner_id, context=context) if type == 'supplier': diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index cf17a799372..86b00ad98b3 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -41,7 +41,7 @@ class account_cashbox_line(osv.osv): @return: Dictionary of values. """ res = {} - for obj in self.browse(cr, uid, ids): + for obj in self.browse(cr, uid, ids, context=context): res[obj.id] = obj.pieces * obj.number return res @@ -76,7 +76,7 @@ class account_cash_statement(osv.osv): @return: Dictionary of values. """ res = {} - for statement in self.browse(cr, uid, ids): + for statement in self.browse(cr, uid, ids, context=context): amount_total = 0.0 if statement.journal_id.type not in('cash'): @@ -96,7 +96,7 @@ class account_cash_statement(osv.osv): @return: Dictionary of values. """ res = {} - for statement in self.browse(cr, uid, ids): + for statement in self.browse(cr, uid, ids, context=context): amount_total = 0.0 for line in statement.ending_details_ids: amount_total += line.pieces * line.number @@ -111,7 +111,7 @@ class account_cash_statement(osv.osv): @return: Dictionary of values. """ res2 = {} - for statement in self.browse(cr, uid, ids): + for statement in self.browse(cr, uid, ids, context=context): encoding_total=0.0 for line in statement.line_ids: encoding_total += line.amount @@ -160,7 +160,7 @@ class account_cash_statement(osv.osv): company_id = company_pool.search(cr, uid, []) return company_id and company_id[0] or False - def _get_cash_open_box_lines(self, cr, uid, context={}): + def _get_cash_open_box_lines(self, cr, uid, context=None): res = [] curr = [1, 2, 5, 10, 20, 50, 100, 500] for rs in curr: @@ -173,14 +173,14 @@ class account_cash_statement(osv.osv): if journal_ids: results = self.search(cr, uid, [('journal_id', 'in', journal_ids),('state', '=', 'confirm')], context=context) if results: - cash_st = self.browse(cr, uid, results, context)[0] + cash_st = self.browse(cr, uid, results, context=context)[0] for cash_line in cash_st.ending_details_ids: for r in res: if cash_line.pieces == r['pieces']: r['number'] = cash_line.number return res - def _get_default_cash_close_box_lines(self, cr, uid, context={}): + def _get_default_cash_close_box_lines(self, cr, uid, context=None): res = [] curr = [1, 2, 5, 10, 20, 50, 100, 500] for rs in curr: @@ -191,7 +191,7 @@ class account_cash_statement(osv.osv): res.append(dct) return res - def _get_cash_close_box_lines(self, cr, uid, context={}): + def _get_cash_close_box_lines(self, cr, uid, context=None): res = [] curr = [1, 2, 5, 10, 20, 50, 100, 500] for rs in curr: @@ -202,11 +202,11 @@ class account_cash_statement(osv.osv): res.append((0, 0, dct)) return res - def _get_cash_open_close_box_lines(self, cr, uid, context={}): + def _get_cash_open_close_box_lines(self, cr, uid, context=None): res = {} start_l = [] end_l = [] - starting_details = self._get_cash_open_box_lines(cr, uid, context) + starting_details = self._get_cash_open_box_lines(cr, uid, context=context) ending_details = self._get_default_cash_close_box_lines(cr, uid, context) for start in starting_details: start_l.append((0, 0, start)) @@ -248,7 +248,7 @@ class account_cash_statement(osv.osv): if open_jrnl: raise osv.except_osv(_('Error'), _('You can not have two open register for the same journal')) - if self.pool.get('account.journal').browse(cr, uid, vals['journal_id']).type == 'cash': + if self.pool.get('account.journal').browse(cr, uid, vals['journal_id'], context=context).type == 'cash': open_close = self._get_cash_open_close_box_lines(cr, uid, context) if vals.get('starting_details_ids', False): for start in vals.get('starting_details_ids'): @@ -283,7 +283,7 @@ class account_cash_statement(osv.osv): @return: True on success, False otherwise """ - super(account_cash_statement, self).write(cr, uid, ids, vals) + super(account_cash_statement, self).write(cr, uid, ids, vals, context=context) res = self._get_starting_balance(cr, uid, ids) for rs in res: super(account_cash_statement, self).write(cr, uid, [rs], res.get(rs)) @@ -338,7 +338,7 @@ class account_cash_statement(osv.osv): 'state': 'open', }) - self.write(cr, uid, [statement.id], vals) + self.write(cr, uid, [statement.id], vals, context=context) return True def balance_check(self, cr, uid, cash_id, journal_type='bank', context=None): diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 2987b3c69d6..02c5abcb130 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -107,9 +107,9 @@ class account_move_line(osv.osv): del data[f] return data - def create_analytic_lines(self, cr, uid, ids, context={}): + def create_analytic_lines(self, cr, uid, ids, context=None): acc_ana_line_obj = self.pool.get('account.analytic.line') - for obj_line in self.browse(cr, uid, ids, context): + for obj_line in self.browse(cr, uid, ids, context=context): if obj_line.analytic_account_id: if not obj_line.journal_id.analytic_journal_id: raise osv.except_osv(_('No Analytic Journal !'),_("You have to define an analytic journal on the '%s' journal!") % (obj_line.journal_id.name, )) @@ -139,7 +139,9 @@ class account_move_line(osv.osv): del(data['account_tax_id']) return data - def convert_to_period(self, cr, uid, context={}): + def convert_to_period(self, cr, uid, context=None): + if context is None: + context = {} period_obj = self.pool.get('account.period') #check if the period_id changed in the context from client side if context.get('period_id', False): @@ -151,7 +153,9 @@ class account_move_line(osv.osv): }) return context - def _default_get(self, cr, uid, fields, context={}): + def _default_get(self, cr, uid, fields, context=None): + if context is None: + context = {} if not context.get('journal_id', False) and context.get('search_default_journal_id', False): context['journal_id'] = context.get('search_default_journal_id') account_obj = self.pool.get('account.account') @@ -164,7 +168,7 @@ class account_move_line(osv.osv): currency_obj = self.pool.get('res.currency') context = self.convert_to_period(cr, uid, context) # Compute simple values - data = super(account_move_line, self).default_get(cr, uid, fields, context) + data = super(account_move_line, self).default_get(cr, uid, fields, context=context) # Starts: Manual entry from account.move form if context.get('lines',[]): total_new = 0.00 @@ -174,7 +178,7 @@ class account_move_line(osv.osv): for item in i[2]: data[item] = i[2][item] if context['journal']: - journal_data = journal_obj.browse(cr, uid, context['journal']) + journal_data = journal_obj.browse(cr, uid, context['journal'], context=context) if journal_data.type == 'purchase': if total_new > 0: account = journal_data.default_credit_account_id @@ -186,9 +190,9 @@ class account_move_line(osv.osv): else: account = journal_data.default_debit_account_id if account and ((not fields) or ('debit' in fields) or ('credit' in fields)) and 'partner_id' in data and (data['partner_id']): - part = partner_obj.browse(cr, uid, data['partner_id']) + part = partner_obj.browse(cr, uid, data['partner_id'], context=context) account = fiscal_pos_obj.map_account(cr, uid, part and part.property_account_position or False, account.id) - account = account_obj.browse(cr, uid, account) + account = account_obj.browse(cr, uid, account, context=context) data['account_id'] = account.id s = -total_new @@ -236,7 +240,7 @@ class account_move_line(osv.osv): return data total = 0 ref_id = False - move = move_obj.browse(cr, uid, move_id, context) + move = move_obj.browse(cr, uid, move_id, context=context) if 'name' in fields: data.setdefault('name', move.line_id[-1].name) acc1 = False @@ -265,7 +269,7 @@ class account_move_line(osv.osv): # part = False is acceptable for fiscal position. account = fiscal_pos_obj.map_account(cr, uid, part and part.property_account_position or False, account.id) if account: - account = account_obj.browse(cr, uid, account) + account = account_obj.browse(cr, uid, account, context=context) if account and ((not fields) or ('debit' in fields) or ('credit' in fields)): data['account_id'] = account.id @@ -289,10 +293,10 @@ class account_move_line(osv.osv): data['amount_currency'] = v return data - def on_create_write(self, cr, uid, id, context={}): + def on_create_write(self, cr, uid, id, context=None): if not id: return [] - ml = self.browse(cr, uid, id, context) + ml = self.browse(cr, uid, id, context=context) return map(lambda x: x.id, ml.move_id.line_id) def _balance(self, cr, uid, ids, name, arg, context=None): @@ -334,11 +338,11 @@ class account_move_line(osv.osv): res[line_id] = (invoice_id, invoice_names[invoice_id]) return res - def name_get(self, cr, uid, ids, context={}): + def name_get(self, cr, uid, ids, context=None): if not ids: return [] result = [] - for line in self.browse(cr, uid, ids, context): + for line in self.browse(cr, uid, ids, context=context): if line.ref: result.append((line.id, (line.move_id.name or '')+' ('+line.ref+')')) else: @@ -454,6 +458,8 @@ class account_move_line(osv.osv): } def _get_date(self, cr, uid, context=None): + if context is None: + context or {} period_obj = self.pool.get('account.period') dt = time.strftime('%Y-%m-%d') if ('journal_id' in context) and ('period_id' in context): @@ -495,35 +501,35 @@ class account_move_line(osv.osv): ('credit_debit2', 'CHECK (credit+debit>=0)', 'Wrong credit or debit value in accounting entry !'), ] - def _auto_init(self, cr, context={}): - super(account_move_line, self)._auto_init(cr, context) + def _auto_init(self, cr, context=None): + super(account_move_line, self)._auto_init(cr, context=context) cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = \'account_move_line_journal_id_period_id_index\'') if not cr.fetchone(): cr.execute('CREATE INDEX account_move_line_journal_id_period_id_index ON account_move_line (journal_id, period_id)') - def _check_no_view(self, cr, uid, ids): - lines = self.browse(cr, uid, ids) + def _check_no_view(self, cr, uid, ids, context=None): + lines = self.browse(cr, uid, ids, context=context) for l in lines: if l.account_id.type == 'view': return False return True - def _check_no_closed(self, cr, uid, ids): - lines = self.browse(cr, uid, ids) + def _check_no_closed(self, cr, uid, ids, context=None): + lines = self.browse(cr, uid, ids, context=context) for l in lines: if l.account_id.type == 'closed': return False return True - def _check_company_id(self, cr, uid, ids): - lines = self.browse(cr, uid, ids) + def _check_company_id(self, cr, uid, ids, context=None): + lines = self.browse(cr, uid, ids, context=context) for l in lines: if l.company_id != l.account_id.company_id or l.company_id != l.period_id.company_id: return False return True - def _check_partner_id(self, cr, uid, ids): - lines = self.browse(cr, uid, ids) + def _check_partner_id(self, cr, uid, ids, context=None): + lines = self.browse(cr, uid, ids, context=context) for l in lines: if l.account_id.type in ('receivable', 'payable') and not l.partner_id: return False @@ -546,7 +552,7 @@ class account_move_line(osv.osv): if (not currency_id) or (not account_id): return {} result = {} - acc = account_obj.browse(cr, uid, account_id) + acc = account_obj.browse(cr, uid, account_id, context=context) if (amount>0) and journal: x = journal_obj.browse(cr, uid, journal).default_credit_account_id if x: acc = x @@ -662,7 +668,7 @@ class account_move_line(osv.osv): raise osv.except_osv(_('Warning !'), _('To reconcile the entries company should be the same for all entries')) company_list.append(line.company_id.id) - for line in self.browse(cr, uid, ids, context): + for line in self.browse(cr, uid, ids, context=context): if line.reconcile_id: raise osv.except_osv(_('Warning'), _('Already Reconciled!')) if line.reconcile_partial_id: @@ -808,8 +814,10 @@ class account_move_line(osv.osv): partner_obj.write(cr, uid, [partner_id], {'last_reconciliation_date': time.strftime('%Y-%m-%d %H:%M:%S')}) return r_id - def view_header_get(self, cr, user, view_id, view_type, context): - context = self.convert_to_period(cr, user, context) + def view_header_get(self, cr, user, view_id, view_type, context=None): + if context is None: + context = {} + context = self.convert_to_period(cr, user, context=context) if context.get('account_id', False): cr.execute('SELECT code FROM account_account WHERE id = %s', (context['account_id'], )) res = cr.fetchone() @@ -825,7 +833,7 @@ class account_move_line(osv.osv): return j+(p and (':'+p) or '') return False - def onchange_date(self, cr, user, ids, date, context={}): + def onchange_date(self, cr, user, ids, date, context=None): """ Returns a dict that contains new values and context @param cr: A database cursor @@ -836,6 +844,8 @@ class account_move_line(osv.osv): @return: Returns a dict which contains new values, and context """ res = {} + if context is None: + context = {} period_pool = self.pool.get('account.period') pids = period_pool.search(cr, user, [('date_start','<=',date), ('date_stop','>=',date)]) if pids: @@ -850,9 +860,11 @@ class account_move_line(osv.osv): 'context':context, } - def fields_view_get(self, cr, uid, view_id=None, view_type='form', context={}, toolbar=False, submenu=False): + def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): journal_pool = self.pool.get('account.journal') - result = super(osv.osv, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu) + if context is None: + context = {} + result = super(osv.osv, self).fields_view_get(cr, uid, view_id, view_type, context=context, toolbar=toolbar, submenu=submenu) if view_type != 'tree': #Remove the toolbar from the form view if view_type == 'form': @@ -871,7 +883,7 @@ class account_move_line(osv.osv): xml = '''\n\n\t''' % (title) ids = journal_pool.search(cr, uid, []) - journals = journal_pool.browse(cr, uid, ids) + journals = journal_pool.browse(cr, uid, ids, context=context) all_journal = [None] common_fields = {} total = len(journals) @@ -952,8 +964,10 @@ class account_move_line(osv.osv): result['fields'] = self.fields_get(cr, uid, flds, context) return result - def _check_moves(self, cr, uid, context): + def _check_moves(self, cr, uid, context=None): # use the first move ever created for this journal and period + if context is None: + context = {} cr.execute('SELECT id, state, name FROM account_move WHERE journal_id = %s AND period_id = %s ORDER BY id limit 1', (context['journal_id'],context['period_id'])) res = cr.fetchone() if res: @@ -981,11 +995,13 @@ class account_move_line(osv.osv): obj_move_rec.unlink(cr, uid, unlink_ids) return True - def unlink(self, cr, uid, ids, context={}, check=True): + def unlink(self, cr, uid, ids, context=None, check=True): + if context is None: + context = {} move_obj = self.pool.get('account.move') self._update_check(cr, uid, ids, context) result = False - for line in self.browse(cr, uid, ids, context): + for line in self.browse(cr, uid, ids, context=context): context['journal_id'] = line.journal_id.id context['period_id'] = line.period_id.id result = super(account_move_line, self).unlink(cr, uid, [line.id], context=context) @@ -1014,9 +1030,9 @@ class account_move_line(osv.osv): journal_id = context.get('journal_id', False) period_id = context.get('period_id', False) if journal_id: - journal = journal_obj.browse(cr, uid, [journal_id])[0] + journal = journal_obj.browse(cr, uid, journal_id, context=context) if journal.allow_date and period_id: - period = period_obj.browse(cr, uid, [period_id])[0] + period = period_obj.browse(cr, uid, period_id, context=context) if not time.strptime(vals['date'][:10],'%Y-%m-%d') >= time.strptime(period.date_start, '%Y-%m-%d') or not time.strptime(vals['date'][:10], '%Y-%m-%d') <= time.strptime(period.date_stop, '%Y-%m-%d'): raise osv.except_osv(_('Error'),_('The date of your Journal Entry is not in the defined period!')) else: @@ -1069,7 +1085,7 @@ class account_move_line(osv.osv): move_obj.write(cr, uid, [line.move_id.id], {'date': todo_date}, context=context) return result - def _update_journal_check(self, cr, uid, journal_id, period_id, context={}): + def _update_journal_check(self, cr, uid, journal_id, period_id, context=None): journal_obj = self.pool.get('account.journal') period_obj = self.pool.get('account.period') jour_period_obj = self.pool.get('account.journal.period') @@ -1079,8 +1095,8 @@ class account_move_line(osv.osv): if state == 'done': raise osv.except_osv(_('Error !'), _('You can not add/modify entries in a closed journal.')) if not result: - journal = journal_obj.browse(cr, uid, journal_id, context) - period = period_obj.browse(cr, uid, period_id, context) + journal = journal_obj.browse(cr, uid, journal_id, context=context) + period = period_obj.browse(cr, uid, period_id, context=context) jour_period_obj.create(cr, uid, { 'name': (journal.code or journal.name)+':'+(period.name or ''), 'journal_id': journal.id, @@ -1088,9 +1104,9 @@ class account_move_line(osv.osv): }) return True - def _update_check(self, cr, uid, ids, context={}): + def _update_check(self, cr, uid, ids, context=None): done = {} - for line in self.browse(cr, uid, ids, context): + for line in self.browse(cr, uid, ids, context=context): if line.move_id.state <> 'draft' and (not line.journal_id.entry_posted): raise osv.except_osv(_('Error !'), _('You can not do this modification on a confirmed entry ! Please note that you can just change some non important fields !')) if line.reconcile_id: @@ -1127,7 +1143,7 @@ class account_move_line(osv.osv): self._update_journal_check(cr, uid, context['journal_id'], context['period_id'], context) move_id = vals.get('move_id', False) - journal = journal_obj.browse(cr, uid, context['journal_id']) + journal = journal_obj.browse(cr, uid, context['journal_id'], context=context) if not move_id: if journal.centralisation: #Check for centralisation @@ -1150,7 +1166,7 @@ class account_move_line(osv.osv): raise osv.except_osv(_('No piece number !'), _('Can not create an automatic sequence for this piece !\n\nPut a sequence in the journal definition for automatic numbering or create a sequence manually for this piece.')) ok = not (journal.type_control_ids or journal.account_control_ids) if ('account_id' in vals): - account = account_obj.browse(cr, uid, vals['account_id']) + account = account_obj.browse(cr, uid, vals['account_id'], context=context) if journal.type_control_ids: type = account.user_type for t in journal.type_control_ids: diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 13345673c44..e2391e102d2 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-10 17:14:45+0000\n" -"PO-Revision-Date: 2010-12-10 17:14:45+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:35+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:35+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -328,6 +328,12 @@ msgstr "" msgid "Allows you to change the sign of the balance amount displayed in the reports, so that you can see positive figures instead of negative ones in expenses accounts." msgstr "" +#. module: account +#: view:account.installer:0 +#: view:account.installer.modules:0 +msgid "Configure" +msgstr "" + #. module: account #: selection:account.entries.report,month:0 #: selection:account.invoice.report,month:0 @@ -1191,11 +1197,6 @@ msgstr "" msgid "Overdue Payments" msgstr "" -#. module: account -#: constraint:account.invoice:0 -msgid "Error: BVR reference is required." -msgstr "" - #. module: account #: report:account.third_party_ledger:0 #: report:account.third_party_ledger_other:0 @@ -1943,6 +1944,11 @@ msgstr "" msgid "Search Chart of Account Templates" msgstr "" +#. module: account +#: view:account.installer:0 +msgid "The default Chart of Accounts is matching your country selection. If no certified Chart of Accounts exists for your specified country, a generic one can be installed and will be selected by default." +msgstr "" + #. module: account #: view:account.account.type:0 #: field:account.account.type,note:0 @@ -2845,7 +2851,10 @@ msgid "Purchase" msgstr "" #. module: account +#: view:account.installer:0 +#: view:account.installer.modules:0 #: model:ir.actions.act_window,name:account.action_account_installer +#: view:wizard.multi.charts.accounts:0 msgid "Accounting Application Configuration" msgstr "" @@ -3293,17 +3302,9 @@ msgid "#Entries" msgstr "" #. module: account -#: view:account.account:0 -#: field:account.account,user_type:0 -#: view:account.account.template:0 -#: field:account.account.template,user_type:0 -#: view:account.account.type:0 -#: field:account.bank.accounts.wizard,account_type:0 -#: field:account.entries.report,user_type:0 -#: model:ir.model,name:account.model_account_account_type -#: field:report.account.receivable,type:0 -#: field:report.account_type.sales,user_type:0 -msgid "Account Type" +#: code:addons/account/invoice.py:0 +#, python-format +msgid "The Payment Term of Supplier does not have Payment Term Lines(Computation) defined !" msgstr "" #. module: account @@ -3521,9 +3522,17 @@ msgid "Shortcut" msgstr "" #. module: account -#: code:addons/account/invoice.py:0 -#, python-format -msgid "The Payment Term of Supplier does not have Payment Term Lines(Computation) defined !" +#: view:account.account:0 +#: field:account.account,user_type:0 +#: view:account.account.template:0 +#: field:account.account.template,user_type:0 +#: view:account.account.type:0 +#: field:account.bank.accounts.wizard,account_type:0 +#: field:account.entries.report,user_type:0 +#: model:ir.model,name:account.model_account_account_type +#: field:report.account.receivable,type:0 +#: field:report.account_type.sales,user_type:0 +msgid "Account Type" msgstr "" #. module: account @@ -3819,9 +3828,8 @@ msgid "Analytic Account Statistics" msgstr "" #. module: account -#: report:account.vat.declaration:0 -#: field:account.vat.declaration,based_on:0 -msgid "Based On" +#: view:wizard.multi.charts.accounts:0 +msgid "This will automatically configure your chart of accounts, bank accounts, taxes and journals according to the selected template" msgstr "" #. module: account @@ -3905,6 +3913,16 @@ msgid "Please verify the price of the invoice !\n" "The real total does not match the computed total." msgstr "" +#. module: account +#: code:addons/account/account_move_line.py:0 +#: code:addons/account/wizard/account_invoice_state.py:0 +#: code:addons/account/wizard/account_report_balance_sheet.py:0 +#: code:addons/account/wizard/account_state_open.py:0 +#: code:addons/account/wizard/account_validate_account_move.py:0 +#, python-format +msgid "Warning" +msgstr "" + #. module: account #: view:account.subscription.generate:0 #: model:ir.actions.act_window,name:account.action_account_subscription_generate @@ -5373,6 +5391,11 @@ msgstr "" msgid "Default Credit Account" msgstr "" +#. module: account +#: view:account.installer:0 +msgid "Configure Your Accounting Chart" +msgstr "" + #. module: account #: view:account.payment.term.line:0 msgid " number of days: 30" @@ -5544,6 +5567,11 @@ msgstr "" msgid "Centralisation" msgstr "" +#. module: account +#: view:wizard.multi.charts.accounts:0 +msgid "Generate Your Accounting Chart from a Chart Template" +msgstr "" + #. module: account #: view:account.account:0 #: view:account.account.template:0 @@ -5694,6 +5722,12 @@ msgstr "" msgid "Fax :" msgstr "" +#. module: account +#: report:account.vat.declaration:0 +#: field:account.vat.declaration,based_on:0 +msgid "Based On" +msgstr "" + #. module: account #: help:res.partner,property_account_receivable:0 msgid "This account will be used instead of the default one as the receivable account for the current partner" @@ -6188,11 +6222,6 @@ msgstr "" msgid "Unknown Partner" msgstr "" -#. module: account -#: view:account.bank.statement:0 -msgid "Opening Balance" -msgstr "" - #. module: account #: help:account.journal,centralisation:0 msgid "Check this box to determine that each entry of this journal won't create a new counterpart but will share the same counterpart. This is used in fiscal year closing." @@ -6854,6 +6883,11 @@ msgstr "" msgid "Invoice's state is Open" msgstr "" +#. module: account +#: view:account.installer.modules:0 +msgid "Add extra Accounting functionalities to the ones already installed." +msgstr "" + #. module: account #: report:account.analytic.account.cost_ledger:0 #: report:account.analytic.account.quantity_cost_ledger:0 @@ -7378,11 +7412,6 @@ msgstr "" msgid "Print Account Partner Balance" msgstr "" -#. module: account -#: constraint:account.invoice:0 -msgid "Error: Invalid Bvr Number (wrong checksum)." -msgstr "" - #. module: account #: field:res.partner,contract_ids:0 msgid "Contracts" @@ -7546,6 +7575,11 @@ msgstr "" msgid "Dear Sir/Madam," msgstr "" +#. module: account +#: view:account.installer.modules:0 +msgid "Configure Your Accounting Application" +msgstr "" + #. module: account #: model:ir.actions.act_window,help:account.action_account_form msgid "Create and manage accounts you will need to record financial entries in. Accounts are financial records of your company that register all financial transactions. Companies present their annual accounts in two main parts: the balance sheet and the income statement (profit and loss account). The annual accounts of a company are required by law to disclose a certain amount of information. They have to be certified by an external auditor yearly." @@ -8542,13 +8576,8 @@ msgid "End period" msgstr "" #. module: account -#: code:addons/account/account_move_line.py:0 -#: code:addons/account/wizard/account_invoice_state.py:0 -#: code:addons/account/wizard/account_report_balance_sheet.py:0 -#: code:addons/account/wizard/account_state_open.py:0 -#: code:addons/account/wizard/account_validate_account_move.py:0 -#, python-format -msgid "Warning" +#: view:account.bank.statement:0 +msgid "Opening Balance" msgstr "" #. module: account diff --git a/addons/account/i18n/es.po b/addons/account/i18n/es.po index 93a33121ab6..7d3a3c07883 100644 --- a/addons/account/i18n/es.po +++ b/addons/account/i18n/es.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-14 22:57+0000\n" +"PO-Revision-Date: 2010-12-15 15:38+0000\n" "Last-Translator: Jordi Esteve (www.zikzakmedia.com) " "\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:59+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:45+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/fr.po b/addons/account/i18n/fr.po index a7c5cf6aa46..ea290a0d315 100644 --- a/addons/account/i18n/fr.po +++ b/addons/account/i18n/fr.po @@ -7,13 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-14 22:09+0000\n" -"Last-Translator: lolivier \n" +"PO-Revision-Date: 2010-12-15 23:01+0000\n" +"Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) " +"\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:54+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:45+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account @@ -63,7 +64,7 @@ msgstr "" #: code:addons/account/account_move_line.py:0 #, python-format msgid "Some entries are already reconciled !" -msgstr "Des écritures semblent déjà réconciliées !" +msgstr "Certaines écritures sont déjà rapprochées !" #. module: account #: code:addons/account/wizard/account_fiscalyear_close.py:0 @@ -242,6 +243,8 @@ msgid "" "If the active field is set to False, it will allow you to hide the payment " "term without removing it." msgstr "" +"Si le champ actif est \"Faux\", il permet de cacher les conditions de " +"règlement sans les supprimer." #. module: account #: field:account.fiscal.position.account,account_src_id:0 @@ -384,8 +387,8 @@ msgstr "Ext." #, python-format msgid "Invoice line account company does not match with invoice company." msgstr "" -"La compagnie de la ligne de facture ne corresponds pas à la compagnie de la " -"facture" +"La société de la ligne de facture ne correspond pas à la société de la " +"facture." #. module: account #: field:account.journal.column,field:0 @@ -522,7 +525,7 @@ msgstr "Positif" #. module: account #: view:account.move.line.unreconcile.select:0 msgid "Open For Unreconciliation" -msgstr "Ouvir pour annuler le lettrage." +msgstr "Ouvrir pour annuler le lettrage" #. module: account #: field:account.fiscal.position.template,chart_template_id:0 @@ -637,7 +640,7 @@ msgstr "Compte utilisé dans ce journal" #: help:account.report.general.ledger,chart_account_id:0 #: help:account.vat.declaration,chart_account_id:0 msgid "Select Charts of Accounts" -msgstr "Selectionner le plan de compte" +msgstr "Sélectionner le plan de compte" #. module: account #: view:product.product:0 @@ -657,7 +660,7 @@ msgstr "Lit." #. module: account #: field:account.automatic.reconcile,unreconciled:0 msgid "Not reconciled transactions" -msgstr "Transaction non-lettrée" +msgstr "Écritures non rapprochées" #. module: account #: code:addons/account/account_cash_statement.py:0 @@ -707,7 +710,7 @@ msgstr "Nom de l'adresse de facturation" #. module: account #: selection:account.installer,period:0 msgid "3 Monthly" -msgstr "Trimestriel" +msgstr "Trimestrielle" #. module: account #: view:account.unreconcile.reconcile:0 @@ -742,6 +745,7 @@ msgstr "Journal centralisé" #: sql_constraint:account.sequence.fiscalyear:0 msgid "Main Sequence must be different from current !" msgstr "" +"La séquence principale doit être différente de la séquence courante !" #. module: account #: field:account.invoice.tax,tax_amount:0 @@ -769,7 +773,7 @@ msgstr "Clôturer la période" #. module: account #: model:ir.model,name:account.model_account_common_partner_report msgid "Account Common Partner Report" -msgstr "" +msgstr "Rapport du compte \"Partenaires ordinaires\"" #. module: account #: field:account.fiscalyear.close,period_id:0 @@ -793,7 +797,7 @@ msgstr "" #: constraint:account.account:0 #: constraint:account.tax.code:0 msgid "Error ! You can not create recursive accounts." -msgstr "Erreur ! Vous ne pouvez pas créer des compte récursifs" +msgstr "Erreur ! Vous ne pouvez pas créer de comptes récursifs." #. module: account #: model:ir.model,name:account.model_account_report_general_ledger @@ -813,7 +817,7 @@ msgstr "Etes vous sûr de vouloir saisir des écritures ?" #. module: account #: selection:account.bank.accounts.wizard,account_type:0 msgid "Check" -msgstr "" +msgstr "Chèque" #. module: account #: field:account.partner.reconcile.process,today_reconciled:0 @@ -824,7 +828,7 @@ msgstr "Partenaires rapprochés aujourd'hui" #: code:addons/account/account_bank_statement.py:0 #, python-format msgid "The statement balance is incorrect !\n" -msgstr "Le relevé n'est pas équilibré !\n" +msgstr "Le solde du relevé est incorrect.\n" #. module: account #: selection:account.payment.term.line,value:0 @@ -867,7 +871,7 @@ msgstr "Type" #. module: account #: model:ir.model,name:account.model_account_subscription_line msgid "Account Subscription Line" -msgstr "Détail d'une écritures périodique" +msgstr "Détail d'une écriture périodique" #. module: account #: help:account.invoice,reference:0 @@ -900,7 +904,7 @@ msgstr "Calcul de date d'échéance" #. module: account #: report:account.analytic.account.quantity_cost_ledger:0 msgid "J.C./Move name" -msgstr "J.C. / nom du Mouvement" +msgstr "J.C. / Nom du mouvement" #. module: account #: selection:account.entries.report,month:0 @@ -931,6 +935,9 @@ msgid "" "Can not %s invoice which is already reconciled, invoice should be " "unreconciled first. You can only Refund this invoice" msgstr "" +"Ne peut %s la facture, qui est déjà rapprochée, le rapprochement de la " +"facture devrait être annulé d'abord. Vous ne pouvez que rembourser cette " +"facture" #. module: account #: model:ir.actions.act_window,name:account.action_subscription_form_new @@ -971,7 +978,7 @@ msgstr "Plan de taxes" #. module: account #: view:account.fiscalyear:0 msgid "Create 3 Months Periods" -msgstr "Créer des périodes par trimestre" +msgstr "Créer des périodes trimestrielles" #. module: account #: report:account.overdue:0 @@ -1028,7 +1035,7 @@ msgstr "Filtres étendus..." #. module: account #: model:ir.ui.menu,name:account.menu_account_central_journal msgid "Centralizing Journal" -msgstr "" +msgstr "Journal centralisateur" #. module: account #: selection:account.journal,type:0 @@ -1197,7 +1204,7 @@ msgstr "Banque" #. module: account #: field:account.period,date_start:0 msgid "Start of Period" -msgstr "Début de la Période" +msgstr "Début de période" #. module: account #: model:process.transition,name:account.process_transition_confirmstatementfromdraft0 @@ -1343,7 +1350,7 @@ msgstr "Sélectionnez un début et une fin de période" #. module: account #: model:ir.model,name:account.model_account_account_template msgid "Templates for Accounts" -msgstr "Modèles pour les comptes" +msgstr "Modèles de comptes" #. module: account #: view:account.tax.code.template:0 @@ -1361,7 +1368,7 @@ msgstr "Écritures lettrées" #: model:ir.actions.report.xml,name:account.account_overdue #: view:res.company:0 msgid "Overdue Payments" -msgstr "Retard de règlement" +msgstr "Règlements en retard" #. module: account #: constraint:account.invoice:0 @@ -1438,7 +1445,7 @@ msgstr "Vous ne pouvez pas utiliser ce compte général dans ce journal !" #: selection:account.pl.report,display_account:0 #: selection:account.report.general.ledger,display_account:0 msgid "With balance is not equal to 0" -msgstr "Avec la balance qui n'est pas égal à 0" +msgstr "Avec la balance qui n'est pas égale à 0" #. module: account #: view:account.tax:0 @@ -1463,7 +1470,7 @@ msgstr "Nb. d'éléments" #. module: account #: field:account.automatic.reconcile,max_amount:0 msgid "Maximum write-off amount" -msgstr "Montant maximum de la tolérance dans les écarts de lettrage" +msgstr "Montant maximum des écarts de lettrage" #. module: account #: view:account.invoice:0 @@ -1532,6 +1539,9 @@ msgid "" "customers. OpenERP generates draft of invoices automatically so that you " "only have to confirm them before sending them to your customers." msgstr "" +"La facturation client permet de générer et de gérer les factures envoyées à " +"vos clients. OpenERP génère automatiquement des factures brouillon qu'il " +"suffit de valider et d'expédier aux clients." #. module: account #: field:account.installer.modules,account_anglo_saxon:0 @@ -1605,6 +1615,8 @@ msgstr "Recherche d'un relevé bancaire" msgid "" "Wrong credit or debit value in model (Credit + Debit Must Be greater \"0\")!" msgstr "" +"Crédit ou débit erroné dans le modèle (crédit + débit doit être supérieur à " +"\"0\") !" #. module: account #: view:account.chart.template:0 @@ -1754,6 +1766,8 @@ msgid "" "If the active field is set to False, it will allow you to hide the journal " "period without removing it." msgstr "" +"Si le champ actif est \"Faux\", il permet de cacher la période comptable " +"sans la supprimer." #. module: account #: view:res.partner:0 @@ -1774,7 +1788,7 @@ msgstr "Créditeurs & Débiteurs" #: code:addons/account/account_move_line.py:0 #, python-format msgid "You have to provide an account for the write off entry !" -msgstr "Vous devez sélectionnez un compte !" +msgstr "Vous devez sélectionner un compte !" #. module: account #: model:ir.model,name:account.model_account_common_journal_report @@ -1815,7 +1829,7 @@ msgstr "L'utilisateur %s n'a pas le droit d'accéder au journal %s !" #. module: account #: help:account.period,special:0 msgid "These periods can overlap." -msgstr "Ces périodes ne peuvent se chevaucher." +msgstr "Ces périodes peuvent se chevaucher." #. module: account #: model:process.node,name:account.process_node_draftstatement0 @@ -1843,7 +1857,7 @@ msgstr "Montant du crédit" #. module: account #: constraint:account.move.line:0 msgid "You can not create move line on closed account." -msgstr "" +msgstr "Impossible de créer une ligne d'écriture sur un compte clôturé" #. module: account #: code:addons/account/account.py:0 @@ -1890,7 +1904,7 @@ msgstr "Écritures par ligne" #. module: account #: report:account.tax.code.entries:0 msgid "A/c Code" -msgstr "" +msgstr "A/c Code" #. module: account #: field:account.invoice,move_id:0 @@ -1927,7 +1941,7 @@ msgstr "Compte analytique" #: code:addons/account/account_bank_statement.py:0 #, python-format msgid "Please verify that an account is defined in the journal." -msgstr "Contrôler le compte défini dans le journal" +msgstr "Merci de vérifier le compte défini dans le journal" #. module: account #: selection:account.entries.report,move_line_state:0 @@ -2042,6 +2056,8 @@ msgid "" "If the active field is set to False, it will allow you to hide the tax " "without removing it." msgstr "" +"Si le champ actif est \"Faux\", il permet de cacher la taxe sans la " +"supprimer." #. module: account #: help:account.bank.statement,name:0 @@ -2056,7 +2072,7 @@ msgstr "" #: model:ir.actions.act_window,name:account.action_account_unreconcile_reconcile #: model:ir.actions.act_window,name:account.action_account_unreconcile_select msgid "Unreconcile Entries" -msgstr "Annuler lettrage d'un compte" +msgstr "Annuler le rapprochement des écritures" #. module: account #: field:account.move.reconcile,line_partial_ids:0 @@ -2080,6 +2096,9 @@ msgid "" "A vendor refund is a credit note from your supplier indicating that he " "refunds part or totality of the invoice sent to you." msgstr "" +"Un remboursement fournisseur est un avoir émis par votre fournisseur " +"indiquant qu'il rembourse une partie ou la totalité de la facture qu'il vous " +"a adressée." #. module: account #: field:account.automatic.reconcile,account_ids:0 @@ -2169,6 +2188,11 @@ msgid "" "partners accounts (for debit/credit computations), closed for depreciated " "accounts." msgstr "" +"Ce type est utilisé pour différencier les types avec des effets spéciaux " +"dans OpenERP : \"vue\" ne peut pas avoir d'écritures, \"consolidation\" sont " +"des comptes qui peuvent avoir des comptes enfants pour les consolidations " +"multi-sociétés, \"à payer/à recevoir\" sont des comptes de partenaires (pour " +"les calculs de débit / crédit), \"fermé\" pour les comptes dépréciés." #. module: account #: view:account.chart.template:0 @@ -2385,6 +2409,13 @@ msgid "" "useful because it enables you to preview at any time the tax that you owe at " "the start and end of the month or quarter." msgstr "" +"Ce menu permet d'imprimer une déclaration de TVA fondée sur des factures ou " +"des paiements. Sélectionnez une ou plusieurs périodes de l'exercice fiscal. " +"Les informations requises par une déclaration fiscale sont générées " +"automatiquement par OpenERP à partir des factures (ou des paiements, dans " +"certains pays). Ces données sont actualisées en temps réel. C'est très utile " +"car cela permet de prévoir à tout moment les taxes dues en début et en fin " +"de mois ou du trimestre." #. module: account #: selection:account.move.line,centralisation:0 @@ -2471,12 +2502,12 @@ msgstr "" #: view:account.print.journal:0 msgid "" "This report gives you an overview of the situation of a specific journal" -msgstr "" +msgstr "Ce rapport donne un aperçu de la situation d'un journal particulier" #. module: account #: constraint:product.category:0 msgid "Error ! You can not create recursive categories." -msgstr "" +msgstr "Erreur ! Vous ne pouvez pas créer de catégorie récursive." #. module: account #: model:account.account.type,name:account.account_type_tax @@ -2539,7 +2570,7 @@ msgstr "" #. module: account #: report:account.journal.period.print:0 msgid "Label" -msgstr "" +msgstr "Libellé" #. module: account #: view:account.tax:0 @@ -2649,6 +2680,8 @@ msgid "" "given a period and a journal, the sum of debit will always be equal to the " "sum of credit, so there is no point to display it" msgstr "" +"pour une période et un journal, la somme des débits sera toujours égale à la " +"somme des crédits, il n'y a donc aucun intérêt à l'afficher" #. module: account #: field:account.invoice.line,discount:0 @@ -2664,6 +2697,11 @@ msgid "" "Note that journal entries that are automatically created by the system are " "always skipping that state." msgstr "" +"Cochez cette case si vous voulez que les nouvelles écritures saisies dans le " +"journal ne passent pas par l'état \"Brouillon\" et soient enregistrées " +"directement comme validées. \n" +"Notez que les écritures générées automatiquement par le système sont " +"validées automatiquement sans passer par l'état \"Brouillon\"." #. module: account #: model:ir.actions.server,name:account.ir_actions_server_action_wizard_multi_chart @@ -2732,8 +2770,7 @@ msgstr "Août" #, python-format msgid "" "The expected balance (%.2f) is different than the computed one. (%.2f)" -msgstr "" -"La balance affiché (%.2f) semble différente que celle calculée. (%.2f)" +msgstr "Le solde affiché (%.2f) est différent du solde calculé. (%.2f)" #. module: account #: model:process.transition,note:account.process_transition_paymentreconcile0 @@ -2797,6 +2834,8 @@ msgstr "" msgid "" "used in statement reconciliation domain, but shouldn't be used elswhere." msgstr "" +"utilisé pour établir la réconciliation, mais ne devrait pas être utilisé " +"ailleurs" #. module: account #: field:account.invoice.tax,base_amount:0 @@ -2820,6 +2859,9 @@ msgid "" "between the creation date or the creation date of the entries plus the " "partner payment terms." msgstr "" +"La date d'échéance des écritures générées pour ce modèle. Vous pouvez " +"choisir entre la date de création et la date des écritures ainsi que le " +"terme de paiement des partenaires." #. module: account #: model:ir.ui.menu,name:account.menu_finance_accounting @@ -2853,6 +2895,8 @@ msgid "" "It adds initial balance row on report which display previous sum amount of " "debit/credit/balance" msgstr "" +"Cela ajoute la ligne du solde initial sur le rapport qui affiche les " +"montants précédents de débit / crédit / solde" #. module: account #: view:account.analytic.line:0 @@ -3040,6 +3084,8 @@ msgid "" "This wizard will validate all journal entries of a particular journal and " "period. Once journal entries are validated, you can not update them anymore." msgstr "" +"Cet assistant validera toutes les écritures pour un journal particulier et " +"une période. Une fois validées, les écritures ne peuvent plus être modifiées." #. module: account #: model:ir.actions.act_window,name:account.action_account_chart_template_form @@ -3070,6 +3116,15 @@ msgid "" " 'Unreconciled' will copy only the journal items that were unreconciled on " "the first day of the new fiscal year." msgstr "" +"Définir ici la méthode qui sera utilisée pour générer la fin des écritures " +"annuelles pour tous les comptes de ce type.\n" +"\n" +"\"Rien\" signifie que rien ne sera fait.\n" +"\"Balance\" est généralement utilisé pour les comptes de trésorerie.\n" +"\"Détaillé\" recopie chaque article de journal de l'année précédente, même " +"ceux qui ont été réconciliés.\n" +"\"Non réconcilié\" recopie uniquement les éléments non réconciliés sur le " +"premier jour du nouvel exercice." #. module: account #: view:account.tax:0 @@ -3175,6 +3230,8 @@ msgid "" "The amount expressed in the related account currency if not equal to the " "company one." msgstr "" +"Le montant exprimé dans la devise propre au compte si celle-ci est " +"différente de celle de la société." #. module: account #: report:account.move.voucher:0 @@ -3303,6 +3360,8 @@ msgid "" "Selected Invoice(s) cannot be cancelled as they are already in 'Cancelled' " "or 'Done' state!" msgstr "" +"Les factures sélectionnées ne peuvent pas être annulées, ayant déjà le " +"statut \"Annulée\" ou \"Terminée\"." #. module: account #: code:addons/account/account.py:0 @@ -3457,7 +3516,7 @@ msgstr "Date" #: view:account.unreconcile:0 #: view:account.unreconcile.reconcile:0 msgid "Unreconcile" -msgstr "Annuler lettrage d'un compte" +msgstr "Annuler le rapprochement" #. module: account #: code:addons/account/wizard/account_fiscalyear_close.py:0 @@ -3571,7 +3630,7 @@ msgstr "Chercher des lignes analytiques" #. module: account #: field:res.partner,property_account_payable:0 msgid "Account Payable" -msgstr "Compte de fournisseur" +msgstr "Compte fournisseur" #. module: account #: constraint:account.move:0 @@ -3591,8 +3650,8 @@ msgstr "Ordre de Paiement" msgid "" "Check this option if you want the user to reconcile entries in this account." msgstr "" -"Cochez cette case si vous voulez que l'utilisateur réconcilie les entrées " -"dans ce compte." +"Cocher cette option si vous souhaitez que l'utilisateur rapproche les " +"écritures dans ce compte." #. module: account #: model:ir.actions.report.xml,name:account.account_account_balance_landscape @@ -3770,6 +3829,8 @@ msgstr "Valider" #: sql_constraint:account.model.line:0 msgid "Wrong credit or debit value in model (Credit Or Debit Must Be \"0\")!" msgstr "" +"Débit ou crédit erroné dans le modèle (le crédit ou le débit doit être à " +"\"0\") !" #. module: account #: model:ir.actions.act_window,help:account.action_account_invoice_report_all @@ -3855,6 +3916,8 @@ msgid "" "If the active field is set to False, it will allow you to hide the account " "without removing it." msgstr "" +"Si le champ actif est à \"Faux\", cela vous permet de cacher le compte sans " +"le supprimer." #. module: account #: view:account.tax.template:0 @@ -3879,8 +3942,8 @@ msgid "" "The Payment Term of Supplier does not have Payment Term Lines(Computation) " "defined !" msgstr "" -"Les Conditions de Règlements du Fournisseur n'ont pas de Lignes de " -"Conditions de Règlements (Calcul) définies !" +"Les conditions de règlements du fournisseur n'ont pas de lignes de " +"conditions de règlements (calcul) définies !" #. module: account #: report:account.account.balance:0 @@ -3889,7 +3952,7 @@ msgstr "" #: model:ir.actions.report.xml,name:account.account_account_balance #: model:ir.ui.menu,name:account.menu_general_Balance_report msgid "Trial Balance" -msgstr "" +msgstr "Balance prévisionelle" #. module: account #: model:ir.model,name:account.model_account_invoice_cancel @@ -3920,7 +3983,7 @@ msgstr "Fermer la caisse" #: view:account.invoice.report:0 #: field:account.invoice.report,due_delay:0 msgid "Avg. Due Delay" -msgstr "" +msgstr "Délai moyen de règlement" #. module: account #: view:account.entries.report:0 @@ -3954,7 +4017,7 @@ msgstr "Note" #. module: account #: view:account.analytic.account:0 msgid "Overdue Account" -msgstr "" +msgstr "Compte en retard" #. module: account #: selection:account.invoice,state:0 @@ -3981,6 +4044,12 @@ msgid "" "the system on document validation (invoices, bank statements...) and will be " "created in 'Posted' state." msgstr "" +"Toutes les nouvelles écritures manuelles sont généralement à l'état «non " +"comptabilisé», mais on peut définir l'option de sauter cet état sur le " +"journal associé. Dans ce cas, elles seront traitées comme des écritures " +"créées automatiquement par le système lors de la validation des documents " +"(factures, relevés bancaires ...) et elles seront créées à l'état " +"«comptabilisé»." #. module: account #: code:addons/account/account_analytic_line.py:0 @@ -4065,6 +4134,9 @@ msgid "" "When new move line is created the state will be 'Draft'.\n" "* When all the payments are done it will be in 'Valid' state." msgstr "" +"Quand une nouvelle ligne de transfert est créée, le statut est à " +"\"Brouillon\".\n" +"* Lorsque tous les paiements sont effectués, il passera à l'état \"Valide\"." #. module: account #: field:account.journal,view_id:0 @@ -4188,6 +4260,11 @@ msgid "" "you can create them in the system in order to automate their entries in the " "system." msgstr "" +"Une entrée récurrente est un paiement connexe qui se produit sur une " +"certaine périodicité à partir de la date anniversaire d'un contrat ou d'un " +"accord avec un client ou un fournisseur. \"Définir des écritures " +"périodiques\" permet d'automatiser la création de ces écritures dans le " +"système." #. module: account #: view:account.analytic.account:0 @@ -4503,7 +4580,7 @@ msgstr "Lignes d'écriture" #. module: account #: selection:account.account.type,report_type:0 msgid "Balance Sheet (Assets Accounts)" -msgstr "" +msgstr "Bilan (comptes d'actif)" #. module: account #: report:account.tax.code.entries:0 @@ -4549,6 +4626,9 @@ msgid "" "To print an analytics (or costs) journal for a given period. The report give " "code, move name, account number, general amount and analytic amount." msgstr "" +"Pour imprimer un journal analytique (ou de coûts) pour une période donnée. " +"Le rapport donne le code, le nom du mouvement, le numéro de compte, le " +"montant global et le montant analytique." #. module: account #: help:account.journal,refund_journal:0 @@ -4592,7 +4672,7 @@ msgstr "À fermer" #. module: account #: field:account.journal,allow_date:0 msgid "Check Date not in the Period" -msgstr "" +msgstr "Date de vérification hors période" #. module: account #: code:addons/account/account.py:0 @@ -4614,7 +4694,7 @@ msgstr "Modèles" #. module: account #: field:account.tax,child_ids:0 msgid "Child Tax Accounts" -msgstr "Comptes de Taxes Fils" +msgstr "Comptes de taxe enfant" #. module: account #: code:addons/account/account.py:0 @@ -4702,6 +4782,14 @@ msgid "" "calendar year gives many companies an advantage, allowing them to close " "their books at a time which is most convenient for them." msgstr "" +"Définissez l'exercice comptable de votre société selon la période que vous " +"avez choisie. Un exercice comptable est une période d'1 an pendant laquelle " +"une société programme ses dépenses. Un exercice financier est référencé par " +"sa date de fin. Par exemple, si l'exercice d'une entreprise se termine le 30 " +"Novembre 2011, la période du 1er Décembre 2010 au 30 Novembre 2011 sera " +"nommée \"exercice 2011\". Ne pas coïncider avec l'année civile est " +"avantageux pour beaucoup d'entreprises, cela leur permet de fermer leurs " +"livres au moment qui leur convient le mieux." #. module: account #: model:ir.actions.act_window,name:account.action_payment_term_form @@ -4718,7 +4806,7 @@ msgstr "Nom de colonne" #: view:account.general.journal:0 msgid "" "This report gives you an overview of the situation of your general journals" -msgstr "" +msgstr "Ce rapport donne un aperçu de la situation des journaux généraux" #. module: account #: field:account.entries.report,year:0 @@ -5132,6 +5220,8 @@ msgid "" "According value related accounts will be display on respective reports " "(Balance Sheet Profit & Loss Account)" msgstr "" +"Selon les comptes, leur valeur respective sera affichée sur les rapports " +"correspondants (Bilan, Compte de Résultat)" #. module: account #: field:account.report.general.ledger,sortby:0 @@ -5201,6 +5291,8 @@ msgid "" "Number of partial amounts that can be combined to find a balance point can " "be chosen as the power of the automatic reconciliation" msgstr "" +"Le nombre de montants partiels combinables pour trouver un point d'équilibre " +"peut être choisi commme générateur du rapprochement automatique" #. module: account #: help:account.payment.term.line,sequence:0 @@ -5232,6 +5324,11 @@ msgid "" "impossible any new entry record. Close a fiscal year when you need to " "finalize your end of year results definitive " msgstr "" +"Si aucune des écritures supplémentaires ne devait être consignée sur un " +"exercice, on pourrait le fermer à partir d'ici. Cela fermera toutes les " +"périodes ouvertes de l'année et cela rendra impossible toute nouvelle " +"écriture. Fermez un exercice lorsque vous avez besoin de finaliser le " +"résultat définitif. " #. module: account #: field:account.central.journal,amount_currency:0 @@ -5267,7 +5364,7 @@ msgstr "Valide jusqu'à" #. module: account #: view:board.board:0 msgid "Aged Receivables" -msgstr "" +msgstr "Créances" #. module: account #: model:ir.actions.act_window,name:account.action_account_automatic_reconcile @@ -5308,6 +5405,8 @@ msgid "" "This module will support the Anglo-Saxons accounting methodology by changing " "the accounting logic with stock transactions." msgstr "" +"Ce module est adapté à la méthode comptable anglo-saxone en adaptant la " +"logique comptable aux transactions de stock." #. module: account #: field:report.invoice.created,create_date:0 @@ -5352,7 +5451,7 @@ msgstr "Fournisseur" #. module: account #: model:account.account.type,name:account.account_type_asset msgid "Bilanzkonten - Aktiva - Vermögenskonten" -msgstr "" +msgstr "Bilanzkonten - Aktiva - Vermögenskonten" #. module: account #: selection:account.entries.report,month:0 @@ -5428,6 +5527,9 @@ msgid "" "document shows your debit and credit taking in consideration some criteria " "you can choose by using the search tool." msgstr "" +"À partir de cette vue, on obtient une analyse des différents comptes " +"financiers. Le document montre vos débits et vos crédits en tenant compte de " +"certains critères que vous pouvez choisir à l'aide de l'outil de recherche." #. module: account #: help:account.partner.reconcile.process,progress:0 @@ -5435,6 +5537,10 @@ msgid "" "Shows you the progress made today on the reconciliation process. Given by \n" "Partners Reconciled Today \\ (Remaining Partners + Partners Reconciled Today)" msgstr "" +"Vous montre les progrès réalisés aujourd'hui sur le processus de " +"réconciliation. Compte tenu par\n" +"Partenaires rapprochées Aujourd'hui \\ (autres partenaires + Partners " +"rapprochées Aujourd'hui)" #. module: account #: help:account.payment.term.line,value:0 @@ -5443,6 +5549,9 @@ msgid "" "that you should have your last line with the type 'Balance' to ensure that " "the whole amount will be threated." msgstr "" +"Sélectionnez ici le type d'évaluation relatif à cette ligne de conditions de " +"paiement. Notez que vous devez avoir une dernière ligne de type \"Balance\" " +"pour assurer que le montant total sera traité." #. module: account #: field:account.invoice,period_id:0 @@ -5705,12 +5814,12 @@ msgstr "Créer un compte à partir de ce modèle" #: view:account.account.type:0 #: view:account.tax.code:0 msgid "Reporting Configuration" -msgstr "Parapétrage des rapports" +msgstr "Paramétrage des rapports" #. module: account #: constraint:account.move.line:0 msgid "Company must be same for its related account and period." -msgstr "" +msgstr "La société doit être la même pour les comptes et périodes liées." #. module: account #: field:account.tax,type:0 @@ -5912,7 +6021,7 @@ msgstr "Voir les lignes de compte analytique" #. module: account #: selection:account.account.type,report_type:0 msgid "Balance Sheet (Liability Accounts)" -msgstr "" +msgstr "Bilan (comptes de passif)" #. module: account #: field:account.invoice,internal_number:0 @@ -5981,6 +6090,10 @@ msgid "" "year. Note that you can run this wizard many times for the same fiscal year: " "it will simply replace the old opening entries with the new ones." msgstr "" +"L'assistant génère le jour des écritures de fin d'exercice de l'année " +"fiscale sélectionnée. Cet assistant peut être utilisé plusieurs fois pour le " +"même exercice : il va simplement remplacer les écritures précédentes par les " +"nouvelles." #. module: account #: model:ir.ui.menu,name:account.menu_finance_bank_and_cash @@ -6026,7 +6139,7 @@ msgstr "Saisissez une date de début !" #: selection:account.invoice.report,type:0 #: selection:report.invoice.created,type:0 msgid "Supplier Refund" -msgstr "Note de Crédit Fournisseur" +msgstr "Remboursement fournisseur" #. module: account #: model:ir.ui.menu,name:account.menu_dashboard_acc @@ -6206,7 +6319,7 @@ msgid "" "This account will be used instead of the default one as the receivable " "account for the current partner" msgstr "" -"Ce compte sera utilisé à la place de celui par défaut comme compte recevable " +"Ce compte sera utilisé à la place de celui par défaut comme compte client " "pour le partenaire courant." #. module: account @@ -6370,6 +6483,8 @@ msgstr "Toutes les écritures" msgid "" "Error: The default UOM and the purchase UOM must be in the same category." msgstr "" +"Erreur : l'unité de mesure par défaut et l'unité de mesure d'achat doivent " +"appartenir à la même catégorie." #. module: account #: view:account.journal.select:0 @@ -6602,6 +6717,8 @@ msgid "" "This date will be used as the invoice date for Refund Invoice and Period " "will be chosen accordingly!" msgstr "" +"Cette date sera utilisée comme date de la facture de remboursement (de même " +"pour la période comptable)." #. module: account #: field:account.aged.trial.balance,period_length:0 @@ -6672,7 +6789,7 @@ msgstr "Modèle de compte parent" #. module: account #: model:account.account.type,name:account.account_type_income msgid "Erfolgskonten - Erlöse" -msgstr "" +msgstr "Compte de résultat - Chiffre d'affaires" #. module: account #: view:account.bank.statement:0 @@ -6847,7 +6964,7 @@ msgstr "Fermeture de caisse" #. module: account #: view:account.journal:0 msgid "Account Journal" -msgstr "Journal de saisie" +msgstr "Journal des comptes" #. module: account #: model:process.node,name:account.process_node_paidinvoice0 @@ -7086,7 +7203,7 @@ msgstr "Mai" #: selection:account.partner.balance,result_selection:0 #: selection:account.partner.ledger,result_selection:0 msgid "Payable Accounts" -msgstr "Comptes payables" +msgstr "Comptes fournisseurs" #. module: account #: model:ir.model,name:account.model_account_chart_template @@ -7160,7 +7277,7 @@ msgid "" "tax." msgstr "" "Cochez cette case si le prix que vous utilisez pour le produit et les " -"factures inclus cette taxe." +"factures inclut cette taxe." #. module: account #: view:account.state.open:0 @@ -7284,7 +7401,7 @@ msgstr "Rapprochement de ligne d'écriture" #: view:account.subscription.generate:0 #: model:ir.model,name:account.model_account_subscription_generate msgid "Subscription Compute" -msgstr "Calcul de la souscription" +msgstr "Calcul de l'abonnement" #. module: account #: report:account.move.voucher:0 @@ -7535,6 +7652,8 @@ msgid "" "Modify Invoice: Cancels the current invoice and creates a new copy of it " "ready for editing." msgstr "" +"Modifier la facture : annule la facture en cours et créée une nouvelle copie " +"de cette facture pour modification." #. module: account #: model:ir.module.module,shortdesc:account.module_meta_information @@ -7575,7 +7694,7 @@ msgstr "Total net :" #. module: account #: model:ir.ui.menu,name:account.menu_finance_generic_reporting msgid "Generic Reporting" -msgstr "" +msgstr "Autres rapports financiers" #. module: account #: field:account.move.line.reconcile.writeoff,journal_id:0 @@ -7692,12 +7811,12 @@ msgstr "" #: model:ir.actions.act_window,name:account.action_account_journal_view #: model:ir.ui.menu,name:account.menu_action_account_journal_view msgid "Journal Views" -msgstr "" +msgstr "Vues journal" #. module: account #: model:ir.model,name:account.model_account_move_bank_reconcile msgid "Move bank reconcile" -msgstr "" +msgstr "Rapprochement d'écritures bancaires" #. module: account #: model:ir.actions.act_window,name:account.action_account_type_form @@ -7759,14 +7878,14 @@ msgstr "Journal d'avoirs" #: report:account.general.journal:0 #: report:account.partner.balance:0 msgid "Filter By" -msgstr "" +msgstr "Filtré par" #. module: account #: view:account.entries.report:0 #: view:board.board:0 #: model:ir.actions.act_window,name:account.action_company_analysis_tree msgid "Company Analysis" -msgstr "" +msgstr "Analyse société" #. module: account #: help:account.invoice,account_id:0 @@ -7810,12 +7929,12 @@ msgstr "Réf. partenaire" #. module: account #: view:account.vat.declaration:0 msgid "Print Tax Statement" -msgstr "" +msgstr "Imprimer le relevé de taxe" #. module: account #: view:account.model.line:0 msgid "Journal Entry Model Line" -msgstr "" +msgstr "Modèle de ligne d'écriture" #. module: account #: view:account.invoice:0 @@ -7891,7 +8010,7 @@ msgstr "Montant Débit" #: view:board.board:0 #: model:ir.actions.act_window,name:account.action_treasory_graph msgid "Treasury" -msgstr "" +msgstr "Trésorerie" #. module: account #: view:account.aged.trial.balance:0 @@ -7914,7 +8033,7 @@ msgstr "Comptes autorisés" #: model:ir.actions.act_window,name:account.action_account_analytic_chart #: model:ir.ui.menu,name:account.menu_action_analytic_account_tree2 msgid "Chart of Analytic Accounts" -msgstr "" +msgstr "Plan de comptes analytiques" #. module: account #: model:ir.ui.menu,name:account.menu_configuration_misc @@ -7930,7 +8049,7 @@ msgstr "Montant total à payer au fournisseur." #: model:process.node,name:account.process_node_analytic0 #: model:process.node,name:account.process_node_analyticcost0 msgid "Analytic Costs" -msgstr "" +msgstr "Coûts analytiques" #. module: account #: field:account.analytic.journal,name:0 @@ -7945,6 +8064,8 @@ msgid "" "You can check this box to mark this journal item as a litigation with the " "associated partner" msgstr "" +"Cocher cette case pour signaler que cette ligne de journal est en litige " +"avec le partenaire correspondant" #. module: account #: help:account.invoice,internal_number:0 @@ -7964,13 +8085,13 @@ msgstr "Compte Incorrect !" #. module: account #: help:account.chart,fiscalyear:0 msgid "Keep empty for all open fiscal years" -msgstr "" +msgstr "Conserver vide pour tous les exercices comptables ouverts" #. module: account #: code:addons/account/account_move_line.py:0 #, python-format msgid "The account move (%s) for centralisation has been confirmed!" -msgstr "" +msgstr "L'écriture (%s) de centralisation a été confirmé !" #. module: account #: help:account.move.line,amount_currency:0 @@ -8135,7 +8256,7 @@ msgstr "" #. module: account #: view:account.invoice:0 msgid "Residual Amount" -msgstr "" +msgstr "Montant résiduel" #. module: account #: view:account.bank.statement:0 @@ -8167,7 +8288,7 @@ msgstr "Période du" #: code:addons/account/installer.py:0 #, python-format msgid "Sales Refund Journal" -msgstr "" +msgstr "Journal de remboursement de ventes" #. module: account #: code:addons/account/account.py:0 @@ -8216,7 +8337,7 @@ msgstr "Créer facture" #. module: account #: field:account.installer,purchase_tax:0 msgid "Purchase Tax(%)" -msgstr "" +msgstr "Taxe à l'achat (%)" #. module: account #: code:addons/account/invoice.py:0 @@ -8361,23 +8482,24 @@ msgstr "" #. module: account #: report:account.overdue:0 msgid "Document: Customer account statement" -msgstr "Document: Déclaration du Compte Client" +msgstr "Document : Relevé de compte client" #. module: account #: constraint:account.move.line:0 msgid "You can not create move line on view account." msgstr "" +"Vous ne pouvez pas créer de ligne d'écriture sur un compte de type \"Vue\"." #. module: account #: code:addons/account/wizard/account_change_currency.py:0 #, python-format msgid "Current currency is not confirured properly !" -msgstr "" +msgstr "La devise du compte n'est pas paramétrée correctement." #. module: account #: view:account.account.template:0 msgid "Receivale Accounts" -msgstr "" +msgstr "Comptes débiteurs" #. module: account #: report:account.move.voucher:0 @@ -8553,7 +8675,7 @@ msgstr "" #. module: account #: report:account.central.journal:0 msgid "A/C No." -msgstr "" +msgstr "N° compte" #. module: account #: model:ir.actions.act_window,name:account.act_account_journal_2_account_bank_statement @@ -8637,7 +8759,7 @@ msgstr "" #: report:account.third_party_ledger_other:0 #: report:account.vat.declaration:0 msgid "End Period" -msgstr "" +msgstr "Fin de période" #. module: account #: field:account.aged.trial.balance,chart_account_id:0 @@ -8656,12 +8778,12 @@ msgstr "" #: field:account.report.general.ledger,chart_account_id:0 #: field:account.vat.declaration,chart_account_id:0 msgid "Chart of account" -msgstr "" +msgstr "Plan comptable" #. module: account #: field:account.move.line,date_maturity:0 msgid "Due date" -msgstr "" +msgstr "Date d'échéance" #. module: account #: view:account.move.journal:0 @@ -8938,7 +9060,7 @@ msgstr "" #. module: account #: help:account.payment.term.line,value_amount:0 msgid "For Value percent enter % ratio between 0-1." -msgstr "" +msgstr "Saisir le pourcentage entre 0-1" #. module: account #: selection:account.entries.report,month:0 @@ -9394,7 +9516,7 @@ msgstr "L'Écriture est déjà lettrée" #. module: account #: model:ir.model,name:account.model_report_account_receivable msgid "Receivable accounts" -msgstr "Comptes recevables" +msgstr "Comptes fournisseurs" #. module: account #: selection:account.model.line,date_maturity:0 @@ -9442,7 +9564,7 @@ msgstr "Modèle de code de taxe comptable" #. module: account #: model:account.account.type,name:account.account_type_expense msgid "Erfolgskonten - Aufwendungen" -msgstr "" +msgstr "Comptes de résultats - Dépenses" #. module: account #: selection:account.entries.report,month:0 @@ -9515,7 +9637,7 @@ msgstr "Plan de comptes analytique" #. module: account #: help:account.invoice,residual:0 msgid "Remaining amount due." -msgstr "Montant Restant Dû" +msgstr "Montant restant dû" #. module: account #: model:ir.ui.menu,name:account.menu_finance_statistic_report_statement @@ -9538,7 +9660,7 @@ msgstr "Affectation des comptes" #: code:addons/account/invoice.py:0 #, python-format msgid "Invoice '%s' is waiting for validation." -msgstr "" +msgstr "La facture '%s' est en attente de validation." #. module: account #: selection:account.entries.report,month:0 @@ -9589,7 +9711,7 @@ msgstr "Rechercher une facture" #: view:account.invoice.report:0 #: model:ir.actions.act_window,name:account.action_account_invoice_refund msgid "Refund" -msgstr "Note de crédit" +msgstr "Rembourser" #. module: account #: field:wizard.multi.charts.accounts,bank_accounts_id:0 @@ -9629,17 +9751,17 @@ msgstr "Grand Livre (quantités uniquement)" #. module: account #: model:process.node,note:account.process_node_supplierpaidinvoice0 msgid "Invoice's state is Done." -msgstr "" +msgstr "Le statut de la facture est \"fermé\"" #. module: account #: model:process.transition,note:account.process_transition_reconcilepaid0 msgid "As soon as the reconciliation is done, the invoice can be paid." -msgstr "" +msgstr "Dés que le rapprochement est réalisé, la facture peut être payée." #. module: account #: view:account.account.template:0 msgid "Search Account Templates" -msgstr "" +msgstr "Recherche un modèle de compte" #. module: account #: view:account.invoice.tax:0 @@ -9691,6 +9813,8 @@ msgid "" "If the active field is set to False, it will allow you to hide the analytic " "journal without removing it." msgstr "" +"Si le champ actif est à \"Faux\", cela vous permet de cacher le journal " +"analytique sans le supprimer." #. module: account #: field:account.analytic.line,ref:0 @@ -9740,7 +9864,7 @@ msgstr "Future" #. module: account #: view:account.move.line:0 msgid "Search Journal Items" -msgstr "" +msgstr "Rechercher des écritures" #. module: account #: help:account.tax,base_sign:0 diff --git a/addons/account/i18n/it.po b/addons/account/i18n/it.po index 224e07f5e79..3573fef6d13 100644 --- a/addons/account/i18n/it.po +++ b/addons/account/i18n/it.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-15 00:19+0000\n" +"PO-Revision-Date: 2010-12-15 20:51+0000\n" "Last-Translator: qdp (OpenERP) \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:56+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:45+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/nl.po b/addons/account/i18n/nl.po index b65a6ccfd19..c86e6a44df4 100644 --- a/addons/account/i18n/nl.po +++ b/addons/account/i18n/nl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-14 21:02+0000\n" -"Last-Translator: Christophe (OpenERP) \n" +"PO-Revision-Date: 2010-12-15 21:51+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:54+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:44+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/i18n/ru.po b/addons/account/i18n/ru.po index 2b9b0f6e06d..e7d35975b46 100644 --- a/addons/account/i18n/ru.po +++ b/addons/account/i18n/ru.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-14 23:38+0000\n" +"PO-Revision-Date: 2010-12-15 17:02+0000\n" "Last-Translator: Chertykov Denis \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:58+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:45+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account @@ -4745,7 +4745,7 @@ msgstr "Имя счета/контрагента" #. module: account #: view:account.bank.statement:0 msgid "Transaction" -msgstr "" +msgstr "Операция" #. module: account #: help:account.tax,base_code_id:0 @@ -4762,7 +4762,7 @@ msgstr "Использовать данный код для декларации #. module: account #: view:account.move.line:0 msgid "Debit/Credit" -msgstr "" +msgstr "Дебет/Кредит" #. module: account #: view:report.hr.timesheet.invoice.journal:0 @@ -4778,7 +4778,7 @@ msgstr "Шаблоны кодов налога" #. module: account #: model:ir.model,name:account.model_account_installer msgid "account.installer" -msgstr "" +msgstr "account.installer" #. module: account #: field:account.tax.template,include_base_amount:0 @@ -4803,6 +4803,8 @@ msgstr "Журнал банковских операций " #: constraint:product.template:0 msgid "Error: UOS must be in a different category than the UOM" msgstr "" +"Ошибка: Единицы продажи и единицы измерения должны принадлежать к разным " +"категориям." #. module: account #: view:account.journal:0 @@ -4842,7 +4844,7 @@ msgstr "" #. module: account #: field:account.bank.statement.line,name:0 msgid "Communication" -msgstr "" +msgstr "Общение" #. module: account #: model:ir.ui.menu,name:account.menu_analytic_accounting @@ -4881,7 +4883,7 @@ msgstr "Символ кода налога" #. module: account #: model:ir.model,name:account.model_report_invoice_created msgid "Report of Invoices Created within Last 15 days" -msgstr "" +msgstr "Отчет по счетам созданным за последние 15 дней" #. module: account #: field:account.fiscalyear,end_journal_period_id:0 @@ -4912,7 +4914,7 @@ msgstr "Позиции подписки" #. module: account #: field:account.entries.report,quantity:0 msgid "Products Quantity" -msgstr "" +msgstr "Количество ТМЦ" #. module: account #: view:account.entries.report:0 @@ -4928,18 +4930,18 @@ msgstr "" #: model:ir.actions.act_window,name:account.action_account_change_currency #: model:ir.model,name:account.model_account_change_currency msgid "Change Currency" -msgstr "" +msgstr "Изменить валюту" #. module: account #: model:process.node,note:account.process_node_accountingentries0 #: model:process.node,note:account.process_node_supplieraccountingentries0 msgid "Accounting entries." -msgstr "" +msgstr "Проводки." #. module: account #: view:account.invoice:0 msgid "Payment Date" -msgstr "" +msgstr "Дата платежа" #. module: account #: selection:account.automatic.reconcile,power:0 @@ -5103,7 +5105,7 @@ msgstr "" #: view:account.move:0 #: view:account.move.line:0 msgid "Journal Item" -msgstr "" +msgstr "Запись в журнале" #. module: account #: model:ir.model,name:account.model_account_move_journal @@ -5137,14 +5139,14 @@ msgstr "" #. module: account #: field:report.invoice.created,create_date:0 msgid "Create Date" -msgstr "" +msgstr "Дата создания" #. module: account #: view:account.analytic.journal:0 #: model:ir.actions.act_window,name:account.action_account_analytic_journal_form #: model:ir.ui.menu,name:account.account_def_analytic_journal msgid "Analytic Journals" -msgstr "" +msgstr "Журналы аналитики" #. module: account #: field:account.account,child_id:0 @@ -5191,7 +5193,7 @@ msgstr "" #. module: account #: view:report.account.receivable:0 msgid "Accounts by type" -msgstr "" +msgstr "Счета по типу" #. module: account #: report:account.analytic.account.journal:0 @@ -5208,7 +5210,7 @@ msgstr "" #. module: account #: field:account.payment.term.line,value:0 msgid "Valuation" -msgstr "" +msgstr "Оценка" #. module: account #: selection:account.aged.trial.balance,result_selection:0 @@ -5279,7 +5281,7 @@ msgstr "Установить период" #: view:account.invoice.report:0 #: field:account.invoice.report,nbr:0 msgid "# of Lines" -msgstr "" +msgstr "Кол-во позиций" #. module: account #: code:addons/account/wizard/account_change_currency.py:0 @@ -5304,13 +5306,13 @@ msgstr "" #: field:account.report.general.ledger,filter:0 #: field:account.vat.declaration,filter:0 msgid "Filter by" -msgstr "" +msgstr "Фильтровать по" #. module: account #: code:addons/account/account_move_line.py:0 #, python-format msgid "You can not use an inactive account!" -msgstr "" +msgstr "Нельзя использовать неактивный счет !" #. module: account #: code:addons/account/account_move_line.py:0 @@ -5345,12 +5347,12 @@ msgstr "7" #: code:addons/account/invoice.py:0 #, python-format msgid "Invalid action !" -msgstr "" +msgstr "Неверное действие !" #. module: account #: model:ir.model,name:account.model_account_fiscal_position_tax_template msgid "Template Tax Fiscal Position" -msgstr "" +msgstr "Шаблон налога системы налогообложения" #. module: account #: help:account.tax,name:0 @@ -5373,7 +5375,7 @@ msgstr "Ничего" #. module: account #: view:analytic.entries.report:0 msgid " 365 Days " -msgstr "" +msgstr " 365 Дней " #. module: account #: model:ir.actions.act_window,name:account.action_invoice_tree3 @@ -5384,7 +5386,7 @@ msgstr "Возврат средств клиенту" #. module: account #: view:account.payment.term.line:0 msgid "Amount Computation" -msgstr "" +msgstr "Расчет суммы" #. module: account #: field:account.journal.period,name:0 @@ -5400,12 +5402,12 @@ msgstr "" #: code:addons/account/wizard/account_report_common.py:0 #, python-format msgid "not implemented" -msgstr "" +msgstr "не реализовано" #. module: account #: help:account.journal,company_id:0 msgid "Company related to this journal" -msgstr "" +msgstr "Компания связанная с этим журналом" #. module: account #: code:addons/account/wizard/account_invoice_state.py:0 @@ -5418,14 +5420,14 @@ msgstr "" #. module: account #: report:account.invoice:0 msgid "Fiscal Position Remark :" -msgstr "" +msgstr "Замечание о системе налогообложения:" #. module: account #: view:analytic.entries.report:0 #: model:ir.actions.act_window,name:account.action_analytic_entries_report #: model:ir.ui.menu,name:account.menu_action_analytic_entries_report msgid "Analytic Entries Analysis" -msgstr "" +msgstr "Анализ проводок аналитики" #. module: account #: model:ir.actions.act_window,help:account.action_bank_statement_tree @@ -5461,7 +5463,7 @@ msgstr "Сообщение о просроченном платеже" #. module: account #: field:account.entries.report,date_created:0 msgid "Date Created" -msgstr "" +msgstr "Дата создания" #. module: account #: field:account.payment.term.line,value_amount:0 @@ -5491,7 +5493,7 @@ msgstr "" #: code:addons/account/invoice.py:0 #, python-format msgid "is validated." -msgstr "" +msgstr "проверено." #. module: account #: view:account.chart.template:0 @@ -5517,13 +5519,13 @@ msgstr "Налоги с покупателя" #. module: account #: view:account.addtmpl.wizard:0 msgid "Create an Account based on this template" -msgstr "" +msgstr "Создать счет на основе этого шаблона" #. module: account #: view:account.account.type:0 #: view:account.tax.code:0 msgid "Reporting Configuration" -msgstr "" +msgstr "Настройка отчетов" #. module: account #: constraint:account.move.line:0 @@ -5550,7 +5552,7 @@ msgstr "" #. module: account #: model:ir.model,name:account.model_res_company msgid "Companies" -msgstr "" +msgstr "Компании" #. module: account #: code:addons/account/account.py:0 @@ -5563,7 +5565,7 @@ msgstr "" #. module: account #: help:account.fiscalyear.close.state,fy_id:0 msgid "Select a fiscal year to close" -msgstr "" +msgstr "Выберите финансовый год для закрытия" #. module: account #: help:account.chart.template,tax_template_ids:0 @@ -5578,7 +5580,7 @@ msgstr "" #. module: account #: view:account.move.line.reconcile.writeoff:0 msgid "Information addendum" -msgstr "" +msgstr "Дополнительная информация" #. module: account #: field:account.aged.trial.balance,fiscalyear_id:0 @@ -5649,7 +5651,7 @@ msgstr "Отмена" #. module: account #: field:account.account.type,name:0 msgid "Acc. Type Name" -msgstr "" +msgstr "Название типа счета" #. module: account #: selection:account.account,type:0 @@ -5672,7 +5674,7 @@ msgstr "Счет по кредиту по умолчанию" #. module: account #: view:account.payment.term.line:0 msgid " number of days: 30" -msgstr "" +msgstr " количество дней: 30" #. module: account #: help:account.analytic.line,currency_id:0 @@ -5682,7 +5684,7 @@ msgstr "" #. module: account #: view:account.analytic.account:0 msgid "Current" -msgstr "" +msgstr "Текущий" #. module: account #: view:account.bank.statement:0 @@ -5697,12 +5699,12 @@ msgstr "Собственные средства" #. module: account #: selection:account.tax,type:0 msgid "Percentage" -msgstr "" +msgstr "Процент" #. module: account #: selection:account.report.general.ledger,sortby:0 msgid "Journal & Partner" -msgstr "" +msgstr "Журнал и партнер" #. module: account #: field:account.automatic.reconcile,power:0 @@ -5777,13 +5779,13 @@ msgstr "" #: selection:account.account.template,type:0 #: view:account.journal:0 msgid "Liquidity" -msgstr "" +msgstr "Ликвидность" #. module: account #: model:ir.actions.act_window,name:account.action_account_analytic_journal_open_form #: model:ir.ui.menu,name:account.account_analytic_journal_entries msgid "Analytic Journal Items" -msgstr "" +msgstr "Аналитические записи журнала" #. module: account #: view:account.fiscalyear.close:0 @@ -5810,7 +5812,7 @@ msgstr "" #. module: account #: sql_constraint:account.journal:0 msgid "The name of the journal must be unique per company !" -msgstr "" +msgstr "Название журнала должно быть уникальным по компании !" #. module: account #: field:account.account.template,nocreate:0 @@ -5822,12 +5824,13 @@ msgstr "" #, python-format msgid "Can not find account chart for this company, Please Create account." msgstr "" +"Не удалось найти план счетов для компании. Пожалуйста, создайте счет." #. module: account #: code:addons/account/wizard/account_report_aged_partner_balance.py:0 #, python-format msgid "Enter a Start date !" -msgstr "" +msgstr "Введите дату начала !" #. module: account #: report:account.invoice:0 @@ -5840,7 +5843,7 @@ msgstr "Возврат средств от поставщика" #. module: account #: model:ir.ui.menu,name:account.menu_dashboard_acc msgid "Dashboard" -msgstr "" +msgstr "Инф. панель" #. module: account #: field:account.bank.statement,move_line_ids:0 @@ -5872,7 +5875,7 @@ msgstr "Централизация" #: view:account.tax.code.template:0 #: view:analytic.entries.report:0 msgid "Group By..." -msgstr "" +msgstr "Объединять по..." #. module: account #: field:account.journal.column,readonly:0 @@ -5882,7 +5885,7 @@ msgstr "Только чтение" #. module: account #: model:ir.model,name:account.model_account_pl_report msgid "Account Profit And Loss Report" -msgstr "" +msgstr "Отчет по счету прибыль и убыток" #. module: account #: field:account.invoice.line,uos_id:0 @@ -5899,7 +5902,7 @@ msgstr "" #. module: account #: model:ir.model,name:account.model_account_sequence_fiscalyear msgid "account.sequence.fiscalyear" -msgstr "" +msgstr "account.sequence.fiscalyear" #. module: account #: report:account.analytic.account.journal:0 @@ -5935,7 +5938,7 @@ msgstr "Категория счета расходов" #. module: account #: view:account.bank.statement:0 msgid "Cash Transactions" -msgstr "" +msgstr "Операции с наличными" #. module: account #: code:addons/account/wizard/account_state_open.py:0 diff --git a/addons/account/i18n/sv.po b/addons/account/i18n/sv.po index e7e61d6cf19..ffced0bfa69 100644 --- a/addons/account/i18n/sv.po +++ b/addons/account/i18n/sv.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.14\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-14 22:43+0000\n" +"PO-Revision-Date: 2010-12-15 15:34+0000\n" "Last-Translator: OpenERP Administrators \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:59+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:45+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account @@ -44,7 +44,7 @@ msgstr "" #. module: account #: view:account.move.reconcile:0 msgid "Journal Entry Reconcile" -msgstr "" +msgstr "Gournal transaktion avstämning" #. module: account #: field:account.installer.modules,account_voucher:0 @@ -89,12 +89,12 @@ msgstr "" #. module: account #: model:ir.model,name:account.model_report_aged_receivable msgid "Aged Receivable Till Today" -msgstr "" +msgstr "Periodiserad reskontra till dagens datum" #. module: account #: field:account.partner.ledger,reconcil:0 msgid "Include Reconciled Entries" -msgstr "" +msgstr "Inkludera avstämda transaktioner" #. module: account #: view:account.pl.report:0 @@ -288,7 +288,7 @@ msgstr "Balansräkning" #: model:ir.actions.act_window,name:account.action_view_account_use_model #: model:ir.ui.menu,name:account.menu_action_manual_recurring msgid "Manual Recurring" -msgstr "" +msgstr "Manuellt återkommande" #. module: account #: view:account.fiscalyear.close.state:0 @@ -468,6 +468,9 @@ msgid "" "it comes to 'Printed' state. When all transactions are done, it comes in " "'Done' state." msgstr "" +"När journalen skapades, Statusen är preliminär. När den skrivs ut blir " +"statusen 'Utskriven'. När alla transaktioner är klara får journalen status " +"'klar'." #. module: account #: model:ir.actions.act_window,help:account.action_account_tax_chart @@ -641,7 +644,7 @@ msgstr "Taxes Mapping" #. module: account #: report:account.central.journal:0 msgid "Centralized Journal" -msgstr "" +msgstr "Centraliserad journal" #. module: account #: sql_constraint:account.sequence.fiscalyear:0 @@ -846,7 +849,7 @@ msgstr "Beräkning" #. module: account #: view:account.move.line:0 msgid "Next Partner to reconcile" -msgstr "" +msgstr "Nästa partner som skall stämmas av" #. module: account #: code:addons/account/account_move_line.py:0 @@ -931,7 +934,7 @@ msgstr "Utökade filter..." #. module: account #: model:ir.ui.menu,name:account.menu_account_central_journal msgid "Centralizing Journal" -msgstr "" +msgstr "Centraliserad journal" #. module: account #: selection:account.journal,type:0 @@ -1051,7 +1054,7 @@ msgstr "" #. module: account #: view:account.tax:0 msgid "Applicability Options" -msgstr "" +msgstr "Tillämplighet alternativ" #. module: account #: report:account.partner.balance:0 @@ -1085,7 +1088,7 @@ msgstr "Chef" #. module: account #: view:account.subscription.generate:0 msgid "Generate Entries before:" -msgstr "" +msgstr "Skapa transaktioner före:" #. module: account #: selection:account.bank.accounts.wizard,account_type:0 @@ -1100,7 +1103,7 @@ msgstr "Startdatum" #. module: account #: model:process.transition,name:account.process_transition_confirmstatementfromdraft0 msgid "Confirm statement" -msgstr "" +msgstr "Bekräfta utdraget" #. module: account #: field:account.fiscal.position.tax,tax_dest_id:0 diff --git a/addons/account/i18n/vi.po b/addons/account/i18n/vi.po index 84e4af04623..51839faf578 100644 --- a/addons/account/i18n/vi.po +++ b/addons/account/i18n/vi.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:00+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:46+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account diff --git a/addons/account/installer.py b/addons/account/installer.py index b1be04f7c70..9dce3186393 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -45,7 +45,7 @@ class account_installer(osv.osv_memory): ids = modules.search(cr, uid, [('category_id', '=', 'Account Charts')], context=context) charts = list( sorted(((m.name, m.shortdesc) - for m in modules.browse(cr, uid, ids)), + for m in modules.browse(cr, uid, ids, context=context)), key=itemgetter(1))) charts.insert(0, ('configurable', 'Generic Chart Of Account')) return charts diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 3f675f90a07..57178c03c72 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -60,7 +60,7 @@ class account_invoice(osv.osv): return res and res[0] or False def _get_currency(self, cr, uid, context=None): - user = pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, [uid])[0] + user = pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, [uid], context=context)[0] if user.company_id: return user.company_id.currency_id.id return pooler.get_pool(cr.dbname).get('res.currency').search(cr, uid, [('rate','=', 1.0)])[0] @@ -89,11 +89,11 @@ class account_invoice(osv.osv): def _amount_residual(self, cr, uid, ids, name, args, context=None): res = {} - cur_obj = self.pool.get('res.currency') - data_inv = self.browse(cr, uid, ids) if context is None: context = {} + cur_obj = self.pool.get('res.currency') + data_inv = self.browse(cr, uid, ids, context=context) for inv in data_inv: debit = credit = 0.0 context.update({'date':inv.date_invoice}) @@ -168,7 +168,7 @@ class account_invoice(osv.osv): def _compute_lines(self, cr, uid, ids, name, args, context=None): result = {} - for invoice in self.browse(cr, uid, ids, context): + for invoice in self.browse(cr, uid, ids, context=context): src = [] lines = [] if invoice.move_id: @@ -187,7 +187,7 @@ class account_invoice(osv.osv): def _get_invoice_from_line(self, cr, uid, ids, context=None): move = {} - for line in self.pool.get('account.move.line').browse(cr, uid, ids): + for line in self.pool.get('account.move.line').browse(cr, uid, ids, context=context): if line.reconcile_partial_id: for line2 in line.reconcile_partial_id.line_partial_ids: move[line2.move_id.id] = True @@ -201,7 +201,7 @@ class account_invoice(osv.osv): def _get_invoice_from_reconcile(self, cr, uid, ids, context=None): move = {} - for r in self.pool.get('account.move.reconcile').browse(cr, uid, ids): + for r in self.pool.get('account.move.reconcile').browse(cr, uid, ids, context=context): for line in r.line_partial_ids: move[line.move_id.id] = True for line in r.line_id: @@ -328,6 +328,7 @@ class account_invoice(osv.osv): journal_obj = self.pool.get('account.journal') if context is None: context = {} + if context.get('active_model', '') in ['res.partner'] and context.get('active_ids', False) and context['active_ids']: partner = self.pool.get(context['active_model']).read(cr, uid, context['active_ids'], ['supplier','customer'])[0] if not view_type: @@ -395,7 +396,7 @@ class account_invoice(osv.osv): return True def unlink(self, cr, uid, ids, context=None): - invoices = self.read(cr, uid, ids, ['state']) + invoices = self.read(cr, uid, ids, ['state'], context=context) unlink_ids = [] for t in invoices: if t['state'] in ('draft', 'cancel'): @@ -675,7 +676,7 @@ class account_invoice(osv.osv): def button_compute(self, cr, uid, ids, context=None, set_total=False): self.button_reset_taxes(cr, uid, ids, context) - for inv in self.browse(cr, uid, ids): + for inv in self.browse(cr, uid, ids, context=context): if set_total: self.pool.get('account.invoice').write(cr, uid, [inv.id], {'check_total': inv.amount_total}) return True @@ -987,7 +988,7 @@ class account_invoice(osv.osv): #TODO: not correct fix but required a frech values before reading it. self.write(cr, uid, ids, {}) - for obj_inv in self.browse(cr, uid, ids): + for obj_inv in self.browse(cr, uid, ids, context=context): id = obj_inv.id invtype = obj_inv.type number = obj_inv.number @@ -1155,7 +1156,7 @@ class account_invoice(osv.osv): context = {} #TODO check if we can use different period for payment and the writeoff line assert len(ids)==1, "Can only pay one invoice at a time" - invoice = self.browse(cr, uid, ids[0]) + invoice = self.browse(cr, uid, ids[0], context=context) src_account_id = invoice.account_id.id # Take the seq as name for move types = {'out_invoice': -1, 'in_invoice': 1, 'out_refund': 1, 'in_refund': -1} @@ -1319,9 +1320,9 @@ class account_invoice_line(osv.osv): return {'value': {'categ_id': False}, 'domain':{'product_uom':[]}} else: return {'value': {'price_unit': 0.0, 'categ_id': False}, 'domain':{'product_uom':[]}} - part = self.pool.get('res.partner').browse(cr, uid, partner_id) + part = self.pool.get('res.partner').browse(cr, uid, partner_id, context=context) fpos_obj = self.pool.get('account.fiscal.position') - fpos = fposition_id and fpos_obj.browse(cr, uid, fposition_id) or False + fpos = fposition_id and fpos_obj.browse(cr, uid, fposition_id, context=context) or False if part.lang: context.update({'lang': part.lang}) @@ -1351,7 +1352,7 @@ class account_invoice_line(osv.osv): # Parse the value_reference field to get the ID of the account.account record account_id = int (my_value[0]["value_reference"].split(",")[1]) # Use the ID of the account.account record in the browse for the account.account record - app_acc_in = account_obj.browse(cr, uid, [account_id])[0] + app_acc_in = account_obj.browse(cr, uid, account_id, context=context) if not exp_pro_id: ex_acc = res.product_tmpl_id.property_account_expense ex_acc_cate = res.categ_id.property_account_expense_categ @@ -1360,7 +1361,7 @@ class account_invoice_line(osv.osv): else: app_acc_exp = ex_acc_cate else: - app_acc_exp = account_obj.browse(cr, uid, exp_pro_id)[0] + app_acc_exp = account_obj.browse(cr, uid, exp_pro_id, context=context)[0] if not in_pro_id and not exp_pro_id: in_acc = res.product_tmpl_id.property_account_income in_acc_cate = res.categ_id.property_account_income_categ @@ -1378,8 +1379,8 @@ class account_invoice_line(osv.osv): if not in_res_id and not exp_res_id: raise osv.except_osv(_('Configuration Error !'), _('Can not find account chart for this company, Please Create account.')) - in_obj_acc = account_obj.browse(cr, uid, in_res_id) - exp_obj_acc = account_obj.browse(cr, uid, exp_res_id) + in_obj_acc = account_obj.browse(cr, uid, in_res_id, context=context) + exp_obj_acc = account_obj.browse(cr, uid, exp_res_id, context=context) if in_acc or ex_acc: res.product_tmpl_id.property_account_income = in_obj_acc[0] res.product_tmpl_id.property_account_expense = exp_obj_acc[0] @@ -1427,8 +1428,8 @@ class account_invoice_line(osv.osv): if not company_id or not currency_id: return res_final - company = self.pool.get('res.company').browse(cr, uid, company_id) - currency = self.pool.get('res.currency').browse(cr, uid, currency_id) + company = self.pool.get('res.company').browse(cr, uid, company_id, context=context) + currency = self.pool.get('res.currency').browse(cr, uid, currency_id, context=context) if company.currency_id.id != currency.id: new_price = res_final['value']['price_unit'] * currency.rate @@ -1453,7 +1454,9 @@ class account_invoice_line(osv.osv): res = [] tax_obj = self.pool.get('account.tax') cur_obj = self.pool.get('res.currency') - inv = self.pool.get('account.invoice').browse(cr, uid, invoice_id) + if context is None: + context = {} + inv = self.pool.get('account.invoice').browse(cr, uid, invoice_id, context=context) company_currency = inv.company_id.currency_id.id for line in inv.invoice_line: @@ -1584,11 +1587,11 @@ class account_invoice_tax(osv.osv): 'base_amount': 0.0, 'tax_amount': 0.0, } - def compute(self, cr, uid, invoice_id, context={}): + def compute(self, cr, uid, invoice_id, context=None): tax_grouped = {} tax_obj = self.pool.get('account.tax') cur_obj = self.pool.get('res.currency') - inv = self.pool.get('account.invoice').browse(cr, uid, invoice_id, context) + inv = self.pool.get('account.invoice').browse(cr, uid, invoice_id, context=context) cur = inv.currency_id company_currency = inv.company_id.currency_id.id diff --git a/addons/account/partner.py b/addons/account/partner.py index fb5af0353a5..c710e8949c4 100644 --- a/addons/account/partner.py +++ b/addons/account/partner.py @@ -34,7 +34,7 @@ class account_fiscal_position(osv.osv): 'note': fields.text('Notes', translate=True), } - def map_tax(self, cr, uid, fposition_id, taxes, context={}): + def map_tax(self, cr, uid, fposition_id, taxes, context=None): if not taxes: return [] if not fposition_id: @@ -51,7 +51,7 @@ class account_fiscal_position(osv.osv): result.append(t.id) return result - def map_account(self, cr, uid, fposition_id, account_id, context={}): + def map_account(self, cr, uid, fposition_id, account_id, context=None): if not fposition_id: return account_id for pos in fposition_id.account_ids: @@ -134,10 +134,10 @@ class res_partner(osv.osv): return [('id','=','0')] return [('id','in',map(itemgetter(0), res))] - def _credit_search(self, cr, uid, obj, name, args, context): + def _credit_search(self, cr, uid, obj, name, args, context=None): return self._asset_difference_search(cr, uid, obj, name, 'receivable', args, context=context) - def _debit_search(self, cr, uid, obj, name, args, context): + def _debit_search(self, cr, uid, obj, name, args, context=None): return self._asset_difference_search(cr, uid, obj, name, 'payable', args, context=context) _columns = { diff --git a/addons/account/project/wizard/project_account_analytic_line.py b/addons/account/project/wizard/project_account_analytic_line.py index f99da966634..e6be3bcffd3 100644 --- a/addons/account/project/wizard/project_account_analytic_line.py +++ b/addons/account/project/wizard/project_account_analytic_line.py @@ -29,7 +29,7 @@ class project_account_analytic_line(osv.osv_memory): 'to_date': fields.date('To'), } - def action_open_window(self, cr, uid, ids, context={}): + def action_open_window(self, cr, uid, ids, context=None): mod_obj =self.pool.get('ir.model.data') domain = [] data = self.read(cr, uid, ids, [])[0] diff --git a/addons/account/report/account_report.py b/addons/account/report/account_report.py index a85d25efe5a..8a77ce47280 100644 --- a/addons/account/report/account_report.py +++ b/addons/account/report/account_report.py @@ -27,7 +27,7 @@ import pooler import tools from osv import fields,osv -def _code_get(self, cr, uid, context={}): +def _code_get(self, cr, uid, context=None): acc_type_obj = self.pool.get('account.account.type') ids = acc_type_obj.search(cr, uid, []) res = acc_type_obj.read(cr, uid, ids, ['code', 'name'], context) @@ -98,9 +98,9 @@ class report_aged_receivable(osv.osv): res = super(report_aged_receivable, self).fields_view_get(cr, user, view_id, view_type, context, toolbar=toolbar, submenu=submenu) return res - def _calc_bal(self, cr, uid, ids, name, args, context): + def _calc_bal(self, cr, uid, ids, name, args, context=None): res = {} - for period in self.read(cr,uid,ids,['name']): + for period in self.read(cr, uid, ids, ['name'], context=context): date1,date2 = period['name'].split(' to ') cr.execute("SELECT SUM(credit-debit) FROM account_move_line AS line, account_account as ac \ WHERE (line.account_id=ac.id) AND ac.type='receivable' \ diff --git a/addons/account/wizard/account_automatic_reconcile.py b/addons/account/wizard/account_automatic_reconcile.py index e1ef86b9a65..432a430868c 100644 --- a/addons/account/wizard/account_automatic_reconcile.py +++ b/addons/account/wizard/account_automatic_reconcile.py @@ -42,10 +42,14 @@ class account_automatic_reconcile(osv.osv_memory): 'allow_write_off': fields.boolean('Allow write off') } - def _get_reconciled(self, cr, uid, context={}): + def _get_reconciled(self, cr, uid, context=None): + if context is None: + context = {} return context.get('reconciled', 0) - def _get_unreconciled(self, cr, uid, context={}): + def _get_unreconciled(self, cr, uid, context=None): + if context is None: + context = {} return context.get('unreconciled', 0) _defaults = { @@ -175,7 +179,7 @@ class account_automatic_reconcile(osv.osv_memory): if allow_write_off: move_line_obj.reconcile(cr, uid, line_ids, 'auto', form['writeoff_acc_id'], form['period_id'], form['journal_id'], context) else: - move_line_obj.reconcile_partial(cr, uid, line_ids, 'manual', context={}) + move_line_obj.reconcile_partial(cr, uid, line_ids, 'manual', context=context) # get the list of partners who have more than one unreconciled transaction cr.execute( diff --git a/addons/account/wizard/account_change_currency.py b/addons/account/wizard/account_change_currency.py index b6dccb6e5b1..47f9ac9c2c8 100644 --- a/addons/account/wizard/account_change_currency.py +++ b/addons/account/wizard/account_change_currency.py @@ -51,7 +51,7 @@ class account_change_currency(osv.osv_memory): invoice = obj_inv.browse(cr, uid, context['active_id'], context=context) if invoice.currency_id.id == new_currency: return {} - rate = obj_currency.browse(cr, uid, new_currency).rate + rate = obj_currency.browse(cr, uid, new_currency, context=context).rate for line in invoice.invoice_line: new_price = 0 if invoice.company_id.currency_id.id == invoice.currency_id.id: diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index 0ad0cf61999..672e2a28fba 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -93,7 +93,7 @@ class account_invoice_refund(osv.osv_memory): date = False period = False description = False - company = res_users_obj.browse(cr, uid, uid).company_id + company = res_users_obj.browse(cr, uid, uid, context=context).company_id journal_id = form.get('journal_id', False) for inv in inv_obj.browse(cr, uid, context.get('active_ids'), context=context): if inv.state in ['draft', 'proforma2', 'cancel']: diff --git a/addons/account/wizard/account_move_bank_reconcile.py b/addons/account/wizard/account_move_bank_reconcile.py index 2e6a52e56cd..9be351ed440 100644 --- a/addons/account/wizard/account_move_bank_reconcile.py +++ b/addons/account/wizard/account_move_bank_reconcile.py @@ -32,13 +32,15 @@ class account_move_bank_reconcile(osv.osv_memory): 'journal_id': fields.many2one('account.journal', 'Journal', required=True), } - def action_open_window(self, cr, uid, ids, context={}): + def action_open_window(self, cr, uid, ids, context=None): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: account move bank reconcile’s ID or list of IDs @return: dictionary of Open account move line on given journal_id. """ + if context is None: + context = {} data = self.read(cr, uid, ids, context=context)[0] cr.execute('select default_credit_account_id \ from account_journal where id=%s', (data['journal_id'],)) diff --git a/addons/account/wizard/account_move_journal.py b/addons/account/wizard/account_move_journal.py index 72ae65f83b9..c7adb387724 100644 --- a/addons/account/wizard/account_move_journal.py +++ b/addons/account/wizard/account_move_journal.py @@ -29,7 +29,7 @@ class account_move_journal(osv.osv_memory): _name = "account.move.journal" _description = "Move journal" - def _get_period(self, cr, uid, context={}): + def _get_period(self, cr, uid, context=None): """ Return default account period value """ @@ -40,7 +40,7 @@ class account_move_journal(osv.osv_memory): period_id = ids[0] return period_id - def _get_journal(self, cr, uid, context={}): + def _get_journal(self, cr, uid, context=None): """ Return journal based on the journal type """ @@ -138,8 +138,8 @@ class account_move_journal(osv.osv_memory): ids = period_pool.search(cr, uid, [('journal_id', '=', journal_id), ('period_id', '=', period_id)], context=context) if not ids: - journal = journal_pool.browse(cr, uid, journal_id) - period = account_period_obj.browse(cr, uid, period_id) + journal = journal_pool.browse(cr, uid, journal_id, context=context) + period = account_period_obj.browse(cr, uid, period_id, context=context) name = journal.name state = period.state diff --git a/addons/account/wizard/account_move_line_reconcile_select.py b/addons/account/wizard/account_move_line_reconcile_select.py index d51b78f8db4..8e57c57884d 100644 --- a/addons/account/wizard/account_move_line_reconcile_select.py +++ b/addons/account/wizard/account_move_line_reconcile_select.py @@ -30,7 +30,7 @@ class account_move_line_reconcile_select(osv.osv_memory): domain = [('reconcile', '=', 1)], required=True), } - def action_open_window(self, cr, uid, ids, context={}): + def action_open_window(self, cr, uid, ids, context=None): """ This function Open account move line window for reconcile on given account id @param cr: the current row, from the database cursor, diff --git a/addons/account/wizard/account_move_line_select.py b/addons/account/wizard/account_move_line_select.py index 7ece00ca8b5..12ab0236759 100644 --- a/addons/account/wizard/account_move_line_select.py +++ b/addons/account/wizard/account_move_line_select.py @@ -42,7 +42,7 @@ class account_move_line_select(osv.osv_memory): else: fiscalyear_ids = [context['fiscalyear']] - fiscalyears = fiscalyear_obj.browse(cr, uid, fiscalyear_ids) + fiscalyears = fiscalyear_obj.browse(cr, uid, fiscalyear_ids, context=context) period_ids = [] if fiscalyears: diff --git a/addons/account/wizard/account_move_line_unreconcile_select.py b/addons/account/wizard/account_move_line_unreconcile_select.py index 826a5a654b1..ad59493503d 100644 --- a/addons/account/wizard/account_move_line_unreconcile_select.py +++ b/addons/account/wizard/account_move_line_unreconcile_select.py @@ -27,7 +27,7 @@ class account_move_line_unreconcile_select(osv.osv_memory): _columns ={ 'account_id': fields.many2one('account.account','Account',required=True), } - def action_open_window(self, cr, uid, ids, context={}): + def action_open_window(self, cr, uid, ids, context=None): data = self.read(cr, uid, ids, context=context)[0] return { 'domain': "[('account_id','=',%d),('reconcile_id','<>',False),('state','<>','draft')]" % data['account_id'], diff --git a/addons/account/wizard/account_open_closed_fiscalyear.py b/addons/account/wizard/account_open_closed_fiscalyear.py index 3b7dc0743fc..582bbc36619 100644 --- a/addons/account/wizard/account_open_closed_fiscalyear.py +++ b/addons/account/wizard/account_open_closed_fiscalyear.py @@ -30,12 +30,12 @@ class account_open_closed_fiscalyear(osv.osv_memory): 'Fiscal Year to Open', required=True, help='Select Fiscal Year which you want to remove entries for its End of year entries journal'), } - def remove_entries(self, cr, uid, ids, context={}): + def remove_entries(self, cr, uid, ids, context=None): fy_obj = self.pool.get('account.fiscalyear') move_obj = self.pool.get('account.move') - data = self.read(cr, uid, ids, [])[0] - data_fyear = fy_obj.browse(cr, uid, data['fyear_id']) + data = self.read(cr, uid, ids, [], context=context)[0] + data_fyear = fy_obj.browse(cr, uid, data['fyear_id'], context=context) if not data_fyear.end_journal_period_id: raise osv.except_osv(_('Error'), _('No journal for ending writing has been defined for the fiscal year')) period_journal = data_fyear.end_journal_period_id diff --git a/addons/account/wizard/account_reconcile_partner_process.py b/addons/account/wizard/account_reconcile_partner_process.py index e65ed778ef4..9f91d1ec2d2 100644 --- a/addons/account/wizard/account_reconcile_partner_process.py +++ b/addons/account/wizard/account_reconcile_partner_process.py @@ -73,6 +73,8 @@ class account_partner_reconcile_process(osv.osv_memory): return res def next_partner(self, cr, uid, ids, context=None): + if context is None: + context = {} move_line_obj = self.pool.get('account.move.line') res_partner_obj = self.pool.get('res.partner') diff --git a/addons/account/wizard/account_report_balance_sheet.py b/addons/account/wizard/account_report_balance_sheet.py index 0d64a753f55..6ce36242f47 100644 --- a/addons/account/wizard/account_report_balance_sheet.py +++ b/addons/account/wizard/account_report_balance_sheet.py @@ -57,7 +57,7 @@ class account_bs_report(osv.osv_memory): if context is None: context = {} data = self.pre_print_report(cr, uid, ids, data, context=context) - account = self.pool.get('account.account').browse(cr, uid, data['form']['chart_account_id']) + account = self.pool.get('account.account').browse(cr, uid, data['form']['chart_account_id'], context=context) if not account.company_id.property_reserve_and_surplus_account: raise osv.except_osv(_('Warning'),_('Please define the Reserve and Profit/Loss account for current user company !')) data['form']['reserve_account_id'] = account.company_id.property_reserve_and_surplus_account.id diff --git a/addons/account/wizard/account_report_common_account.py b/addons/account/wizard/account_report_common_account.py index 4ed71ec9389..7205a9e53bf 100644 --- a/addons/account/wizard/account_report_common_account.py +++ b/addons/account/wizard/account_report_common_account.py @@ -38,7 +38,7 @@ class account_common_account_report(osv.osv_memory): def pre_print_report(self, cr, uid, ids, data, context=None): if context is None: context = {} - data['form'].update(self.read(cr, uid, ids, ['display_account'])[0]) + data['form'].update(self.read(cr, uid, ids, ['display_account'], context=context)[0]) return data account_common_account_report() diff --git a/addons/account/wizard/account_report_common_journal.py b/addons/account/wizard/account_report_common_journal.py index 9ec12b16177..8e9db058d31 100644 --- a/addons/account/wizard/account_report_common_journal.py +++ b/addons/account/wizard/account_report_common_journal.py @@ -41,7 +41,7 @@ class account_common_journal_report(osv.osv_memory): def pre_print_report(self, cr, uid, ids, data, context=None): if context is None: context = {} - data['form'].update(self.read(cr, uid, ids, ['amount_currency'])[0]) + data['form'].update(self.read(cr, uid, ids, ['amount_currency'], context=context)[0]) fy_ids = data['form']['fiscalyear_id'] and [data['form']['fiscalyear_id']] or self.pool.get('account.fiscalyear').search(cr, uid, [('state', '=', 'draft')], context=context) period_list = data['form']['periods'] or self.pool.get('account.period').search(cr, uid, [('fiscalyear_id', 'in', fy_ids)], context=context) data['form']['active_ids'] = self.pool.get('account.journal.period').search(cr, uid, [('journal_id', 'in', data['form']['journal_ids']), ('period_id', 'in', period_list)], context=context) diff --git a/addons/account/wizard/account_report_common_partner.py b/addons/account/wizard/account_report_common_partner.py index 3fafb400bb1..05003041eeb 100644 --- a/addons/account/wizard/account_report_common_partner.py +++ b/addons/account/wizard/account_report_common_partner.py @@ -39,7 +39,7 @@ class account_common_partner_report(osv.osv_memory): def pre_print_report(self, cr, uid, ids, data, context=None): if context is None: context = {} - data['form'].update(self.read(cr, uid, ids, ['result_selection'])[0]) + data['form'].update(self.read(cr, uid, ids, ['result_selection'], context=context)[0]) return data account_common_partner_report() diff --git a/addons/account/wizard/account_report_print_journal.py b/addons/account/wizard/account_report_print_journal.py index 6256cca8ab6..b1ca30dc560 100644 --- a/addons/account/wizard/account_report_print_journal.py +++ b/addons/account/wizard/account_report_print_journal.py @@ -39,7 +39,7 @@ class account_print_journal(osv.osv_memory): if context is None: context = {} data = self.pre_print_report(cr, uid, ids, data, context=context) - data['form'].update(self.read(cr, uid, ids, ['sort_selection'])[0]) + data['form'].update(self.read(cr, uid, ids, ['sort_selection'], context=context)[0]) return {'type': 'ir.actions.report.xml', 'report_name': 'account.journal.period.print', 'datas': data} account_print_journal() diff --git a/addons/account/wizard/account_subscription_generate.py b/addons/account/wizard/account_subscription_generate.py index 7a50b49d310..4c99539301b 100644 --- a/addons/account/wizard/account_subscription_generate.py +++ b/addons/account/wizard/account_subscription_generate.py @@ -33,7 +33,7 @@ class account_subscription_generate(osv.osv_memory): _defaults = { 'date': lambda *a: time.strftime('%Y-%m-%d'), } - def action_generate(self, cr, uid, ids, context={}): + def action_generate(self, cr, uid, ids, context=None): mod_obj = self.pool.get('ir.model.data') act_obj = self.pool.get('ir.actions.act_window') moves_created=[] diff --git a/addons/account/wizard/account_unreconcile.py b/addons/account/wizard/account_unreconcile.py index 88b58b68a1e..3a067b4a598 100644 --- a/addons/account/wizard/account_unreconcile.py +++ b/addons/account/wizard/account_unreconcile.py @@ -41,11 +41,11 @@ class account_unreconcile_reconcile(osv.osv_memory): def trans_unrec_reconcile(self, cr, uid, ids, context=None): obj_move_reconcile = self.pool.get('account.move.reconcile') - rec_ids = context['active_ids'] if context is None: context = {} + rec_ids = context['active_ids'] if rec_ids: - obj_move_reconcile.unlink(cr, uid, rec_ids) + obj_move_reconcile.unlink(cr, uid, rec_ids, context=context) return {} account_unreconcile_reconcile() diff --git a/addons/account/wizard/account_use_model.py b/addons/account/wizard/account_use_model.py index 51bd3a96083..15719dcf138 100644 --- a/addons/account/wizard/account_use_model.py +++ b/addons/account/wizard/account_use_model.py @@ -59,9 +59,9 @@ class account_use_model(osv.osv_memory): data = self.read(cr, uid, ids, context=context)[0] record_id = context and context.get('model_line', False) or False if record_id: - data_model = account_model_obj.browse(cr, uid, data['model']) + data_model = account_model_obj.browse(cr, uid, data['model'], context=context) else: - data_model = account_model_obj.browse(cr, uid, context['active_ids']) + data_model = account_model_obj.browse(cr, uid, context['active_ids'], context=context) for model in data_model: entry['name'] = model.name%{'year':time.strftime('%Y'), 'month':time.strftime('%m'), 'date':time.strftime('%d')} period_id = account_period_obj.find(cr, uid, context=context) diff --git a/addons/account/wizard/account_validate_account_move.py b/addons/account/wizard/account_validate_account_move.py index 0f963b44fa6..f840d2b5532 100644 --- a/addons/account/wizard/account_validate_account_move.py +++ b/addons/account/wizard/account_validate_account_move.py @@ -33,11 +33,11 @@ class validate_account_move(osv.osv_memory): obj_move = self.pool.get('account.move') if context is None: context = {} - data = self.read(cr, uid, ids)[0] + data = self.read(cr, uid, ids, context=context)[0] ids_move = obj_move.search(cr, uid, [('state','=','draft'),('journal_id','=',data['journal_id']),('period_id','=',data['period_id'])]) if not ids_move: raise osv.except_osv(_('Warning'), _('Specified Journal does not have any account move entries in draft state for this period')) - obj_move.button_validate(cr, uid, ids_move, context) + obj_move.button_validate(cr, uid, ids_move, context=context) return {} validate_account_move() diff --git a/addons/account_accountant/i18n/account_accountant.pot b/addons/account_accountant/i18n/account_accountant.pot index aa0759e1c4e..43c1c0b6236 100644 --- a/addons/account_accountant/i18n/account_accountant.pot +++ b/addons/account_accountant/i18n/account_accountant.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-10 17:14:45+0000\n" -"PO-Revision-Date: 2010-12-10 17:14:45+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:35+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:35+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/account_analytic_analysis/account_analytic_analysis.py b/addons/account_analytic_analysis/account_analytic_analysis.py index 55213155168..9c8d657d537 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis.py +++ b/addons/account_analytic_analysis/account_analytic_analysis.py @@ -269,7 +269,7 @@ class account_analytic_account(osv.osv): GROUP BY account_analytic_line.account_id", (child_ids,)) for account_id, sum in cr.fetchall(): res[account_id][name] = round(sum,2) - data = self._compute_level_tree(cr, uid, ids, child_ids, res, [name], context) + data = self._compute_level_tree(cr, uid, ids, child_ids, res, [name], context=context) for i in data: res_final[i] = data[i][name] return res_final @@ -324,7 +324,7 @@ class account_analytic_account(osv.osv): def _revenue_per_hour_calc(self, cr, uid, ids, name, arg, context=None): res = {} - for account in self.browse(cr, uid, ids): + for account in self.browse(cr, uid, ids, context=context): if account.hours_qtt_invoiced == 0: res[account.id]=0.0 else: @@ -335,7 +335,7 @@ class account_analytic_account(osv.osv): def _real_margin_rate_calc(self, cr, uid, ids, name, arg, context=None): res = {} - for account in self.browse(cr, uid, ids): + for account in self.browse(cr, uid, ids, context=context): if account.ca_invoiced == 0: res[account.id]=0.0 elif account.total_cost != 0.0: @@ -348,7 +348,7 @@ class account_analytic_account(osv.osv): def _remaining_ca_calc(self, cr, uid, ids, name, arg, context=None): res = {} - for account in self.browse(cr, uid, ids): + for account in self.browse(cr, uid, ids, context=context): if account.amount_max != 0: res[account.id] = account.amount_max - account.ca_invoiced else: @@ -359,7 +359,7 @@ class account_analytic_account(osv.osv): def _real_margin_calc(self, cr, uid, ids, name, arg, context=None): res = {} - for account in self.browse(cr, uid, ids): + for account in self.browse(cr, uid, ids, context=context): res[account.id] = account.ca_invoiced + account.total_cost for id in ids: res[id] = round(res.get(id, 0.0),2) @@ -367,7 +367,7 @@ class account_analytic_account(osv.osv): def _theorical_margin_calc(self, cr, uid, ids, name, arg, context=None): res = {} - for account in self.browse(cr, uid, ids): + for account in self.browse(cr, uid, ids, context=context): res[account.id] = account.ca_theorical + account.total_cost for id in ids: res[id] = round(res.get(id, 0.0),2) @@ -497,7 +497,7 @@ class account_analytic_account_summary_user(osv.osv): ')') def _read_flat(self, cr, user, ids, fields, context=None, load='_classic_read'): - if not context: + if context is None: context = {} if not ids: return [] @@ -671,7 +671,7 @@ class account_analytic_account_summary_month(osv.osv): ')') def _read_flat(self, cr, user, ids, fields, context=None, load='_classic_read'): - if not context: + if context is None: context = {} if not ids: return [] diff --git a/addons/account_analytic_analysis/i18n/account_analytic_analysis.pot b/addons/account_analytic_analysis/i18n/account_analytic_analysis.pot index 03e09f3cfb6..3b7199e52b5 100644 --- a/addons/account_analytic_analysis/i18n/account_analytic_analysis.pot +++ b/addons/account_analytic_analysis/i18n/account_analytic_analysis.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:50+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:50+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:36+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:36+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/account_analytic_default/i18n/account_analytic_default.pot b/addons/account_analytic_default/i18n/account_analytic_default.pot index f1547e4cf54..82d696158ae 100644 --- a/addons/account_analytic_default/i18n/account_analytic_default.pot +++ b/addons/account_analytic_default/i18n/account_analytic_default.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:50+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:50+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:36+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:36+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/account_analytic_plans/account_analytic_plans.py b/addons/account_analytic_plans/account_analytic_plans.py index fa3e4a24635..6d8a06755d6 100644 --- a/addons/account_analytic_plans/account_analytic_plans.py +++ b/addons/account_analytic_plans/account_analytic_plans.py @@ -28,7 +28,7 @@ from tools.translate import _ class one2many_mod2(fields.one2many): def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): - if not context: + if context is None: context = {} res = {} for id in ids: @@ -115,7 +115,7 @@ class account_analytic_plan_instance(osv.osv): return super(account_analytic_plan_instance, self).copy(cr, uid, id, default, context=context) def _default_journal(self, cr, uid, context=None): - if not context: + if context is None: context = {} journal_obj = self.pool.get('account.journal') if context.has_key('journal_id') and context['journal_id']: @@ -148,6 +148,8 @@ class account_analytic_plan_instance(osv.osv): return self.name_get(cr, uid, ids, context or {}) def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): + if context is None: + context = {} wiz_id = self.pool.get('ir.actions.act_window').search(cr, uid, [("name","=","analytic.plan.create.model.action")], context=context) res = super(account_analytic_plan_instance,self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu) journal_obj = self.pool.get('account.journal') @@ -214,6 +216,8 @@ class account_analytic_plan_instance(osv.osv): return super(account_analytic_plan_instance, self).create(cr, uid, vals, context=context) def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True): + if context is None: + context = {} this = self.browse(cr, uid, ids[0], context=context) invoice_line_obj = self.pool.get('account.invoice.line') if this.plan_id and not vals.has_key('plan_id'): @@ -307,6 +311,8 @@ class account_move_line(osv.osv): return data def create_analytic_lines(self, cr, uid, ids, context=None): + if context is None: + context = {} super(account_move_line, self).create_analytic_lines(cr, uid, ids, context=context) analytic_line_obj = self.pool.get('account.analytic.line') for line in self.browse(cr, uid, ids, context=context): @@ -336,7 +342,9 @@ class account_move_line(osv.osv): analytic_line_obj.create(cr, uid, al_vals, context=context) return True - def fields_view_get(self, cr, uid, view_id=None, view_type='form', context={}, toolbar=False, submenu=False): + def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): + if context is None: + context = {} result = super(osv.osv, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu) return result @@ -437,7 +445,7 @@ class account_bank_statement(osv.osv): def create_move_from_st_line(self, cr, uid, st_line_id, company_currency_id, st_line_number, context=None): account_move_line_pool = self.pool.get('account.move.line') account_bank_statement_line_pool = self.pool.get('account.bank.statement.line') - st_line = account_bank_statement_line_pool.browse(cr, uid, st_line_id, context) + st_line = account_bank_statement_line_pool.browse(cr, uid, st_line_id, context=context) result = super(account_bank_statement,self).create_move_from_st_line(cr, uid, st_line_id, company_currency_id, st_line_number, context=context) move = st_line.move_ids and st_line.move_ids[0] or False if move: @@ -447,7 +455,7 @@ class account_bank_statement(osv.osv): def button_confirm_bank(self, cr, uid, ids, context=None): super(account_bank_statement,self).button_confirm_bank(cr, uid, ids, context=context) - for st in self.browse(cr, uid, ids, context): + for st in self.browse(cr, uid, ids, context=context): for st_line in st.line_ids: if st_line.analytics_id: if not st.journal_id.analytic_journal_id: diff --git a/addons/account_analytic_plans/i18n/account_analytic_plans.pot b/addons/account_analytic_plans/i18n/account_analytic_plans.pot index 26980ed8f0b..60fe4bf9f86 100644 --- a/addons/account_analytic_plans/i18n/account_analytic_plans.pot +++ b/addons/account_analytic_plans/i18n/account_analytic_plans.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-10 17:14:47+0000\n" -"PO-Revision-Date: 2010-12-10 17:14:47+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:37+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:37+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,18 +16,8 @@ msgstr "" "Plural-Forms: \n" #. module: account_analytic_plans -#: view:analytic.plan.create.model:0 -msgid "This distribution model has been saved.You will be able to reuse it later." -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance.line,plan_id:0 -msgid "Plan Id" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "From Date" +#: field:account.analytic.plan.instance,account4_ids:0 +msgid "Account4 Id" msgstr "" #. module: account_analytic_plans @@ -38,6 +28,26 @@ msgstr "" msgid "Crossovered Analytic" msgstr "" +#. module: account_analytic_plans +#: field:account.analytic.plan.instance,account5_ids:0 +msgid "Account5 Id" +msgstr "" + +#. module: account_analytic_plans +#: field:account.crossovered.analytic,date2:0 +msgid "End Date" +msgstr "" + +#. module: account_analytic_plans +#: field:account.analytic.plan.instance,account3_ids:0 +msgid "Account3 Id" +msgstr "" + +#. module: account_analytic_plans +#: field:account.analytic.plan.instance.line,rate:0 +msgid "Rate (%)" +msgstr "" + #. module: account_analytic_plans #: view:account.analytic.plan:0 #: field:account.analytic.plan,name:0 @@ -49,8 +59,95 @@ msgid "Analytic Plan" msgstr "" #. module: account_analytic_plans -#: model:ir.module.module,shortdesc:account_analytic_plans.module_meta_information -msgid "Multiple-plans management in Analytic Accounting" +#: view:analytic.plan.create.model:0 +msgid "This distribution model has been saved.You will be able to reuse it later." +msgstr "" + +#. module: account_analytic_plans +#: code:addons/account_analytic_plans/wizard/analytic_plan_create_model.py:0 +#, python-format +msgid "Please put a name and a code before saving the model !" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.model,name:account_analytic_plans.model_account_analytic_plan_instance_line +msgid "Analytic Instance Line" +msgstr "" + +#. module: account_analytic_plans +#: view:account.analytic.plan.instance.line:0 +msgid "Analytic Distribution Lines" +msgstr "" + +#. module: account_analytic_plans +#: view:account.crossovered.analytic:0 +msgid "Print" +msgstr "" + +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "To Date" +msgstr "" + +#. module: account_analytic_plans +#: field:account.analytic.plan.instance.line,plan_id:0 +msgid "Plan Id" +msgstr "" + +#. module: account_analytic_plans +#: sql_constraint:account.journal:0 +msgid "The name of the journal must be unique per company !" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.actions.act_window,name:account_analytic_plans.account_analytic_plan_instance_action +msgid "Analytic Distribution's Models" +msgstr "" + +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "Account Name" +msgstr "" + +#. module: account_analytic_plans +#: view:account.analytic.plan.instance.line:0 +msgid "Analytic Distribution Line" +msgstr "" + +#. module: account_analytic_plans +#: field:account.analytic.plan.instance,code:0 +msgid "Distribution Code" +msgstr "" + +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "Percentage" +msgstr "" + +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "Printing date" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.model,name:account_analytic_plans.model_sale_order_line +msgid "Sale Order Line" +msgstr "" + +#. module: account_analytic_plans +#: field:account.crossovered.analytic,empty_line:0 +msgid "Dont show empty lines" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.actions.act_window,name:account_analytic_plans.action_analytic_plan_create_model +msgid "analytic.plan.create.model.action" +msgstr "" + +#. module: account_analytic_plans +#: code:addons/account_analytic_plans/account_analytic_plans.py:0 +#, python-format +msgid "A model having this name and code already exists !" msgstr "" #. module: account_analytic_plans @@ -60,128 +157,27 @@ msgstr "" msgid "Analytic Journal" msgstr "" +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "100.00%" +msgstr "" + +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "Currency" +msgstr "" + +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "Analytic Account :" +msgstr "" + #. module: account_analytic_plans #: view:account.analytic.plan.line:0 #: model:ir.model,name:account_analytic_plans.model_account_analytic_plan_line msgid "Analytic Plan Line" msgstr "" -#. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_account_analytic_plan_instance -msgid "Analytic Plan Instance" -msgstr "" - -#. module: account_analytic_plans -#: view:analytic.plan.create.model:0 -msgid "Ok" -msgstr "" - -#. module: account_analytic_plans -#: constraint:account.move.line:0 -msgid "You can not create move line on closed account." -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance,plan_id:0 -msgid "Model's Plan" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance,account2_ids:0 -msgid "Account2 Id" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance,account_ids:0 -msgid "Account Id" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "Amount" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "Code" -msgstr "" - -#. module: account_analytic_plans -#: sql_constraint:account.move.line:0 -msgid "Wrong credit or debit value in accounting entry !" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance,account6_ids:0 -msgid "Account6 Id" -msgstr "" - -#. module: account_analytic_plans -#: model:ir.ui.menu,name:account_analytic_plans.menu_account_analytic_multi_plan_action -msgid "Multi Plans" -msgstr "" - -#. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_account_bank_statement_line -msgid "Bank Statement Line" -msgstr "" - -#. module: account_analytic_plans -#: constraint:account.invoice:0 -msgid "Error: BVR reference is required." -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance.line,analytic_account_id:0 -msgid "Analytic Account" -msgstr "" - -#. module: account_analytic_plans -#: sql_constraint:account.journal:0 -msgid "The code of the journal must be unique per company !" -msgstr "" - -#. module: account_analytic_plans -#: field:account.crossovered.analytic,ref:0 -msgid "Analytic Account Reference" -msgstr "" - -#. module: account_analytic_plans -#: constraint:account.move.line:0 -msgid "You can not create move line on receivable/payable account without partner" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "Printing date" -msgstr "" - -#. module: account_analytic_plans -#: model:ir.actions.act_window,name:account_analytic_plans.account_analytic_plan_instance_action -msgid "Analytic Distribution's Models" -msgstr "" - -#. module: account_analytic_plans -#: view:account.crossovered.analytic:0 -msgid "Print" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "Percentage" -msgstr "" - -#. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_sale_order_line -msgid "Sale Order Line" -msgstr "" - -#. module: account_analytic_plans -#: code:addons/account_analytic_plans/account_analytic_plans.py:0 -#, python-format -msgid "A model having this name and code already exists !" -msgstr "" - #. module: account_analytic_plans #: code:addons/account_analytic_plans/wizard/analytic_plan_create_model.py:0 #, python-format @@ -189,8 +185,30 @@ msgid "No analytic plan defined !" msgstr "" #. module: account_analytic_plans -#: field:account.analytic.plan.instance.line,rate:0 -msgid "Rate (%)" +#: report:account.analytic.account.crossovered.analytic:0 +msgid "Analytic Account Reference:" +msgstr "" + +#. module: account_analytic_plans +#: field:account.analytic.plan.line,name:0 +msgid "Plan Name" +msgstr "" + +#. module: account_analytic_plans +#: field:account.analytic.plan,default_instance_id:0 +msgid "Default Entries" +msgstr "" + +#. module: account_analytic_plans +#: constraint:account.move.line:0 +msgid "You can not create move line on closed account." +msgstr "" + +#. module: account_analytic_plans +#: code:addons/account_analytic_plans/account_analytic_plans.py:0 +#: code:addons/account_analytic_plans/wizard/analytic_plan_create_model.py:0 +#, python-format +msgid "Error" msgstr "" #. module: account_analytic_plans @@ -206,11 +224,36 @@ msgstr "" msgid "User Error" msgstr "" +#. module: account_analytic_plans +#: model:ir.model,name:account_analytic_plans.model_account_move_line +msgid "Journal Items" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.model,name:account_analytic_plans.model_analytic_plan_create_model +msgid "analytic.plan.create.model" +msgstr "" + +#. module: account_analytic_plans +#: field:account.analytic.plan.instance,account1_ids:0 +msgid "Account1 Id" +msgstr "" + #. module: account_analytic_plans #: field:account.analytic.plan.line,max_required:0 msgid "Maximum Allowed (%)" msgstr "" +#. module: account_analytic_plans +#: constraint:account.move.line:0 +msgid "Company must be same for its related account and period." +msgstr "" + +#. module: account_analytic_plans +#: field:account.analytic.plan.line,root_analytic_id:0 +msgid "Root Account" +msgstr "" + #. module: account_analytic_plans #: code:addons/account_analytic_plans/wizard/analytic_plan_create_model.py:0 #: view:analytic.plan.create.model:0 @@ -218,75 +261,80 @@ msgstr "" msgid "Distribution Model Saved" msgstr "" +#. module: account_analytic_plans +#: model:ir.model,name:account_analytic_plans.model_account_analytic_plan_instance +msgid "Analytic Plan Instance" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.actions.act_window,name:account_analytic_plans.account_analytic_instance_model_open +msgid "Distribution Models" +msgstr "" + +#. module: account_analytic_plans +#: view:analytic.plan.create.model:0 +msgid "Ok" +msgstr "" + +#. module: account_analytic_plans +#: constraint:account.move.line:0 +msgid "You can not create move line on receivable/payable account without partner" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.module.module,shortdesc:account_analytic_plans.module_meta_information +msgid "Multiple-plans management in Analytic Accounting" +msgstr "" + #. module: account_analytic_plans #: view:account.analytic.plan.line:0 msgid "Analytic Plan Lines" msgstr "" #. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_account_invoice_line -msgid "Invoice Line" +#: field:account.analytic.plan.line,min_required:0 +msgid "Minimum Allowed (%)" msgstr "" #. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "Currency" +#: field:account.analytic.plan.instance,plan_id:0 +msgid "Model's Plan" msgstr "" #. module: account_analytic_plans -#: field:account.crossovered.analytic,date1:0 -msgid "Start Date" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "Company" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance,account5_ids:0 -msgid "Account5 Id" -msgstr "" - -#. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_account_analytic_plan_instance_line -msgid "Analytic Instance Line" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.line,root_analytic_id:0 -msgid "Root Account" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "To Date" +#: field:account.analytic.plan.instance,account2_ids:0 +msgid "Account2 Id" msgstr "" #. module: account_analytic_plans #: code:addons/account_analytic_plans/account_analytic_plans.py:0 #, python-format -msgid "You have to define an analytic journal on the '%s' journal!" +msgid "The Total Should be Between %s and %s" msgstr "" #. module: account_analytic_plans -#: constraint:account.invoice:0 -msgid "Error: Invalid Bvr Number (wrong checksum)." -msgstr "" - -#. module: account_analytic_plans -#: field:account.crossovered.analytic,empty_line:0 -msgid "Dont show empty lines" -msgstr "" - -#. module: account_analytic_plans -#: model:ir.actions.act_window,name:account_analytic_plans.action_analytic_plan_create_model -msgid "analytic.plan.create.model.action" +#: model:ir.model,name:account_analytic_plans.model_account_bank_statement_line +msgid "Bank Statement Line" msgstr "" #. module: account_analytic_plans #: report:account.analytic.account.crossovered.analytic:0 -msgid "Analytic Account :" +msgid "Amount" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.model,name:account_analytic_plans.model_account_crossovered_analytic +msgid "Print Crossovered Analytic" +msgstr "" + +#. module: account_analytic_plans +#: sql_constraint:account.move.line:0 +msgid "Wrong credit or debit value in accounting entry !" +msgstr "" + +#. module: account_analytic_plans +#: field:account.analytic.plan.instance,account6_ids:0 +msgid "Account6 Id" msgstr "" #. module: account_analytic_plans @@ -323,53 +371,6 @@ msgid "This module allows to use several analytic plans, according to the genera " " msgstr "" -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "Analytic Account Reference:" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.line,name:0 -msgid "Plan Name" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan,default_instance_id:0 -msgid "Default Entries" -msgstr "" - -#. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_account_move_line -msgid "Journal Items" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance,account1_ids:0 -msgid "Account1 Id" -msgstr "" - -#. module: account_analytic_plans -#: constraint:account.move.line:0 -msgid "Company must be same for its related account and period." -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.line,min_required:0 -msgid "Minimum Allowed (%)" -msgstr "" - -#. module: account_analytic_plans -#: help:account.analytic.plan.line,root_analytic_id:0 -msgid "Root account of this plan." -msgstr "" - -#. module: account_analytic_plans -#: code:addons/account_analytic_plans/account_analytic_plans.py:0 -#: code:addons/account_analytic_plans/wizard/analytic_plan_create_model.py:0 -#, python-format -msgid "Error" -msgstr "" - #. module: account_analytic_plans #: view:analytic.plan.create.model:0 msgid "Save This Distribution as a Model" @@ -381,14 +382,29 @@ msgid "Quantity" msgstr "" #. module: account_analytic_plans -#: code:addons/account_analytic_plans/wizard/analytic_plan_create_model.py:0 -#, python-format -msgid "Please put a name and a code before saving the model !" +#: model:ir.ui.menu,name:account_analytic_plans.menu_account_analytic_multi_plan_action +msgid "Multi Plans" msgstr "" #. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_account_crossovered_analytic -msgid "Print Crossovered Analytic" +#: field:account.analytic.plan.instance,account_ids:0 +msgid "Account Id" +msgstr "" + +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "Code" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.model,name:account_analytic_plans.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_analytic_plans +#: code:addons/account_analytic_plans/account_analytic_plans.py:0 +#, python-format +msgid "You have to define an analytic journal on the '%s' journal!" msgstr "" #. module: account_analytic_plans @@ -397,66 +413,24 @@ msgstr "" msgid "No Analytic Journal !" msgstr "" +#. module: account_analytic_plans +#: field:account.analytic.plan.line,sequence:0 +msgid "Sequence" +msgstr "" + +#. module: account_analytic_plans +#: model:ir.model,name:account_analytic_plans.model_account_invoice_line +msgid "Invoice Line" +msgstr "" + #. module: account_analytic_plans #: model:ir.model,name:account_analytic_plans.model_account_bank_statement msgid "Bank Statement" msgstr "" #. module: account_analytic_plans -#: field:account.analytic.plan.instance,account3_ids:0 -msgid "Account3 Id" -msgstr "" - -#. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_account_invoice -msgid "Invoice" -msgstr "" - -#. module: account_analytic_plans -#: view:account.crossovered.analytic:0 -#: view:analytic.plan.create.model:0 -msgid "Cancel" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance,account4_ids:0 -msgid "Account4 Id" -msgstr "" - -#. module: account_analytic_plans -#: view:account.analytic.plan.instance.line:0 -msgid "Analytic Distribution Lines" -msgstr "" - -#. module: account_analytic_plans -#: code:addons/account_analytic_plans/account_analytic_plans.py:0 -#, python-format -msgid "The Total Should be Between %s and %s" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "at" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "Account Name" -msgstr "" - -#. module: account_analytic_plans -#: view:account.analytic.plan.instance.line:0 -msgid "Analytic Distribution Line" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.instance,code:0 -msgid "Distribution Code" -msgstr "" - -#. module: account_analytic_plans -#: report:account.analytic.account.crossovered.analytic:0 -msgid "100.00%" +#: field:account.analytic.plan.instance.line,analytic_account_id:0 +msgid "Analytic Account" msgstr "" #. module: account_analytic_plans @@ -471,39 +445,40 @@ msgid "Analytic Distribution" msgstr "" #. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_account_journal -msgid "Journal" +#: code:addons/account_analytic_plans/account_analytic_plans.py:0 +#, python-format +msgid "Value Error" msgstr "" #. module: account_analytic_plans -#: model:ir.model,name:account_analytic_plans.model_analytic_plan_create_model -msgid "analytic.plan.create.model" +#: help:account.analytic.plan.line,root_analytic_id:0 +msgid "Root account of this plan." msgstr "" #. module: account_analytic_plans -#: field:account.crossovered.analytic,date2:0 -msgid "End Date" +#: field:account.crossovered.analytic,ref:0 +msgid "Analytic Account Reference" msgstr "" #. module: account_analytic_plans -#: model:ir.actions.act_window,name:account_analytic_plans.account_analytic_instance_model_open -msgid "Distribution Models" -msgstr "" - -#. module: account_analytic_plans -#: field:account.analytic.plan.line,sequence:0 -msgid "Sequence" +#: model:ir.model,name:account_analytic_plans.model_account_invoice +msgid "Invoice" msgstr "" #. module: account_analytic_plans #: sql_constraint:account.journal:0 -msgid "The name of the journal must be unique per company !" +msgid "The code of the journal must be unique per company !" msgstr "" #. module: account_analytic_plans -#: code:addons/account_analytic_plans/account_analytic_plans.py:0 -#, python-format -msgid "Value Error" +#: view:account.crossovered.analytic:0 +#: view:analytic.plan.create.model:0 +msgid "Cancel" +msgstr "" + +#. module: account_analytic_plans +#: field:account.crossovered.analytic,date1:0 +msgid "Start Date" msgstr "" #. module: account_analytic_plans @@ -511,3 +486,18 @@ msgstr "" msgid "You can not create move line on view account." msgstr "" +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "at" +msgstr "" + +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "Company" +msgstr "" + +#. module: account_analytic_plans +#: report:account.analytic.account.crossovered.analytic:0 +msgid "From Date" +msgstr "" + diff --git a/addons/account_analytic_plans/i18n/es.po b/addons/account_analytic_plans/i18n/es.po index 909b3f2291f..c8e700e0e7d 100644 --- a/addons/account_analytic_plans/i18n/es.po +++ b/addons/account_analytic_plans/i18n/es.po @@ -7,14 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-09 11:08+0000\n" -"Last-Translator: Jordi Esteve (www.zikzakmedia.com) " -"\n" +"PO-Revision-Date: 2010-12-15 22:15+0000\n" +"Last-Translator: Carlos @ smile.fr \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:03+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_analytic_plans @@ -133,7 +132,7 @@ msgstr "Línea extracto bancario" #. module: account_analytic_plans #: constraint:account.invoice:0 msgid "Error: BVR reference is required." -msgstr "" +msgstr "Error: La referencia BVR es necesaria." #. module: account_analytic_plans #: field:account.analytic.plan.instance.line,analytic_account_id:0 @@ -279,7 +278,7 @@ msgstr "¡Debe definir un diario analítico en el diario '%s'!" #. module: account_analytic_plans #: constraint:account.invoice:0 msgid "Error: Invalid Bvr Number (wrong checksum)." -msgstr "" +msgstr "Error: Número BVR no válido (checksum erróneo)." #. module: account_analytic_plans #: field:account.crossovered.analytic,empty_line:0 diff --git a/addons/account_analytic_plans/i18n/fr.po b/addons/account_analytic_plans/i18n/fr.po index 0caef434c56..4687328e245 100644 --- a/addons/account_analytic_plans/i18n/fr.po +++ b/addons/account_analytic_plans/i18n/fr.po @@ -7,13 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-09 11:29+0000\n" -"Last-Translator: Quentin THEURET \n" +"PO-Revision-Date: 2010-12-15 20:24+0000\n" +"Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) " +"\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:03+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_analytic_plans @@ -113,7 +114,7 @@ msgstr "Code" #. module: account_analytic_plans #: sql_constraint:account.move.line:0 msgid "Wrong credit or debit value in accounting entry !" -msgstr "" +msgstr "Valeur erronée au crédit ou au débit de l'écriture comptable !" #. module: account_analytic_plans #: field:account.analytic.plan.instance,account6_ids:0 @@ -133,7 +134,7 @@ msgstr "Ligne de relevé de banque" #. module: account_analytic_plans #: constraint:account.invoice:0 msgid "Error: BVR reference is required." -msgstr "" +msgstr "Erreur: la référence BVR est requise." #. module: account_analytic_plans #: field:account.analytic.plan.instance.line,analytic_account_id:0 @@ -143,7 +144,7 @@ msgstr "Compte analytique" #. module: account_analytic_plans #: sql_constraint:account.journal:0 msgid "The code of the journal must be unique per company !" -msgstr "" +msgstr "Le code du journal doit être unique dans chaque société !" #. module: account_analytic_plans #: field:account.crossovered.analytic,ref:0 @@ -155,6 +156,8 @@ msgstr "Référence du compte analytique" msgid "" "You can not create move line on receivable/payable account without partner" msgstr "" +"Vous ne pouvez pas créer de lignes d'écriture sur un compte client " +"débiteur/fournisseur créditeur sans partenaire" #. module: account_analytic_plans #: report:account.analytic.account.crossovered.analytic:0 @@ -277,7 +280,7 @@ msgstr "Vous devez définir un journal analytique sur le journal '%s' !" #. module: account_analytic_plans #: constraint:account.invoice:0 msgid "Error: Invalid Bvr Number (wrong checksum)." -msgstr "" +msgstr "Erreur : Nombre BVR non valide (somme de contrôle fausse)." #. module: account_analytic_plans #: field:account.crossovered.analytic,empty_line:0 @@ -395,7 +398,7 @@ msgstr "Identifiant du Compte1" #. module: account_analytic_plans #: constraint:account.move.line:0 msgid "Company must be same for its related account and period." -msgstr "" +msgstr "La société doit être la même pour les comptes et périodes liées." #. module: account_analytic_plans #: field:account.analytic.plan.line,min_required:0 @@ -554,6 +557,7 @@ msgstr "Erreur de valeur" #: constraint:account.move.line:0 msgid "You can not create move line on view account." msgstr "" +"Vous ne pouvez pas créer de ligne d'écriture sur un compte de type \"Vue\"." #~ msgid "" #~ "The Object name must start with x_ and not contain any special character !" diff --git a/addons/account_analytic_plans/i18n/pt.po b/addons/account_analytic_plans/i18n/pt.po index 37a897acecf..e5bf4cd4e33 100644 --- a/addons/account_analytic_plans/i18n/pt.po +++ b/addons/account_analytic_plans/i18n/pt.po @@ -13,7 +13,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:03+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_analytic_plans diff --git a/addons/account_analytic_plans/wizard/analytic_plan_create_model.py b/addons/account_analytic_plans/wizard/analytic_plan_create_model.py index 777421798cd..0581197aaca 100644 --- a/addons/account_analytic_plans/wizard/analytic_plan_create_model.py +++ b/addons/account_analytic_plans/wizard/analytic_plan_create_model.py @@ -30,6 +30,8 @@ class analytic_plan_create_model(osv.osv_memory): plan_obj = self.pool.get('account.analytic.plan.instance') mod_obj = self.pool.get('ir.model.data') anlytic_plan_obj = self.pool.get('account.analytic.plan') + if context is None: + context = {} if 'active_id' in context and context['active_id']: plan = plan_obj.browse(cr, uid, context['active_id'], context=context) if (not plan.name) or (not plan.code): diff --git a/addons/account_anglo_saxon/i18n/account_anglo_saxon.pot b/addons/account_anglo_saxon/i18n/account_anglo_saxon.pot index 91f00a12acc..4c490b924f1 100644 --- a/addons/account_anglo_saxon/i18n/account_anglo_saxon.pot +++ b/addons/account_anglo_saxon/i18n/account_anglo_saxon.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:51+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:51+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:37+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:37+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/account_anglo_saxon/i18n/fr.po b/addons/account_anglo_saxon/i18n/fr.po index 989301efa70..1b2a8a7629b 100644 --- a/addons/account_anglo_saxon/i18n/fr.po +++ b/addons/account_anglo_saxon/i18n/fr.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-12-04 08:35+0000\n" +"PO-Revision-Date: 2010-12-15 20:26+0000\n" "Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) " "\n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-14 05:34+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_anglo_saxon @@ -26,18 +26,20 @@ msgstr "Catégorie de produit" #. module: account_anglo_saxon #: constraint:product.template:0 msgid "Error: UOS must be in a different category than the UOM" -msgstr "" +msgstr "Erreur : l'UdV doit appartenir à une autre catégorie que l'UdM" #. module: account_anglo_saxon #: constraint:product.category:0 msgid "Error ! You can not create recursive categories." -msgstr "" +msgstr "Erreur ! Vous ne pouvez pas créer de catégorie récursive." #. module: account_anglo_saxon #: constraint:product.template:0 msgid "" "Error: The default UOM and the purchase UOM must be in the same category." msgstr "" +"Erreur: l'UdM par défaut et l'UdM d'achat doivent appartenir à la même " +"catégorie." #. module: account_anglo_saxon #: model:ir.model,name:account_anglo_saxon.model_account_invoice_line diff --git a/addons/account_anglo_saxon/i18n/nl.po b/addons/account_anglo_saxon/i18n/nl.po index 8d19dc00e7d..62fe23bc907 100644 --- a/addons/account_anglo_saxon/i18n/nl.po +++ b/addons/account_anglo_saxon/i18n/nl.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-11-26 12:04+0000\n" -"Last-Translator: OpenERP Administrators \n" +"PO-Revision-Date: 2010-12-15 14:28+0000\n" +"Last-Translator: Jan Verlaan (Veritos) \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-14 05:34+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_anglo_saxon @@ -26,17 +26,20 @@ msgstr "Productcategorie" #: constraint:product.template:0 msgid "Error: UOS must be in a different category than the UOM" msgstr "" +"Fout: Verkoopeenheid moet in een andere categorie staan dan de maateenheid" #. module: account_anglo_saxon #: constraint:product.category:0 msgid "Error ! You can not create recursive categories." -msgstr "" +msgstr "Fout ! U kunt geen recursieve categorieën aanmaken." #. module: account_anglo_saxon #: constraint:product.template:0 msgid "" "Error: The default UOM and the purchase UOM must be in the same category." msgstr "" +"Fout: de standaard meeteenheid en de inkoop-meeteenheid moeten in de zelfde " +"categorie liggen." #. module: account_anglo_saxon #: model:ir.model,name:account_anglo_saxon.model_account_invoice_line diff --git a/addons/account_anglo_saxon/i18n/pt.po b/addons/account_anglo_saxon/i18n/pt.po index bc6913bad7e..aabfa63709d 100644 --- a/addons/account_anglo_saxon/i18n/pt.po +++ b/addons/account_anglo_saxon/i18n/pt.po @@ -14,7 +14,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:17+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_anglo_saxon diff --git a/addons/account_anglo_saxon/invoice.py b/addons/account_anglo_saxon/invoice.py index ff356547a83..a0aab8298dc 100644 --- a/addons/account_anglo_saxon/invoice.py +++ b/addons/account_anglo_saxon/invoice.py @@ -27,8 +27,8 @@ class account_invoice_line(osv.osv): _inherit = "account.invoice.line" def move_line_get(self, cr, uid, invoice_id, context=None): - res = super(account_invoice_line,self).move_line_get(cr, uid, invoice_id, context) - inv = self.pool.get('account.invoice').browse(cr, uid, invoice_id) + res = super(account_invoice_line,self).move_line_get(cr, uid, invoice_id, context=context) + inv = self.pool.get('account.invoice').browse(cr, uid, invoice_id, context=context) if inv.type in ('out_invoice','out_refund'): for i_line in inv.invoice_line: if i_line.product_id: @@ -144,7 +144,7 @@ class account_invoice_line(osv.osv): if not oa: oa = product_obj.categ_id.property_stock_account_output_categ and product_obj.categ_id.property_stock_account_output_categ.id if oa: - fpos = fposition_id and self.pool.get('account.fiscal.position').browse(cr, uid, fposition_id) or False + fpos = fposition_id and self.pool.get('account.fiscal.position').browse(cr, uid, fposition_id, context=context) or False a = self.pool.get('account.fiscal.position').map_account(cr, uid, fpos, oa) res['value'].update({'account_id':a}) return res diff --git a/addons/account_anglo_saxon/stock.py b/addons/account_anglo_saxon/stock.py index 6b0f367abf0..a544b9a6e2a 100644 --- a/addons/account_anglo_saxon/stock.py +++ b/addons/account_anglo_saxon/stock.py @@ -31,7 +31,7 @@ class stock_picking(osv.osv): def action_invoice_create(self, cr, uid, ids, journal_id=False, group=False, type='out_invoice', context=None): '''Return ids of created invoices for the pickings''' - res = super(stock_picking,self).action_invoice_create(cr, uid, ids, journal_id, group, type, context) + res = super(stock_picking,self).action_invoice_create(cr, uid, ids, journal_id, group, type, context=context) if type == 'in_refund': for inv in self.pool.get('account.invoice').browse(cr, uid, res.values(), context=context): for ol in inv.invoice_line: diff --git a/addons/account_budget/account_budget.py b/addons/account_budget/account_budget.py index 87b7573a68a..f6e7c7e3990 100644 --- a/addons/account_budget/account_budget.py +++ b/addons/account_budget/account_budget.py @@ -108,10 +108,12 @@ crossovered_budget() class crossovered_budget_lines(osv.osv): - def _prac_amt(self, cr, uid, ids, context={}): + def _prac_amt(self, cr, uid, ids, context=None): res = {} result = 0.0 - for line in self.browse(cr, uid, ids): + if context is None: + context = {} + for line in self.browse(cr, uid, ids, context=context): acc_ids = [x.id for x in line.general_budget_id.account_ids] if not acc_ids: raise osv.except_osv(_('Error!'),_("The General Budget '%s' has no Accounts!") % str(line.general_budget_id.name)) @@ -131,15 +133,17 @@ class crossovered_budget_lines(osv.osv): res[line.id] = result return res - def _prac(self, cr, uid, ids, name, args, context): + def _prac(self, cr, uid, ids, name, args, context=None): res={} - for line in self.browse(cr, uid, ids): + for line in self.browse(cr, uid, ids, context=context): res[line.id] = self._prac_amt(cr, uid, [line.id], context=context)[line.id] return res - def _theo_amt(self, cr, uid, ids, context={}): + def _theo_amt(self, cr, uid, ids, context=None): res = {} - for line in self.browse(cr, uid, ids): + if context is None: + context = {} + for line in self.browse(cr, uid, ids, context=context): today = datetime.datetime.today() date_to = today.strftime("%Y-%m-%d") date_from = line.date_from @@ -167,15 +171,15 @@ class crossovered_budget_lines(osv.osv): res[line.id] = theo_amt return res - def _theo(self, cr, uid, ids, name, args, context): + def _theo(self, cr, uid, ids, name, args, context=None): res = {} - for line in self.browse(cr, uid, ids): + for line in self.browse(cr, uid, ids, context=context): res[line.id] = self._theo_amt(cr, uid, [line.id], context=context)[line.id] return res - def _perc(self, cr, uid, ids, name, args, context): + def _perc(self, cr, uid, ids, name, args, context=None): res = {} - for line in self.browse(cr, uid, ids): + for line in self.browse(cr, uid, ids, context=context): if line.theoritical_amount <> 0.00: res[line.id] = float(line.practical_amount or 0.0 / line.theoritical_amount) * 100 else: diff --git a/addons/account_budget/i18n/account_budget.pot b/addons/account_budget/i18n/account_budget.pot index 40d9533a0f2..98dd022769e 100644 --- a/addons/account_budget/i18n/account_budget.pot +++ b/addons/account_budget/i18n/account_budget.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:52+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:52+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:38+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:38+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/account_budget/i18n/es.po b/addons/account_budget/i18n/es.po index 6bb747145ad..4ca2fcf3ed3 100644 --- a/addons/account_budget/i18n/es.po +++ b/addons/account_budget/i18n/es.po @@ -7,14 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-12-09 07:28+0000\n" -"Last-Translator: Jordi Esteve (www.zikzakmedia.com) " -"\n" +"PO-Revision-Date: 2010-12-15 22:19+0000\n" +"Last-Translator: Carlos @ smile.fr \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:14+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_budget @@ -51,6 +50,15 @@ msgid "" "revenue per analytic account and monitor its evolution based on the actuals " "realised during that period." msgstr "" +"Un presupuesto es una previsión de ingresos y gastos esperados de su empresa " +"durante un período futuro. Con un presupuesto, una empresa es capaz de mirar " +"cuidadosamente la cantidad de dinero que manejará durante un período " +"determinado, y decidir la mejor manera de dividirlo entre diferentes " +"categorías. Llevando el seguimiento de dónde va su dinero, usted puede ser " +"menos propenso a gastar en exceso, y tiene más probabilidades de alcanzar " +"sus metas financieras. Programe un presupuesto detallando los ingresos " +"previstos por cuenta analítica y controle su evolución sobre la base de los " +"datos reales ejecutados durante ese período." #. module: account_budget #: view:crossovered.budget:0 diff --git a/addons/account_budget/i18n/fr.po b/addons/account_budget/i18n/fr.po index eb0b942fa3d..dee719af0b6 100644 --- a/addons/account_budget/i18n/fr.po +++ b/addons/account_budget/i18n/fr.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-11-24 09:39+0000\n" +"PO-Revision-Date: 2010-12-15 20:29+0000\n" "Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) " "\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:14+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_budget @@ -50,6 +50,15 @@ msgid "" "revenue per analytic account and monitor its evolution based on the actuals " "realised during that period." msgstr "" +"Un budget est une prévision des revenus et des dépenses de l'entreprise sur " +"une période dans le futur. Avec un budget, une société est capable de voir " +"attentivement sur combien d'argent elle peut compter pendant une période " +"donnée, et trouver la meilleure façon de le partager sur plusieurs " +"catégories. En gardant une trace d'où l'argent va, vous serez probablement " +"en mesure de réduire les dépassements et également d'atteindre vos objectifs " +"financiers. Prévoyez un budget en détaillant les revenus espérés par comptes " +"analytiques et surveillez leur évolution en se basant sur les dépenses " +"réelles au cours de cette période." #. module: account_budget #: view:crossovered.budget:0 @@ -141,7 +150,7 @@ msgstr "Description" #. module: account_budget #: report:crossovered.budget.report:0 msgid "Currency" -msgstr "" +msgstr "Devise" #. module: account_budget #: report:crossovered.budget.report:0 @@ -188,7 +197,7 @@ msgstr "Terminé" #: report:account.budget:0 #: report:crossovered.budget.report:0 msgid "Practical Amt" -msgstr "" +msgstr "Total réel" #. module: account_budget #: view:account.budget.post:0 @@ -318,7 +327,7 @@ msgstr "Début de la période" #. module: account_budget #: model:ir.model,name:account_budget.model_account_budget_crossvered_summary_report msgid "Account Budget crossvered summary report" -msgstr "" +msgstr "Rapport résumé du budget croisé" #. module: account_budget #: report:account.budget:0 @@ -448,7 +457,7 @@ msgstr "Gestion Budgétaire" #. module: account_budget #: constraint:account.analytic.account:0 msgid "Error! You can not create recursive analytic accounts." -msgstr "" +msgstr "Erreur ! Vous ne pouvez pas créer de comptes analytiques récursifs." #. module: account_budget #: report:account.budget:0 diff --git a/addons/account_budget/i18n/pt.po b/addons/account_budget/i18n/pt.po index 4b54eb2fab2..ca092fcf64c 100644 --- a/addons/account_budget/i18n/pt.po +++ b/addons/account_budget/i18n/pt.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-08-02 21:07+0000\n" -"Last-Translator: mga (Open ERP) \n" +"PO-Revision-Date: 2010-12-15 05:16+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:14+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_budget diff --git a/addons/account_budget/wizard/account_budget_analytic.py b/addons/account_budget/wizard/account_budget_analytic.py index ef970c92904..b2a33434016 100644 --- a/addons/account_budget/wizard/account_budget_analytic.py +++ b/addons/account_budget/wizard/account_budget_analytic.py @@ -39,7 +39,7 @@ class account_budget_analytic(osv.osv_memory): datas = {} if context is None: context = {} - data = self.read(cr, uid, ids)[0] + data = self.read(cr, uid, ids, context=context)[0] datas = { 'ids': context.get('active_ids',[]), 'model': 'account.analytic.account', diff --git a/addons/account_budget/wizard/account_budget_crossovered_report.py b/addons/account_budget/wizard/account_budget_crossovered_report.py index 99c6989e845..5667a264d2a 100644 --- a/addons/account_budget/wizard/account_budget_crossovered_report.py +++ b/addons/account_budget/wizard/account_budget_crossovered_report.py @@ -39,7 +39,7 @@ class account_budget_crossvered_report(osv.osv_memory): datas = {} if context is None: context = {} - data = self.read(cr, uid, ids)[0] + data = self.read(cr, uid, ids, context=context)[0] datas = { 'ids': context.get('active_ids',[]), 'model': 'crossovered.budget', diff --git a/addons/account_budget/wizard/account_budget_crossovered_summary_report.py b/addons/account_budget/wizard/account_budget_crossovered_summary_report.py index ad0237af051..c2e34b2f2da 100644 --- a/addons/account_budget/wizard/account_budget_crossovered_summary_report.py +++ b/addons/account_budget/wizard/account_budget_crossovered_summary_report.py @@ -41,7 +41,7 @@ class account_budget_crossvered_summary_report(osv.osv_memory): datas = {} if context is None: context = {} - data = self.read(cr, uid, ids)[0] + data = self.read(cr, uid, ids, context=context)[0] datas = { 'ids': context.get('active_ids',[]), 'model': 'crossovered.budge', diff --git a/addons/account_budget/wizard/account_budget_report.py b/addons/account_budget/wizard/account_budget_report.py index 67359cf45f1..a85ff42fe4d 100644 --- a/addons/account_budget/wizard/account_budget_report.py +++ b/addons/account_budget/wizard/account_budget_report.py @@ -40,7 +40,7 @@ class account_budget_report(osv.osv_memory): datas = {} if context is None: context = {} - data = self.read(cr, uid, ids)[0] + data = self.read(cr, uid, ids, context=context)[0] datas = { 'ids': context.get('active_ids',[]), 'model': 'account.budget.post', diff --git a/addons/account_cancel/i18n/account_cancel.pot b/addons/account_cancel/i18n/account_cancel.pot index 5108a621e1f..d6c036e31f1 100644 --- a/addons/account_cancel/i18n/account_cancel.pot +++ b/addons/account_cancel/i18n/account_cancel.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:52+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:52+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:38+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:38+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/account_chart/i18n/account_chart.pot b/addons/account_chart/i18n/account_chart.pot index 14066c7105c..0bf5b9ad036 100644 --- a/addons/account_chart/i18n/account_chart.pot +++ b/addons/account_chart/i18n/account_chart.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:53+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:53+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:38+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:38+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/account_coda/account_coda.py b/addons/account_coda/account_coda.py index 0bb7228d821..e2cde58fd5c 100644 --- a/addons/account_coda/account_coda.py +++ b/addons/account_coda/account_coda.py @@ -43,6 +43,8 @@ class account_coda(osv.osv): } def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): + if context is None: + context = {} res = super(account_coda, self).search(cr, user, args=args, offset=offset, limit=limit, order=order, context=context, count=count) if context.get('bank_statement', False) and not res: diff --git a/addons/account_coda/i18n/account_coda.pot b/addons/account_coda/i18n/account_coda.pot index c0a1036a337..2c8a3d548e0 100644 --- a/addons/account_coda/i18n/account_coda.pot +++ b/addons/account_coda/i18n/account_coda.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:53+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:53+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:39+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:39+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/account_coda/wizard/account_coda_import.py b/addons/account_coda/wizard/account_coda_import.py index a52528e2fa5..6d3743116db 100644 --- a/addons/account_coda/wizard/account_coda_import.py +++ b/addons/account_coda/wizard/account_coda_import.py @@ -66,13 +66,13 @@ class account_coda_import(osv.osv_memory): mod_obj = self.pool.get('ir.model.data') line_obj = self.pool.get('account.move.line') - if not context: + if context is None: context = {} data = self.read(cr, uid, ids)[0] codafile = data['coda'] - journal_code = journal_obj.browse(cr, uid, data['journal_id'], context).code + journal_code = journal_obj.browse(cr, uid, data['journal_id'], context=context).code period = account_period_obj.find(cr, uid, context=context)[0] def_pay_acc = data['def_payable'] @@ -155,7 +155,7 @@ class account_coda_import(osv.osv_memory): bank_ids = partner_bank_obj.search(cr, uid, [('acc_number', '=', st_line_partner_acc)]) bank_statement_lines[st_line_name].update({'cntry_number': cntry_number, 'contry_name': contry_name}) if bank_ids: - bank = partner_bank_obj.browse(cr, uid, bank_ids[0], context) + bank = partner_bank_obj.browse(cr, uid, bank_ids[0], context=context) if line and bank.partner_id: bank_statement_lines[st_line_name].update({'partner_id': bank.partner_id.id}) if bank_statement_lines[st_line_name]['amount'] < 0: @@ -321,7 +321,7 @@ class account_coda_import(osv.osv_memory): } def action_open_window(self, cr, uid, data, context=None): - if not context: + if context is None: context = {} return { diff --git a/addons/account_followup/i18n/account_followup.pot b/addons/account_followup/i18n/account_followup.pot index 9ff84d9c9c7..e30aaca5f2f 100644 --- a/addons/account_followup/i18n/account_followup.pot +++ b/addons/account_followup/i18n/account_followup.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:54+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:54+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:40+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:40+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/account_followup/i18n/el.po b/addons/account_followup/i18n/el.po index 98b78ff45e3..10803764999 100644 --- a/addons/account_followup/i18n/el.po +++ b/addons/account_followup/i18n/el.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-12-14 16:28+0000\n" +"PO-Revision-Date: 2010-12-16 01:30+0000\n" "Last-Translator: Dimitris Andavoglou \n" "Language-Team: Greek \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:52+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:44+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_followup diff --git a/addons/account_followup/i18n/pt.po b/addons/account_followup/i18n/pt.po index 3385c0991bc..a1eb5088d5c 100644 --- a/addons/account_followup/i18n/pt.po +++ b/addons/account_followup/i18n/pt.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-08-02 21:37+0000\n" -"Last-Translator: mga (Open ERP) \n" +"PO-Revision-Date: 2010-12-16 00:03+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:52+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:44+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_followup diff --git a/addons/account_followup/report/account_followup_print.py b/addons/account_followup/report/account_followup_print.py index 8bfb3fff1a9..30cbe058fd4 100644 --- a/addons/account_followup/report/account_followup_print.py +++ b/addons/account_followup/report/account_followup_print.py @@ -58,7 +58,7 @@ class report_rappel(report_sxw.rml_parse): movelines = moveline_obj.read(self.cr, self.uid, movelines) return movelines - def _get_text(self, partner, followup_id, context={}): + def _get_text(self, partner, followup_id, context=None): fp_obj = pooler.get_pool(self.cr.dbname).get('account_followup.followup') fp_line = fp_obj.browse(self.cr, self.uid, followup_id).followup_line li_delay = [] diff --git a/addons/account_followup/wizard/account_followup_print.py b/addons/account_followup/wizard/account_followup_print.py index 174061438f8..7d296f74f76 100644 --- a/addons/account_followup/wizard/account_followup_print.py +++ b/addons/account_followup/wizard/account_followup_print.py @@ -39,7 +39,7 @@ class account_followup_print(osv.osv_memory): context = {} if context.get('active_model', 'ir.ui.menu') == 'account_followup.followup': return context.get('active_id', False) - company_id = self.pool.get('res.users').browse(cr, uid, uid).company_id.id + company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id followp_id = self.pool.get('account_followup.followup').search(cr, uid, [('company_id', '=', company_id)], context=context) return followp_id and followp_id[0] or False @@ -48,7 +48,7 @@ class account_followup_print(osv.osv_memory): if context is None: context = {} - data = self.read(cr, uid, ids, [])[0] + data = self.read(cr, uid, ids, [], context=context)[0] model_data_ids = mod_obj.search(cr, uid, [('model','=','ir.ui.view'),('name','=','view_account_followup_print_all')], context=context) resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id'] context.update({'followup_id': data['followup_id'], 'date':data['date']}) @@ -146,7 +146,7 @@ class account_followup_print_all(osv.osv_memory): if context is None: context = {} if ids: - data = self.read(cr, uid, ids, [])[0] + data = self.read(cr, uid, ids, [], context=context)[0] cr.execute( "SELECT l.partner_id, l.followup_line_id,l.date_maturity, l.date, l.id "\ "FROM account_move_line AS l "\ @@ -208,14 +208,14 @@ class account_followup_print_all(osv.osv_memory): if context is None: context = {} - data = self.read(cr, uid, ids, [])[0] + data = self.read(cr, uid, ids, [], context=context)[0] model_data_ids = mod_obj.search(cr, uid, [('model','=','ir.ui.view'),('name','=','view_account_followup_print_all_msg')], context=context) resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id'] if data['email_conf']: msg_sent = '' msg_unsent = '' - data_user = user_obj.browse(cr, uid, uid) - move_lines = line_obj.browse(cr, uid, data['partner_ids']) + data_user = user_obj.browse(cr, uid, uid, context=context) + move_lines = line_obj.browse(cr, uid, data['partner_ids'], context=context) partners = [] dict_lines = {} for line in move_lines: @@ -223,7 +223,7 @@ class account_followup_print_all(osv.osv_memory): dict_lines[line.name.id] =line for partner in partners: ids_lines = move_obj.search(cr,uid,[('partner_id','=',partner.id),('reconcile_id','=',False),('account_id.type','in',['receivable'])]) - data_lines = move_obj.browse(cr, uid, ids_lines) + data_lines = move_obj.browse(cr, uid, ids_lines, context=context) followup_data = dict_lines[partner.id] dest = False if partner.address: @@ -306,7 +306,7 @@ class account_followup_print_all(osv.osv_memory): def do_print(self, cr, uid, ids, context=None): if context is None: context = {} - data = self.read(cr, uid, ids, [])[0] + data = self.read(cr, uid, ids, [], context=context)[0] res = self._get_partners_followp(cr, uid, ids, context)['to_update'] to_update = res data['followup_id'] = 'followup_id' in context and context['followup_id'] or False diff --git a/addons/account_invoice_layout/account_invoice_layout.py b/addons/account_invoice_layout/account_invoice_layout.py index 2c2a02d4b9d..3337710420f 100644 --- a/addons/account_invoice_layout/account_invoice_layout.py +++ b/addons/account_invoice_layout/account_invoice_layout.py @@ -127,13 +127,12 @@ class account_invoice_line(osv.osv): def copy_data(self, cr, uid, id, default=None, context=None): if default is None: default = {} - default['state'] = self.browse(cr, uid, id).state + default['state'] = self.browse(cr, uid, id, context=context).state return super(account_invoice_line, self).copy_data(cr, uid, id, default, context) def _fnct(self, cr, uid, ids, name, args, context=None): res = {} - - lines = self.browse(cr, uid, ids) + lines = self.browse(cr, uid, ids, context=context) account_ids = [line.account_id.id for line in lines] account_names = dict(self.pool.get('account.account').name_get(cr, uid, account_ids, context=context)) for line in lines: @@ -180,7 +179,7 @@ account_invoice_line() class one2many_mod2(fields.one2many): def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): - if not context: + if context is None: context = {} if not values: values = {} diff --git a/addons/account_invoice_layout/i18n/account_invoice_layout.pot b/addons/account_invoice_layout/i18n/account_invoice_layout.pot index 2376750201e..ad33fb6a6fa 100644 --- a/addons/account_invoice_layout/i18n/account_invoice_layout.pot +++ b/addons/account_invoice_layout/i18n/account_invoice_layout.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-10 17:14:50+0000\n" -"PO-Revision-Date: 2010-12-10 17:14:50+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:40+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:40+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -32,12 +32,6 @@ msgstr "" msgid "Cancelled Invoice" msgstr "" -#. module: account_invoice_layout -#: report:account.invoice.layout:0 -#: report:notify_account.invoice:0 -msgid "PRO-FORMA" -msgstr "" - #. module: account_invoice_layout #: selection:account.invoice.line,state:0 #: field:notify.message,name:0 @@ -56,11 +50,6 @@ msgstr "" msgid "Disc. (%)" msgstr "" -#. module: account_invoice_layout -#: view:account.invoice.special.msg:0 -msgid "Print" -msgstr "" - #. module: account_invoice_layout #: selection:account.invoice.line,state:0 msgid "Note" @@ -100,8 +89,9 @@ msgid "Document" msgstr "" #. module: account_invoice_layout -#: constraint:account.invoice:0 -msgid "Error: Invalid Bvr Number (wrong checksum)." +#: report:account.invoice.layout:0 +#: report:notify_account.invoice:0 +msgid "PRO-FORMA" msgstr "" #. module: account_invoice_layout @@ -281,8 +271,8 @@ msgid "Supplier Invoice" msgstr "" #. module: account_invoice_layout -#: constraint:account.invoice:0 -msgid "Error: BVR reference is required." +#: view:account.invoice.special.msg:0 +msgid "Print" msgstr "" #. module: account_invoice_layout diff --git a/addons/account_invoice_layout/i18n/sl.po b/addons/account_invoice_layout/i18n/sl.po index b098e46f46f..9d88989084b 100644 --- a/addons/account_invoice_layout/i18n/sl.po +++ b/addons/account_invoice_layout/i18n/sl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-10-30 14:06+0000\n" -"Last-Translator: Fabien (Open ERP) \n" +"PO-Revision-Date: 2010-12-15 07:49+0000\n" +"Last-Translator: Simon Vidmar \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-14 05:22+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_invoice_layout @@ -25,7 +25,7 @@ msgstr "Vmesna vsota" #: report:account.invoice.layout:0 #: report:notify_account.invoice:0 msgid "Note:" -msgstr "" +msgstr "Zaznamek:" #. module: account_invoice_layout #: report:account.invoice.layout:0 @@ -93,7 +93,7 @@ msgstr "" #: report:account.invoice.layout:0 #: report:notify_account.invoice:0 msgid "VAT :" -msgstr "" +msgstr "DDV:" #. module: account_invoice_layout #: report:account.invoice.layout:0 @@ -141,7 +141,7 @@ msgstr "Cena" #: report:account.invoice.layout:0 #: report:notify_account.invoice:0 msgid "Invoice Date" -msgstr "" +msgstr "Datum računa" #. module: account_invoice_layout #: report:account.invoice.layout:0 @@ -179,7 +179,7 @@ msgstr "Posebno sporočilo" #. module: account_invoice_layout #: help:account.invoice.special.msg,message:0 msgid "Message to Print at the bottom of report" -msgstr "" +msgstr "Sporočilo, ki se izpiše na dnu poročila" #. module: account_invoice_layout #: report:account.invoice.layout:0 @@ -191,7 +191,7 @@ msgstr "Količina" #: report:account.invoice.layout:0 #: report:notify_account.invoice:0 msgid "Partner Ref." -msgstr "" +msgstr "Sklic partnerja" #. module: account_invoice_layout #: report:account.invoice.layout:0 @@ -204,7 +204,7 @@ msgstr "Račun" #: report:account.invoice.layout:0 #: report:notify_account.invoice:0 msgid "Total:" -msgstr "" +msgstr "Skupaj:" #. module: account_invoice_layout #: view:account.invoice.special.msg:0 @@ -237,7 +237,7 @@ msgstr "Znesek" #: report:account.invoice.layout:0 #: report:notify_account.invoice:0 msgid "Tel. :" -msgstr "" +msgstr "Tel.:" #. module: account_invoice_layout #: report:account.invoice.layout:0 @@ -296,13 +296,13 @@ msgstr "Davek" #. module: account_invoice_layout #: model:ir.model,name:account_invoice_layout.model_account_invoice_line msgid "Invoice Line" -msgstr "" +msgstr "Postavka računa" #. module: account_invoice_layout #: report:account.invoice.layout:0 #: report:notify_account.invoice:0 msgid "Net Total:" -msgstr "" +msgstr "Skupaj (brez davkov):" #. module: account_invoice_layout #: view:notify.message:0 @@ -313,7 +313,7 @@ msgstr "Izpiši obvestilo ali želeno sporočilo" #: report:account.invoice.layout:0 #: report:notify_account.invoice:0 msgid "Fax :" -msgstr "" +msgstr "Faks:" #. module: account_invoice_layout #: view:account.invoice.special.msg:0 diff --git a/addons/account_invoice_layout/i18n/sv.po b/addons/account_invoice_layout/i18n/sv.po index cf7a8130188..47e6e9f38cc 100644 --- a/addons/account_invoice_layout/i18n/sv.po +++ b/addons/account_invoice_layout/i18n/sv.po @@ -13,7 +13,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:04+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_invoice_layout diff --git a/addons/account_invoice_layout/wizard/account_invoice_special_message.py b/addons/account_invoice_layout/wizard/account_invoice_special_message.py index adc3261fa64..a0bd6b328c3 100644 --- a/addons/account_invoice_layout/wizard/account_invoice_special_message.py +++ b/addons/account_invoice_layout/wizard/account_invoice_special_message.py @@ -34,7 +34,7 @@ class account_invoice_special_msg(osv.osv_memory): if context is None: context = {} - data = self.read(cr, uid, ids, [])[0] + data = self.read(cr, uid, ids, [], context=context)[0] datas = { 'ids': context.get('active_ids',[]), 'model': 'account.invoice', diff --git a/addons/account_payment/account_move_line.py b/addons/account_payment/account_move_line.py index 638b75dcaaa..68bb33ca4e5 100644 --- a/addons/account_payment/account_move_line.py +++ b/addons/account_payment/account_move_line.py @@ -26,7 +26,7 @@ from tools.translate import _ class account_move_line(osv.osv): _inherit = "account.move.line" - def amount_to_pay(self, cr, uid, ids, name, arg={}, context={}): + def amount_to_pay(self, cr, uid, ids, name, arg={}, context=None): """ Return the amount still to pay regarding all the payemnt orders (excepting cancelled orders)""" if not ids: @@ -47,7 +47,7 @@ class account_move_line(osv.osv): r = dict(cr.fetchall()) return r - def _to_pay_search(self, cr, uid, obj, name, args, context): + def _to_pay_search(self, cr, uid, obj, name, args, context=None): if not args: return [] line_obj = self.pool.get('account.move.line') diff --git a/addons/account_payment/account_payment.py b/addons/account_payment/account_payment.py index 63d78812946..d5858d94f80 100644 --- a/addons/account_payment/account_payment.py +++ b/addons/account_payment/account_payment.py @@ -39,7 +39,7 @@ class payment_mode(osv.osv): 'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id } - def suitable_bank_types(self, cr, uid, payment_code=None, context={}): + def suitable_bank_types(self, cr, uid, payment_code=None, context=None): """Return the codes of the bank type that are suitable for the given payment type code""" if not payment_code: @@ -267,10 +267,10 @@ class payment_line(osv.osv): line.amount_currency, context=ctx) return res - def _get_currency(self, cr, uid, context): + def _get_currency(self, cr, uid, context=None): user_obj = self.pool.get('res.users') currency_obj = self.pool.get('res.currency') - user = user_obj.browse(cr, uid, uid) + user = user_obj.browse(cr, uid, uid, context=context) if user.company_id: return user.company_id.currency_id.id @@ -284,7 +284,7 @@ class payment_line(osv.osv): date = False if context.get('order_id') and context['order_id']: - order = payment_order_obj.browse(cr, uid, context['order_id'], context) + order = payment_order_obj.browse(cr, uid, context['order_id'], context=context) if order.date_prefered == 'fixed': date = order.date_scheduled else: @@ -364,7 +364,7 @@ class payment_line(osv.osv): data['amount_currency'] = data['communication'] = data['partner_id'] = data['reference'] = data['date_created'] = data['bank_id'] = data['amount'] = False if move_line_id: - line = move_line_obj.browse(cr, uid, move_line_id) + line = move_line_obj.browse(cr, uid, move_line_id, context=context) data['amount_currency'] = line.amount_to_pay res = self.onchange_amount(cr, uid, ids, data['amount_currency'], currency, @@ -413,7 +413,7 @@ class payment_line(osv.osv): data['info_partner'] = data['bank_id'] = False if partner_id: - part_obj = partner_obj.browse(cr, uid, partner_id) + part_obj = partner_obj.browse(cr, uid, partner_id, context=context) partner = part_obj.name or '' if part_obj.address: diff --git a/addons/account_payment/i18n/account_payment.pot b/addons/account_payment/i18n/account_payment.pot index ab891eb3221..e6fea3a69df 100644 --- a/addons/account_payment/i18n/account_payment.pot +++ b/addons/account_payment/i18n/account_payment.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-10 17:14:51+0000\n" -"PO-Revision-Date: 2010-12-10 17:14:51+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:41+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:41+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -151,8 +151,8 @@ msgid "Reference" msgstr "" #. module: account_payment -#: constraint:account.invoice:0 -msgid "Error: BVR reference is required." +#: sql_constraint:payment.line:0 +msgid "The payment line name must be unique!" msgstr "" #. module: account_payment @@ -166,11 +166,6 @@ msgstr "" msgid "Directly" msgstr "" -#. module: account_payment -#: sql_constraint:payment.line:0 -msgid "The payment line name must be unique!" -msgstr "" - #. module: account_payment #: model:ir.actions.act_window,name:account_payment.action_payment_line_form #: model:ir.model,name:account_payment.model_payment_line @@ -384,11 +379,6 @@ msgstr "" msgid "Draft" msgstr "" -#. module: account_payment -#: constraint:account.invoice:0 -msgid "Error: Invalid Bvr Number (wrong checksum)." -msgstr "" - #. module: account_payment #: help:payment.line,communication2:0 msgid "The successor message of Communication." diff --git a/addons/account_payment/wizard/account_payment_order.py b/addons/account_payment/wizard/account_payment_order.py index 662ed495d31..b8328aee333 100644 --- a/addons/account_payment/wizard/account_payment_order.py +++ b/addons/account_payment/wizard/account_payment_order.py @@ -62,7 +62,7 @@ class payment_order_create(osv.osv_memory): payment_obj = self.pool.get('payment.line') if context is None: context = {} - data = self.read(cr, uid, ids, [])[0] + data = self.read(cr, uid, ids, [], context=context)[0] line_ids = data['entries'] if not line_ids: return {} diff --git a/addons/account_payment/wizard/account_payment_pay.py b/addons/account_payment/wizard/account_payment_pay.py index 8e524c78959..6627ffaa614 100644 --- a/addons/account_payment/wizard/account_payment_pay.py +++ b/addons/account_payment/wizard/account_payment_pay.py @@ -31,6 +31,8 @@ class account_payment_make_payment(osv.osv_memory): If type is manual. just confirm the order. """ obj_payment_order = self.pool.get('payment.order') + if context is None: + context = {} # obj_model = self.pool.get('ir.model.data') # obj_act = self.pool.get('ir.actions.act_window') # order = obj_payment_order.browse(cr, uid, context['active_id'], context) diff --git a/addons/account_payment/wizard/account_payment_populate_statement.py b/addons/account_payment/wizard/account_payment_populate_statement.py index bd61d58be3f..cac06bb472a 100644 --- a/addons/account_payment/wizard/account_payment_populate_statement.py +++ b/addons/account_payment/wizard/account_payment_populate_statement.py @@ -60,7 +60,7 @@ class account_payment_populate_statement(osv.osv_memory): if context is None: context = {} - data = self.read(cr, uid, ids, [])[0] + data = self.read(cr, uid, ids, [], context=context)[0] line_ids = data['lines'] if not line_ids: return {} diff --git a/addons/account_sequence/account_sequence.py b/addons/account_sequence/account_sequence.py index 56accc5f6eb..1649a8890fa 100644 --- a/addons/account_sequence/account_sequence.py +++ b/addons/account_sequence/account_sequence.py @@ -33,7 +33,7 @@ class account_move(osv.osv): obj_sequence = self.pool.get('ir.sequence') res = super(account_move, self).post(cr, uid, ids, context=context) seq_no = False - for move in self.browse(cr, uid, ids, context): + for move in self.browse(cr, uid, ids, context=context): if move.journal_id.internal_sequence_id: seq_no = obj_sequence.get_id(cr, uid, move.journal_id.internal_sequence_id.id, context=context) if seq_no: diff --git a/addons/account_sequence/account_sequence_installer.py b/addons/account_sequence/account_sequence_installer.py index f7bcb113388..d27d0aa9f32 100644 --- a/addons/account_sequence/account_sequence_installer.py +++ b/addons/account_sequence/account_sequence_installer.py @@ -47,7 +47,7 @@ class account_sequence_installer(osv.osv_memory): context = {} jou_obj = self.pool.get('account.journal') obj_sequence = self.pool.get('ir.sequence') - record = self.browse(cr, uid, ids, context)[0] + record = self.browse(cr, uid, ids, context=context)[0] j_ids = [] if record.company_id: company_id = record.company_id.id, @@ -70,7 +70,7 @@ class account_sequence_installer(osv.osv_memory): ir_seq = obj_sequence.create(cr, uid, vals, context) res = super(account_sequence_installer, self).execute(cr, uid, ids, context=context) journal_ids = jou_obj.search(cr, uid, search_criteria, context=context) - for journal in jou_obj.browse(cr, uid, journal_ids, context): + for journal in jou_obj.browse(cr, uid, journal_ids, context=context): if not journal.internal_sequence_id: j_ids.append(journal.id) if j_ids: diff --git a/addons/account_sequence/i18n/account_sequence.pot b/addons/account_sequence/i18n/account_sequence.pot index a8a4af9741d..42f81e83cbc 100644 --- a/addons/account_sequence/i18n/account_sequence.pot +++ b/addons/account_sequence/i18n/account_sequence.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:55+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:55+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:41+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:41+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,6 +16,7 @@ msgstr "" "Plural-Forms: \n" #. module: account_sequence +#: view:account.sequence.installer:0 #: model:ir.actions.act_window,name:account_sequence.action_account_seq_installer msgid "Account Sequence Application Configuration" msgstr "" @@ -57,8 +58,13 @@ msgid "The next number of the sequence will be incremented by this number" msgstr "" #. module: account_sequence -#: field:account.sequence.installer,progress:0 -msgid "Configuration Progress" +#: view:account.sequence.installer:0 +msgid "Configure Your Account Sequence Application" +msgstr "" + +#. module: account_sequence +#: view:account.sequence.installer:0 +msgid "Configure" msgstr "" #. module: account_sequence @@ -132,6 +138,11 @@ msgstr "" msgid "account.sequence.installer" msgstr "" +#. module: account_sequence +#: field:account.sequence.installer,progress:0 +msgid "Configuration Progress" +msgstr "" + #. module: account_sequence #: help:account.sequence.installer,prefix:0 msgid "Prefix value of the record for the sequence" @@ -182,6 +193,11 @@ msgstr "" msgid "Journal" msgstr "" +#. module: account_sequence +#: view:account.sequence.installer:0 +msgid "You can enhance the Account Sequence Application by installing ." +msgstr "" + #. module: account_sequence #: constraint:account.move.line:0 msgid "You can not create move line on view account." diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 03ac3b87ba0..9dc496c5ec6 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -30,7 +30,7 @@ from tools.translate import _ class account_move_line(osv.osv): _inherit = 'account.move.line' - def _unreconciled(self, cr, uid, ids, prop, unknow_none, context): + def _unreconciled(self, cr, uid, ids, prop, unknow_none, context=None): res = {} for line in self.browse(cr, uid, ids, context=context): res[line.id] = line.debit - line.credit @@ -49,16 +49,19 @@ account_move_line() class account_voucher(osv.osv): - def _get_type(self, cr, uid, ids, context={}): + def _get_type(self, cr, uid, ids, context=None): + if context is None: context = {} return context.get('type', False) - def _get_period(self, cr, uid, context={}): + def _get_period(self, cr, uid, context=None): + if context is None: context = {} if context.get('period_id', False): return context.get('period_id') periods = self.pool.get('account.period').find(cr, uid) return periods and periods[0] or False - def _get_journal(self, cr, uid, context={}): + def _get_journal(self, cr, uid, context=None): + if context is None: context = {} journal_pool = self.pool.get('account.journal') if context.get('journal_id', False): return context.get('journal_id') @@ -71,7 +74,8 @@ class account_voucher(osv.osv): res = journal_pool.search(cr, uid, [('type', '=', ttype)], limit=1) return res and res[0] or False - def _get_tax(self, cr, uid, context={}): + def _get_tax(self, cr, uid, context=None): + if context is None: context = {} journal_pool = self.pool.get('account.journal') journal_id = context.get('journal_id', False) if not journal_id: @@ -83,39 +87,45 @@ class account_voucher(osv.osv): if not journal_id: return False - journal = journal_pool.browse(cr, uid, journal_id) + journal = journal_pool.browse(cr, uid, journal_id, context=context) account_id = journal.default_credit_account_id or journal.default_debit_account_id if account_id and account_id.tax_ids: tax_id = account_id.tax_ids[0].id return tax_id return False - def _get_currency(self, cr, uid, context): + def _get_currency(self, cr, uid, context=None): + if context is None: context = {} journal_pool = self.pool.get('account.journal') journal_id = context.get('journal_id', False) if journal_id: - journal = journal_pool.browse(cr, uid, journal_id) + journal = journal_pool.browse(cr, uid, journal_id, context=context) # currency_id = journal.company_id.currency_id.id if journal.currency: return journal.currency.id return False - def _get_partner(self, cr, uid, context={}): + def _get_partner(self, cr, uid, context=None): + if context is None: context = {} return context.get('partner_id', False) - def _get_reference(self, cr, uid, context={}): + def _get_reference(self, cr, uid, context=None): + if context is None: context = {} return context.get('reference', False) - def _get_narration(self, cr, uid, context={}): + def _get_narration(self, cr, uid, context=None): + if context is None: context = {} return context.get('narration', False) def name_get(self, cr, uid, ids, context=None): if not ids: return [] + if context is None: context = {} return [(r['id'], (str("%.2f" % r['amount']) or '')) for r in self.read(cr, uid, ids, ['amount'], context, load='_classic_write')] def fields_view_get(self, cr, uid, view_id=None, view_type=False, context=None, toolbar=False, submenu=False): mod_obj = self.pool.get('ir.model.data') + if context is None: context = {} if not view_id and context.get('invoice_type', False): if context.get('invoice_type', False) in ('out_invoice', 'out_refund'): result = mod_obj.get_object_reference(cr, uid, 'account_voucher', 'view_vendor_receipt_form') @@ -232,14 +242,15 @@ class account_voucher(osv.osv): 'comment': 'Write-Off', } - def compute_tax(self, cr, uid, ids, context={}): + def compute_tax(self, cr, uid, ids, context=None): tax_pool = self.pool.get('account.tax') partner_pool = self.pool.get('res.partner') position_pool = self.pool.get('account.fiscal.position') voucher_line_pool = self.pool.get('account.voucher.line') voucher_pool = self.pool.get('account.voucher') + if context is None: context = {} - for voucher in voucher_pool.browse(cr, uid, ids, context): + for voucher in voucher_pool.browse(cr, uid, ids, context=context): voucher_amount = 0.0 for line in voucher.line_ids: voucher_amount += line.untax_amount or line.amount @@ -250,10 +261,10 @@ class account_voucher(osv.osv): self.write(cr, uid, [voucher.id], {'amount':voucher_amount, 'tax_amount':0.0}) continue - tax = [tax_pool.browse(cr, uid, voucher.tax_id.id)] - partner = partner_pool.browse(cr, uid, voucher.partner_id.id) or False + tax = [tax_pool.browse(cr, uid, voucher.tax_id.id, context=context)] + partner = partner_pool.browse(cr, uid, voucher.partner_id.id, context=context) or False taxes = position_pool.map_tax(cr, uid, partner and partner.property_account_position or False, tax) - tax = tax_pool.browse(cr, uid, taxes) + tax = tax_pool.browse(cr, uid, taxes, context=context) total = voucher_amount total_tax = 0.0 @@ -277,7 +288,7 @@ class account_voucher(osv.osv): self.write(cr, uid, [voucher.id], {'amount':total, 'tax_amount':total_tax}) return True - def onchange_price(self, cr, uid, ids, line_ids, tax_id, partner_id=False, context={}): + def onchange_price(self, cr, uid, ids, line_ids, tax_id, partner_id=False, context=None): tax_pool = self.pool.get('account.tax') partner_pool = self.pool.get('res.partner') position_pool = self.pool.get('account.fiscal.position') @@ -299,11 +310,11 @@ class account_voucher(osv.osv): total = voucher_total total_tax = 0.0 if tax_id: - tax = [tax_pool.browse(cr, uid, tax_id)] + tax = [tax_pool.browse(cr, uid, tax_id, context=context)] if partner_id: - partner = partner_pool.browse(cr, uid, partner_id) or False + partner = partner_pool.browse(cr, uid, partner_id, context=context) or False taxes = position_pool.map_tax(cr, uid, partner and partner.property_account_position or False, tax) - tax = tax_pool.browse(cr, uid, taxes) + tax = tax_pool.browse(cr, uid, taxes, context=context) if not tax[0].price_include: for tax_line in tax_pool.compute_all(cr, uid, tax, voucher_total, 1).get('taxes', []): @@ -332,7 +343,7 @@ class account_voucher(osv.osv): }) return {'value':default} - def onchange_journal_voucher(self, cr, uid, ids, line_ids=False, tax_id=False, price=0.0, partner_id=False, journal_id=False, ttype=False, context={}): + def onchange_journal_voucher(self, cr, uid, ids, line_ids=False, tax_id=False, price=0.0, partner_id=False, journal_id=False, ttype=False, context=None): """price Returns a dict that contains new values and context @@ -352,8 +363,8 @@ class account_voucher(osv.osv): partner_pool = self.pool.get('res.partner') journal_pool = self.pool.get('account.journal') - journal = journal_pool.browse(cr, uid, journal_id) - partner = partner_pool.browse(cr, uid, partner_id) + journal = journal_pool.browse(cr, uid, journal_id, context=context) + partner = partner_pool.browse(cr, uid, partner_id, context=context) account_id = False tr_type = False if journal.type in ('sale','sale_refund'): @@ -411,8 +422,8 @@ class account_voucher(osv.osv): line_pool.unlink(cr, uid, line_ids) return default - journal = journal_pool.browse(cr, uid, journal_id) - partner = partner_pool.browse(cr, uid, partner_id) + journal = journal_pool.browse(cr, uid, journal_id, context=context) + partner = partner_pool.browse(cr, uid, partner_id, context=context) account_id = False if journal.type in ('sale','sale_refund'): account_id = partner.property_account_receivable.id @@ -441,7 +452,7 @@ class account_voucher(osv.osv): else: ids = context['move_line_ids'] ids.reverse() - moves = move_line_pool.browse(cr, uid, ids) + moves = move_line_pool.browse(cr, uid, ids, context=context) company_currency = journal.company_id.currency_id.id if company_currency != currency_id and ttype == 'payment': @@ -496,7 +507,7 @@ class account_voucher(osv.osv): return default - def onchange_date(self, cr, user, ids, date, context={}): + def onchange_date(self, cr, user, ids, date, context=None): """ @param date: latest value from user input for field date @param args: other arguments @@ -513,11 +524,11 @@ class account_voucher(osv.osv): } } - def onchange_journal(self, cr, uid, ids, journal_id, line_ids, tax_id, partner_id, context={}): + def onchange_journal(self, cr, uid, ids, journal_id, line_ids, tax_id, partner_id, context=None): if not journal_id: return False journal_pool = self.pool.get('account.journal') - journal = journal_pool.browse(cr, uid, journal_id) + journal = journal_pool.browse(cr, uid, journal_id, context=context) account_id = journal.default_credit_account_id or journal.default_debit_account_id tax_id = False if account_id and account_id.tax_ids: @@ -535,18 +546,18 @@ class account_voucher(osv.osv): self.action_move_line_create(cr, uid, ids, context=context) return True - def action_cancel_draft(self, cr, uid, ids, context={}): + def action_cancel_draft(self, cr, uid, ids, context=None): wf_service = netsvc.LocalService("workflow") for voucher_id in ids: wf_service.trg_create(uid, 'account.voucher', voucher_id, cr) self.write(cr, uid, ids, {'state':'draft'}) return True - def cancel_voucher(self, cr, uid, ids, context={}): + def cancel_voucher(self, cr, uid, ids, context=None): reconcile_pool = self.pool.get('account.move.reconcile') move_pool = self.pool.get('account.move') - for voucher in self.browse(cr, uid, ids): + for voucher in self.browse(cr, uid, ids, context=context): recs = [] for line in voucher.move_ids: if line.reconcile_id: @@ -600,14 +611,14 @@ class account_voucher(osv.osv): terms = term_pool.compute(cr, uid, term_id, amount) return terms return False - if not context: + if context is None: context = {} move_pool = self.pool.get('account.move') move_line_pool = self.pool.get('account.move.line') currency_pool = self.pool.get('res.currency') tax_obj = self.pool.get('account.tax') seq_obj = self.pool.get('ir.sequence') - for inv in self.browse(cr, uid, ids): + for inv in self.browse(cr, uid, ids, context=context): if inv.move_id: continue if inv.number: @@ -787,7 +798,7 @@ class account_voucher_line(osv.osv): def _compute_balance(self, cr, uid, ids, name, args, context=None): currency_pool = self.pool.get('res.currency') rs_data = {} - for line in self.browse(cr, uid, ids): + for line in self.browse(cr, uid, ids, context=context): res = {} company_currency = line.voucher_id.journal_id.company_id.currency_id.id voucher_currency = line.voucher_id.currency_id.id @@ -827,7 +838,7 @@ class account_voucher_line(osv.osv): 'name': '' } - def onchange_move_line_id(self, cr, user, ids, move_line_id, context={}): + def onchange_move_line_id(self, cr, user, ids, move_line_id, context=None): """ Returns a dict that contains new values and context @@ -862,6 +873,8 @@ class account_voucher_line(osv.osv): @return: Returns a dict that contains default values for fields """ + if context is None: + context = {} journal_id = context.get('journal_id', False) partner_id = context.get('partner_id', False) journal_pool = self.pool.get('account.journal') @@ -869,7 +882,7 @@ class account_voucher_line(osv.osv): values = super(account_voucher_line, self).default_get(cr, user, fields_list, context=context) if (not journal_id) or ('account_id' not in fields_list): return values - journal = journal_pool.browse(cr, user, journal_id) + journal = journal_pool.browse(cr, user, journal_id, context=context) account_id = False ttype = 'cr' if journal.type in ('sale', 'sale_refund'): @@ -898,7 +911,7 @@ class account_bank_statement(osv.osv): def button_cancel(self, cr, uid, ids, context=None): voucher_obj = self.pool.get('account.voucher') - for st in self.browse(cr, uid, ids, context): + for st in self.browse(cr, uid, ids, context=context): voucher_ids = [] for line in st.line_ids: if line.voucher_id: @@ -958,7 +971,7 @@ class account_bank_statement_line(osv.osv): def unlink(self, cr, uid, ids, context=None): voucher_obj = self.pool.get('account.voucher') - statement_line = self.browse(cr, uid, ids, context) + statement_line = self.browse(cr, uid, ids, context=context) unlink_ids = [] for st_line in statement_line: if st_line.voucher_id: diff --git a/addons/account_voucher/i18n/account_voucher.pot b/addons/account_voucher/i18n/account_voucher.pot index a6459aa6c6b..19e18ce07c4 100644 --- a/addons/account_voucher/i18n/account_voucher.pot +++ b/addons/account_voucher/i18n/account_voucher.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-10 17:14:52+0000\n" -"PO-Revision-Date: 2010-12-10 17:14:52+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:42+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:42+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -248,11 +248,6 @@ msgstr "" msgid "Unreconcile" msgstr "" -#. module: account_voucher -#: constraint:account.invoice:0 -msgid "Error: BVR reference is required." -msgstr "" - #. module: account_voucher #: field:account.voucher,tax_id:0 msgid "Tax" @@ -340,11 +335,6 @@ msgstr "" msgid "Date:" msgstr "" -#. module: account_voucher -#: selection:account.voucher,pay_now:0 -msgid "Pay Directly" -msgstr "" - #. module: account_voucher #: view:account.voucher:0 #: field:account.voucher,period_id:0 @@ -380,8 +370,8 @@ msgid "Supplier Voucher" msgstr "" #. module: account_voucher -#: constraint:account.invoice:0 -msgid "Error: Invalid Bvr Number (wrong checksum)." +#: model:ir.actions.act_window,name:account_voucher.action_review_voucher_list +msgid "Vouchers Entries" msgstr "" #. module: account_voucher @@ -448,8 +438,8 @@ msgid "Paid Amount" msgstr "" #. module: account_voucher -#: view:account.voucher:0 -msgid "Expense Lines" +#: selection:account.voucher,pay_now:0 +msgid "Pay Directly" msgstr "" #. module: account_voucher @@ -560,9 +550,8 @@ msgid "Extended Filters..." msgstr "" #. module: account_voucher -#: report:voucher.cash_receipt.drcr:0 -#: report:voucher.print:0 -msgid "Number:" +#: constraint:account.move.line:0 +msgid "Company must be same for its related account and period." msgstr "" #. module: account_voucher @@ -571,8 +560,8 @@ msgid "Amount reconciled" msgstr "" #. module: account_voucher -#: field:account.voucher,comment:0 -msgid "Comment" +#: view:account.voucher:0 +msgid "Expense Lines" msgstr "" #. module: account_voucher @@ -580,6 +569,11 @@ msgstr "" msgid "Previous Payments ?" msgstr "" +#. module: account_voucher +#: field:account.voucher,comment:0 +msgid "Comment" +msgstr "" + #. module: account_voucher #: model:ir.actions.act_window,name:account_voucher.action_voucher_list #: model:ir.ui.menu,name:account_voucher.menu_encode_entries_by_voucher @@ -630,8 +624,9 @@ msgid "Bill Date" msgstr "" #. module: account_voucher -#: constraint:account.move.line:0 -msgid "Company must be same for its related account and period." +#: report:voucher.cash_receipt.drcr:0 +#: report:voucher.print:0 +msgid "Number:" msgstr "" #. module: account_voucher @@ -855,11 +850,6 @@ msgstr "" msgid "Untax Amount" msgstr "" -#. module: account_voucher -#: model:ir.actions.act_window,name:account_voucher.action_review_voucher_list -msgid "Vouchers Entries" -msgstr "" - #. module: account_voucher #: view:account.voucher:0 #: field:account.voucher.line,amount_unreconciled:0 diff --git a/addons/account_voucher/i18n/de.po b/addons/account_voucher/i18n/de.po index b48b91de35c..d04c9ee49c1 100644 --- a/addons/account_voucher/i18n/de.po +++ b/addons/account_voucher/i18n/de.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-15 01:41+0000\n" +"PO-Revision-Date: 2010-12-15 21:40+0000\n" "Last-Translator: Thorsten Vocks (OpenBig.org) \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:12+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_voucher diff --git a/addons/account_voucher/i18n/sv.po b/addons/account_voucher/i18n/sv.po index c06f8c3dfc2..094310470ff 100644 --- a/addons/account_voucher/i18n/sv.po +++ b/addons/account_voucher/i18n/sv.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.14\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-12-14 17:11+0000\n" -"Last-Translator: Anders Eriksson, Aspirix AB \n" +"PO-Revision-Date: 2010-12-15 21:34+0000\n" +"Last-Translator: Magnus Brandt (mba), Aspirix AB \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:12+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_voucher @@ -84,7 +84,7 @@ msgstr "Fakturabetalning" #. module: account_voucher #: field:account.voucher.line,amount_original:0 msgid "Originial Amount" -msgstr "" +msgstr "Ursprungligt belopp" #. module: account_voucher #: view:account.statement.from.invoice.lines:0 @@ -179,7 +179,7 @@ msgstr "Du kan inte skapa transaktioner för ett avslutat konto." #. module: account_voucher #: field:account.voucher,narration:0 msgid "Notes" -msgstr "" +msgstr "Anteckningar" #. module: account_voucher #: model:ir.actions.act_window,help:account_voucher.action_vendor_receipt diff --git a/addons/account_voucher/i18n/vi.po b/addons/account_voucher/i18n/vi.po index 43f2141fff1..27306f6a1d8 100644 --- a/addons/account_voucher/i18n/vi.po +++ b/addons/account_voucher/i18n/vi.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-08-02 14:40+0000\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2010-12-15 15:25+0000\n" +"Last-Translator: Phong Nguyen \n" "Language-Team: Vietnamese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:13+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: account_voucher @@ -41,7 +41,7 @@ msgstr "" #. module: account_voucher #: view:account.voucher:0 msgid "Group By..." -msgstr "" +msgstr "Nhóm theo..." #. module: account_voucher #: code:addons/account_voucher/account_voucher.py:0 @@ -576,7 +576,7 @@ msgstr "" #. module: account_voucher #: view:account.voucher:0 msgid "Extended Filters..." -msgstr "" +msgstr "Bộ lọc mở rộng..." #. module: account_voucher #: report:voucher.cash_receipt.drcr:0 diff --git a/addons/account_voucher/wizard/account_statement_from_invoice.py b/addons/account_voucher/wizard/account_statement_from_invoice.py index 9b6400b15a9..fa1a66e0135 100644 --- a/addons/account_voucher/wizard/account_statement_from_invoice.py +++ b/addons/account_voucher/wizard/account_statement_from_invoice.py @@ -35,7 +35,8 @@ class account_statement_from_invoice_lines(osv.osv_memory): } def populate_statement(self, cr, uid, ids, context=None): - + if context is None: + context = {} statement_id = context.get('statement_id', False) if not statement_id: return {} @@ -134,7 +135,8 @@ class account_statement_from_invoice(osv.osv_memory): } def search_invoices(self, cr, uid, ids, context=None): - + if context is None: + context = {} line_obj = self.pool.get('account.move.line') statement_obj = self.pool.get('account.bank.statement') journal_obj = self.pool.get('account.journal') diff --git a/addons/account_voucher/wizard/account_voucher_unreconcile.py b/addons/account_voucher/wizard/account_voucher_unreconcile.py index 69aa6e1181d..2bfdfd1ecf8 100644 --- a/addons/account_voucher/wizard/account_voucher_unreconcile.py +++ b/addons/account_voucher/wizard/account_voucher_unreconcile.py @@ -41,7 +41,7 @@ class account_voucher_unreconcile(osv.osv_memory): voucher_pool = self.pool.get('account.voucher') reconcile_pool = self.pool.get('account.move.reconcile') if context.get('active_id'): - voucher = voucher_pool.browse(cr, uid, context.get('active_id'), context) + voucher = voucher_pool.browse(cr, uid, context.get('active_id'), context=context) recs = [] for line in voucher.move_ids: if line.reconcile_id: diff --git a/addons/analytic/analytic.py b/addons/analytic/analytic.py index 58f2357d452..e1c17cfacd5 100644 --- a/addons/analytic/analytic.py +++ b/addons/analytic/analytic.py @@ -183,7 +183,7 @@ class account_analytic_account(osv.osv): def name_search(self, cr, uid, name, args=None, operator='ilike', context=None, limit=100): if not args: args=[] - if not context: + if context is None: context={} account = self.search(cr, uid, [('code', '=', name)]+args, limit=limit, context=context) if not account: diff --git a/addons/analytic/i18n/analytic.pot b/addons/analytic/i18n/analytic.pot index e4e37441a21..a8a20895e33 100644 --- a/addons/analytic/i18n/analytic.pot +++ b/addons/analytic/i18n/analytic.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:56+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:56+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:42+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:42+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/analytic/i18n/it.po b/addons/analytic/i18n/it.po index 88f3b50b2ed..8600a6559bf 100644 --- a/addons/analytic/i18n/it.po +++ b/addons/analytic/i18n/it.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-12-14 14:11+0000\n" +"PO-Revision-Date: 2010-12-16 03:21+0000\n" "Last-Translator: Davide Corio - Domsense \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:18+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: analytic diff --git a/addons/analytic/i18n/sl.po b/addons/analytic/i18n/sl.po index c6735913eca..88c0ff0d3c5 100644 --- a/addons/analytic/i18n/sl.po +++ b/addons/analytic/i18n/sl.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-08-03 00:15+0000\n" -"Last-Translator: mga (Open ERP) \n" +"PO-Revision-Date: 2010-12-15 11:24+0000\n" +"Last-Translator: Simon Vidmar \n" "Language-Team: Slovenian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:18+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: analytic @@ -82,7 +82,7 @@ msgstr "Čakajoči" #. module: analytic #: model:ir.model,name:analytic.model_account_analytic_line msgid "Analytic Line" -msgstr "" +msgstr "Analitična postavka" #. module: analytic #: field:account.analytic.account,description:0 @@ -172,7 +172,7 @@ msgstr "Stanje" #. module: analytic #: constraint:account.analytic.account:0 msgid "Error! You can not create recursive analytic accounts." -msgstr "" +msgstr "Napaka! Ne morete kreirati rekurzivnih analitičnih kontov." #. module: analytic #: help:account.analytic.account,type:0 @@ -211,7 +211,7 @@ msgstr "Pogled" #. module: analytic #: field:account.analytic.account,partner_id:0 msgid "Partner" -msgstr "" +msgstr "Stranka" #. module: analytic #: field:account.analytic.account,date_start:0 diff --git a/addons/analytic_journal_billing_rate/i18n/analytic_journal_billing_rate.pot b/addons/analytic_journal_billing_rate/i18n/analytic_journal_billing_rate.pot index e273eb4e5bd..a7dc4543796 100644 --- a/addons/analytic_journal_billing_rate/i18n/analytic_journal_billing_rate.pot +++ b/addons/analytic_journal_billing_rate/i18n/analytic_journal_billing_rate.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-10 17:14:53+0000\n" -"PO-Revision-Date: 2010-12-10 17:14:53+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:43+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:43+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -20,16 +20,6 @@ msgstr "" msgid "Analytic Journal" msgstr "" -#. module: analytic_journal_billing_rate -#: model:ir.model,name:analytic_journal_billing_rate.model_hr_analytic_timesheet -msgid "Timesheet Line" -msgstr "" - -#. module: analytic_journal_billing_rate -#: constraint:account.invoice:0 -msgid "Error: BVR reference is required." -msgstr "" - #. module: analytic_journal_billing_rate #: view:analytic_journal_rate_grid:0 msgid "Billing Rate per Journal for this Analytic Account" @@ -72,7 +62,7 @@ msgid "Error! You can not create recursive analytic accounts." msgstr "" #. module: analytic_journal_billing_rate -#: constraint:account.invoice:0 -msgid "Error: Invalid Bvr Number (wrong checksum)." +#: model:ir.model,name:analytic_journal_billing_rate.model_hr_analytic_timesheet +msgid "Timesheet Line" msgstr "" diff --git a/addons/analytic_journal_billing_rate/i18n/fr.po b/addons/analytic_journal_billing_rate/i18n/fr.po index 3e0800dbcb9..adf9da7d78c 100644 --- a/addons/analytic_journal_billing_rate/i18n/fr.po +++ b/addons/analytic_journal_billing_rate/i18n/fr.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-11-24 09:41+0000\n" +"PO-Revision-Date: 2010-12-15 20:30+0000\n" "Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) " "\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:13+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: analytic_journal_billing_rate @@ -30,7 +30,7 @@ msgstr "Ligne de feuille de temps" #. module: analytic_journal_billing_rate #: constraint:account.invoice:0 msgid "Error: BVR reference is required." -msgstr "" +msgstr "Erreur : la référence BVR est requise." #. module: analytic_journal_billing_rate #: view:analytic_journal_rate_grid:0 @@ -75,12 +75,12 @@ msgstr "Taux de Facturation" #. module: analytic_journal_billing_rate #: constraint:account.analytic.account:0 msgid "Error! You can not create recursive analytic accounts." -msgstr "" +msgstr "Erreur ! Vous ne pouvez pas créer de comptes analytiques récursifs." #. module: analytic_journal_billing_rate #: constraint:account.invoice:0 msgid "Error: Invalid Bvr Number (wrong checksum)." -msgstr "" +msgstr "Erreur : Nombre BVR non valide (somme de contrôle fausse)." #~ msgid "Invalid XML for View Architecture!" #~ msgstr "XML non valide pour l'architecture de la vue" diff --git a/addons/analytic_journal_billing_rate/i18n/sl.po b/addons/analytic_journal_billing_rate/i18n/sl.po index 6e6f5d432c4..7562e0d9527 100644 --- a/addons/analytic_journal_billing_rate/i18n/sl.po +++ b/addons/analytic_journal_billing_rate/i18n/sl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:14+0000\n" -"PO-Revision-Date: 2010-11-27 00:03+0000\n" -"Last-Translator: OpenERP Administrators \n" +"PO-Revision-Date: 2010-12-15 10:04+0000\n" +"Last-Translator: Simon Vidmar \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:13+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: analytic_journal_billing_rate @@ -72,7 +72,7 @@ msgstr "Fakturna stopnja" #. module: analytic_journal_billing_rate #: constraint:account.analytic.account:0 msgid "Error! You can not create recursive analytic accounts." -msgstr "" +msgstr "Napaka! Ne morete kreirati rekurzivnih analitičnih kontov." #. module: analytic_journal_billing_rate #: constraint:account.invoice:0 diff --git a/addons/analytic_user_function/i18n/analytic_user_function.pot b/addons/analytic_user_function/i18n/analytic_user_function.pot index 2e107e18b3c..fde40a298a6 100644 --- a/addons/analytic_user_function/i18n/analytic_user_function.pot +++ b/addons/analytic_user_function/i18n/analytic_user_function.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:57+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:57+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:43+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:43+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/analytic_user_function/i18n/fr.po b/addons/analytic_user_function/i18n/fr.po index 8b77ce01458..5a787884851 100644 --- a/addons/analytic_user_function/i18n/fr.po +++ b/addons/analytic_user_function/i18n/fr.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-12-04 09:32+0000\n" +"PO-Revision-Date: 2010-12-15 20:30+0000\n" "Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) " "\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:14+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: analytic_user_function @@ -67,12 +67,12 @@ msgstr "" #. module: analytic_user_function #: constraint:account.analytic.account:0 msgid "Error! You can not create recursive analytic accounts." -msgstr "" +msgstr "Erreur ! Vous ne pouvez pas créer de comptes analytiques récursifs." #. module: analytic_user_function #: model:ir.module.module,shortdesc:analytic_user_function.module_meta_information msgid "Analytic User Function" -msgstr "" +msgstr "Fonction utilisateur analytique" #. module: analytic_user_function #: view:analytic_user_funct_grid:0 diff --git a/addons/analytic_user_function/i18n/sl.po b/addons/analytic_user_function/i18n/sl.po index 789266f6149..167d55812c6 100644 --- a/addons/analytic_user_function/i18n/sl.po +++ b/addons/analytic_user_function/i18n/sl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-11-27 05:38+0000\n" -"Last-Translator: OpenERP Administrators \n" +"PO-Revision-Date: 2010-12-15 10:04+0000\n" +"Last-Translator: Simon Vidmar \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:14+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: analytic_user_function @@ -63,7 +63,7 @@ msgstr "Tabela odnosov med uporabniki in produkti na analitičnem kontu" #. module: analytic_user_function #: constraint:account.analytic.account:0 msgid "Error! You can not create recursive analytic accounts." -msgstr "" +msgstr "Napaka! Ne morete kreirati rekurzivnih analitičnih kontov." #. module: analytic_user_function #: model:ir.module.module,shortdesc:analytic_user_function.module_meta_information diff --git a/addons/association/i18n/association.pot b/addons/association/i18n/association.pot index 7c54fb35bd8..7fe0dfc2d9e 100644 --- a/addons/association/i18n/association.pot +++ b/addons/association/i18n/association.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:42:57+0000\n" -"PO-Revision-Date: 2010-12-03 15:42:57+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:43+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:43+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -40,6 +40,11 @@ msgstr "" msgid "Configuration Progress" msgstr "" +#. module: association +#: view:profile.association.config.install_modules_wizard:0 +msgid "Here are specific applications related to the Association Profile you selected." +msgstr "" + #. module: association #: view:profile.association.config.install_modules_wizard:0 msgid "title" @@ -65,6 +70,11 @@ msgstr "" msgid "GTD is a methodology to efficiently organise yourself and your tasks. This module fully integrates GTD principle with OpenERP's project management." msgstr "" +#. module: association +#: view:profile.association.config.install_modules_wizard:0 +msgid "Resources Management" +msgstr "" + #. module: association #: model:ir.module.module,shortdesc:association.module_meta_information msgid "Association profile" @@ -77,7 +87,7 @@ msgstr "" #. module: association #: view:profile.association.config.install_modules_wizard:0 -msgid "Resources Management" +msgid "Association Application Configuration" msgstr "" #. module: association @@ -106,3 +116,8 @@ msgstr "" msgid "Project Management" msgstr "" +#. module: association +#: view:profile.association.config.install_modules_wizard:0 +msgid "Configure" +msgstr "" + diff --git a/addons/association/i18n/sl.po b/addons/association/i18n/sl.po index 3d403a1d1cc..06794f9a990 100644 --- a/addons/association/i18n/sl.po +++ b/addons/association/i18n/sl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:42+0000\n" -"PO-Revision-Date: 2010-11-12 11:44+0000\n" -"Last-Translator: mga (Open ERP) \n" +"PO-Revision-Date: 2010-12-15 10:14+0000\n" +"Last-Translator: Simon Vidmar \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:20+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: association @@ -24,7 +24,7 @@ msgstr "Wiki" #. module: association #: view:profile.association.config.install_modules_wizard:0 msgid "Event Management" -msgstr "" +msgstr "Upravljanje dogodkov" #. module: association #: field:profile.association.config.install_modules_wizard,project_gtd:0 @@ -39,12 +39,12 @@ msgstr "" #. module: association #: field:profile.association.config.install_modules_wizard,progress:0 msgid "Configuration Progress" -msgstr "" +msgstr "Potek konfiguracije" #. module: association #: view:profile.association.config.install_modules_wizard:0 msgid "title" -msgstr "" +msgstr "naslov" #. module: association #: help:profile.association.config.install_modules_wizard,event_project:0 @@ -54,7 +54,7 @@ msgstr "" #. module: association #: field:profile.association.config.install_modules_wizard,config_logo:0 msgid "Image" -msgstr "" +msgstr "Slika" #. module: association #: help:profile.association.config.install_modules_wizard,hr_expense:0 @@ -107,7 +107,7 @@ msgstr "profile.association.config.install_modules_wizard" #. module: association #: field:profile.association.config.install_modules_wizard,event_project:0 msgid "Events" -msgstr "" +msgstr "Dogodki" #. module: association #: view:profile.association.config.install_modules_wizard:0 diff --git a/addons/auction/auction.py b/addons/auction/auction.py index e14799c9c7c..983bdeb0144 100644 --- a/addons/auction/auction.py +++ b/addons/auction/auction.py @@ -57,18 +57,16 @@ class auction_dates(osv.osv): return res def name_get(self, cr, uid, ids, context=None): - if not context: - context={} if not ids: return [] - reads = self.read(cr, uid, ids, ['name', 'auction1'], context) + reads = self.read(cr, uid, ids, ['name', 'auction1'], context=context) name = [(r['id'], '['+r['auction1']+'] '+ r['name']) for r in reads] return name - def _get_invoice(self, cr, uid, ids, name, arg, context={}): + def _get_invoice(self, cr, uid, ids, name, arg, context=None): lots_obj = self.pool.get('auction.lots') result = {} - for data in self.browse(cr, uid, ids): + for data in self.browse(cr, uid, ids, context=context): buyer_inv_ids = [] seller_inv_ids = [] result[data.id] = { @@ -76,7 +74,7 @@ class auction_dates(osv.osv): 'buyer_invoice_history': seller_inv_ids, } lots_ids = lots_obj.search(cr, uid, [('auction_id','=',data.id)]) - for lot in lots_obj.browse(cr, uid, lots_ids): + for lot in lots_obj.browse(cr, uid, lots_ids, context=context): if lot.ach_inv_id: buyer_inv_ids.append(lot.ach_inv_id.id) if lot.sel_inv_id: @@ -120,8 +118,6 @@ class auction_dates(osv.osv): RETURN: True """ - if not context: - context={} lots_obj = self.pool.get('auction.lots') lots_ids = lots_obj.search(cr, uid, [('auction_id', 'in', ids), ('state', '=', 'draft'), ('obj_price', '>', 0)]) lots_obj.lots_invoice(cr, uid, lots_ids, {}, None) @@ -194,12 +190,10 @@ class aie_category(osv.osv): } def name_get(self, cr, uid, ids, context=None): - if not context: - context = {} res = [] if not ids: return res - reads = self.read(cr, uid, ids, ['name', 'parent_id'], context) + reads = self.read(cr, uid, ids, ['name', 'parent_id'], context=context) for record in reads: name = record['name'] if record['parent_id']: @@ -229,8 +223,6 @@ auction_lot_category() # Lots #---------------------------------------------------------- def _type_get(self, cr, uid, context=None): - if not context: - context = {} obj = self.pool.get('auction.lot.category') ids = obj.search(cr, uid, []) res = obj.read(cr, uid, ids, ['name'], context) @@ -245,23 +237,15 @@ class auction_lots(osv.osv): _description=__doc__ def button_not_bought(self, cr, uid, ids, context=None): - if not context: - context={} return self.write(cr, uid, ids, {'state':'unsold'}) def button_taken_away(self, cr, uid, ids, context=None): - if not context: - context={} return self.write(cr, uid, ids, {'state':'taken_away', 'ach_emp': True}) def button_unpaid(self, cr, uid, ids, context=None): - if not context: - context={} return self.write(cr, uid, ids, {'state':'draft'}) def button_bought(self, cr, uid, ids, context=None): - if not context: - context={} return self.write(cr, uid, ids, {'state':'sold'}) def _getprice(self, cr, uid, ids, fields, args, context=None): @@ -271,12 +255,10 @@ class auction_lots(osv.osv): @param context: A standard dictionary for contextual values @return: Dictionary of function fields value. """ - if not context: - context = {} res = {} account_analytic_line_obj = self.pool.get('account.analytic.line') - lots = self.browse(cr, uid, ids, context) + lots = self.browse(cr, uid, ids, context=context) pt_tax = self.pool.get('account.tax') for lot in lots: taxes = [] @@ -362,8 +344,6 @@ class auction_lots(osv.osv): return res def onchange_obj_ret(self, cr, uid, ids, obj_ret, context=None): - if not context: - context={} if obj_ret: return {'value': {'obj_price': 0}} return {} @@ -430,16 +410,12 @@ class auction_lots(osv.osv): } def name_get(self, cr, user, ids, context=None): - if not context: - context={} if not ids: return [] result = [ (r['id'], str(r['obj_num'])+' - '+r['name']) for r in self.read(cr, user, ids, ['name', 'obj_num'])] return result def name_search(self, cr, user, name, args=None, operator='ilike', context=None): - if not context: - context={} if not args: args = [] ids = [] @@ -583,14 +559,12 @@ class auction_lots(osv.osv): def buyer_proforma(self, cr, uid, ids, context=None): - if not context: - context={} invoices = {} inv_ref = self.pool.get('account.invoice') res_obj = self.pool.get('res.partner') inv_line_obj = self.pool.get('account.invoice.line') wf_service = netsvc.LocalService('workflow') - for lot in self.browse(cr, uid, ids, context): + for lot in self.browse(cr, uid, ids, context=context): if not lot.obj_price>0: continue if not lot.ach_uid.id: @@ -643,12 +617,10 @@ class auction_lots(osv.osv): """ # use each list of object in turn invoices = {} - if not context: - context={} inv_ref=self.pool.get('account.invoice') inv_line_obj = self.pool.get('account.invoice.line') wf_service = netsvc.LocalService('workflow') - for lot in self.browse(cr, uid, ids, context): + for lot in self.browse(cr, uid, ids, context=context): if not lot.auction_id.id: continue if lot.bord_vnd_id.id in invoices: @@ -684,7 +656,7 @@ class auction_lots(osv.osv): } inv_line_obj.create(cr, uid, inv_line, context) inv_ref.button_compute(cr, uid, invoices.values()) - for inv in inv_ref.browse(cr, uid, invoices.values(), context): + for inv in inv_ref.browse(cr, uid, invoices.values(), context=context): inv_ref.write(cr, uid, [inv.id], { 'check_total': inv.amount_total }) diff --git a/addons/auction/i18n/auction.pot b/addons/auction/i18n/auction.pot index 87c941329d5..92dc5cc4a3c 100644 --- a/addons/auction/i18n/auction.pot +++ b/addons/auction/i18n/auction.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:43:00+0000\n" -"PO-Revision-Date: 2010-12-03 15:43:00+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:45+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:45+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/auction/i18n/vi.po b/addons/auction/i18n/vi.po index 2d048505c26..86d9d0819d0 100644 --- a/addons/auction/i18n/vi.po +++ b/addons/auction/i18n/vi.po @@ -1,20 +1,20 @@ # Vietnamese translation for openobject-addons # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the openobject-addons package. -# FIRST AUTHOR , 2010. +# Phong Nguyen , 2010. # msgid "" msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-03 15:43+0000\n" -"PO-Revision-Date: 2010-08-02 14:39+0000\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2010-12-15 15:16+0000\n" +"Last-Translator: Phong Nguyen \n" "Language-Team: Vietnamese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:07+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: auction @@ -72,7 +72,7 @@ msgstr "" #: field:auction.bid_line,lot_id:0 #: field:auction.lot.history,lot_id:0 msgid "Object" -msgstr "" +msgstr "Đối tượng" #. module: auction #: field:report.auction.object.date,obj_num:0 @@ -205,7 +205,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "January" -msgstr "" +msgstr "Tháng Một" #. module: auction #: help:auction.lot.category,active:0 @@ -363,7 +363,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "August" -msgstr "" +msgstr "Tháng Tám" #. module: auction #: view:auction.lots:0 @@ -376,7 +376,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "June" -msgstr "" +msgstr "Tháng Sáu" #. module: auction #: code:addons/auction/wizard/auction_catalog_flagey_report.py:0 @@ -387,7 +387,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "October" -msgstr "" +msgstr "Tháng Mười" #. module: auction #: field:auction.bid_line,name:0 @@ -621,7 +621,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "March" -msgstr "" +msgstr "Tháng Ba" #. module: auction #: model:account.tax,name:auction.auction_tax4 @@ -747,7 +747,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "September" -msgstr "" +msgstr "Tháng Chín" #. module: auction #: field:report.auction,net_margin:0 @@ -921,7 +921,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "November" -msgstr "" +msgstr "Tháng Mười một" #. module: auction #: view:auction.dates:0 @@ -1176,7 +1176,7 @@ msgstr "" #: view:auction.lots:0 #: view:report.auction:0 msgid "Group By..." -msgstr "" +msgstr "Nhóm theo..." #. module: auction #: help:auction.dates,journal_id:0 @@ -1319,7 +1319,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "July" -msgstr "" +msgstr "Tháng Bảy" #. module: auction #: field:auction.bid_line,call:0 @@ -1615,7 +1615,7 @@ msgstr "" #. module: auction #: field:auction.lots,product_id:0 msgid "Product" -msgstr "" +msgstr "Sản phẩm" #. module: auction #: report:buyer.list:0 @@ -1950,7 +1950,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "December" -msgstr "" +msgstr "Tháng Mười hai" #. module: auction #: field:auction.lots,image:0 @@ -2178,7 +2178,7 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "May" -msgstr "" +msgstr "Tháng Năm" #. module: auction #: field:auction.lots,obj_price:0 @@ -2198,12 +2198,12 @@ msgstr "" #. module: auction #: selection:report.auction,month:0 msgid "February" -msgstr "" +msgstr "Tháng Hai" #. module: auction #: selection:report.auction,month:0 msgid "April" -msgstr "" +msgstr "Tháng Tư" #. module: auction #: view:auction.pay.buy:0 diff --git a/addons/auction/report/huissier.py b/addons/auction/report/huissier.py index 2718e8bedc2..1b5f7cc68d7 100644 --- a/addons/auction/report/huissier.py +++ b/addons/auction/report/huissier.py @@ -31,9 +31,9 @@ class report_custom(report_rml): def __init__(self, name, table, tmpl, xsl): report_rml.__init__(self, name, table, tmpl, xsl) - def create_xml(self,cr, uid, ids, datas, context={}): + def create_xml(self,cr, uid, ids, datas, context=None): pool= pooler.get_pool(cr.dbname) - lots = pool.get('auction.lots').browse(cr, uid, ids) + lots = pool.get('auction.lots').browse(cr, uid, ids, context=context) auction = lots[0].auction_id xml = ''' diff --git a/addons/auction/report/report_auction.py b/addons/auction/report/report_auction.py index 25cdab88e89..406aedbed89 100644 --- a/addons/auction/report/report_auction.py +++ b/addons/auction/report/report_auction.py @@ -28,8 +28,6 @@ import time import tools def _type_get(self, cr, uid, context=None): - if not context: - context = {} obj = self.pool.get('auction.lot.category') ids = obj.search(cr, uid, []) res = obj.read(cr, uid, ids, ['name'], context) diff --git a/addons/auction/report/total.py b/addons/auction/report/total.py index a5b937c3ad8..a198a7c4416 100644 --- a/addons/auction/report/total.py +++ b/addons/auction/report/total.py @@ -35,7 +35,7 @@ class report_custom(report_rml): def __init__(self, name, table, tmpl, xsl): report_rml.__init__(self, name, table, tmpl, xsl) - def create_xml(self, cr, uid, ids, datas, context={}): + def create_xml(self, cr, uid, ids, datas, context=None): service = netsvc.LocalService("object_proxy") lots = service.execute(cr.dbname, uid, 'auction.lots', 'read', ids, ['obj_price','ach_login','obj_comm','lot_est1','lot_est2','bord_vnd_id','ach_emp','auction_id']) diff --git a/addons/auction/wizard/auction_aie_send.py b/addons/auction/wizard/auction_aie_send.py index f11c9388021..7c904cf850b 100644 --- a/addons/auction/wizard/auction_aie_send.py +++ b/addons/auction/wizard/auction_aie_send.py @@ -34,7 +34,7 @@ class auction_lots_send_aie(osv.osv_memory): _name = 'auction.lots.send.aie' _descritption = 'Send to website' - def _date_get(self, cr, uid, context={}): + def _date_get(self, cr, uid, context=None): selection = context and context.get('selection') if selection: return [('','')] + selection @@ -50,7 +50,7 @@ class auction_lots_send_aie(osv.osv_memory): 'img_send': fields.boolean('Send Image also ?'), } - def default_get(self, cr, uid, fields, context): + def default_get(self, cr, uid, fields, context=None): """ To get default values for the object. @param self: The object pointer. @@ -60,6 +60,8 @@ class auction_lots_send_aie(osv.osv_memory): @param context: A standard dictionary @return: A dictionary which of fields with values. """ + if context is None: + context = {} res = super(auction_lots_send_aie, self).default_get(cr, uid, fields, context=context) if 'uname' in fields and context.get('uname',False): res['uname'] = context.get('uname') @@ -147,7 +149,9 @@ class auction_lots_send_aie(osv.osv_memory): fname = datas[0]['name'] self._photo_bin_send(uname, passwd, ref, did, fname, bin) - def get_dates(self, cr, uid, ids, context={}): + def get_dates(self, cr, uid, ids, context=None): + if context is None: + context = {} import httplib data_obj = self.pool.get('ir.model.data') conn = httplib.HTTPConnection('www.auction-in-europe.com') @@ -174,14 +178,16 @@ class auction_lots_send_aie(osv.osv_memory): 'context': context } - def _send(self, cr, uid, ids, context={}): + def _send(self, cr, uid, ids, context=None): import pickle, thread, sql_db cr.execute('select name,aie_categ from auction_lot_category') vals = dict(cr.fetchall()) cr.close() + if context is None: + context = {} service = netsvc.LocalService("object_proxy") - lots = service.execute(cr.dbname, uid, 'auction.lots', 'read', context['active_ids'], ['obj_num','lot_num','obj_desc','bord_vnd_id','lot_est1','lot_est2','artist_id','lot_type','aie_categ']) + lots = service.execute(cr.dbname, uid, 'auction.lots', 'read', context.get('active_ids',[]), ['obj_num','lot_num','obj_desc','bord_vnd_id','lot_est1','lot_est2','artist_id','lot_type','aie_categ']) lots_ids = [] datas = self.read(cr, uid, ids[0],['uname','login','lang','numerotation','dates']) for l in lots: @@ -211,7 +217,7 @@ class auction_lots_send_aie(osv.osv_memory): thread.start_new_thread(_photos_send, (cr.dbname, uid, datas['uname'], datas['password'],datas['dates'], lots_ids)) return {} - def send_pdf(self, cr, uid, ids, context): + def send_pdf(self, cr, uid, ids, context=None): threaded_calculation = threading.Thread(target=self._send, args=(cr, uid, ids, context)) threaded_calculation.start() return {} diff --git a/addons/auction/wizard/auction_aie_send_result.py b/addons/auction/wizard/auction_aie_send_result.py index 404881b2d6b..5b2b4eca7fd 100644 --- a/addons/auction/wizard/auction_aie_send_result.py +++ b/addons/auction/wizard/auction_aie_send_result.py @@ -32,7 +32,7 @@ class auction_lots_pay(osv.osv_memory): _description = 'Send results to Auction-in-europe.com' - def _date_get(self, cr, uid, context={}): + def _date_get(self, cr, uid, context=None): selection = context and context.get('selection') if selection: return [('','')] + selection @@ -45,7 +45,7 @@ class auction_lots_pay(osv.osv_memory): 'dates': fields.selection(_date_get,'Auction Date'), } - def default_get(self, cr, uid, fields, context): + def default_get(self, cr, uid, fields, context=None): """ To get default values for the object. @param self: The object pointer. @@ -55,6 +55,8 @@ class auction_lots_pay(osv.osv_memory): @param context: A standard dictionary @return: A dictionary which of fields with values. """ + if context is None: + context = {} res = super(auction_lots_pay, self).default_get(cr, uid, fields, context=context) if 'uname' in fields and context.get('uname',False): res['uname'] = context.get('uname') @@ -96,7 +98,9 @@ class auction_lots_pay(osv.osv_memory): return val return post_multipart('auction-in-europe.com', "/bin/catalog_result.cgi", (('uname',uname),('password',passwd),('did',did)),(('file',catalog),)) - def get_dates(self, cr, uid, ids, context): + def get_dates(self, cr, uid, ids, context=None): + if context is None: + context = {} import httplib conn = httplib.HTTPConnection('www.auction-in-europe.com') data_obj = self.pool.get('ir.model.data') @@ -124,7 +128,9 @@ class auction_lots_pay(osv.osv_memory): 'context': context } - def send(self, cr, uid, ids, context): + def send(self, cr, uid, ids, context=None): + if context is None: + context = {} import pickle service = netsvc.LocalService("object_proxy") datas = self.read(cr, uid, ids[0],['uname','password','dates']) diff --git a/addons/auction/wizard/auction_catalog_flagey_report.py b/addons/auction/wizard/auction_catalog_flagey_report.py index b5bff2d2858..03c8236c55c 100644 --- a/addons/auction/wizard/auction_catalog_flagey_report.py +++ b/addons/auction/wizard/auction_catalog_flagey_report.py @@ -27,7 +27,7 @@ class auction_catalog_flagey(osv.osv_memory): _name = 'auction.catalog.flagey' _description = 'Auction Catalog Flagey' - def default_get(self, cr, uid, fields, context): + def default_get(self, cr, uid, fields, context=None): """ To get default values for the object. @param self: The object pointer. @@ -40,7 +40,7 @@ class auction_catalog_flagey(osv.osv_memory): res = super(auction_catalog_flagey, self).default_get(cr, uid, fields, context=context) return res - def view_init(self, cr, uid, fields, context): + def view_init(self, cr, uid, fields, context=None): """ Creates view dynamically, adding fields at runtime, raises exception at the time of initialization of view. @@ -53,15 +53,17 @@ class auction_catalog_flagey(osv.osv_memory): """ lots_obj = self.pool.get('auction.lots') auc_dates_obj = self.pool.get('auction.dates') + if context is None: + context = {} current_auction = auc_dates_obj.browse(cr, uid, context.get('active_ids', [])) v_lots = lots_obj.search(cr, uid, [('auction_id','=',current_auction.id)]) - v_ids = lots_obj.browse(cr, uid, v_lots) + v_ids = lots_obj.browse(cr, uid, v_lots, context=context) for ab in v_ids: if not ab.auction_id : raise osv.except_osv(_('Error!'), _('No Lots belong to this Auction Date')) pass - def print_report(self, cr, uid, ids, context): + def print_report(self, cr, uid, ids, context=None): """ Prints auction catalog flagey report. @param self: The object pointer. @@ -71,6 +73,8 @@ class auction_catalog_flagey(osv.osv_memory): @param context: A standard dictionary @return: Report """ + if context is None: + context = {} datas = {'ids': context.get('active_ids',[])} return { 'type': 'ir.actions.report.xml', diff --git a/addons/auction/wizard/auction_lots_able.py b/addons/auction/wizard/auction_lots_able.py index 8ddeeca8055..369d762727a 100644 --- a/addons/auction/wizard/auction_lots_able.py +++ b/addons/auction/wizard/auction_lots_able.py @@ -31,14 +31,16 @@ class auction_lots_able(osv.osv_memory): _name = "auction.lots.able" _description = "Lots able" - def confirm_able(self, cr, uid, ids, context={}): + def confirm_able(self, cr, uid, ids, context=None): """ This function Update auction lots object and set taken away field true. @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of auction lots able’s IDs. """ - self.pool.get('auction.lots').write(cr, uid, context['active_ids'], {'ach_emp':True}) + if context is None: + context = {} + self.pool.get('auction.lots').write(cr, uid, context.get('active_ids', []), {'ach_emp':True}) return {} auction_lots_able() diff --git a/addons/auction/wizard/auction_lots_auction_move.py b/addons/auction/wizard/auction_lots_auction_move.py index cb19f65172c..97330f922fe 100644 --- a/addons/auction/wizard/auction_lots_auction_move.py +++ b/addons/auction/wizard/auction_lots_auction_move.py @@ -44,13 +44,13 @@ class auction_lots_auction_move(osv.osv_memory): @param uid: the current user’s ID for security checks, @param ids: List of auction lots auction move’s IDs. """ - if not context: + if context is None: context={} auction_bid_line_obj = self.pool.get('auction.bid_line') auction_lot_history_obj = self.pool.get('auction.lot.history') auction_lots_obj = self.pool.get('auction.lots') rec_ids = auction_lots_obj.browse(cr, uid, context.get('active_ids', [])) - for current in self.browse(cr, uid, ids, context): + for current in self.browse(cr, uid, ids, context=context): if not (current.auction_id and len(context.get('active_ids', []))): return {} diff --git a/addons/auction/wizard/auction_lots_buyer_map.py b/addons/auction/wizard/auction_lots_buyer_map.py index 98d26b83b4f..e50f11fd1ec 100644 --- a/addons/auction/wizard/auction_lots_buyer_map.py +++ b/addons/auction/wizard/auction_lots_buyer_map.py @@ -32,7 +32,7 @@ class wiz_auc_lots_buyer_map(osv.osv_memory): 'ach_uid': fields.many2one('res.partner','Buyer', required=True), } - def default_get(self, cr, uid, fields, context): + def default_get(self, cr, uid, fields, context=None): """ To get default values for the object. @param self: The object pointer. @@ -42,14 +42,16 @@ class wiz_auc_lots_buyer_map(osv.osv_memory): @param context: A standard dictionary @return: A dictionary which of fields with values. """ - res = super(wiz_auc_lots_buyer_map,self).default_get(cr, uid, fields, context) + if context is None: + context = {} + res = super(wiz_auc_lots_buyer_map,self).default_get(cr, uid, fields, context=context) auction_lots_obj = self.pool.get('auction.lots') lots_ids = auction_lots_obj.search(cr, uid, [('ach_uid', '=', ''), ('ach_login', '!=', '')]) - for rec in auction_lots_obj.browse(cr, uid, lots_ids, context): + for rec in auction_lots_obj.browse(cr, uid, lots_ids, context=context): if (not rec.ach_uid or not rec.ach_login): - res.update(self._start(cr, uid, context.get('active_ids', []), context)) + res.update(self._start(cr, uid, context.get('active_ids', []), context=context)) return res - res.update(self._start(cr, uid, context.get('active_ids', []), context)) + res.update(self._start(cr, uid, context.get('active_ids', []), context=context)) return res def _start(self, cr, uid, ids, context=None): @@ -62,10 +64,8 @@ class wiz_auc_lots_buyer_map(osv.osv_memory): @param context: A standard dictionary @return: login field from current record. """ - if not context: - context={} lots_obj = self.pool.get('auction.lots') - for rec in lots_obj.browse(cr, uid, ids, context): + for rec in lots_obj.browse(cr, uid, ids, context=context): if (len(ids)==1) and (not rec.ach_uid and not rec.ach_login): raise osv.except_osv(_('Error'), _('No buyer is set for this lot.')) if not rec.ach_uid and rec.ach_login: @@ -81,13 +81,13 @@ class wiz_auc_lots_buyer_map(osv.osv_memory): @param ids: List of ids @param context: A standard dictionary """ - if not context: + if context is None: context={} rec_ids = context and context.get('active_ids',[]) or [] assert rec_ids, _('Active IDs not Found') lots_obj = self.pool.get('auction.lots') - for current in self.browse(cr, uid, ids): - for lots in lots_obj.browse(cr, uid, rec_ids, context): + for current in self.browse(cr, uid, ids, context=context): + for lots in lots_obj.browse(cr, uid, rec_ids, context=context): if lots.ach_login == current.ach_login: lots_obj.write(cr, uid, [lots.id], {'ach_uid': current.ach_uid.id}, context=context) return {} @@ -102,7 +102,7 @@ class wiz_auc_lots_buyer_map(osv.osv_memory): @param context: A standard dictionary @return: New arch of view. """ - if not context: + if context is None: context={} record_ids = context and context.get('active_ids', []) or [] res = super(wiz_auc_lots_buyer_map, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False) @@ -111,7 +111,7 @@ class wiz_auc_lots_buyer_map(osv.osv_memory): lots_obj = self.pool.get('auction.lots') if record_ids: try: - for lots in lots_obj.browse(cr, uid, record_ids): + for lots in lots_obj.browse(cr, uid, record_ids, context=context): if lots.ach_uid: res['arch'] = """
diff --git a/addons/auction/wizard/auction_lots_cancel.py b/addons/auction/wizard/auction_lots_cancel.py index 3d443a98e15..62313315bd9 100644 --- a/addons/auction/wizard/auction_lots_cancel.py +++ b/addons/auction/wizard/auction_lots_cancel.py @@ -40,11 +40,11 @@ class auction_lots_cancel(osv.osv): @param context: A standard dictionary @return: """ - if not context: + if context is None: context={} lots_obj = self.pool.get('auction.lots') invoice_obj = self.pool.get('account.invoice') - lot = lots_obj.browse(cr, uid, context.get('active_id', False), context) + lot = lots_obj.browse(cr, uid, context.get('active_id', False), context=context) if lot.ach_inv_id: supplier_refund_inv_id = invoice_obj.refund(cr, uid, [lot.ach_inv_id.id]) if lot.sel_inv_id: diff --git a/addons/auction/wizard/auction_lots_enable.py b/addons/auction/wizard/auction_lots_enable.py index 65cb0c4d49e..ed6b8950d2e 100644 --- a/addons/auction/wizard/auction_lots_enable.py +++ b/addons/auction/wizard/auction_lots_enable.py @@ -28,14 +28,16 @@ class auction_lots_enable(osv.osv_memory): 'confirm_en':fields.integer('Catalog Number') } - def confirm_enable(self, cr, uid, ids, context={}): + def confirm_enable(self, cr, uid, ids, context=None): """ This function Update auction lots object and set taken away field False. @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of auction lots enable’s IDs. """ - self.pool.get('auction.lots').write(cr, uid, context['active_id'], {'ach_emp':False}) + if context is None: + context = {} + self.pool.get('auction.lots').write(cr, uid, context.get('active_id',False), {'ach_emp':False}) return {} auction_lots_enable() diff --git a/addons/auction/wizard/auction_lots_invoice.py b/addons/auction/wizard/auction_lots_invoice.py index 89d66f5f2d5..66bb5e42f2b 100644 --- a/addons/auction/wizard/auction_lots_invoice.py +++ b/addons/auction/wizard/auction_lots_invoice.py @@ -36,7 +36,7 @@ class auction_lots_invoice(osv.osv_memory): 'number': fields.integer('Invoice Number'), } - def default_get(self, cr, uid, fields, context={}): + def default_get(self, cr, uid, fields, context=None): """ To get default values for the object. @param self: The object pointer. @@ -46,6 +46,8 @@ class auction_lots_invoice(osv.osv_memory): @param context: A standard dictionary @return: A dictionary which of fields with values. """ + if context is None: + context = {} res = super(auction_lots_invoice, self).default_get(cr, uid, fields, context=context) service = netsvc.LocalService("object_proxy") lots = service.execute(cr.dbname, uid, 'auction.lots', 'read', context.get('active_ids', [])) @@ -78,7 +80,7 @@ class auction_lots_invoice(osv.osv_memory): #TODO: recuperer id next invoice (de la sequence)??? invoice_number = False - for lot in self.pool.get('auction.lots').browse(cr, uid, context.get('active_ids', [])): + for lot in self.pool.get('auction.lots').browse(cr, uid, context.get('active_ids', []), context=context): if 'objects' in fields: res.update({'objects':len(context.get('active_ids', []))}) if 'amount' in fields: @@ -93,7 +95,7 @@ class auction_lots_invoice(osv.osv_memory): res.update({'number':invoice_number}) return res - def print_report(self, cr, uid, ids, context={}): + def print_report(self, cr, uid, ids, context=None): """ Create an invoice report. @param cr: the current row, from the database cursor. @@ -101,6 +103,8 @@ class auction_lots_invoice(osv.osv_memory): @param ids: List of Auction lots make invoice buyer’s IDs @return: dictionary of account invoice form. """ + if context is None: + context = {} service = netsvc.LocalService("object_proxy") datas = {'ids' : context.get('active_ids',[])} res = self.read(cr, uid, ids, ['number','ach_uid']) diff --git a/addons/auction/wizard/auction_lots_make_invoice.py b/addons/auction/wizard/auction_lots_make_invoice.py index 5d32e644283..3a87a202b74 100644 --- a/addons/auction/wizard/auction_lots_make_invoice.py +++ b/addons/auction/wizard/auction_lots_make_invoice.py @@ -50,11 +50,11 @@ class auction_lots_make_invoice(osv.osv_memory): @param context: A standard dictionary @return: A dictionary which of fields with values. """ - if not context: + if context is None: context={} res = super(auction_lots_make_invoice, self).default_get(cr, uid, fields, context=context) lots_obj = self.pool.get('auction.lots') - for lot in lots_obj.browse(cr, uid, context.get('active_ids', [])): + for lot in lots_obj.browse(cr, uid, context.get('active_ids', []), context=context): if 'amount' in fields: res.update({'amount': lot.seller_price}) if 'objects' in fields: @@ -69,13 +69,13 @@ class auction_lots_make_invoice(osv.osv_memory): @param ids: List of Auction lots make invoice’s IDs @return: dictionary of account invoice form. """ - if not context: + if context is None: context={} order_obj = self.pool.get('auction.lots') mod_obj = self.pool.get('ir.model.data') result = mod_obj._get_id(cr, uid, 'account', 'view_account_invoice_filter') id = mod_obj.read(cr, uid, result, ['res_id']) - lots_ids = order_obj.seller_trans_create(cr, uid, context.get('active_ids', []), context) + lots_ids = order_obj.seller_trans_create(cr, uid, context.get('active_ids', []), context=context) return { 'domain': "[('id','in', ["+','.join(map(str, lots_ids))+"])]", 'name': 'Seller invoices', diff --git a/addons/auction/wizard/auction_lots_make_invoice_buyer.py b/addons/auction/wizard/auction_lots_make_invoice_buyer.py index 5eb9a649556..dc39ccbb717 100644 --- a/addons/auction/wizard/auction_lots_make_invoice_buyer.py +++ b/addons/auction/wizard/auction_lots_make_invoice_buyer.py @@ -45,11 +45,11 @@ class auction_lots_make_invoice_buyer(osv.osv_memory): @param context: A standard dictionary @return: A dictionary which of fields with values. """ - if not context: + if context is None: context={} res = super(auction_lots_make_invoice_buyer, self).default_get(cr, uid, fields, context=context) lots_obj=self.pool.get('auction.lots') - for lot in lots_obj.browse(cr, uid, context.get('active_ids', [])): + for lot in lots_obj.browse(cr, uid, context.get('active_ids', []), context=context): if 'amount' in fields: res.update({'amount': lot.buyer_price}) if 'buyer_id' in fields: @@ -58,7 +58,7 @@ class auction_lots_make_invoice_buyer(osv.osv_memory): res.update({'objects': len(context.get('active_ids', []))}) return res - def makeInvoices(self, cr, uid, ids, context): + def makeInvoices(self, cr, uid, ids, context=None): """ Create an invoice for selected lots (IDS) to BUYER_ID . @param cr: the current row, from the database cursor. @@ -70,8 +70,8 @@ class auction_lots_make_invoice_buyer(osv.osv_memory): mod_obj = self.pool.get('ir.model.data') result = mod_obj._get_id(cr, uid, 'account', 'view_account_invoice_filter') id = mod_obj.read(cr, uid, result, ['res_id']) - lots = order_obj.browse(cr, uid, context.get('active_ids', [])) - for current in self.browse(cr, uid, ids, context): + lots = order_obj.browse(cr, uid, context.get('active_ids', []), context=context) + for current in self.browse(cr, uid, ids, context=context): invoice_number = current.number for lot in lots: up_auction = order_obj.write(cr, uid, [lot.id], {'ach_uid': current.buyer_id.id}) diff --git a/addons/auction/wizard/auction_lots_numerotate.py b/addons/auction/wizard/auction_lots_numerotate.py index 9c41d1d4f70..0712e21565e 100644 --- a/addons/auction/wizard/auction_lots_numerotate.py +++ b/addons/auction/wizard/auction_lots_numerotate.py @@ -38,7 +38,7 @@ class auction_lots_numerotate_per_lot(osv.osv_memory): 'obj_num': fields.integer('Catalog Number', required=True) } - def default_get(self, cr, uid, fields, context): + def default_get(self, cr, uid, fields, context=None): """ To get default values for the object. @param self: The object pointer. @@ -48,13 +48,14 @@ class auction_lots_numerotate_per_lot(osv.osv_memory): @param context: A standard dictionary @return: A dictionary which of fields with values. """ + if context is None: context = {} res = super(auction_lots_numerotate_per_lot, self).default_get(cr, uid, fields, context=context) active_id = context.get('active_id',False) active_model = context.get('active_model') if active_id and (active_model and active_model!='auction.lots'): return res lots_obj = self.pool.get('auction.lots') - lots = lots_obj.browse(cr, uid, active_id) + lots = lots_obj.browse(cr, uid, active_id, context=context) if 'bord_vnd_id' in fields and context.get('bord_vnd_id',False): res['bord_vnd_id'] = context.get('bord_vnd_id') if 'lot_num' in fields and context.get('lot_num',False): @@ -71,7 +72,7 @@ class auction_lots_numerotate_per_lot(osv.osv_memory): res['obj_num'] = lots.obj_num return res - def open_init_form(self, cr, uid, ids, context={}): + def open_init_form(self, cr, uid, ids, context=None): record_ids = context and context.get('active_ids',False) or False assert record_ids, _('Active IDs not Found') data_obj = self.pool.get('ir.model.data') @@ -89,7 +90,7 @@ class auction_lots_numerotate_per_lot(osv.osv_memory): 'context': context } - def numerotate(self, cr, uid, ids, context={}): + def numerotate(self, cr, uid, ids, context=None): record_ids = context and context.get('active_ids',False) or False assert record_ids, _('Active IDs not Found') datas = self.read(cr, uid, ids[0], ['bord_vnd_id','lot_num','obj_num']) @@ -116,7 +117,7 @@ class auction_lots_numerotate_per_lot(osv.osv_memory): 'context': context } - def read_record(self, cr, uid, ids, context={}): + def read_record(self, cr, uid, ids, context=None): record_ids = context and context.get('active_ids',False) or False assert record_ids, _('Active IDs not Found') datas = self.read(cr, uid, ids[0], ['bord_vnd_id','lot_num']) @@ -131,7 +132,7 @@ class auction_lots_numerotate_per_lot(osv.osv_memory): 'lot_est2', 'obj_desc']) return lots_datas[0] - def test_exist(self, cr, uid, ids, context={}): + def test_exist(self, cr, uid, ids, context=None): record_ids = context and context.get('active_ids',False) or False assert record_ids, _('Active IDs not Found') data_obj = self.pool.get('ir.model.data') @@ -167,13 +168,13 @@ class auction_lots_numerotate(osv.osv_memory): 'number': fields.integer('First Number', required=True) } - def numerotate_cont(self, cr, uid, ids, context={}): + def numerotate_cont(self, cr, uid, ids, context=None): record_ids = context and context.get('active_ids',False) or False assert record_ids, _('Active IDs not Found') datas = self.read(cr, uid, ids[0], ['number']) nbr = int(datas['number']) lots_obj = self.pool.get('auction.lots') - rec_ids = lots_obj.browse(cr, uid, record_ids) + rec_ids = lots_obj.browse(cr, uid, record_ids, context=context) for rec_id in rec_ids: lots_obj.write(cr, uid, [rec_id.id], {'obj_num':nbr}) nbr+=1 diff --git a/addons/auction/wizard/auction_lots_sms_send.py b/addons/auction/wizard/auction_lots_sms_send.py index 094ecea1ca2..93faab41275 100644 --- a/addons/auction/wizard/auction_lots_sms_send.py +++ b/addons/auction/wizard/auction_lots_sms_send.py @@ -34,7 +34,7 @@ class auction_lots_sms_send(osv.osv_memory): 'text':fields.text('SMS Message', required=True) } - def sms_send(self, cr, uid, ids, context): + def sms_send(self, cr, uid, ids, context=None): """ to send sms @@ -44,18 +44,18 @@ class auction_lots_sms_send(osv.osv_memory): @param context: A standard dictionary @return: number indicating the acknowledgement """ - + if context is None: context = {} lot_obj = self.pool.get('auction.lots') partner_obj = self.pool.get('res.partner') partner_address_obj = self.pool.get('res.partner.address') - for data in self.read(cr, uid, ids): - lots = lot_obj.read(cr, uid, context['active_ids'], ['obj_num','obj_price','ach_uid']) + for data in self.read(cr, uid, ids, context=context): + lots = lot_obj.read(cr, uid, context.get('active_ids', []), ['obj_num','obj_price','ach_uid']) res = partner_obj.read(cr, uid, [l['ach_uid'][0] for l in lots if l['ach_uid']], ['gsm'], context) nbr = 0 for r in res: add = partner_obj.address_get(cr, uid, [r['id']])['default'] - addr = partner_address_obj.browse(cr, uid, add) + addr = partner_address_obj.browse(cr, uid, add, context=context) to = addr.mobile if to: tools.smssend(data['user'], data['password'], data['app_id'], unicode(data['text'], 'utf-8').encode('latin1'), to) diff --git a/addons/auction/wizard/auction_pay_buy.py b/addons/auction/wizard/auction_pay_buy.py index bf6a85cf74b..dfad93dc759 100644 --- a/addons/auction/wizard/auction_pay_buy.py +++ b/addons/auction/wizard/auction_pay_buy.py @@ -48,11 +48,11 @@ class auction_pay_buy(osv.osv_memory): @param context: A standard dictionary @return: A dictionary which of fields with values. """ - if not context: + if context is None: context={} res = super(auction_pay_buy, self).default_get(cr, uid, fields, context=context) auction_lots_obj= self.pool.get('auction.lots') - for lot in auction_lots_obj.browse(cr, uid, context.get('active_ids', [])): + for lot in auction_lots_obj.browse(cr, uid, context.get('active_ids', []), context=context): if 'amount' in fields: res.update({'amount': lot.buyer_price}) if 'buyer_id' in fields: @@ -61,7 +61,7 @@ class auction_pay_buy(osv.osv_memory): res.update({'total': lot.buyer_price}) return res - def pay_and_reconcile(self, cr, uid, ids, context): + def pay_and_reconcile(self, cr, uid, ids, context=None): """ Pay and Reconcile @param cr: the current row, from the database cursor. @@ -70,15 +70,16 @@ class auction_pay_buy(osv.osv_memory): @param context: A standard dictionary @return: """ + if context is None: context = {} lot_obj = self.pool.get('auction.lots') bank_statement_line_obj = self.pool.get('account.bank.statement.line') - for datas in self.read(cr, uid, ids): + for datas in self.read(cr, uid, ids, context=context): if not abs(datas['total'] - (datas['amount'] + datas['amount2'] + datas['amount3'])) <0.01: rest = datas['total'] - (datas['amount'] + datas['amount2'] + datas['amount3']) raise osv.except_osv(_('Payment aborted !'), _('You should pay all the total: "%.2f" are missing to accomplish the payment.') %(round(rest, 2))) - lots = lot_obj.browse(cr, uid, context['active_ids'], context) + lots = lot_obj.browse(cr, uid, context.get('active_ids', []), context=context) for lot in lots: if datas['buyer_id']: lot_obj.write(cr, uid, [lot.id], {'ach_uid': datas['buyer_id']}) diff --git a/addons/auction/wizard/auction_pay_sel.py b/addons/auction/wizard/auction_pay_sel.py index a6444f8d646..7265a4e7f98 100644 --- a/addons/auction/wizard/auction_pay_sel.py +++ b/addons/auction/wizard/auction_pay_sel.py @@ -33,7 +33,7 @@ class auction_pay_sel(osv.osv_memory): 'period_id':fields.many2one('account.period', 'Period', required=True), } - def pay_and_reconcile(self, cr, uid, ids, context): + def pay_and_reconcile(self, cr, uid, ids, context=None): """ Pay and Reconcile @param cr: the current row, from the database cursor. @@ -42,9 +42,11 @@ class auction_pay_sel(osv.osv_memory): @param context: A standard dictionary @return: """ - lot = self.pool.get('auction.lots').browse(cr, uid, context['active_id'], context) + if context is None: + context = {} + lot = self.pool.get('auction.lots').browse(cr, uid, context['active_id'], context=context) invoice_obj = self.pool.get('account.invoice') - for datas in self.read(cr, uid, ids): + for datas in self.read(cr, uid, ids, context=context): account_id = datas.get('writeoff_acc_id', False) period_id = datas.get('period_id', False) journal_id = datas.get('journal_id', False) diff --git a/addons/auction/wizard/auction_payer_sel.py b/addons/auction/wizard/auction_payer_sel.py index 087eacce9d7..808826cfc23 100644 --- a/addons/auction/wizard/auction_payer_sel.py +++ b/addons/auction/wizard/auction_payer_sel.py @@ -25,7 +25,9 @@ class auction_payer(osv.osv_memory): _name = "auction.payer" _description = "Auction payer" - def payer(self, cr, uid, ids, context): + def payer(self, cr, uid, ids, context=None): + if context is None: + context = {} self.pool.get('auction.lots').write(cr, uid, context.get('active_ids', []), {'is_ok':True, 'state':'paid'}) return {} @@ -38,14 +40,16 @@ class auction_payer_sel(osv.osv_memory): _name = "auction.payer.sel" _description = "Auction payment for seller" - def payer_sel(self, cr, uid, ids, context): + def payer_sel(self, cr, uid, ids, context=None): """ This function Update auction lots object and seller paid true. @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of auction payer sel’s IDs. """ - self.pool.get('auction.lots').write(cr, uid, context['active_ids'], {'paid_vnd':True}) + if context is None: + context = {} + self.pool.get('auction.lots').write(cr, uid, context.get('active_ids', []), {'paid_vnd':True}) return {} auction_payer_sel() diff --git a/addons/auction/wizard/auction_taken.py b/addons/auction/wizard/auction_taken.py index ff79000d898..8ada436ae5d 100644 --- a/addons/auction/wizard/auction_taken.py +++ b/addons/auction/wizard/auction_taken.py @@ -42,10 +42,10 @@ class auction_taken(osv.osv_memory): @param ids: List of Auction taken’s IDs @return: dictionary of lot_ids fields with empty list """ - if not context: + if context is None: context={} lot_obj = self.pool.get('auction.lots') - for current in self.browse(cr, uid, ids, context): + for current in self.browse(cr, uid, ids, context=context): for lot in current.lot_ids: lot_obj.write(cr, uid, lot.id, {'state':'taken_away', 'ach_emp': True}) return {'lot_ids': []} diff --git a/addons/auction/wizard/auction_transfer_unsold_object.py b/addons/auction/wizard/auction_transfer_unsold_object.py index d2b38811daa..8bc0cb8cb5b 100644 --- a/addons/auction/wizard/auction_transfer_unsold_object.py +++ b/addons/auction/wizard/auction_transfer_unsold_object.py @@ -29,7 +29,7 @@ class auction_transfer_unsold_object(osv.osv): _name = 'auction.transfer.unsold.object' _description = 'To transfer unsold objects' - def _start(self, cr, uid, context): + def _start(self, cr, uid, context=None): """ To initialize auction_id_from @param self: The object pointer. @@ -40,7 +40,7 @@ class auction_transfer_unsold_object(osv.osv): @return: auction_id_from """ lots_obj = self.pool.get('auction.lots') - rec = lots_obj.browse(cr, uid, context['active_id'], context) + rec = lots_obj.browse(cr, uid, context.get('active_id', False), context=context) auction_from = rec and rec.auction_id.id or False return auction_from @@ -53,7 +53,7 @@ class auction_transfer_unsold_object(osv.osv): 'auction_id_from': _start, } - def transfer_unsold_object(self, cr, uid, ids, context): + def transfer_unsold_object(self, cr, uid, ids, context=None): """ To Transfer the unsold object @param self: The object pointer. @@ -63,15 +63,16 @@ class auction_transfer_unsold_object(osv.osv): @param context: A standard dictionary @return: """ + if context is None: context = {} bid_line_obj = self.pool.get('auction.bid_line') lots_obj = self.pool.get('auction.lots') lot_history_obj = self.pool.get('auction.lot.history') - line_ids= bid_line_obj.search(cr, uid, [('lot_id','in',context['active_ids'])]) + line_ids= bid_line_obj.search(cr, uid, [('lot_id','in',context.get('active_ids', []))]) bid_line_obj.unlink(cr, uid, line_ids) - res = self.browse(cr, uid, ids) + res = self.browse(cr, uid, ids, context=context) unsold_ids = lots_obj.search(cr,uid,[('auction_id','=',res[0].auction_id_from.id),('state','=','unsold')]) - for rec in lots_obj.browse(cr, uid, unsold_ids, context): + for rec in lots_obj.browse(cr, uid, unsold_ids, context=context): new_id = lot_history_obj.create(cr, uid, {'auction_id':rec.auction_id.id,'lot_id':rec.id,'price': rec.obj_ret, 'name': rec.auction_id.auction1}) up_auction = lots_obj.write(cr, uid, [rec.id], {'auction_id': res[0].auction_id_to.id, 'obj_ret':None, diff --git a/addons/audittrail/i18n/audittrail.pot b/addons/audittrail/i18n/audittrail.pot index 509f4f2f4ef..06d97b42a7e 100644 --- a/addons/audittrail/i18n/audittrail.pot +++ b/addons/audittrail/i18n/audittrail.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:43:00+0000\n" -"PO-Revision-Date: 2010-12-03 15:43:00+0000\n" +"POT-Creation-Date: 2010-12-15 15:04:46+0000\n" +"PO-Revision-Date: 2010-12-15 15:04:46+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/audittrail/i18n/sl.po b/addons/audittrail/i18n/sl.po index c0418dfc3ce..4c3ebe3864e 100644 --- a/addons/audittrail/i18n/sl.po +++ b/addons/audittrail/i18n/sl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:43+0000\n" -"PO-Revision-Date: 2010-08-03 00:52+0000\n" -"Last-Translator: mga (Open ERP) \n" +"PO-Revision-Date: 2010-12-15 10:13+0000\n" +"Last-Translator: Simon Vidmar \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:12+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:47+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: audittrail @@ -54,7 +54,7 @@ msgstr "Revidiraj dnevnike" #: view:audittrail.log:0 #: view:audittrail.rule:0 msgid "Group By..." -msgstr "" +msgstr "Združi po ..." #. module: audittrail #: view:audittrail.rule:0 @@ -65,7 +65,7 @@ msgstr "Stanje" #. module: audittrail #: view:audittrail.rule:0 msgid "_Subscribe" -msgstr "" +msgstr "_Naroči" #. module: audittrail #: view:audittrail.rule:0 @@ -177,7 +177,7 @@ msgstr "Stara vrednost: " #. module: audittrail #: field:audittrail.log,name:0 msgid "Resource Name" -msgstr "" +msgstr "Naziv vira" #. module: audittrail #: view:audittrail.log:0 diff --git a/addons/audittrail/wizard/audittrail_view_log.py b/addons/audittrail/wizard/audittrail_view_log.py index f1329b58a0d..65165c1d2d8 100644 --- a/addons/audittrail/wizard/audittrail_view_log.py +++ b/addons/audittrail/wizard/audittrail_view_log.py @@ -42,17 +42,15 @@ class audittrail_view_log(osv.osv_memory): @param ids: List of audittrail view log’s IDs. @return: Dictionary of audittrail log form on given date range. """ - if not context: - context = {} mod_obj = self.pool.get('ir.model.data') act_obj = self.pool.get('ir.actions.act_window') result = mod_obj._get_id(cr, uid, 'audittrail', 'action_audittrail_log_tree') - id = mod_obj.read(cr, uid, [result], ['res_id'])[0]['res_id'] - result = act_obj.read(cr, uid, [id])[0] + id = mod_obj.read(cr, uid, [result], ['res_id'], context=context)[0]['res_id'] + result = act_obj.read(cr, uid, [id], context=context)[0] #start Loop - for datas in self.read(cr, uid, ids): + for datas in self.read(cr, uid, ids, context=context): if not datas.get('from', None): if datas.get('to') <> time.strftime("%Y-%m-%d %H:%M:%S"): result['domain'] = str([('timestamp', '<', datas.get('to'))]) diff --git a/addons/base_action_rule/base_action_rule.py b/addons/base_action_rule/base_action_rule.py index 9a2d720cc1a..bf34c137b5a 100644 --- a/addons/base_action_rule/base_action_rule.py +++ b/addons/base_action_rule/base_action_rule.py @@ -35,7 +35,7 @@ class base_action_rule(osv.osv): _name = 'base.action.rule' _description = 'Action Rules' - def _state_get(self, cr, uid, context={}): + def _state_get(self, cr, uid, context=None): """ Get State @param self: The object pointer @param cr: the current row, from the database cursor, @@ -43,7 +43,7 @@ class base_action_rule(osv.osv): @param context: A standard dictionary for contextual values """ return self.state_get(cr, uid, context=context) - def state_get(self, cr, uid, context={}): + def state_get(self, cr, uid, context=None): """ Get State @param self: The object pointer @param cr: the current row, from the database cursor, @@ -51,7 +51,7 @@ class base_action_rule(osv.osv): @param context: A standard dictionary for contextual values """ return [('', '')] - def priority_get(self, cr, uid, context={}): + def priority_get(self, cr, uid, context=None): """ Get Priority @param self: The object pointer @param cr: the current row, from the database cursor, @@ -157,7 +157,7 @@ the rule to mark CC(mail to any other person defined in actions)."), return True def _create(self, old_create, model, context=None): - if not context: + if context is None: context = {} def make_call_old(cr, uid, vals, context=context): new_id = old_create(cr, uid, vals, context=context) @@ -167,7 +167,7 @@ the rule to mark CC(mail to any other person defined in actions)."), return make_call_old def _write(self, old_write, model, context=None): - if not context: + if context is None: context = {} def make_call_old(cr, uid, ids, vals, context=context): if isinstance(ids, (str, int, long)): @@ -178,7 +178,7 @@ the rule to mark CC(mail to any other person defined in actions)."), return make_call_old def _register_hook(self, cr, uid, ids, context=None): - if not context: + if context is None: context = {} for action_rule in self.browse(cr, uid, ids, context=context): model = action_rule.model_id.model @@ -190,12 +190,12 @@ the rule to mark CC(mail to any other person defined in actions)."), return True def create(self, cr, uid, vals, context=None): - res_id = super(base_action_rule, self).create(cr, uid, vals, context) + res_id = super(base_action_rule, self).create(cr, uid, vals, context=context) self._register_hook(cr, uid, [res_id], context=context) return res_id def write(self, cr, uid, ids, vals, context=None): - res = super(base_action_rule, self).write(cr, uid, ids, vals, context) + res = super(base_action_rule, self).write(cr, uid, ids, vals, context=context) self._register_hook(cr, uid, ids, context=context) return res @@ -396,7 +396,7 @@ the rule to mark CC(mail to any other person defined in actions)."), if not scrit: scrit = [] - for action in self.browse(cr, uid, ids, context): + for action in self.browse(cr, uid, ids, context=context): model_obj = self.pool.get(action.model_id.model) for obj in objects: ok = self.do_check(cr, uid, action, obj, context=context) @@ -454,7 +454,7 @@ the rule to mark CC(mail to any other person defined in actions)."), empty = orm.browse_null() rule_obj = self.pool.get('base.action.rule') - for rule in self.browse(cr, uid, ids): + for rule in self.browse(cr, uid, ids, context=context): if rule.act_mail_body: try: rule_obj.format_mail(empty, rule.act_mail_body) diff --git a/addons/base_action_rule/i18n/base_action_rule.pot b/addons/base_action_rule/i18n/base_action_rule.pot index 93906a8f9ae..b7a65cea8a2 100644 --- a/addons/base_action_rule/i18n/base_action_rule.pot +++ b/addons/base_action_rule/i18n/base_action_rule.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:43:13+0000\n" -"PO-Revision-Date: 2010-12-03 15:43:13+0000\n" +"POT-Creation-Date: 2010-12-15 15:05:00+0000\n" +"PO-Revision-Date: 2010-12-15 15:05:00+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/base_action_rule/i18n/pt.po b/addons/base_action_rule/i18n/pt.po index 2418010012d..471f5b24e94 100644 --- a/addons/base_action_rule/i18n/pt.po +++ b/addons/base_action_rule/i18n/pt.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-03 15:43+0000\n" -"PO-Revision-Date: 2010-12-14 13:02+0000\n" -"Last-Translator: Rui Franco (multibase.pt) \n" +"PO-Revision-Date: 2010-12-15 20:31+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:20+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base_action_rule diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index c567105547d..fa85b242f6a 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -106,7 +106,6 @@ def _links_get(self, cr, uid, context=None): @param context: A standard dictionary for contextual values @return: list of dictionary which contain object and name and id. """ - obj = self.pool.get('res.request.link') ids = obj.search(cr, uid, []) res = obj.read(cr, uid, ids, ['object', 'name'], context=context) @@ -222,7 +221,7 @@ class calendar_attendee(osv.osv): name += ':' return (name or '') + (email and ('MAILTO:' + email) or '') - def _compute_data(self, cr, uid, ids, name, arg, context): + def _compute_data(self, cr, uid, ids, name, arg, context=None): """ Compute data on function fields for attendee values . @param cr: the current row, from the database cursor, @@ -300,7 +299,6 @@ class calendar_attendee(osv.osv): @param context: A standard dictionary for contextual values @return: list of dictionary which contain object and name and id. """ - obj = self.pool.get('res.request.link') ids = obj.search(cr, uid, []) res = obj.read(cr, uid, ids, ['object', 'name'], context=context) @@ -649,7 +647,7 @@ true, it will allow you to hide the event alarm information without removing it. model_id = ir_obj.search(cr, uid, [('model', '=', model)])[0] model_obj = self.pool.get(model) - for data in model_obj.browse(cr, uid, ids, context): + for data in model_obj.browse(cr, uid, ids, context=context): basic_alarm = data.alarm_id cal_alarm = data.base_calendar_alarm_id @@ -719,7 +717,7 @@ true, it will allow you to hide the event alarm information without removing it. ir_obj = self.pool.get('ir.model') model_id = ir_obj.search(cr, uid, [('model', '=', model)])[0] model_obj = self.pool.get(model) - for datas in model_obj.browse(cr, uid, ids, context): + for datas in model_obj.browse(cr, uid, ids, context=context): alarm_ids = alarm_obj.search(cr, uid, [('model_id', '=', model_id), ('res_id', '=', datas.id)]) if alarm_ids: alarm_obj.unlink(cr, uid, alarm_ids) @@ -794,7 +792,7 @@ class calendar_alarm(osv.osv): delta = timedelta(minutes=vals['trigger_duration']) trigger_date = dtstart + (vals['trigger_occurs'] == 'after' and delta or -delta) vals['trigger_date'] = trigger_date - res = super(calendar_alarm, self).create(cr, uid, vals, context) + res = super(calendar_alarm, self).create(cr, uid, vals, context=context) return res def do_run_scheduler(self, cr, uid, automatic=False, use_new_cursor=False, \ @@ -1685,7 +1683,7 @@ class calendar_todo(osv.osv): _inherit = "calendar.event" _description = "Calendar Task" - def _get_date(self, cr, uid, ids, name, arg, context): + def _get_date(self, cr, uid, ids, name, arg, context=None): """ Get Date @param self: The object pointer @@ -1701,7 +1699,7 @@ class calendar_todo(osv.osv): res[event.id] = event.date_start return res - def _set_date(self, cr, uid, id, name, value, arg, context): + def _set_date(self, cr, uid, id, name, value, arg, context=None): """ Set Date @param self: The object pointer diff --git a/addons/base_calendar/i18n/base_calendar.pot b/addons/base_calendar/i18n/base_calendar.pot index 98453bc2cc3..219fbb8c42d 100644 --- a/addons/base_calendar/i18n/base_calendar.pot +++ b/addons/base_calendar/i18n/base_calendar.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:43:14+0000\n" -"PO-Revision-Date: 2010-12-03 15:43:14+0000\n" +"POT-Creation-Date: 2010-12-15 15:05:02+0000\n" +"PO-Revision-Date: 2010-12-15 15:05:02+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/base_calendar/i18n/el.po b/addons/base_calendar/i18n/el.po index ed34f854bec..2a2a82dd237 100644 --- a/addons/base_calendar/i18n/el.po +++ b/addons/base_calendar/i18n/el.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-03 15:43+0000\n" -"PO-Revision-Date: 2010-12-14 16:33+0000\n" +"PO-Revision-Date: 2010-12-16 00:42+0000\n" "Last-Translator: Dimitris Andavoglou \n" "Language-Team: Greek \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:19+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base_calendar @@ -1068,7 +1068,7 @@ msgstr "" #. module: base_calendar #: model:ir.model,name:base_calendar.model_calendar_event_edit_all msgid "Calendar Edit all event" -msgstr "" +msgstr "Επεξεργασία όλων των συμβάντων του Ημερολογίου" #. module: base_calendar #: help:calendar.attendee,role:0 @@ -1078,7 +1078,7 @@ msgstr "" #. module: base_calendar #: field:calendar.attendee,ref:0 msgid "Event Ref" -msgstr "" +msgstr "Αναφ Συμβάντος" #. module: base_calendar #: help:calendar.alarm,action:0 @@ -1088,14 +1088,14 @@ msgstr "" #. module: base_calendar #: view:calendar.event:0 msgid "Search Events" -msgstr "" +msgstr "Αναζήτηση Συμβάντων" #. module: base_calendar #: selection:base.calendar.set.exrule,freq:0 #: selection:calendar.event,rrule_type:0 #: selection:calendar.todo,rrule_type:0 msgid "Weekly" -msgstr "" +msgstr "Εβδομαδιαία" #. module: base_calendar #: help:calendar.alarm,active:0 @@ -1106,6 +1106,8 @@ msgid "" "If the active field is set to true, it will allow you to hide the event " "alarm information without removing it." msgstr "" +"Εάν το ενεργό πεδίο είναι επιλεγμένο, σας επιτρέπει να κρύψεται την " +"υπενθύμιση χωρίς να την απομακρύνεται." #. module: base_calendar #: field:calendar.event,recurrent_id:0 @@ -1116,7 +1118,7 @@ msgstr "" #. module: base_calendar #: sql_constraint:res.users:0 msgid "You can not have two users with the same login !" -msgstr "" +msgstr "Δεν μπορεί να υπάρχουν δύο χρήστες με το ίδιο όνομα!" #. module: base_calendar #: field:calendar.alarm,state:0 @@ -1126,48 +1128,48 @@ msgstr "" #: field:calendar.event,state:0 #: field:calendar.todo,state:0 msgid "State" -msgstr "" +msgstr "Κατάσταση" #. module: base_calendar #: view:res.alarm:0 msgid "Reminder Details" -msgstr "" +msgstr "Λεπτομέρειες Υπενθύμισης" #. module: base_calendar #: view:calendar.attendee:0 msgid "To Review" -msgstr "" +msgstr "Για Επισκόπηση" #. module: base_calendar #: field:base.calendar.set.exrule,freq:0 #: field:calendar.event,freq:0 #: field:calendar.todo,freq:0 msgid "Frequency" -msgstr "" +msgstr "Συχνότητα" #. module: base_calendar #: selection:calendar.alarm,state:0 msgid "Done" -msgstr "" +msgstr "Ολοκληρώθηκε" #. module: base_calendar #: view:base_calendar.invite.attendee:0 #: field:base_calendar.invite.attendee,user_ids:0 msgid "Users" -msgstr "" +msgstr "Χρήστες" #. module: base_calendar #: view:base.calendar.set.exrule:0 #: view:calendar.event:0 msgid "of" -msgstr "" +msgstr "από" #. module: base_calendar #: view:base_calendar.invite.attendee:0 #: view:calendar.event:0 #: view:calendar.event.edit.all:0 msgid "Cancel" -msgstr "" +msgstr "Ακύρωση" #. module: base_calendar #: model:ir.model,name:base_calendar.model_res_users @@ -1179,12 +1181,12 @@ msgstr "" #: selection:calendar.event,week_list:0 #: selection:calendar.todo,week_list:0 msgid "Tuesday" -msgstr "" +msgstr "Τρίτη" #. module: base_calendar #: selection:calendar.alarm,action:0 msgid "Procedure" -msgstr "" +msgstr "Διαδικασία" #. module: base_calendar #: help:calendar.alarm,description:0 @@ -1197,7 +1199,7 @@ msgstr "" #. module: base_calendar #: view:calendar.event:0 msgid "Responsible User" -msgstr "" +msgstr "Υπεύθυνος Χρήστης" #. module: base_calendar #: selection:calendar.attendee,availability:0 @@ -1205,12 +1207,12 @@ msgstr "" #: selection:calendar.todo,show_as:0 #: selection:res.users,availability:0 msgid "Busy" -msgstr "" +msgstr "Απασχολημένος/η" #. module: base_calendar #: model:ir.model,name:base_calendar.model_calendar_event msgid "Calendar Event" -msgstr "" +msgstr "Συμβάν Ημερολογίου" #. module: base_calendar #: selection:calendar.attendee,state:0 @@ -1225,7 +1227,7 @@ msgstr "" #: field:calendar.event,user_id:0 #: field:calendar.todo,user_id:0 msgid "Responsible" -msgstr "" +msgstr "Υπεύθυνος" #. module: base_calendar #: view:calendar.event:0 @@ -1245,19 +1247,19 @@ msgstr "" #: selection:calendar.event,week_list:0 #: selection:calendar.todo,week_list:0 msgid "Thursday" -msgstr "" +msgstr "Πέμπτη" #. module: base_calendar #: selection:calendar.event,rrule_type:0 #: selection:calendar.todo,rrule_type:0 msgid "Custom" -msgstr "" +msgstr "Προσαρμοσμένος" #. module: base_calendar #: field:calendar.event,exrule:0 #: field:calendar.todo,exrule:0 msgid "Exception Rule" -msgstr "" +msgstr "Κανόνας Εξαίρεσης" #. module: base_calendar #: help:calendar.attendee,language:0 @@ -1268,7 +1270,7 @@ msgstr "" #. module: base_calendar #: view:calendar.event:0 msgid "Details" -msgstr "" +msgstr "Λεπτομέρειες" #. module: base_calendar #: help:calendar.event,exrule:0 @@ -1283,12 +1285,12 @@ msgstr "" #: field:calendar.event,month_list:0 #: field:calendar.todo,month_list:0 msgid "Month" -msgstr "" +msgstr "Μήνας" #. module: base_calendar #: selection:base_calendar.invite.attendee,type:0 msgid "External Email" -msgstr "" +msgstr "Εξωτερικό Email" #. module: base_calendar #: help:calendar.event,rrule:0 @@ -1312,36 +1314,36 @@ msgstr "" #: field:calendar.todo,description:0 #: field:calendar.todo,name:0 msgid "Description" -msgstr "" +msgstr "Περιγραφή" #. module: base_calendar #: selection:base.calendar.set.exrule,month_list:0 #: selection:calendar.event,month_list:0 #: selection:calendar.todo,month_list:0 msgid "May" -msgstr "" +msgstr "Μάιος" #. module: base_calendar #: field:base_calendar.invite.attendee,type:0 #: view:calendar.attendee:0 msgid "Type" -msgstr "" +msgstr "Τύπος" #. module: base_calendar #: view:calendar.attendee:0 msgid "Search Invitations" -msgstr "" +msgstr "Αναζήτηση Προσκλήσεων" #. module: base_calendar #: selection:calendar.alarm,trigger_occurs:0 #: selection:res.alarm,trigger_occurs:0 msgid "After" -msgstr "" +msgstr "Μετά" #. module: base_calendar #: selection:calendar.alarm,state:0 msgid "Stop" -msgstr "" +msgstr "Διακοπή" #. module: base_calendar #: model:ir.model,name:base_calendar.model_ir_values @@ -1352,12 +1354,12 @@ msgstr "" #: view:base_calendar.invite.attendee:0 #: view:calendar.event:0 msgid "Invite People" -msgstr "" +msgstr "Κάλεσε Κόσμο" #. module: base_calendar #: model:ir.model,name:base_calendar.model_ir_model msgid "Objects" -msgstr "" +msgstr "Αντικείμενα" #. module: base_calendar #: view:calendar.attendee:0 diff --git a/addons/base_calendar/i18n/fr.po b/addons/base_calendar/i18n/fr.po index 795e0c2c99f..d2c15feeb86 100644 --- a/addons/base_calendar/i18n/fr.po +++ b/addons/base_calendar/i18n/fr.po @@ -7,13 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:43+0000\n" -"PO-Revision-Date: 2010-12-03 08:56+0000\n" -"Last-Translator: OpenERP Administrators \n" +"PO-Revision-Date: 2010-12-16 03:31+0000\n" +"Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) " +"\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 05:19+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:48+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base_calendar @@ -209,7 +210,7 @@ msgstr "Mer" #. module: base_calendar #: view:calendar.event:0 msgid "Show time as" -msgstr "" +msgstr "Afficher l'heure comme" #. module: base_calendar #: field:base.calendar.set.exrule,tu:0 @@ -333,7 +334,7 @@ msgstr "Groupé par..." #. module: base_calendar #: help:base_calendar.invite.attendee,email:0 msgid "Provide external email address who will receive this invitation." -msgstr "" +msgstr "Indiquez le courriel de la personne qui doit recevoir l'invitation" #. module: base_calendar #: help:calendar.attendee,partner_id:0 @@ -360,7 +361,7 @@ msgstr "Date de fin d'évènement" #. module: base_calendar #: selection:calendar.attendee,role:0 msgid "Optional Participation" -msgstr "Participation Optionnellle" +msgstr "Participation facultative" #. module: base_calendar #: help:calendar.event,interval:0 @@ -388,7 +389,7 @@ msgstr "_Annuler" #. module: base_calendar #: model:ir.module.module,shortdesc:base_calendar.module_meta_information msgid "Basic Calendar Functionality" -msgstr "Fonction d'agenda basique" +msgstr "Fonction d'agenda de base" #. module: base_calendar #: field:calendar.event,organizer:0 @@ -590,7 +591,7 @@ msgstr "Créé" #. module: base_calendar #: model:ir.actions.act_window,name:base_calendar.action_base_calendar_set_exrule msgid "Set Exclude range" -msgstr "" +msgstr "Définir une plage exclue" #. module: base_calendar #: selection:calendar.event,class:0 @@ -807,7 +808,7 @@ msgstr "Emplacement de l'événement" #: field:calendar.event,rrule:0 #: field:calendar.todo,rrule:0 msgid "Recurrent Rule" -msgstr "Règle récurrente" +msgstr "Règle de récurrence" #. module: base_calendar #: selection:calendar.alarm,state:0 @@ -822,7 +823,7 @@ msgstr "Pièce jointe" #. module: base_calendar #: view:calendar.attendee:0 msgid "Invitation From" -msgstr "" +msgstr "Invitation de" #. module: base_calendar #: view:calendar.event:0 @@ -834,7 +835,7 @@ msgstr "Rappel" #: view:base.calendar.set.exrule:0 #: model:ir.model,name:base_calendar.model_base_calendar_set_exrule msgid "Set Exrule" -msgstr "" +msgstr "Appliquer la règle d'exception" #. module: base_calendar #: view:calendar.event:0 @@ -866,6 +867,7 @@ msgid "" "Reference to the URIthat points to the directory information corresponding " "to the attendee." msgstr "" +"Référence à l'URI de la fiche du participant dans le carnet d'adresses." #. module: base_calendar #: selection:base.calendar.set.exrule,month_list:0 @@ -1058,6 +1060,8 @@ msgid "" "Duration' and 'Repeat' are both optional, but if one occurs, so MUST the " "other" msgstr "" +"\"Durée\" et \"répétition\" sont tous les deux facultatifs, mais si l'un est " +"indiqué, l'autre doit l'être également." #. module: base_calendar #: model:ir.model,name:base_calendar.model_calendar_event_edit_all @@ -1072,17 +1076,17 @@ msgstr "" #. module: base_calendar #: field:calendar.attendee,ref:0 msgid "Event Ref" -msgstr "" +msgstr "Réf. de l'événement" #. module: base_calendar #: help:calendar.alarm,action:0 msgid "Defines the action to be invoked when an alarm is triggered" -msgstr "" +msgstr "Défini l'action à exécuter lorsque l'alarme se déclenche" #. module: base_calendar #: view:calendar.event:0 msgid "Search Events" -msgstr "" +msgstr "Chercher des événements" #. module: base_calendar #: selection:base.calendar.set.exrule,freq:0 @@ -1100,12 +1104,14 @@ msgid "" "If the active field is set to true, it will allow you to hide the event " "alarm information without removing it." msgstr "" +"Si le champ actif est à \"Vrai\", cela vous permettra de cacher les alarmes " +"sans les supprimer." #. module: base_calendar #: field:calendar.event,recurrent_id:0 #: field:calendar.todo,recurrent_id:0 msgid "Recurrent ID date" -msgstr "" +msgstr "Id. de la date récurrente" #. module: base_calendar #: sql_constraint:res.users:0 @@ -1130,7 +1136,7 @@ msgstr "Détails du rappel" #. module: base_calendar #: view:calendar.attendee:0 msgid "To Review" -msgstr "" +msgstr "À vérifier" #. module: base_calendar #: field:base.calendar.set.exrule,freq:0 @@ -1187,6 +1193,8 @@ msgid "" "calendar component, than that provided by the " "\"SUMMARY\" property" msgstr "" +"Fournit une description plus complète du composant agenda, que celle fournit " +"par la propriété \"RÉSUMÉ\"" #. module: base_calendar #: view:calendar.event:0 @@ -1251,7 +1259,7 @@ msgstr "Personnalisé" #: field:calendar.event,exrule:0 #: field:calendar.todo,exrule:0 msgid "Exception Rule" -msgstr "" +msgstr "Règle en exception" #. module: base_calendar #: help:calendar.attendee,language:0 @@ -1350,7 +1358,7 @@ msgstr "" #: view:base_calendar.invite.attendee:0 #: view:calendar.event:0 msgid "Invite People" -msgstr "" +msgstr "Inviter les personnes" #. module: base_calendar #: model:ir.model,name:base_calendar.model_ir_model @@ -1428,7 +1436,7 @@ msgstr "Nom" #: field:calendar.event,exdate:0 #: field:calendar.todo,exdate:0 msgid "Exception Date/Times" -msgstr "" +msgstr "Date/heure en exception" #. module: base_calendar #: help:calendar.alarm,name:0 @@ -1507,7 +1515,7 @@ msgstr "Inviter" #. module: base_calendar #: model:ir.model,name:base_calendar.model_calendar_attendee msgid "Attendee information" -msgstr "" +msgstr "Information sur le participant" #. module: base_calendar #: field:calendar.alarm,res_id:0 @@ -1535,6 +1543,7 @@ msgstr "Séquence" #: help:calendar.todo,alarm_id:0 msgid "Set an alarm at this time, before the event occurs" msgstr "" +"Déclenche une alarme à cette heure, avant que l'événement n'ait lieu." #. module: base_calendar #: selection:base_calendar.invite.attendee,type:0 @@ -1563,7 +1572,7 @@ msgstr "" #: field:calendar.attendee,availability:0 #: field:res.users,availability:0 msgid "Free/Busy" -msgstr "" +msgstr "Libre/Occupé" #. module: base_calendar #: field:calendar.alarm,duration:0 @@ -1574,7 +1583,7 @@ msgstr "" #: field:res.alarm,duration:0 #: field:res.alarm,trigger_duration:0 msgid "Duration" -msgstr "" +msgstr "Durée" #. module: base_calendar #: model:ir.actions.act_window,help:base_calendar.action_res_alarm_view @@ -1586,14 +1595,14 @@ msgstr "" #. module: base_calendar #: field:calendar.alarm,trigger_date:0 msgid "Trigger Date" -msgstr "" +msgstr "Date de déclenchement" #. module: base_calendar #: selection:base.calendar.set.exrule,week_list:0 #: selection:calendar.event,week_list:0 #: selection:calendar.todo,week_list:0 msgid "Saturday" -msgstr "" +msgstr "Samedi" #. module: base_calendar #: selection:base.calendar.set.exrule,byday:0 diff --git a/addons/base_calendar/wizard/base_calendar_invite_attendee.py b/addons/base_calendar/wizard/base_calendar_invite_attendee.py index a18388f5b3c..48f39e609f9 100644 --- a/addons/base_calendar/wizard/base_calendar_invite_attendee.py +++ b/addons/base_calendar/wizard/base_calendar_invite_attendee.py @@ -62,7 +62,7 @@ send an Email to Invited Person') @return: Dictionary of {}. """ - if not context: + if context is None: context = {} model = False @@ -74,7 +74,7 @@ send an Email to Invited Person') model_field = context.get('attendee_field', False) obj = self.pool.get(model) - res_obj = obj.browse(cr, uid, context_id) + res_obj = obj.browse(cr, uid, context_id, context=context) att_obj = self.pool.get('calendar.attendee') user_obj = self.pool.get('res.users') current_user = user_obj.browse(cr, uid, uid, context=context) diff --git a/addons/base_calendar/wizard/base_calendar_set_exrule.py b/addons/base_calendar/wizard/base_calendar_set_exrule.py index 995d2a98dcc..4f5d57235e5 100644 --- a/addons/base_calendar/wizard/base_calendar_set_exrule.py +++ b/addons/base_calendar/wizard/base_calendar_set_exrule.py @@ -82,8 +82,10 @@ class base_calendar_set_exrule(osv.osv_memory): @param fields: List of fields for default value @param context: A standard dictionary for contextual values """ + if context is None: + context = {} event_obj = self.pool.get(context.get('active_model')) - for event in event_obj.browse(cr, uid, context.get('active_ids', [])): + for event in event_obj.browse(cr, uid, context.get('active_ids', []), context=context): if not event.rrule: raise osv.except_osv(_("Warning !"), _("Please Apply Recurrency before applying Exception Rule.")) return False @@ -102,7 +104,9 @@ class base_calendar_set_exrule(osv.osv_memory): weekstring = '' monthstring = '' yearstring = '' - ex_id = base_calendar.base_calendar_id2real_id(context['active_id']) + if context is None: + context = {} + ex_id = base_calendar.base_calendar_id2real_id(context.get('active_id', False)) model = context.get('model', False) model_obj = self.pool.get(model) for datas in self.read(cr, uid, ids, context=context): diff --git a/addons/base_calendar/wizard/calendar_event_edit_all.py b/addons/base_calendar/wizard/calendar_event_edit_all.py index d17195f9a27..a9b0a9f347e 100644 --- a/addons/base_calendar/wizard/calendar_event_edit_all.py +++ b/addons/base_calendar/wizard/calendar_event_edit_all.py @@ -24,7 +24,7 @@ from osv import fields class calendar_event_edit_all(osv.osv_memory): - def _default_values(self, cr, uid, context={}): + def _default_values(self, cr, uid, context=None): """ Get Default value for Start Date @param self: The object pointer @param cr: the current row, from the database cursor, @@ -42,7 +42,7 @@ class calendar_event_edit_all(osv.osv_memory): event = model_obj.read(cr, uid, context_id, ['name', 'location', 'alarm_id']) return event['date'] - def _default_deadline(self, cr, uid, context={}): + def _default_deadline(self, cr, uid, context=None): """ Get Default value for End Date @param self: The object pointer @param cr: the current row, from the database cursor, @@ -69,7 +69,7 @@ class calendar_event_edit_all(osv.osv_memory): @param ids: List of calendar event edit all’s IDs @return: dictionary {} """ - if not context: + if context is None: context = {} context_id = context and context.get('active_id', False) or False diff --git a/addons/base_contact/base_contact.py b/addons/base_contact/base_contact.py index 0147d147134..8a003ec7cf1 100644 --- a/addons/base_contact/base_contact.py +++ b/addons/base_contact/base_contact.py @@ -42,7 +42,7 @@ class res_partner_contact(osv.osv): all_job_ids = res_partner_job_obj.search(cr, uid, []) all_job_names = dict(zip(all_job_ids, res_partner_job_obj.name_get(cr, uid, all_job_ids, context=context))) - for contact in self.browse(cr, uid, ids, context): + for contact in self.browse(cr, uid, ids, context=context): if contact.job_ids: res[contact.id] = all_job_names.get(contact.job_ids[0].id, False) @@ -77,7 +77,7 @@ class res_partner_contact(osv.osv): _order = "name,first_name" - def name_get(self, cr, user, ids, context={}): + def name_get(self, cr, user, ids, context=None): """ will return name and first_name....... @param self: The object pointer @@ -119,7 +119,7 @@ res_partner_contact() class res_partner_address(osv.osv): #overriding of the name_get defined in base in order to remove the old contact name - def name_get(self, cr, user, ids, context={}): + def name_get(self, cr, user, ids, context=None): """ @param self: The object pointer @param cr: the current row, from the database cursor, @@ -131,6 +131,8 @@ class res_partner_address(osv.osv): if not len(ids): return [] res = [] + if context is None: + context = {} for r in self.read(cr, user, ids, ['zip', 'city', 'partner_id', 'street']): if context.get('contact_display', 'contact')=='partner' and r['partner_id']: res.append((r['id'], r['partner_id'][1])) @@ -168,7 +170,7 @@ class res_partner_job(osv.osv): return [] res = [] - jobs = self.browse(cr, uid, ids) + jobs = self.browse(cr, uid, ids, context=context) contact_ids = [rec.contact_id.id for rec in jobs] contact_names = dict(self.pool.get('res.partner.contact').name_get(cr, uid, contact_ids, context=context)) @@ -238,7 +240,7 @@ class res_partner_job(osv.osv): partner_id = False if address_id: address = self.pool.get('res.partner.address')\ - .browse(cr, uid, address_id, context) + .browse(cr, uid, address_id, context=context) partner_id = address.partner_id.id return {'value': {'name': partner_id}} diff --git a/addons/base_contact/base_contact_installer.py b/addons/base_contact/base_contact_installer.py index 4f4e2b2896c..6d979da7a02 100644 --- a/addons/base_contact/base_contact_installer.py +++ b/addons/base_contact/base_contact_installer.py @@ -35,7 +35,7 @@ class base_contact_installer(osv.osv_memory): """ This function is used to create contact and address from existing partner address """ - obj = self.pool.get("base.contact.installer").browse(cr, uid, uid) + obj = self.pool.get("base.contact.installer").browse(cr, uid, uid, context=context) if obj.migrate: cr.execute("""DROP TRIGGER IF EXISTS contactjob on res_partner_contact; DROP LANGUAGE IF EXISTS plpgsql CASCADE; diff --git a/addons/base_contact/i18n/base_contact.pot b/addons/base_contact/i18n/base_contact.pot index 61a3b0131a8..07ed51bcf0e 100644 --- a/addons/base_contact/i18n/base_contact.pot +++ b/addons/base_contact/i18n/base_contact.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:43:15+0000\n" -"PO-Revision-Date: 2010-12-03 15:43:15+0000\n" +"POT-Creation-Date: 2010-12-15 15:05:02+0000\n" +"PO-Revision-Date: 2010-12-15 15:05:02+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -16,13 +16,221 @@ msgstr "" "Plural-Forms: \n" #. module: base_contact -#: field:res.partner.job,sequence_contact:0 -msgid "Contact Seq." +#: field:res.partner.contact,title:0 +msgid "Title" msgstr "" #. module: base_contact -#: help:base.contact.installer,migrate:0 -msgid "If you select this, all addresses will be migrated." +#: view:res.partner.address:0 +msgid "# of Contacts" +msgstr "" + +#. module: base_contact +#: field:res.partner.job,fax:0 +msgid "Fax" +msgstr "" + +#. module: base_contact +#: view:base.contact.installer:0 +msgid "title" +msgstr "" + +#. module: base_contact +#: help:res.partner.job,date_start:0 +msgid "Start date of job(Joining Date)" +msgstr "" + +#. module: base_contact +#: view:base.contact.installer:0 +msgid "Select the Option for Addresses Migration" +msgstr "" + +#. module: base_contact +#: help:res.partner.job,function:0 +msgid "Function of this contact with this partner" +msgstr "" + +#. module: base_contact +#: help:res.partner.job,state:0 +msgid "Status of Address" +msgstr "" + +#. module: base_contact +#: help:res.partner.job,name:0 +msgid "You may enter Address first,Partner will be linked automatically if any." +msgstr "" + +#. module: base_contact +#: help:res.partner.job,fax:0 +msgid "Job FAX no." +msgstr "" + +#. module: base_contact +#: field:res.partner.contact,mobile:0 +msgid "Mobile" +msgstr "" + +#. module: base_contact +#: view:res.partner.contact:0 +#: field:res.partner.contact,comment:0 +msgid "Notes" +msgstr "" + +#. module: base_contact +#: model:process.node,note:base_contact.process_node_contacts0 +msgid "People you work with." +msgstr "" + +#. module: base_contact +#: model:process.transition,note:base_contact.process_transition_functiontoaddress0 +msgid "Define functions and address." +msgstr "" + +#. module: base_contact +#: help:res.partner.job,date_stop:0 +msgid "Last date of job" +msgstr "" + +#. module: base_contact +#: view:base.contact.installer:0 +#: field:base.contact.installer,migrate:0 +msgid "Migrate" +msgstr "" + +#. module: base_contact +#: view:res.partner.contact:0 +#: field:res.partner.job,name:0 +msgid "Partner" +msgstr "" + +#. module: base_contact +#: model:process.node,note:base_contact.process_node_function0 +msgid "Jobs at a same partner address." +msgstr "" + +#. module: base_contact +#: model:process.node,name:base_contact.process_node_partners0 +msgid "Partners" +msgstr "" + +#. module: base_contact +#: field:res.partner.job,state:0 +msgid "State" +msgstr "" + +#. module: base_contact +#: help:res.partner.contact,active:0 +msgid "If the active field is set to False, it will allow you to hide the partner contact without removing it." +msgstr "" + +#. module: base_contact +#: model:ir.module.module,shortdesc:base_contact.module_meta_information +#: model:process.process,name:base_contact.process_process_basecontactprocess0 +msgid "Base Contact" +msgstr "" + +#. module: base_contact +#: field:res.partner.job,date_stop:0 +msgid "Date Stop" +msgstr "" + +#. module: base_contact +#: model:ir.actions.act_window,name:base_contact.action_res_partner_job +msgid "Contact's Jobs" +msgstr "" + +#. module: base_contact +#: view:res.partner:0 +msgid "Categories" +msgstr "" + +#. module: base_contact +#: help:res.partner.job,sequence_partner:0 +msgid "Order of importance of this job title in the list of job title of the linked partner" +msgstr "" + +#. module: base_contact +#: field:res.partner.job,extension:0 +msgid "Extension" +msgstr "" + +#. module: base_contact +#: help:res.partner.job,extension:0 +msgid "Internal/External extension phone number" +msgstr "" + +#. module: base_contact +#: help:res.partner.job,phone:0 +msgid "Job Phone no." +msgstr "" + +#. module: base_contact +#: view:res.partner.contact:0 +#: field:res.partner.contact,job_ids:0 +msgid "Functions and Addresses" +msgstr "" + +#. module: base_contact +#: model:ir.model,name:base_contact.model_res_partner_contact +#: field:res.partner.job,contact_id:0 +msgid "Contact" +msgstr "" + +#. module: base_contact +#: help:res.partner.job,email:0 +msgid "Job E-Mail" +msgstr "" + +#. module: base_contact +#: field:res.partner.job,sequence_partner:0 +msgid "Partner Seq." +msgstr "" + +#. module: base_contact +#: model:process.transition,name:base_contact.process_transition_functiontoaddress0 +msgid "Function to address" +msgstr "" + +#. module: base_contact +#: field:base.contact.installer,progress:0 +msgid "Configuration Progress" +msgstr "" + +#. module: base_contact +#: field:res.partner.contact,name:0 +msgid "Last Name" +msgstr "" + +#. module: base_contact +#: view:res.partner:0 +#: view:res.partner.contact:0 +msgid "Communication" +msgstr "" + +#. module: base_contact +#: field:base.contact.installer,config_logo:0 +#: field:res.partner.contact,photo:0 +msgid "Image" +msgstr "" + +#. module: base_contact +#: selection:res.partner.job,state:0 +msgid "Past" +msgstr "" + +#. module: base_contact +#: model:ir.model,name:base_contact.model_res_partner_address +msgid "Partner Addresses" +msgstr "" + +#. module: base_contact +#: view:base.contact.installer:0 +msgid "Address's Migration to Contacts" +msgstr "" + +#. module: base_contact +#: field:res.partner.job,sequence_contact:0 +msgid "Contact Seq." msgstr "" #. module: base_contact @@ -41,8 +249,129 @@ msgid "Contacts" msgstr "" #. module: base_contact -#: field:res.partner.job,sequence_partner:0 -msgid "Partner Seq." +#: view:base.contact.installer:0 +msgid "Due to changes in Address and Partner's relation, some of the details from address are needed to be migrated into contact information." +msgstr "" + +#. module: base_contact +#: model:process.node,note:base_contact.process_node_addresses0 +msgid "Working and private addresses." +msgstr "" + +#. module: base_contact +#: help:res.partner.job,address_id:0 +msgid "Address which is linked to the Partner" +msgstr "" + +#. module: base_contact +#: field:res.partner.job,function:0 +msgid "Partner Function" +msgstr "" + +#. module: base_contact +#: help:res.partner.job,other:0 +msgid "Additional phone field" +msgstr "" + +#. module: base_contact +#: field:res.partner.contact,website:0 +msgid "Website" +msgstr "" + +#. module: base_contact +#: view:base.contact.installer:0 +msgid "Otherwise these details will not be visible from address/contact." +msgstr "" + +#. module: base_contact +#: view:base.contact.installer:0 +msgid "Configure" +msgstr "" + +#. module: base_contact +#: field:res.partner.contact,email:0 +#: field:res.partner.job,email:0 +msgid "E-Mail" +msgstr "" + +#. module: base_contact +#: model:ir.model,name:base_contact.model_base_contact_installer +msgid "base.contact.installer" +msgstr "" + +#. module: base_contact +#: view:res.partner.job:0 +msgid "Contact Functions" +msgstr "" + +#. module: base_contact +#: field:res.partner.job,phone:0 +msgid "Phone" +msgstr "" + +#. module: base_contact +#: view:base.contact.installer:0 +msgid "Do you want to migrate your Address data in Contact Data?" +msgstr "" + +#. module: base_contact +#: field:res.partner.contact,active:0 +msgid "Active" +msgstr "" + +#. module: base_contact +#: field:res.partner.contact,function:0 +msgid "Main Function" +msgstr "" + +#. module: base_contact +#: model:process.transition,note:base_contact.process_transition_partnertoaddress0 +msgid "Define partners and their addresses." +msgstr "" + +#. module: base_contact +#: view:res.partner.contact:0 +msgid "Seq." +msgstr "" + +#. module: base_contact +#: field:res.partner.contact,lang_id:0 +msgid "Language" +msgstr "" + +#. module: base_contact +#: view:res.partner.contact:0 +msgid "Extra Information" +msgstr "" + +#. module: base_contact +#: model:process.node,note:base_contact.process_node_partners0 +msgid "Companies you work with." +msgstr "" + +#. module: base_contact +#: view:res.partner.contact:0 +msgid "Partner Contact" +msgstr "" + +#. module: base_contact +#: view:res.partner.contact:0 +msgid "General" +msgstr "" + +#. module: base_contact +#: view:res.partner.contact:0 +msgid "Photo" +msgstr "" + +#. module: base_contact +#: field:res.partner.contact,birthdate:0 +msgid "Birth Date" +msgstr "" + +#. module: base_contact +#: help:base.contact.installer,migrate:0 +msgid "If you select this, all addresses will be migrated." msgstr "" #. module: base_contact @@ -65,276 +394,36 @@ msgstr "" msgid "Other" msgstr "" -#. module: base_contact -#: help:res.partner.job,state:0 -msgid "Status of Address" -msgstr "" - -#. module: base_contact -#: model:process.transition,name:base_contact.process_transition_contacttofunction0 -msgid "Contact to function" -msgstr "" - -#. module: base_contact -#: field:res.partner.job,function:0 -msgid "Partner Function" -msgstr "" - -#. module: base_contact -#: model:process.transition,name:base_contact.process_transition_partnertoaddress0 -msgid "Partner to address" -msgstr "" - -#. module: base_contact -#: view:res.partner.address:0 -msgid "# of Contacts" -msgstr "" - -#. module: base_contact -#: help:res.partner.job,other:0 -msgid "Additional phone field" -msgstr "" - -#. module: base_contact -#: help:res.partner.contact,active:0 -msgid "If the active field is set to False, it will allow you to hide the partner contact without removing it." -msgstr "" - -#. module: base_contact -#: view:res.partner.contact:0 -msgid "Seq." -msgstr "" - #. module: base_contact #: model:process.node,name:base_contact.process_node_function0 msgid "Function" msgstr "" -#. module: base_contact -#: view:base.contact.installer:0 -msgid "Otherwise these details will not be visible from address/contact." -msgstr "" - -#. module: base_contact -#: field:res.partner.job,fax:0 -msgid "Fax" -msgstr "" - -#. module: base_contact -#: field:base.contact.installer,progress:0 -msgid "Configuration Progress" -msgstr "" - -#. module: base_contact -#: field:res.partner.job,phone:0 -msgid "Phone" -msgstr "" - -#. module: base_contact -#: model:process.transition,note:base_contact.process_transition_contacttofunction0 -msgid "Defines contacts and functions." -msgstr "" - -#. module: base_contact -#: model:ir.model,name:base_contact.model_base_contact_installer -msgid "base.contact.installer" -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,title:0 -msgid "Title" -msgstr "" - -#. module: base_contact -#: help:res.partner.job,function:0 -msgid "Function of this contact with this partner" -msgstr "" - -#. module: base_contact -#: view:res.partner.job:0 -msgid "Contact Functions" -msgstr "" - -#. module: base_contact -#: model:ir.module.module,shortdesc:base_contact.module_meta_information -#: model:process.process,name:base_contact.process_process_basecontactprocess0 -msgid "Base Contact" -msgstr "" - -#. module: base_contact -#: view:base.contact.installer:0 -msgid "Due to changes in Address and Partner's relation, some of the details from address are needed to be migrated into contact information." -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,email:0 -#: field:res.partner.job,email:0 -msgid "E-Mail" -msgstr "" - -#. module: base_contact -#: view:base.contact.installer:0 -msgid "Do you want to migrate your Address data in Contact Data?" -msgstr "" - -#. module: base_contact -#: model:process.node,name:base_contact.process_node_partners0 -msgid "Partners" -msgstr "" - -#. module: base_contact -#: field:res.partner.job,date_stop:0 -msgid "Date Stop" -msgstr "" - -#. module: base_contact -#: view:res.partner:0 -#: field:res.partner.job,address_id:0 -msgid "Address" -msgstr "" - -#. module: base_contact -#: model:ir.actions.act_window,name:base_contact.action_res_partner_job -msgid "Contact's Jobs" -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,country_id:0 -msgid "Nationality" -msgstr "" - -#. module: base_contact -#: view:res.partner:0 -msgid "Postal Address" -msgstr "" - #. module: base_contact #: field:res.partner.address,job_id:0 #: field:res.partner.contact,job_id:0 msgid "Main Job" msgstr "" +#. module: base_contact +#: model:process.transition,note:base_contact.process_transition_contacttofunction0 +msgid "Defines contacts and functions." +msgstr "" + +#. module: base_contact +#: model:process.transition,name:base_contact.process_transition_contacttofunction0 +msgid "Contact to function" +msgstr "" + #. module: base_contact #: view:res.partner:0 -msgid "Categories" +#: field:res.partner.job,address_id:0 +msgid "Address" msgstr "" #. module: base_contact -#: help:res.partner.job,name:0 -msgid "You may enter Address first,Partner will be linked automatically if any." -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,function:0 -msgid "Main Function" -msgstr "" - -#. module: base_contact -#: model:process.transition,note:base_contact.process_transition_partnertoaddress0 -msgid "Define partners and their addresses." -msgstr "" - -#. module: base_contact -#: field:base.contact.installer,name:0 -msgid "Name" -msgstr "" - -#. module: base_contact -#: field:res.partner.job,extension:0 -msgid "Extension" -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,mobile:0 -msgid "Mobile" -msgstr "" - -#. module: base_contact -#: model:process.node,note:base_contact.process_node_contacts0 -msgid "People you work with." -msgstr "" - -#. module: base_contact -#: view:res.partner.contact:0 -#: field:res.partner.contact,comment:0 -msgid "Notes" -msgstr "" - -#. module: base_contact -#: help:res.partner.job,extension:0 -msgid "Internal/External extension phone number" -msgstr "" - -#. module: base_contact -#: help:res.partner.job,sequence_partner:0 -msgid "Order of importance of this job title in the list of job title of the linked partner" -msgstr "" - -#. module: base_contact -#: view:res.partner.contact:0 -msgid "Extra Information" -msgstr "" - -#. module: base_contact -#: view:res.partner.contact:0 -#: field:res.partner.contact,job_ids:0 -msgid "Functions and Addresses" -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,active:0 -msgid "Active" -msgstr "" - -#. module: base_contact -#: help:res.partner.job,phone:0 -msgid "Job Phone no." -msgstr "" - -#. module: base_contact -#: model:ir.model,name:base_contact.model_res_partner_contact -#: field:res.partner.job,contact_id:0 -msgid "Contact" -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,lang_id:0 -msgid "Language" -msgstr "" - -#. module: base_contact -#: model:process.node,note:base_contact.process_node_partners0 -msgid "Companies you work with." -msgstr "" - -#. module: base_contact -#: help:res.partner.job,email:0 -msgid "Job E-Mail" -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,partner_id:0 -msgid "Main Employer" -msgstr "" - -#. module: base_contact -#: model:process.transition,name:base_contact.process_transition_functiontoaddress0 -msgid "Function to address" -msgstr "" - -#. module: base_contact -#: help:res.partner.job,date_stop:0 -msgid "Last date of job" -msgstr "" - -#. module: base_contact -#: model:ir.actions.act_window,name:base_contact.action_base_contact_installer -msgid "Address Migration" -msgstr "" - -#. module: base_contact -#: view:res.partner.contact:0 -msgid "Partner Contact" +#: field:res.partner.contact,country_id:0 +msgid "Nationality" msgstr "" #. module: base_contact @@ -343,8 +432,28 @@ msgid "Open Jobs" msgstr "" #. module: base_contact -#: model:ir.model,name:base_contact.model_res_partner_address -msgid "Partner Addresses" +#: field:base.contact.installer,name:0 +msgid "Name" +msgstr "" + +#. module: base_contact +#: view:base.contact.installer:0 +msgid "You can migrate Partner's current addresses to the contact." +msgstr "" + +#. module: base_contact +#: field:res.partner.contact,partner_id:0 +msgid "Main Employer" +msgstr "" + +#. module: base_contact +#: model:ir.actions.act_window,name:base_contact.action_base_contact_installer +msgid "Address Migration" +msgstr "" + +#. module: base_contact +#: view:res.partner:0 +msgid "Postal Address" msgstr "" #. module: base_contact @@ -354,82 +463,8 @@ msgid "Addresses" msgstr "" #. module: base_contact -#: field:res.partner.job,state:0 -msgid "State" -msgstr "" - -#. module: base_contact -#: model:process.node,note:base_contact.process_node_addresses0 -msgid "Working and private addresses." -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,name:0 -msgid "Last Name" -msgstr "" - -#. module: base_contact -#: view:res.partner:0 -#: view:res.partner.contact:0 -msgid "Communication" -msgstr "" - -#. module: base_contact -#: field:base.contact.installer,config_logo:0 -#: field:res.partner.contact,photo:0 -msgid "Image" -msgstr "" - -#. module: base_contact -#: view:base.contact.installer:0 -msgid "title" -msgstr "" - -#. module: base_contact -#: help:res.partner.job,date_start:0 -msgid "Start date of job(Joining Date)" -msgstr "" - -#. module: base_contact -#: help:res.partner.job,address_id:0 -msgid "Address which is linked to the Partner" -msgstr "" - -#. module: base_contact -#: view:res.partner.contact:0 -msgid "General" -msgstr "" - -#. module: base_contact -#: selection:res.partner.job,state:0 -msgid "Past" -msgstr "" - -#. module: base_contact -#: view:base.contact.installer:0 -#: field:base.contact.installer,migrate:0 -msgid "Migrate" -msgstr "" - -#. module: base_contact -#: help:res.partner.job,fax:0 -msgid "Job FAX no." -msgstr "" - -#. module: base_contact -#: view:res.partner.contact:0 -msgid "Photo" -msgstr "" - -#. module: base_contact -#: model:process.node,note:base_contact.process_node_function0 -msgid "Jobs at a same partner address." -msgstr "" - -#. module: base_contact -#: view:res.partner.contact:0 -#: field:res.partner.job,name:0 -msgid "Partner" +#: model:process.transition,name:base_contact.process_transition_partnertoaddress0 +msgid "Partner to address" msgstr "" #. module: base_contact @@ -437,23 +472,8 @@ msgstr "" msgid "Date Start" msgstr "" -#. module: base_contact -#: model:process.transition,note:base_contact.process_transition_functiontoaddress0 -msgid "Define functions and address." -msgstr "" - -#. module: base_contact -#: field:res.partner.contact,website:0 -msgid "Website" -msgstr "" - #. module: base_contact #: help:res.partner.job,sequence_contact:0 msgid "Order of importance of this address in the list of addresses of the linked contact" msgstr "" -#. module: base_contact -#: field:res.partner.contact,birthdate:0 -msgid "Birth Date" -msgstr "" - diff --git a/addons/base_contact/i18n/el.po b/addons/base_contact/i18n/el.po index 83624faa5b4..4946b2f7b5c 100644 --- a/addons/base_contact/i18n/el.po +++ b/addons/base_contact/i18n/el.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:43+0000\n" -"PO-Revision-Date: 2010-12-13 12:13+0000\n" +"PO-Revision-Date: 2010-12-15 05:05+0000\n" "Last-Translator: Dimitris Andavoglou \n" "Language-Team: nls@hellug.gr \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-14 05:04+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:44+0000\n" "X-Generator: Launchpad (build Unknown)\n" "X-Poedit-Country: GREECE\n" "X-Poedit-Language: Greek\n" diff --git a/addons/base_contact/i18n/fr.po b/addons/base_contact/i18n/fr.po index 8e49440cbc4..16aa49da8af 100644 --- a/addons/base_contact/i18n/fr.po +++ b/addons/base_contact/i18n/fr.po @@ -7,13 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:43+0000\n" -"PO-Revision-Date: 2010-12-09 11:40+0000\n" -"Last-Translator: Quentin THEURET \n" +"PO-Revision-Date: 2010-12-16 03:21+0000\n" +"Last-Translator: Maxime Chambreuil (http://www.savoirfairelinux.com) " +"\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-14 05:04+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:44+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base_contact @@ -24,7 +25,7 @@ msgstr "Séq. du contact" #. module: base_contact #: help:base.contact.installer,migrate:0 msgid "If you select this, all addresses will be migrated." -msgstr "" +msgstr "Si vous sélectionnez ceci, toutes les adresses seront migrées." #. module: base_contact #: view:res.partner.address:0 @@ -102,6 +103,8 @@ msgid "" "If the active field is set to False, it will allow you to " "hide the partner contact without removing it." msgstr "" +"Si le champ actif est à \"Faux\", cela vous permettra de cacher le contact " +"du partenaire sans le supprimer." #. module: base_contact #: view:res.partner.contact:0 @@ -116,7 +119,7 @@ msgstr "Fonction" #. module: base_contact #: view:base.contact.installer:0 msgid "Otherwise these details will not be visible from address/contact." -msgstr "" +msgstr "Sinon, ces détails ne seront pas visibles dans l'adresse/le contact." #. module: base_contact #: field:res.partner.job,fax:0 @@ -170,6 +173,9 @@ msgid "" "Due to changes in Address and Partner's relation, some of the details from " "address are needed to be migrated into contact information." msgstr "" +"En raison de modifications dans la relation entre le partenaire et les " +"adresses, certains détails des adresses doivent migrer dans les informations " +"de contact." #. module: base_contact #: field:res.partner.contact,email:0 @@ -181,6 +187,8 @@ msgstr "E-Mail" #: view:base.contact.installer:0 msgid "Do you want to migrate your Address data in Contact Data?" msgstr "" +"Voulez-vous faire migrer les données des adresses dans les données des " +"contacts ?" #. module: base_contact #: model:process.node,name:base_contact.process_node_partners0 @@ -230,6 +238,8 @@ msgid "" "You may enter Address first,Partner will be linked " "automatically if any." msgstr "" +"Vous pouvez entrer l'adresse en premier : le partenaire sera lié " +"automatiquement s'il existe." #. module: base_contact #: field:res.partner.contact,function:0 @@ -278,6 +288,8 @@ msgid "" "Order of importance of this job title in the list of job " "title of the linked partner" msgstr "" +"Ordre d'importance de cette fonction dans la liste des fonctions du " +"partenaire lié" #. module: base_contact #: view:res.partner.contact:0 @@ -319,7 +331,7 @@ msgstr "Entreprises avec lesquelles vous travaillez" #. module: base_contact #: help:res.partner.job,email:0 msgid "Job E-Mail" -msgstr "" +msgstr "Courriel professionnel" #. module: base_contact #: field:res.partner.contact,partner_id:0 @@ -349,7 +361,7 @@ msgstr "Contact du partenaire" #. module: base_contact #: model:ir.actions.act_window,name:base_contact.act_res_partner_jobs msgid "Open Jobs" -msgstr "" +msgstr "Postes à pourvoir" #. module: base_contact #: model:ir.model,name:base_contact.model_res_partner_address @@ -418,7 +430,7 @@ msgstr "Précédente" #: view:base.contact.installer:0 #: field:base.contact.installer,migrate:0 msgid "Migrate" -msgstr "" +msgstr "Migrer" #. module: base_contact #: help:res.partner.job,fax:0 @@ -462,6 +474,7 @@ msgid "" "Order of importance of this address in the list of " "addresses of the linked contact" msgstr "" +"Ordre d'importance de cette adresse dans le carnet d'adresses du contact lié" #. module: base_contact #: field:res.partner.contact,birthdate:0 diff --git a/addons/base_contact/i18n/pt.po b/addons/base_contact/i18n/pt.po index ee264c4e791..b907df0fd57 100644 --- a/addons/base_contact/i18n/pt.po +++ b/addons/base_contact/i18n/pt.po @@ -13,7 +13,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:52+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:44+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base_contact diff --git a/addons/base_contact/i18n/sl.po b/addons/base_contact/i18n/sl.po index ae183a4c221..1660e4aeba7 100644 --- a/addons/base_contact/i18n/sl.po +++ b/addons/base_contact/i18n/sl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-03 15:43+0000\n" -"PO-Revision-Date: 2010-08-03 01:39+0000\n" -"Last-Translator: mga (Open ERP) \n" +"PO-Revision-Date: 2010-12-15 11:30+0000\n" +"Last-Translator: Simon Vidmar \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-14 05:04+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:44+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base_contact @@ -24,12 +24,12 @@ msgstr "Zap. kontaktov" #. module: base_contact #: help:base.contact.installer,migrate:0 msgid "If you select this, all addresses will be migrated." -msgstr "" +msgstr "Če izberete to možnost, bodo prenešeni vsi naslovi" #. module: base_contact #: view:res.partner.address:0 msgid "Search Contact" -msgstr "" +msgstr "Išči po stikih" #. module: base_contact #: model:ir.actions.act_window,name:base_contact.action_partner_contact_form @@ -69,7 +69,7 @@ msgstr "Drugo" #. module: base_contact #: help:res.partner.job,state:0 msgid "Status of Address" -msgstr "" +msgstr "Status naslova" #. module: base_contact #: model:process.transition,name:base_contact.process_transition_contacttofunction0 @@ -126,7 +126,7 @@ msgstr "Faks" #. module: base_contact #: field:base.contact.installer,progress:0 msgid "Configuration Progress" -msgstr "" +msgstr "Potek konfiguracije" #. module: base_contact #: field:res.partner.job,phone:0 @@ -141,7 +141,7 @@ msgstr "Določa stike in funkcije" #. module: base_contact #: model:ir.model,name:base_contact.model_base_contact_installer msgid "base.contact.installer" -msgstr "" +msgstr "base.contact.installer" #. module: base_contact #: field:res.partner.contact,title:0 @@ -180,7 +180,7 @@ msgstr "E-pošta" #. module: base_contact #: view:base.contact.installer:0 msgid "Do you want to migrate your Address data in Contact Data?" -msgstr "" +msgstr "Ali želite prenesti podatke o vaših naslovih v podatke o stiku?" #. module: base_contact #: model:process.node,name:base_contact.process_node_partners0 @@ -211,7 +211,7 @@ msgstr "Državljanstvo" #. module: base_contact #: view:res.partner:0 msgid "Postal Address" -msgstr "" +msgstr "Poštni naslov" #. module: base_contact #: field:res.partner.address,job_id:0 @@ -244,7 +244,7 @@ msgstr "Določi partnerje in njihove naslove" #. module: base_contact #: field:base.contact.installer,name:0 msgid "Name" -msgstr "" +msgstr "Ime" #. module: base_contact #: field:res.partner.job,extension:0 @@ -265,7 +265,7 @@ msgstr "S kareimi ljudmi poslujete" #: view:res.partner.contact:0 #: field:res.partner.contact,comment:0 msgid "Notes" -msgstr "" +msgstr "Opombe" #. module: base_contact #: help:res.partner.job,extension:0 @@ -298,7 +298,7 @@ msgstr "Aktivno" #. module: base_contact #: help:res.partner.job,phone:0 msgid "Job Phone no." -msgstr "" +msgstr "Službena telefonska številka" #. module: base_contact #: model:ir.model,name:base_contact.model_res_partner_contact @@ -319,7 +319,7 @@ msgstr "Podjetja s katerimi delate." #. module: base_contact #: help:res.partner.job,email:0 msgid "Job E-Mail" -msgstr "" +msgstr "Službeni e-poštni naslov" #. module: base_contact #: field:res.partner.contact,partner_id:0 @@ -334,12 +334,12 @@ msgstr "Nasloviti funkcijo" #. module: base_contact #: help:res.partner.job,date_stop:0 msgid "Last date of job" -msgstr "" +msgstr "Konec zaposlitve" #. module: base_contact #: model:ir.actions.act_window,name:base_contact.action_base_contact_installer msgid "Address Migration" -msgstr "" +msgstr "Prenos naslova" #. module: base_contact #: view:res.partner.contact:0 @@ -349,12 +349,12 @@ msgstr "Stik partnerja" #. module: base_contact #: model:ir.actions.act_window,name:base_contact.act_res_partner_jobs msgid "Open Jobs" -msgstr "" +msgstr "Odprte zaposlitve" #. module: base_contact #: model:ir.model,name:base_contact.model_res_partner_address msgid "Partner Addresses" -msgstr "" +msgstr "Naslovi stranke" #. module: base_contact #: model:process.node,name:base_contact.process_node_addresses0 @@ -381,28 +381,28 @@ msgstr "Priimek" #: view:res.partner:0 #: view:res.partner.contact:0 msgid "Communication" -msgstr "" +msgstr "Sporočanje" #. module: base_contact #: field:base.contact.installer,config_logo:0 #: field:res.partner.contact,photo:0 msgid "Image" -msgstr "" +msgstr "Slika" #. module: base_contact #: view:base.contact.installer:0 msgid "title" -msgstr "" +msgstr "naslov" #. module: base_contact #: help:res.partner.job,date_start:0 msgid "Start date of job(Joining Date)" -msgstr "" +msgstr "Začetek zaposlitve" #. module: base_contact #: help:res.partner.job,address_id:0 msgid "Address which is linked to the Partner" -msgstr "" +msgstr "Naslov, ki je povezan s stranko" #. module: base_contact #: view:res.partner.contact:0 @@ -418,17 +418,17 @@ msgstr "Pretekli" #: view:base.contact.installer:0 #: field:base.contact.installer,migrate:0 msgid "Migrate" -msgstr "" +msgstr "Preseli" #. module: base_contact #: help:res.partner.job,fax:0 msgid "Job FAX no." -msgstr "" +msgstr "Številka službenega faks-a:" #. module: base_contact #: view:res.partner.contact:0 msgid "Photo" -msgstr "" +msgstr "Fotografija" #. module: base_contact #: model:process.node,note:base_contact.process_node_function0 diff --git a/addons/base_iban/base_iban.py b/addons/base_iban/base_iban.py index b632e5f3e47..6f633c7b474 100644 --- a/addons/base_iban/base_iban.py +++ b/addons/base_iban/base_iban.py @@ -73,23 +73,23 @@ def _format_iban(string): class res_partner_bank(osv.osv): _inherit = "res.partner.bank" - def create(self, cr, uid, vals, context={}): + def create(self, cr, uid, vals, context=None): #overwrite to format the iban number correctly if 'iban' in vals and vals['iban']: vals['iban'] = _format_iban(vals['iban']) return super(res_partner_bank, self).create(cr, uid, vals, context) - def write(self, cr, uid, ids, vals, context={}): + def write(self, cr, uid, ids, vals, context=None): #overwrite to format the iban number correctly if 'iban' in vals and vals['iban']: vals['iban'] = _format_iban(vals['iban']) return super(res_partner_bank, self).write(cr, uid, ids, vals, context) - def check_iban(self, cr, uid, ids): + def check_iban(self, cr, uid, ids, context=None): ''' Check the IBAN number ''' - for bank_acc in self.browse(cr, uid, ids): + for bank_acc in self.browse(cr, uid, ids, context=context): if not bank_acc.iban: continue iban = _format_iban(bank_acc.iban).lower() @@ -109,7 +109,7 @@ class res_partner_bank(osv.osv): return False return True - def _construct_constraint_msg(self, cr, uid, ids): + def _construct_constraint_msg(self, cr, uid, ids, context=None): def default_iban_check(iban_cn): return iban_cn[0] in string.ascii_lowercase and iban_cn[1] in string.ascii_lowercase @@ -123,12 +123,12 @@ class res_partner_bank(osv.osv): def name_get(self, cr, uid, ids, context=None): res = [] to_check_ids = [] - for id in self.browse(cr, uid, ids): + for id in self.browse(cr, uid, ids, context=context): if id.state=='iban': res.append((id.id,id.iban)) else: to_check_ids.append(id.id) - res += super(res_partner_bank, self).name_get(cr, uid, to_check_ids, context) + res += super(res_partner_bank, self).name_get(cr, uid, to_check_ids, context=context) return res def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): @@ -158,7 +158,7 @@ class res_partner_bank(osv.osv): 'ch': lambda x: x[9:], 'gb': lambda x: x[14:], } - for record in self.browse(cr, uid, ids, context): + for record in self.browse(cr, uid, ids, context=context): if not record.iban: res[record.id] = False continue diff --git a/addons/base_iban/i18n/base_iban.pot b/addons/base_iban/i18n/base_iban.pot index 58900429ca1..c6ac6a13e2c 100644 --- a/addons/base_iban/i18n/base_iban.pot +++ b/addons/base_iban/i18n/base_iban.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-10 17:15:11+0000\n" -"PO-Revision-Date: 2010-12-10 17:15:11+0000\n" +"POT-Creation-Date: 2010-12-15 15:05:03+0000\n" +"PO-Revision-Date: 2010-12-15 15:05:03+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/base_iban/i18n/pt.po b/addons/base_iban/i18n/pt.po index c61f57a2d90..44ff1a22c66 100644 --- a/addons/base_iban/i18n/pt.po +++ b/addons/base_iban/i18n/pt.po @@ -13,7 +13,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:43+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:43+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base_iban diff --git a/addons/base_iban/i18n/sl.po b/addons/base_iban/i18n/sl.po index 66deb89312b..d21c22fa9ac 100644 --- a/addons/base_iban/i18n/sl.po +++ b/addons/base_iban/i18n/sl.po @@ -7,19 +7,19 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-12-10 17:15+0000\n" -"PO-Revision-Date: 2009-11-17 08:57+0000\n" -"Last-Translator: Fabien (Open ERP) \n" +"PO-Revision-Date: 2010-12-15 10:06+0000\n" +"Last-Translator: Simon Vidmar \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-12-15 04:43+0000\n" +"X-Launchpad-Export-Date: 2010-12-16 04:43+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base_iban #: model:ir.module.module,shortdesc:base_iban.module_meta_information msgid "Create IBAN bank accounts" -msgstr "" +msgstr "Kreiranje bančnih računov IBAN" #. module: base_iban #: code:addons/base_iban/base_iban.py:0 @@ -27,7 +27,7 @@ msgstr "" msgid "" "The IBAN does not seems to be correct. You should have entered something " "like this %s" -msgstr "" +msgstr "Kot kaže je IBAN napačno vnešen. Vnesti bi morali nekaj podobnega %s" #. module: base_iban #: model:res.partner.bank.type.field,name:base_iban.bank_zip_field @@ -42,7 +42,7 @@ msgstr "Mednarodna številka bančnega računa (IBAN)" #. module: base_iban #: model:ir.model,name:base_iban.model_res_partner_bank msgid "Bank Accounts" -msgstr "" +msgstr "Bančni računi" #. module: base_iban #: model:res.partner.bank.type.field,name:base_iban.bank_country_field @@ -63,7 +63,7 @@ msgstr "številka računa (iban)" #: code:addons/base_iban/base_iban.py:0 #, python-format msgid "The IBAN is invalid, It should begin with the country code" -msgstr "" +msgstr "Napačen IBAN. Začeti se mora z oznako države" #. module: base_iban #: field:res.partner.bank,iban:0 diff --git a/addons/base_module_doc_rst/base_module_doc_rst.py b/addons/base_module_doc_rst/base_module_doc_rst.py index 9d86a191177..57b26fd0d44 100755 --- a/addons/base_module_doc_rst/base_module_doc_rst.py +++ b/addons/base_module_doc_rst/base_module_doc_rst.py @@ -35,7 +35,7 @@ class module(osv.osv): 'file_graph': fields.binary('Relationship Graph'), } - def _get_graphical_representation(self, cr, uid, model_ids, level=1, context={}): + def _get_graphical_representation(self, cr, uid, model_ids, level=1, context=None): obj_model = self.pool.get('ir.model') if level == 0: return tuple() @@ -86,7 +86,7 @@ class module(osv.osv): ) return res - def _get_module_objects(self, cr, uid, module, context={}): + def _get_module_objects(self, cr, uid, module, context=None): obj_model = self.pool.get('ir.model') obj_mod_data = self.pool.get('ir.model.data') obj_ids = [] @@ -99,6 +99,7 @@ class module(osv.osv): return obj_ids def get_relation_graph(self, cr, uid, module_name, context=None): + if context is None: context = {} object_ids = self._get_module_objects(cr, uid, module_name, context=context) if not object_ids: return {'module_file': False} diff --git a/addons/base_module_doc_rst/i18n/base_module_doc_rst.pot b/addons/base_module_doc_rst/i18n/base_module_doc_rst.pot index c5a09d8095d..b34f55bba6c 100644 --- a/addons/base_module_doc_rst/i18n/base_module_doc_rst.pot +++ b/addons/base_module_doc_rst/i18n/base_module_doc_rst.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.0-rc1\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2010-12-03 15:43:16+0000\n" -"PO-Revision-Date: 2010-12-03 15:43:16+0000\n" +"POT-Creation-Date: 2010-12-15 15:05:03+0000\n" +"PO-Revision-Date: 2010-12-15 15:05:03+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/addons/base_module_doc_rst/report/report_proximity_graph.py b/addons/base_module_doc_rst/report/report_proximity_graph.py index 6f3db7e3273..2d3704fd5b7 100644 --- a/addons/base_module_doc_rst/report/report_proximity_graph.py +++ b/addons/base_module_doc_rst/report/report_proximity_graph.py @@ -74,7 +74,7 @@ class report_graph(report.interface.report_int): input.close() return output.read() - def create(self, cr, uid, ids, data, context={}): + def create(self, cr, uid, ids, data, context=None): pdf_string = self.get_proximity_graph(cr, uid, data['id']) return (pdf_string, 'pdf') diff --git a/addons/base_module_doc_rst/wizard/generate_relation_graph.py b/addons/base_module_doc_rst/wizard/generate_relation_graph.py index 0d4453b0bcc..7b04f183129 100644 --- a/addons/base_module_doc_rst/wizard/generate_relation_graph.py +++ b/addons/base_module_doc_rst/wizard/generate_relation_graph.py @@ -28,7 +28,7 @@ form_rep = '''