123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <openerp>
- <data>
- <record model="ir.ui.view" id="archives_class_price_list">
- <field name="name">分类价列表</field>
- <field name="model">archives.class_price</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name"/>
- <field name="coding"/>
- <field name="price_type_id"/>
- <field name="execute_date"/>
- <field name="company_id"/>
- <field name="department_id"/>
- <field name="bill_state" options="{'no_open':True,'no_create':True}"/>
- <!-- <field name="store_id" options="{'no_open':True,'no_create':True}"/>-->
- <!-- <field name="in_store_type_id" options="{'no_open':True,'no_create':True}"/>-->
- <!-- <field name="company_id" options="{'no_open':True,'no_create':True}"/>-->
- <!-- <field name="department_id" options="{'no_open':True,'no_create':True}"/>-->
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="archives_class_price_edit">
- <field name="name">分类价新建</field>
- <field name="model">archives.class_price</field>
- <field name="arch" type="xml">
- <form>
- <header>
- <field name="id" attrs="{'invisible': True}"/>
- <field name="can_check" attrs="{'invisible': True}"/>
- <field name="can_uncheck" attrs="{'invisible': True}"/>
- <field name="can_finish" attrs="{'invisible': True}"/>
- <field name="can_unfinish" attrs="{'invisible': True}"/>
- <field name="can_nullify" attrs="{'invisible': True}"/>
- <field name="can_un_nullify" attrs="{'invisible': True}"/>
- <field name="bill_state" readonly="1" attrs="{'invisible': [('id', '==', False)]}"/>
- <button name="check" string="审核" type="object" class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|','|',('can_check','==',False),('bill_state', '!=', 1),('id', '==', False)]}"/>
- <button name="un_check" string="撤销" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_uncheck','==',False),('bill_state', '!=', 10)]}"/>
- <button name="finish" string="完毕" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_finish','==',False),('bill_state', '!=', 10)]}"/>
- <button name="un_finish" string="撤销完毕" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_unfinish','==',False),('bill_state', '!=', 20)]}"/>
- <button name="nullify" string="作废" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_nullify','==',False),('bill_state', '!=', 1)]}"/>
- <button name="un_nullify" string="撤销作废" type="object"
- class="oe_highlight oe_read_only"
- attrs="{'invisible': ['|',('can_un_nullify','==',False),('bill_state', '!=', -1)]}"/>
- <button name="print_quotation" string="打印" type="object" class="btn-primary"
- attrs="{'invisible': [('id', '==', False)]}"/>
- <button name="do_customer_setting" string="个性设置" type="object"
- attrs="{'invisible': [('bill_state', '!=', 1)]}"/>
- </header>
- <sheet>
- <group name="group_top" string="分类价" col="4">
- <field name="name"/>
- <field name="coding"/>
- <field name="price_type_id" options="{'no_open':True,'no_create':True}"/>
- <field name="execute_date"/>
- <field name="company_id" options="{'no_open':True,'no_create':True}"/>
- <field name="department_id" options="{'no_open':True,'no_create':True}"/>
- </group>
- <notebook>
- <page string="分类价信息">
- <div>
- <button name="set_origin_price" string="赋值原价" type="object"
- class="oe_highlight oe_edit_only"/>
- <button name="adjust_price" string="调价" type="object"
- class="oe_highlight oe_edit_only"/>
- <button name="reset" string="清零" type="object"
- class="oe_highlight oe_edit_only"/>
- </div>
- <field name="detail" mode="tree">
- <form>
- <group col="4">
- <field name="goods_id" options="{'no_open':True,'no_create':True}"/>
- <field name="price"/>
- <field name="origin_price"/>
- <field name="adjust_price"/>
- </group>
- </form>
- <tree string="库存上下限明细" editable="bottom">
- <field name="goods_id" options="{'no_open':True,'no_create':True}"/>
- <field name="price"/>
- <field name="origin_price"/>
- <field name="adjust_price"/>
- </tree>
- </field>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="class_price_search_view">
- <field name="name">分类价.search</field>
- <field name="model">archives.class_price</field>
- <field name="arch" type="xml">
- <search>
- <field name="name"/>
- <filter name="not_checked_bill" string="未审核"
- domain="[('bill_state', '=', 1)]"/>
- <filter name="checked_bill" string="已审核"
- domain="[('bill_state', '=', 10)]"/>
- <filter name="finished_bill" string="已完毕"
- domain="[('bill_state', '=', 20)]"/>
- <group string="Group By">
- <filter name="by_bill_state" string="单据状态"
- context="{'group_by': 'bill_state'}"/>
- </group>
- </search>
- </field>
- </record>
- <record model="ir.actions.act_window" id="archives_class_price_action_window">
- <field name="name">分类价</field>
- <field name="res_model">archives.class_price</field>
- <field name="view_mode">tree,form</field>
- </record>
- <menuitem name="分类价" id="archives.menu_class_price" parent="archives_menu_sale"
- action="archives_class_price_action_window" sequence="2"/>
- </data>
- </openerp>
|