Odoo Help

Welcome!

This community 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.

1

checkbox in a tree inside a page

By
Patricia
on 4/19/13, 11:25 AM 1,336 views

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?

Daniel Reis
on 4/19/13, 11:38 AM

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

Patricia
on 4/19/13, 2:28 PM

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

Patricia
on 4/22/13, 10:48 AM

@Patricia, did you find solution for this question

Nadeem Ahmed
on 2/17/14, 11:16 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/19/13, 11:25 AM
Seen: 1336 times
Last updated: 3/16/15, 8:10 AM