Em 29/10/2013 18:10, Cédric Krier escreveu:
On 29/10/13 17:48 -0200, Gmail - Iasmini wrote:

On 29/10/13 15:18 -0200, Gmail - Iasmini wrote:
Em 29/10/2013 15:03, Cédric Krier escreveu:
On 29/10/13 14:52 -0200, Gmail - Iasmini wrote:
Em 29/10/2013 13:35, Cédric Krier escreveu:
On 25/10/13 11:56 -0200, Gmail - Iasmini wrote:

I don't know why the field isn't shown on the screen.

On 29/10/13 06:19 -0700, igomes wrote:
I'm stucked, please help me!!

1. I inserted a new field on invoice.py
2. It was inserted on table, but it doesn't appears on screen
3. I know that is not calling the file invoice_line_form.xml, because I put
purposely an wrong name at the 'expr' and it raises no error when I use the
screen.

It is because on invoice form, it is not the invoice_line_view_form that
is used but invoice_line_view_tree_sequence.



Ok, I see. I changed the name of my xml view to:

invoice_line_tree_sequence.xml

It is not only about changing the name of file but also the id of the
view inherited.

Do I have to put the inheritance in invoice.xml?

I added these lines in this file:

...
    <data>
        <record model="ir.ui.view" id="view_invoice_line_nfse_form">
            <field name="model">account.invoice</field>

You are using the wrong model.

I had already tried this:

             <field name="model">account.invoice.line</field>

And also gives the error:

trytond.exceptions.UserError: ('UserError', (u'Invalid XML for view
"account.invoice.line".', ''))

So fix the XML.

I didn't know that in this XML I couldn't have "label name"
<label name= ... />
This was causing the error "Invalid XML"
Now I see why: This XML is building the list inside invoice form and makes no sense the label.

You will get probably a better error message if you create a new
database.



--
Iasmini Gomes
Sílex Sistemas
[email protected]
www.silexsistemas.com.br

Reply via email to