Odoo Help

1

0
4 Answers
2
Avatar

Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
22710
| 8 9 10
Ahmedabad, الهند
--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)
25‏/10‏/2018 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
25‏/10‏/2018 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
26‏/10‏/2018 12: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--

1216
| 5 1 7
Chennai, الهند
--subbarao--


subbarao
25‏/10‏/2018 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