openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #12012
[Bug 1006223] Re: [6.1] When upgrade custom inherited module then stored function fields has dropped from databases
Hello Jacara ,
I have checked this issue at my end.I have created a module A and B.
After install module A and B , I have update module B But I did not face
any problem as you mention in bug report.
Module A :
Inherit res_partner and added field A , B , C in res_partner.
C = is function field and store=True.
Module B :
Inherit res_partner and added field 'new' in res_partner.
1) After Installed Module A , it will Gives me a table schema of res_partner.
id,create_uid,create_date,write_date,write_uid,comment, ean13,color,date,active,
lang,customer,credit_limit,user_id,name,title,company_id,website,
parent_id,employee,supplier,ref,vat,[ A, B, C ].
Added A, B, C field.
2) Installed Module B , it gives me a table schema of res_partner.
id,create_uid,create_date,write_date,write_uid,comment, ean13,color,date,active,
lang,customer,credit_limit,user_id,name,title,company_id,website,
parent_id,employee,supplier,ref,vat,[ A , B, C] ,[new].
Added a 'new' field.
3) Upgrade Module B it will gives me a table schema of res_partner.
id,create_uid,create_date,write_date,write_uid,comment, ean13,color,date,active,
lang,customer,credit_limit,user_id,name,title,company_id,website,
parent_id,employee,supplier,ref,vat,[ A , B, C] ,[new].
So would you please provide a detail information regarding this issue.
Correct me if I missed something.
Thanks and waiting for reply!
** Changed in: openobject-server
Status: New => Incomplete
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1006223
Title:
[6.1] When upgrade custom inherited module then stored function fields
has dropped from databases
Status in OpenERP Server:
Incomplete
Bug description:
I have two separated custom module such as module A and module B. Both
modules inherited by res.partner.
In the module A i defined few function field with store=True attributes.
...
'city': fields.function(_get_address_attr, method=True, type='char', size=128, string='City',
store={'res.partner.address': (_get_partner_address, None, 10),}, multi="address"),
...
In the module B i defined some additional char fields.
When i upgrade module B then city field has been dropped in database.
I think this is a bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1006223/+subscriptions
References