Odoo Help

0

Can't find field 'move_id' in the following view parts composing the view of object model 'account.invoice'

By
Truong
on 3/16/14, 12:54 AM 2,604 views

Dear,

I have an error when i sort fields on Supplier Invoice screen. This is my code:

"
   <field name="move_id" position="replace"/>
                <field name="name" position="after"> 
                     <field name="move_id"/>
                </field>
"

But i receive error: " View error

Can't find field 'move_id' in the following view parts composing the view of object model 'account.invoice': * account.invoice.supplier.form * account.invoice.supplier.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model "

Please help me solve this error.

Many Thanks,

0
Truong
On 3/17/14, 1:59 AM

Dear Ray Carner,

I want reorder field Move_id after Name filed to reasonable. So how can i fix my code?

Thanks,

0
Ray Carnes
On 3/16/14, 2:39 AM

move_id does not exist in any of the default tree views that display invoices.

The line:

<field name="move_id" position="replace"/>

is causing the error, because that line of your XML is instructing OpenERP to replace a field that isn't in the view in the first place.

The same information in move_id is already shown in the default view. It is the field with the heading Number

The lines:

<field name="name" position="after"> 
    <field name="move_id"/>
</field>

would be just duplicate the information from a field that is already shown!

Since you can already sort the number field, what are you trying to do that you can't do with that field?

Reposted as a comment (from Truong) Dear Ray Carner,

I want reorder field Move_id after Name filed to reasonable. So how can i fix my code?

Thanks,

Bista Solutions US, Ray Carnes
on 3/17/14, 2:19 AM

I posted "move_id does not exist in any of the default tree views that display invoices." Replace and add the field NUMBER instead.

Bista Solutions US, Ray Carnes
on 3/17/14, 2:20 AM

Thanks Ray Carnes.

Truong
on 4/2/14, 1:08 PM

About This Community

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

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 3/16/14, 12:54 AM
Seen: 2604 times
Last updated: 3/16/15, 8:10 AM