Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3830 มุมมอง

Hi community,

I would like to create a new custom button into a pivot report view who call a function in the on click.

record id="picking_products_form" model="ir.ui.view">
        field name="name">action.stock.report
       field name="model">stock.quant.report
       field name="arch" type="xml">
               pivot string="report quant by product">
              button name="cron_stock_quant_report" string="Stock Quant" type="object"/>
             field name="product_id"/>
            field name="qty" type="measure"/>
           field name="cost" type="measure"/>
 /pivot>
/field>
/record>



When I tried to open my view, it doesn't work and I have an error : KeyError: u'cron_stock_quant_report'

In my model, I have a function named "cron_stock_quant_report".

If somebody can help me please.

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 18
3210
1
ก.ค. 25
1315
2
ม.ค. 20
4730
7
พ.ย. 18
23454
0
มี.ค. 25
2324