Hello Aristóbulo, First of all your bug is only affecting to stable-6 because this code are available in only stable-6.
Now comes up to your point which is related to Key error but I don't understand how can this possible..? Because you have given a example of _inherit, So this should not be happen. Let me explain about the _inherit method of OpenERP framework, whenever we used the _inherit then it will never create a new table but it will added a new field to existing table and the table name doesn't change, it simply said that the table remain same but we have included a field in our existing table so the name will be taken from the parent object. Whenever we creates a new object with _inherit as per you specified and takes the different instance name then it will create only object/table name. You can see your new instance in object list. That's this object can not see in audit rules so for this object's log we have to select the parent object and parent object already created with _name. So there is no possibility for the key error. Now another point, _name is a required parameter of the object creation OpenERP Framework, So there is also not possible that we have creates a object without_name. So I think there is no possibility that this code will gives a key error. I have creates a one object which is same as per your bug description and then I have creates it's audit rule for create record but I have seen only percent object name in object field of audit rule as per I already explained. Finlay I have created audit rule and seen the audit logs. Finally all are working fine at my end, I have attached a code which I have used in testing as well as I have attached a video for it. So would you please check it and try again then after if you still faced the problem then you can provide us your proper use-case then we can check this further more. Thanks and waiting for your reply! -- You received this bug notification because you are a member of OpenERP Framework Experts, which is subscribed to OpenERP Addons. https://bugs.launchpad.net/bugs/917728 Title: [V6]audittrail in log_fcf KeyError: 'name' Status in OpenERP Addons (modules): Incomplete Bug description: class Example(osv.osv): _inherit = 'some.model' #some code If you declare a model class like Example, without declaring _name, audittrail will fall in KeyError: 'name'. at audittrail.py:327, "name": resource['name'] addons revno: 5004 To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-addons/+bug/917728/+subscriptions -- Mailing list: https://launchpad.net/~credativ Post to : [email protected] Unsubscribe : https://launchpad.net/~credativ More help : https://help.launchpad.net/ListHelp

