[IMP] various change

account_payment: [FIX] Spelling error and missing call to _(), courtesy of Stefan Rijnhart (Therp)
account: [FIX] context is not propagated through account_period.name_search to account_period.search, courtesy of Guewen Baconnier (Camptocamp)
account_followup: [IMP] remove create and import button on 'do manual followup' view, courtesy of Csaba Toth

bzr revid: mat@openerp.com-20130528154100-o0csnsfumcep9r1c
This commit is contained in:
Martin Trigaux 2013-05-28 17:41:00 +02:00
commit 37111666cf
3 changed files with 11 additions and 4 deletions

View File

@ -1040,9 +1040,15 @@ class account_period(osv.osv):
context = {}
ids = []
if name:
ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit)
ids = self.search(cr, user,
[('code', 'ilike', name)] + args,
limit=limit,
context=context)
if not ids:
ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit)
ids = self.search(cr, user,
[('name', operator, name)] + args,
limit=limit,
context=context)
return self.name_get(cr, user, ids, context=context)
def write(self, cr, uid, ids, vals, context=None):

View File

@ -9,7 +9,7 @@
<field name="model">res.partner</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<tree string="Customer Followup">
<tree string="Customer Followup" create="false" delete="false">
<field name="name"/>
<field name="payment_next_action_date"/>
<field name="payment_next_action"/>

View File

@ -23,6 +23,7 @@ import time
from lxml import etree
from openerp.osv import fields, osv
from openerp.tools.translate import _
class payment_order_create(osv.osv_memory):
"""
@ -108,7 +109,7 @@ class payment_order_create(osv.osv_memory):
context.update({'line_ids': line_ids})
model_data_ids = mod_obj.search(cr, uid,[('model', '=', 'ir.ui.view'), ('name', '=', 'view_create_payment_order_lines')], context=context)
resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
return {'name': ('Entrie Lines'),
return {'name': _('Entry Lines'),
'context': context,
'view_type': 'form',
'view_mode': 'form',