Odoo Help

1

0
4 Answers
2
Avatar

Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
22773
| 8 9 10
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 

LinkedIn

Blog

Stackoverflow

ERP Harbor Consulting Services

Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com
Sudhir Arya (ERP Harbor Consulting Services)
2018/10/25 8:27

Hi Manish,

Pass any value in context in the One2many field in XML file.

Ex:

<field name="my_o2m_lines" context="{'o2m_active_model': 'customer.form'}">
...
</field>

Now, in the default_get method of the customer.form object, you will see "o2m_active_model" key and its value in the context.

Hope this will solve your problem.

2 Comments
subbarao
2018/10/25 9:03

Already default_get method available on customer.form

now my question is why we need to pass in context, by using self we can get it.

am i right?

Manish Kumar Bohra
2018/10/26 0:37

Thanks Sudhir, i'm getting this. But my problem is that i want to change language of o2many table according to sale order partner_id(customer). So, can i do this? Means my sale order form should be in english language and my o2many model should open in chinese(according to partner).

Thanks for your reply.

0
Avatar

subbarao

--subbarao--

1269
| 5 2 8
Chennai, India
--subbarao--


subbarao
2018/10/25 7:59

If you want customer.form means, it's available on self

self._name  is  customer.form

Ask a Question
Keep Informed
1 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now