0

我在我的开发 PC 中开发了两个新的对象名称 mrp_extend 和 mrp_production_output,效果很好。然后现在我想将我的实时服务器更新到插件服务器中。之后我点击更新模块列表然后我去找到我的这两个新对象并安装mrp_extend,它工作得很好。但是当我点击安装 mrp_production_output 然后它给我错误:

ValidateError

Error occurred while validating the field(s) arch: Invalid XML for View Architecture! 

我不知道为什么在我的开发服务器中工作得很好但是当安装到我的服务器中时会出现这个问题?

下面是我的 mrp_production_output 的 XML 文件:

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

<openerp>
    <data>

        <!-- Add new form in new form for Production Output (By Henry on 24/Oct/2013) -->
        <record id="mrp_production_output_form" model="ir.ui.view">
            <field name="name">mrp.production.output.form</field>
            <field name="model">mrp.production.output</field>
            <field name="arch" type="xml">
                <form string="Production Output" version="7.0">
                    <group string="Production Output" colspan="4" col="4">
                        <field name="batch_number" string="Batch Number"/>
                        <field name="finish_date" string="Finish Date"/>
                        <field name="product_id" string="Product" on_change="onchange_product_id(product_id, context)"/>
                        <field name="finish_product_quantity" string="Finish Produce Quantity" on_change="on_change_calculate_production_cost(total_raw_mat_cost,total_packaging_cost,finish_product_quantity)"/>
                        <field name="product_uom" string="Product Unit Of Measure"/>
                        <field name="total_packaging_cost" string="Packaging Cost/Extra Cost" on_change="on_change_calculate_production_cost(total_raw_mat_cost,total_packaging_cost,finish_product_quantity)"/>
                        <field name="system_message" string="System Message"/>
                        <field name="remarks" string="Remarks"/>
                    </group>
                    <group>
                        <group string="BOM Lists">
                            <field name="bom_lines" nolabel="1" options="{'reload_on_button': true}">
                                <tree string="BOM Lists">
                                    <field name="name"/>
                                    <field name="product_id"/>
                                    <field name="product_qty" sum="Expected Total Produce Qty"/>
                                    <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
                                    <field name="total_final_cost" string="Total Costs" sum="Total Costs"/>
                                    <field name="location_dest_id"/>
                                    <field name="date_planned"/>
                                    <field name="state" invisible="1"/>
                                </tree>
                            </field>
                        </group>
                    </group>
                        <group>
                            <group colspan="4" col="4">
                            <field name="expected_produce_quantity" string="Expected Produce Quantity"/>
                            <field name="total_production_cost" string="Total Production Cost" />
                            <field name="total_raw_mat_cost" string="Raw Material Cost" />                          
                            <field name="total_unit_cost" string="Total Unit Cost" bold="True"/>
                        </group>                   
                    </group>             
                </form>
               <!--<xpath expr="/form/sheet" position="after">
                    <div class="oe_chatter">
                        <field name="message_follower_ids" widget="mail_followers"/>
                        <field name="message_ids" widget="mail_thread"/>
                    </div>
                </xpath>-->
            </field>
        </record>

        <!-- Add new tree in new form for Production Output (By Henry on 24/Oct/2013) -->
        <record id="mrp_production_output_tree" model="ir.ui.view">
            <field name="name">mrp.production.output.tree</field>
            <field name="model">mrp.production.output</field>
            <field name="arch" type="xml">
                <tree string="Production Output">
                    <field name="batch_number" string="Batch Number"/>
                    <field name="finish_date" string="Finish Date"/>
                    <field name="product_id" string="Product"/>
                    <field name="expected_produce_quantity" string="Expected Produce Quantity"/>
                    <field name="finish_product_quantity" string="Finish Produce Quantity"/>
                    <field name="product_uom" string="Product Unit Of Measure"/>
                    <field name="total_raw_mat_cost" string="Raw Material Cost"/>
                    <field name="total_packaging_cost" string="Packaging Cost/Extra Cost"/>
                    <field name="total_production_cost" string="Total Production Cost"/>
                    <field name="total_unit_cost" string="Total Unit Cost"/>
                    <field name="system_message" string="System Message"/>
                    <field name="remarks" string="Remarks"/>
                </tree>
            </field>
        </record>

        <record id="mrp_production_output_action" model="ir.actions.act_window">
            <field name="name">Production Output</field>
            <field name="res_model">mrp.production.output</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>

        <menuitem id="mrp_production_output_child" 
        parent="mrp.menu_mrp_manufacturing" sequence="2"
        action="mrp_production_output_action" />

    </data>
</openerp>
4

0 回答 0