** Summary changed:

- Trunk : __last_update key in context updates the key, but not the value and 
hence updation of record oes impossible!
+ Trunk : __last_update key in context updates the key, but not the value and 
hence updation of record goes impossible!

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/904311

Title:
  Trunk : __last_update key in context updates the key, but not the
  value and hence updation of record goes impossible!

Status in OpenERP Web:
  New
Status in OpenERP GTK Client:
  New

Bug description:
  Guys,

  GTK seems adding __last_update key to the context. While traversing
  through records I found that, moving next/previous updates the context
  if you have edited any record for the very first time.

  Ever since, if you update any other record, context gets updated, but
  not the time inside __last_update. This behavior makes it impossible
  to edit any record.

  I tried a very simple installation and ways are orthodox ones too.

  Working with latest server,GTK and web (Trying with base module only) :
  1. Create a new DB with demo data.
  2. Let all operations go as usual, dont interrupt. You even don't need to 
update user configuration.
  3. System gives you a default menus and 2 shortcuts. Click on Customers.
  4. Open any record, for example Agrolait:
  -- > Edit the name, save the record. Does it get edited?

  *Write* operation :

  vals : {'name': u'AgrolaitAA', 'address': []}
  context : {'lang': u'en_US', 'tz': False, '__last_update': {'res.partner,3': 
'2011-12-14 20:59:09.420971'}, 'active_model': 'ir.ui.menu', 'active_ids': [], 
'search_default_customer': 1, 'active_id': 80}

  No, record doesn't get updated.

  Anyways,go to next record, Axelor, edit the name.

  
  *Write* Operation:
  vals : {'name': u'Axelora', 'address': []}
  context: {'lang': u'en_US', 'tz': False, '__last_update': {'res.partner,7': 
'2011-12-14 20:59:09.420971'}, 'active_model': 'ir.ui.menu', 
  'active_ids': [], 'search_default_customer': 1, 'active_id': 80}

  Observe the __last_update key here.

  
  WAIT: If both the mentioned things do not happen at your end, there is still 
a chance to see the error. Edit any partner's address(o2m record) and save it. 
Look at the context while write() call.

  {'address': [(1, 24, {'function': False, 'city': u'Lausanne', 'fax':
  False, 'name': u'Luc Maurer', 'zip': u'1015', 'title': False,
  'mobile': False, 'street2': False, 'country_id': 41, 'phone': u'+41 21
  619 10 04', 'street': u'PSE-A, EPFL', 'state_id': False, 'type':
  'default', 'email': False})]} {'lang': u'en_US', 'tz': False,
  '__last_update': {'res.partner,4': '2011-12-14 20:59:09.420971',
  'res.partner.address,24': '2011-12-14 20:59:09.420971'},
  'active_model': 'ir.ui.menu', 'active_ids': [],
  'search_default_customer': 1, 'active_id': 80}

  
  {'address': [(1, 26, {'function': False, 'city': u'Buenos Aires', 'fax': 
False, 'name': u'Thymbra', 'zip': u'1659', 'title': False, 'mobile': False, 
'street2': u'C1414CMS Capital Federal', 'country_id': 11, 'phone': u'(5411) 
4773-9666', 'street': u'Palermo, Capital Federal', 'state_id': False, 'type': 
'default', 'email': '[email protected]'})]} {'lang': u'en_US', 'tz': False, 
'__last_update': {'res.partner,6': '2011-12-14 20:59:09.420971', 
'res.partner.address,26': '2011-12-14 20:59:09.420971'}, 'active_model': 
'ir.ui.menu', 'active_ids': [], 'search_default_customer': 1, 'active_id': 80}

  Random records are chosen for update, but time remains same.
  The target record gets changed(from 3 to 7), but the value '2011-12-14 
20:59:09.420971' doesn't get changed. 

  IMO, the value of timestamp is the RECENT updation of DB installation.
  It does not get updated since then.

  Well, this does not happen with web.

  But, this happens with web:

  Open customers, edit any one2many record(address of partner), save it,
  click next, keep doing it and parallely, see the o2m (address), does
  it get changed??? No, it doesn't.

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/904311/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to