Odoo Help

0
1
Nitin Kantak
On 10/11/18, 5:14 AM

If Padding is custom field added by you. Then add that field into xml form you also and make it invisible if you want. 

Check the same after upgrading your module.

I'm not added any kind of 'padding' field in python.

SunArc Technologies, Pawan Sharma
on 10/11/18, 7:31 AM

ok...then upgrade base module separately first and see the result

Nitin Kantak
on 10/11/18, 7:35 AM

Go to Apps -> search for 'base' -> click on upgrade

Nitin Kantak
on 10/11/18, 7:36 AM

Upgraded but still getting same error.

SunArc Technologies, Pawan Sharma
on 10/11/18, 8:05 AM

view_id = ir_model_data.get_object_reference('base', 'action_partner_form')[1]

In above statement your getting object reference of an action. You have to get object refernce of its form view . action_partner_form is an action not a form view.

If you want to open a customer form then use this :

view_id = ir_model_data.get_object_reference('base', 'view_partner_form')

verify the view_id is correct or not before executing the solution

Nitin Kantak
on 10/11/18, 8:20 AM

Ohh.. Thanks. silly mistake in function.

SunArc Technologies, Pawan Sharma
on 10/11/18, 8:24 AM
0
subbarao
On 10/11/18, 6:36 AM

Hello,

padding field added in xml and forgot in python file

(or)

you forgot to upgrade your module after restart the server

I'm inherite default CRM and only added single button with above python function. No extra field added in python and xml file.

SunArc Technologies, Pawan Sharma
on 10/11/18, 8:07 AM

About This Community

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

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 10/10/18, 7:15 AM
Seen: 176 times
Last updated: 10/11/18, 8:23 AM