[FIX] some bad on_changes
bzr revid: fp@tinyerp.com-20111114220836-nlk4dly81ga0w0hd
This commit is contained in:
parent
7d74398c57
commit
dd35a53e5b
|
@ -48,9 +48,6 @@
|
||||||
!record {model: account.subscription, id: test_recurring_lines }:
|
!record {model: account.subscription, id: test_recurring_lines }:
|
||||||
name: Test Recurring Lines
|
name: Test Recurring Lines
|
||||||
model_id: account_model_mymodelonyears0
|
model_id: account_model_mymodelonyears0
|
||||||
date_start: !eval time.strftime('%Y-%m-%d')
|
|
||||||
period_nbr: 1
|
|
||||||
period_total: 12
|
|
||||||
period_type: 'day'
|
period_type: 'day'
|
||||||
-
|
-
|
||||||
Then I click on the 'Compute' button of Recurring lines
|
Then I click on the 'Compute' button of Recurring lines
|
||||||
|
|
|
@ -105,8 +105,7 @@ class crm_claim(crm.crm_case, osv.osv):
|
||||||
if not part:
|
if not part:
|
||||||
return {'value': {'partner_address_id': False,
|
return {'value': {'partner_address_id': False,
|
||||||
'email_from': False,
|
'email_from': False,
|
||||||
'partner_phone': False,
|
'partner_phone': False
|
||||||
'partner_mobile': False
|
|
||||||
}}
|
}}
|
||||||
addr = self.pool.get('res.partner').address_get(cr, uid, [part], ['contact'])
|
addr = self.pool.get('res.partner').address_get(cr, uid, [part], ['contact'])
|
||||||
data = {'partner_address_id': addr['contact']}
|
data = {'partner_address_id': addr['contact']}
|
||||||
|
@ -121,7 +120,7 @@ class crm_claim(crm.crm_case, osv.osv):
|
||||||
if not add:
|
if not add:
|
||||||
return {'value': {'email_from': False}}
|
return {'value': {'email_from': False}}
|
||||||
address = self.pool.get('res.partner.address').browse(cr, uid, add)
|
address = self.pool.get('res.partner.address').browse(cr, uid, add)
|
||||||
return {'value': {'email_from': address.email, 'partner_phone': address.phone, 'partner_mobile': address.mobile}}
|
return {'value': {'email_from': address.email, 'partner_phone': address.phone}}
|
||||||
|
|
||||||
def case_open(self, cr, uid, ids, *args):
|
def case_open(self, cr, uid, ids, *args):
|
||||||
"""Opens Claim"""
|
"""Opens Claim"""
|
||||||
|
|
|
@ -296,6 +296,7 @@ class event_registration(osv.osv):
|
||||||
return res
|
return res
|
||||||
|
|
||||||
_columns = {
|
_columns = {
|
||||||
|
'id': fields.integer('ID'),
|
||||||
'name': fields.char('Summary', size=124, readonly=True, states={'draft': [('readonly', False)]}),
|
'name': fields.char('Summary', size=124, readonly=True, states={'draft': [('readonly', False)]}),
|
||||||
'email_cc': fields.text('CC', size=252, readonly=False, states={'done': [('readonly', True)]}, help="These email addresses will be added to the CC field of all inbound and outbound emails for this record before being sent. Separate multiple email addresses with a comma"),
|
'email_cc': fields.text('CC', size=252, readonly=False, states={'done': [('readonly', True)]}, help="These email addresses will be added to the CC field of all inbound and outbound emails for this record before being sent. Separate multiple email addresses with a comma"),
|
||||||
'nb_register': fields.integer('Quantity', required=True, readonly=True, states={'draft': [('readonly', False)]}, help="Number of Registrations or Tickets"),
|
'nb_register': fields.integer('Quantity', required=True, readonly=True, states={'draft': [('readonly', False)]}, help="Number of Registrations or Tickets"),
|
||||||
|
|
Loading…
Reference in New Issue