Community mailing list archives

community@mail.odoo.com

Re: Issue faced during Custom Module Upgradation from Odoo 7 to Odoo 9

by
Graeme Gellatly
- 04/06/2016 03:23:56

Sorry, this is basic python programming. Surely you can Google attributeerror and work it out. Even a decent IDE would identify this error.  The error is probably in your imports.  Also try reading the api docs, otherwise you are just going to go from error to error. Porting is not just restarting the server until it works.


On Wed, 6 Apr 2016 3:42 AM Nitish Raina <nitish.raina@inspiritvision.com> wrote:
Hi,


Using the  similar function equivalent to resolve_o2m_operations worked in this case.
Going forward, I am now facing this error :

File "/opt/odoo/odoo/openerp/addons/laberp/master/master_test_entry.py", line 298, in test_entry
    'no_of_observations': fields.function(fnct_no_of_observation, method=True, string='No. of observations', type='integer', store=True),
AttributeError: 'module' object has no attribute 'function'

Please find the attachment of the error file for reference and the master_test_entry file.

How can this issue be resolved ?

Thanks,
Nitish Raina 


On Tue, Apr 5, 2016 at 10:20 AM, Nitish Raina <nitish.raina@inspiritvision.com> wrote:
Hi Holger,

Thanks for your early response and your efforts are much appreciated.
I will try to use that method and will update.

Regards,
Nitish Raina
On Mon, Apr 4, 2016 at 10:03 PM, Holger Brunn <hbrunn@therp.nl> wrote:
> 1. What is basic purpose of using resolve_o2m_operations in odoo 7 ?
> 
> 2. In Odoo 9 , Is there any equivalent method present which can be used
> in place of resolve_o2m_operations ?

https://github.com/OCA/OCB/blob/9.0/openerp/models.py#L5178

-- 
Therp - Maatwerk in open ontwikkeling

Holger Brunn - Ontwerp en implementatie

mail: holger@therp.nl
web: http://therp.nl
phone: +31 (0)20 3093096

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe