Odoo Help

1

1
3 回答
0
Danimar Ribeiro ブラジル
2016/04/14 7:19

For your specific case you should override "read". 

"fields_view_get" does not have information about the current record, what you could if you want to is pass through context the id, but it's not the best, use "read".


@api.multi

def read(self, fields=None, load='_classic_read'):


0
Omar OUHARI フランス
2016/01/27 15:25

I have the same issue. did you find any solution. I want to set value of current record for each field. thanks to any answer.

0
アバター

Grover Hernando Menacho Quisbert ボリビア

--Grover Hernando Menacho Quisbert--
WebVision Enterprise Systems
https://www.linkedin.com/in/hmen89/
2940
| 7 8 10
La Paz, ボリビア
--Grover Hernando Menacho Quisbert--

Odoo Developer

Grover Hernando Menacho Quisbert ボリビア
2013/06/11 19:18

I know that there is no active_id when you are calling a tree, I use that when i select some rows on a tree and then I call a wizard or something there you have active_ids because you selected some rows. If you are calling a tree view, there is no rows selected so there is no active_id present.

質問する
Writer
135
luis
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