Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Can't add more than two customized fields on "res.partner.form" view.

By
Thongchai L.
on 10/8/14, 10:02 AM 1,041 views

I have recently started to try on the new Odoo 8.0 (demo) on my Ubuntu 12.04 LTS server (32bits).   Everything are working fine until I started to add the customized fields on "res.partner.form" view.    The system still worked well after I successfully added two new fields (x_PartnerTaxID, x_OfficeType) on this view.    However, the system went wrong after the third field (x_BranchID), added on this view.   This error was repeatable and it seems to be a kind of BUG in this new version. (I tried exactly the same thing on V7.0 without any problem).     Is there anybody know how to get his fixed?    Please kindly help.     

Here there are, the error message pop up on screen once the third customized field was added and I clicked on the menu "Purchase" --> "Suppliers"

=========================

OpenERP Server Error

Traceback (most recent call last): File "/opt/odoo80/openerp/http.py", line 500, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo80/openerp/http.py", line 517, in dispatch result = self._call_function(**self.params) File "/opt/odoo80/openerp/http.py", line 283, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo80/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo80/openerp/http.py", line 280, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo80/openerp/http.py", line 733, in __call__ return self.method(*args, **kw) File "/opt/odoo80/openerp/http.py", line 376, in response_wrap response = f(*args, **kw) File "/opt/odoo80/addons/web/controllers/main.py", line 1244, in load action = request.session.model(action_type).read([action_id], False, ctx) File "/opt/odoo80/openerp/http.py", line 835, in proxy result = meth(cr, request.uid, *args, **kw) File "/opt/odoo80/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo80/openerp/addons/base/ir/ir_actions.py", line 321, in read results = super(ir_actions_act_window, self).read(cr, uid, ids, fields=fields, context=context, load=load) File "/opt/odoo80/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo80/openerp/models.py", line 3104, in read result = BaseModel.read(records, fields, load=load) File "/opt/odoo80/openerp/api.py", line 235, in wrapper return new_api(self, *args, **kwargs) File "/opt/odoo80/openerp/models.py", line 3136, in read self._read_from_database(stored) File "/opt/odoo80/openerp/api.py", line 235, in wrapper return new_api(self, *args, **kwargs) File "/opt/odoo80/openerp/models.py", line 3298, in _read_from_database res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result) File "/opt/odoo80/openerp/osv/fields.py", line 1308, in get result = self._fnct(obj, cr, uid, ids, name, self._arg, context) File "/opt/odoo80/openerp/addons/base/ir/ir_actions.py", line 262, in _search_view 'search', context=context) File "/opt/odoo80/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo80/openerp/addons/base/res/res_partner.py", line 325, in fields_view_get res = super(res_partner,self).fields_view_get(cr, user, view_id, view_type, context, toolbar=toolbar, submenu=submenu) File "/opt/odoo80/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo80/addons/mail/mail_thread.py", line 344, in fields_view_get res = super(mail_thread, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu) File "/opt/odoo80/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo80/openerp/models.py", line 1584, in fields_view_get xarch, xfields = View.postprocess_and_fields(cr, uid, self._name, etree.fromstring(result['arch']), view_id, context=ctx) File "/opt/odoo80/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo80/openerp/addons/base/ir/ir_ui_view.py", line 804, in postprocess_and_fields fields = Model.fields_get(cr, user, None, context) File "/opt/odoo80/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo80/openerp/models.py", line 3049, in fields_get res[fname] = field.get_description(recs.env) File "/opt/odoo80/openerp/fields.py", line 531, in get_description value = value(env) File "/opt/odoo80/openerp/fields.py", line 1217, in _description_selection return [(value, translate(label)) for value, label in selection] TypeError: 'NoneType' object is not iterable

====================================================

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/8/14, 10:02 AM
Seen: 1041 times
Last updated: 3/16/15, 8:10 AM