コンテンツへスキップ
メニュー
この質問にフラグが付けられました

We got this requirement where a report action needs to be manually triggered when no records are found after a search.

We tried to add a button (yes button, not filter, type should be object) directly in the search view arch, nested in a contracted group; like so

<field name="type">search</field>
<field name="arch" type="xml">
  <xpath expr="/search/group[@string='Group By...']" position="before">
    <group string="Acciones extendidas..." expand="0" colspan="4">
      <button name="testing" type="object" string="Póliza cero" icon="terp-dolar_ok" />
    </group>
  </xpath>
</field>

That updates succesfully but when one attemps to expand the group, this trace is shown in the client's output:

/openerp-client-6.0.4/bin/widget/view/form_gtk/selection.py:130: 
Warning: gsignal.c:2315: instance `0x9a72be8' has no handler with id `14029'     
self.child.set_text(long_text)

Is it possible to achieve this? If so, what is the right way? Else, do we have any other alternatives? I found this field called filter in act_window model, is this field related in anyway with what we're trying to do? Thanks for your time.

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 24
3464
0
1月 24
973
1
1月 25
1294
0
3月 24
1087
0
3月 24
1407