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

Hi, i have this code

in my .py in my class

'invoice_ids': fields.many2many('account.invoice','expinv_rel', 'expinv_id', 'account_id', 'Invoice'),

in my .xml

<record id="view_expInvoice_form" model="ir.ui.view">
....
....
<page string="Invoice" >
    <field name="invoice_ids">
       <tree string="Invoice">
          <field name="date_invoice" />  
          <field name="partner_id" />  
          <field name="origin" />
          <field name="state" invisible="True" />                                 
      </tree>
    </field>
</page>
</record>

In the view for Invoice does not appear the checkboxes...its possible to add them?

อวตาร
ละทิ้ง

I believe you refer to the record selection checkboxes. What do you need them for?

ผู้เขียน

Because based on whether an item is checked i create an invoice.

ผู้เขียน

Yes, in an object <tree> inside a <page> like the xml i put before.

@Patricia, did you find solution for this question

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
5588
0
มี.ค. 15
4040
1
มี.ค. 15
12117
How to color a field in tree view? แก้ไขแล้ว
2
ต.ค. 24
12633
2
ธ.ค. 17
9724