Odoo Help

0

0
2 الإجابات
0
الصورة الرمزية

Prakash الهند

--Prakash--

11601
| 6 7 9
Bikaner, الهند
--Prakash--

OpenERP Developer at SunARC Technology

Prakash الهند
3‏/4‏/2014 4:51 ص
0
Shivam Goyal الهند
3‏/4‏/2014 5:08 ص

Hi!!! Prakash....thank you for the interest shown. the link that u have sent me does not work or may be i am doing sthing wronng .I request you to plz guide me into it. What i did is in the form view of sale.order i added the field "order_id" but not specifically where it is given in the link but somewhere in the sale_order form view only, which i think won't matter.I added the "order_id" field after the "name" field using xpath Obviously i have declared this field in _columns also.I added the _defauts line exactly as given in the link So in the xml it goes like this

<xpath expr "////xxx/fields[@name="name"]" postion="after">
       <field name="order_id" context="{'order_id': active_id}"/>
</xpath>

This is what i did exactly but when my fields_view_get() is called my context does not have "order_id" key. I am new to openerp.Please guide me if i have got it all wrong or whether i am missing something which i dont know

Best Regards Shivam Goyal

2 التعليقات
Prakash الهند
3‏/4‏/2014 5:44 ص

you added context active_id using xml path using position after tag. I think need to use replace tag.

Shivam Goyal الهند
3‏/4‏/2014 5:48 ص

So you are saying i should replace the "name" fields in sales_order form with order_id?

اطرح سؤالاً
Writer
الوسوم
Keep Informed
0 متابعين
About This Community

This platform 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.

Register
Odoo Training Center

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

Test it now