← Back to team overview

openerp-india team mailing list archive

[Bug 941837] Re: [6.0] ORM bug : When I duplicate data contains function field is occured exception.

 

Hello ,

I have checked this issue with latest trunk, But currently function field is improved in trunk as well as 6.1(latest stable version 6.1 is released).
We don't have to define store="True" in function field on trunk as well as in 6.1
So this issue not affect to trunk and 6.1.

For v6,I have checked your issue in Stable-6 also but it's working fine and I did not face any error.If you still faced the same problem and If you have a support 
and maintenance contract with us then you can contact 
with our OPW team at support@xxxxxxxxxxx.
They will definitely help you.

Thank you!

** Project changed: openobject-addons => openobject-server

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/941837

Title:
  [6.0] ORM bug : When I duplicate data contains function field is
  occured exception.

Status in OpenERP Server:
  New

Bug description:
  Hi !

  I found a bug in the ORM on V6. To reproduce it.

  - I want to display create_date field of partner object on customer invoice's view.
  - I created function field on object account_invoice with stored = false.
  - The customer invoice's view has displayed on it but there is a error when i duplicate some customer invoices.

  openerp V6 error:
  " File " /server/bin/osv/orm.py", line 4093, in copy_data
  del data[f]
  KeyError: 'create_date'
  "

  
  It failed because 'create_date' doesn't exist in data

  I fixed it:

  -   elif 'function' in fields[f]:
  +  elif 'function' in fields[f] and f in data:
                  del data[f]

  Can you help me review them?

  Thanks,

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/941837/+subscriptions


References