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.

0

openerp 6 to 7 xml changes

By
Francisco Castro
on 3/10/14, 1:30 PM 1,479 views

I am change a module to openerp 7 and I have somes erros in xml.. but I cant find them

<?xml version="1.0" encoding="utf-8"?>

<openerp> <data>

    <record id="stock_partial_picking_inheirt_saft_form" model="ir.ui.view">
        <field name="name">stock.partial.picking.saft.form</field>
        <field name="model">stock.partial.picking</field>
        <field name="inherit_id" ref="stock.stock_partial_picking_form"/>
        <field name="type">form</field>
        <field name="arch" type="xml">
        <separator position="before" string="Products">
            <separator colspan="4" string="Dados da Guia (Se documento for uma guia)"/>
            <group col="6" colspan="3">
                <field name ="doc_guia"/>
                <newline/>
                <field name="journal_id" attrs="{'readonly':[('doc_guia','==','0')], 'required':[('doc_guia', '==', '1')]}" colspan="3"/>
                <field name="guia_number" colspan="3"/>
                <field name="data_entrega" attrs="{'readonly':[('doc_guia','==','0')], 'required':[('doc_guia', '==', '1')]}" colspan="3"/>
                <field name="matricula_id"  attrs="{'readonly':[('doc_guia','==','0')], 'required':[('doc_guia', '==', '1')]}" colspan="3"/>
                <field name="local_carga"  on_change="onchange_local_carga(local_carga)" attrs="{'readonly':[('doc_guia','==','0')], 'required':[('doc_guia', '==', '1')]}" colspan="3"/>
                <field name="tipo_biling"  attrs="{'readonly':[('doc_guia','==','0')], 'required':[('doc_guia', '==', '1')]}" colspan="3"/>
            </group>
        </separator>
        <tree position="inside" string="Product Moves">
            <field name="name" />
        </tree>
        </field>
    </record>


    <record id="stock_partial_picking_line_inherit_saft_form" model="ir.ui.view">
        <field name="name">stock.partial.picking.line.saft.form</field>
        <field name="model">stock.partial.picking.line</field>
        <field name="inherit_id" ref="stock.stock_partial_picking_line_form"/>
        <field name="type">form</field>
        <field name="arch" type="xml">
        <field name ="product_id" position="after">
                <field name="name"/>
        </field>
        </field>
    </record>

    <record id="stock_partial_picking_line_inherit_saft_list" model="ir.ui.view">
        <field name="name">stock.partial.picking.line.saft.list</field>
        <field name="model">stock.partial.picking.line</field>
        <field name="inherit_id" ref="stock.stock_partial_picking_line_list"/>
        <field name="type">tree</field>
        <field name="arch" type="xml">
        <field name ="product_id" position="after">
                <field name="name"/>
        </field>
        </field>
    </record>

</data>

</openerp>

any advice?

0
Francisco Castro
On 3/11/14, 8:13 AM

the problem is the tree

0
Soukaina SBITTI
On 3/10/14, 1:41 PM

I think your error comes from the attrs operator. Instead of '==' try this '='

it could be the next error but I think is on the separator tag or something around it. I change == to = and it shows the same error

xcept_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')

Francisco Castro
on 3/10/14, 1:56 PM

Yes i think you're right, it may be because of the separator tag. I think that you can't have something like this: <separator position="before" string="Products"> some other tags inside it </separator>

I'm not sure but maybe you should try using the separator only this way:

<separator position="before" string="Products"/>

Soukaina SBITTI
on 3/10/14, 2:05 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

0 follower(s)

Stats

Asked: 3/10/14, 1:30 PM
Seen: 1479 times
Last updated: 3/16/15, 8:10 AM