Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1631 Lượt xem

Hello, I have a problem with the Action reports or perhaps it is simply a mistake in my understanding since I am new to this.

It happens that I create a report that contains customer data, the model is res.partner but when creating the action report I get an error with the binding_model_id, below is the code.


Sample report

        res.partner

        qweb-pdf

        module_name.client_report

       

       

        report



My understanding is that to "generate" the binding_model_id you have to take the model_id and add "model" to the beginning and replace "." for "_", for example:


model_id = res.partner

binding_model_id = model_res_partner


It's right?

When doing it this way I receive the following error message: ValueError: External ID not found in the system: name_module.model_res_partner


What am I omitting or doing wrong?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Give binding_model_id as 

<field name="binding_model_id" ref="base.model_res_partner"/>


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 25
1377
0
thg 11 24
1563
0
thg 6 24
1606
1
thg 6 24
2118
0
thg 10 23
2150