custom fields cause server update error openerp 6.1

Asked by charton Jérémie

Hi.
I'm working under v6.1 (ubuntu & windows).
I still get the bug:
when I create a custom field under web interface, then later on, fed up losing my custom fields in views when i update the module, i decided to add it directly in the product.py and product_view.py : as i named fields the same name i did in the web interface, seems the server is lost. It should update the fields from web interface with the new ones in the code, no ??

Client Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 180, in dispatch
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\controllers\main.py", line 466, in authenticate
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\session.py", line 73, in authenticate
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\openerplib\main.py", line 117, in proxy
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 611, in send

Server Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 592, in send
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\netsvc.py", line 360, in dispatch_rpc
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\service\web_services.py", line 384, in dispatch
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\service\web_services.py", line 395, in exp_authenticate
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\pooler.py", line 50, in get_pool
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\pooler.py", line 33, in get_db_and_pool
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\modules\registry.py", line 138, in get
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\modules\registry.py", line 160, in new
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\modules\loading.py", line 334, in load_modules
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\modules\loading.py", line 253, in load_marked_modules
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\modules\loading.py", line 170, in load_module_graph
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\modules\module.py", line 378, in init_module_models
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\orm.py", line 2935, in _auto_init
AttributeError: 'NoneType' object has no attribute '_table'

It's gonna be a critical issue for me!!!!
Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) said :
#1

Hello charton Jérémie ,

I have checked this issue with trunk as well as stable 6.1
.I have created a custom field x_test then set this field in view.
after that I have created a x_test field in product.py and define field in product_view
then upgrade module.But I did not get any traceback like yours.
So would you please provide more information regarding this issue.

I have attached a video for your more reference.

Thank you!

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#2

Charton,

This might be happening because you have added a field in product module, but this field links/refers to a model on which product module does not depend and thus an error!

Thanks,
Serpent Consulting Services!
http://www.serpentcs.com

Revision history for this message
charton Jérémie (jcharton) said :
#3

Hi. Thanks for the answers. I didn't get time to check but I think you're right, must be refering to another module, or it's because I had the same custom field name in several mods. I'll check as soon as i can.
Thank you all.

ps: I did not get the video (or did not see the link)

Can you help with this problem?

Provide an answer of your own, or ask charton Jérémie for more information if necessary.

To post a message you must log in.