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

Getting the value of field of one table to copy in the field of the other table

By
Lady Sharmane Udtuhan
on 9/26/13, 12:58 AM 1,935 views

I already use fields related and it's working fine, but some how i can't used this because of a reason, so i need to find other solution.. Does anyone know how to do it aside from fields related?? Thanks in advance :D

1

Andreas Brueckl

--Andreas Brueckl--
5056
| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 9/26/13, 4:56 AM

You can use the function field. With this field you can get and set any field you like.

I think it is right but, after getting that value i need to group it, and as far as i know function fields can not be group.. Thanks for the reply :D

Lady Sharmane Udtuhan
on 9/26/13, 6:27 AM

You can group it if you define it with store=True. But then you have to consider to use triggers for the updates.

Andreas Brueckl
on 9/26/13, 6:29 AM

That's one of my problem, i use fields related with store true, my problem is i need to save the form where i'm getting the fields and then edit it again ang work on the form where my fields related is located.. What i want to have is that i fill out my form then go to one2many form then fill out again , and go to one2many form again, fill out then save, save, save.. But if i do this using fields related with store true it will not group accordingly because my fields related did'nt store the value.. Many thanks to you :)

Lady Sharmane Udtuhan
on 9/26/13, 6:52 AM

Use the function field with store=True. For related fields this is not possible afaik.

Andreas Brueckl
on 9/26/13, 6:56 AM

If i use function field with store true, do i need to save the form first fro the store true to be triggered??

Lady Sharmane Udtuhan
on 9/26/13, 7:27 AM

Yes, when the form is saved, then the function-method and the store are triggered.

Andreas Brueckl
on 9/26/13, 7:46 AM

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

0 follower(s)

Stats

Asked: 9/26/13, 12:58 AM
Seen: 1935 times
Last updated: 3/16/15, 8:10 AM