|
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <record id="goods_class_form_view" model="ir.ui.view">
- <field name="name">goods.class.form</field>
- <field name="model">goods.class</field>
- <field name="arch" type="xml">
- <form string="商品分类">
- <sheet>
- <field name="image_medium" widget="image" class="oe_avatar"/>
- <div class="oe_title">
- <label for="name"/>
- <h1><field name="name" string="名称" placeholder="例如: XX分类"/></h1>
- </div>
- <group name="base_info">
- <group>
- <field name="tax_rate"/>
- <field name="parent_id" domain="[('type','=','view')]"/>
- </group>
- <group>
- <field name="sequence"/>
- <field name="type"/>
- </group>
- </group>
- <field name="note"/>
- </sheet>
- <chatter/>
- </form>
- </field>
- </record>
- <record id="goods_class_list_view" model="ir.ui.view">
- <field name="name">goods.class.list</field>
- <field name="model">goods.class</field>
- <!-- <field name="field_parent" eval="False"/>-->
- <field name="arch" type="xml">
- <list string="商品分类">
- <field name="sequence" widget="handle"/>
- <field name="name"/>
- <field name="type"/>
- <field name="parent_id"/>
- </list>
- </field>
- </record>
- </odoo>
|