123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="sis_stock_transfer_search_view" model="ir.ui.view">
- <field name="name">sis_stock_transfer_search_view</field>
- <field name="model">sis.stock.transfer</field>
- <field name="arch" type="xml">
- <search>
- <field name="name"/>
- <field name="partner_id"/>
- <field name="doctor_id"/>
- <field name="state"/>
- <field name="type" invisible="1"/>
- <separator/>
- <filter string="Estado Hecho" name="done" domain="[('state', '=', 'done')]"/>
- <filter string="Estado Borrador" name="draft" domain="[('state', '=', 'draft')]"/>
- <group expand="0" string="Agrupar por:">
- <filter name="group_by_customer" string="Paciente" context="{'group_by':'partner_id'}"/>
- <filter name="group_by_doctor" string="Doctor" context="{'group_by':'doctor_id'}"/>
- <filter name="group_by_state" string="Estado" context="{'group_by':'state'}"/>
- <filter string="Mes Creado" context="{'group_by':'create_date:month'}" help="Mes Creado"/>
- <filter string="Dia Creado" context="{'group_by':'create_date:day'}" help="Dia Creado"/>
- </group>
- </search>
- </field>
- </record>
- <record id="sis_transfer_tree_view" model="ir.ui.view">
- <field name="name">sis_transfer_tree_view</field>
- <field name="model">sis.stock.transfer</field>
- <field name="arch" type="xml">
- <tree string="Transferencia">
- <field name="type" invisible="1"/>
- <field name="name"/>
- <field name="date"/>
- <field name="source_warehouse"/>
- <field name="dest_warehouse"/>
- <field name="pickings"/>
- <field name="state"/>
- </tree>
- </field>
- </record>
- <record id="sis_appointment_tree_view" model="ir.ui.view">
- <field name="name">sis_appointment_tree_view</field>
- <field name="model">sis.stock.transfer</field>
- <field name="arch" type="xml">
- <tree string="Consultas">
- <field name="type" invisible="1"/>
- <field name="name"/>
- <field name="date"/>
- <field name="partner_id"/>
- <field name="doctor_id"/>
- <field name="state"/>
- </tree>
- </field>
- </record>
- <record id="sis_stock_transfer_view_form" model="ir.ui.view">
- <field name="name">sis_stock_transfer_view_form</field>
- <field name="model">sis.stock.transfer</field>
- <field name="arch" type="xml">
- <form string="Transfer">
- <field name="type" invisible="1"/>
- <header>
- <button name="action_create_picking" type="object" class="oe_highlight" string="Finalizar Consulta" attrs="{'invisible': ['|',('type', '=', 'transfer'),('state','!=','draft')]}"/>
- <button name="action_create_picking" type="object" class="oe_highlight" string="Tranferir" attrs="{'invisible': ['|',('type', '=', 'appointment'),('state','!=','draft')]}"/>
- <field name="state" widget="statusbar" translate="1"/>
- </header>
- <sheet>
- <h1>
- <field name="name" placeholder="Reference" readonly="1"/>
- </h1>
- <group>
- <field name="date" required="1" attrs="{'readonly':[('state','!=','draft')]}"/>
- <field name="partner_id" attrs="{'invisible': [('type', '=', 'transfer')],'readonly':[('state','!=','draft')]}"/>
- <field name="doctor_id" attrs="{'invisible': [('type', '=', 'transfer')],'readonly':[('state','!=','draft')]}" options="{'no_create': True, 'no_create_edit':True,'no_open' : True}"/>
- <field name="appointment_reason" attrs="{'invisible': [('type', '=', 'transfer')],'readonly':[('state','!=','draft')]}"/>
- </group>
- <group col="4">
- <field name="source_warehouse" required="1" attrs="{'readonly':[('state','!=','draft')],'invisible':[('type', '=', 'appointment')]}" options="{'no_create': True, 'no_create_edit':True,'no_open' : True}"/>
- <field name="dest_warehouse" required="1" attrs="{'readonly':[('state','!=','draft')],'invisible':[('type', '=', 'appointment')]}" options="{'no_create': True, 'no_create_edit':True,'no_open' : True}"/>
- </group>
- <separator colspan="4" string="Transferencia" attrs="{'invisible':['|',('state','in','draft'),('type', '=', 'appointment')]}"/>
- <field colspan="4" name="pickings" readonly="1" nolabel="1" attrs="{'invisible':['|',('state','in','draft'),('type', '=', 'appointment')]}"/>
- <separator colspan="4" string="Productos"/>
- <field colspan="4" name="lines" nolabel="1" attrs="{'readonly':[('state','!=','draft')]}">
- <tree editable="bottom">
- <field name="product_id" domain="[('type','!=','service')]" required="1" options="{'no_create':True,'no_open':True}"/>
- <field name="factory_reference" invisible="1"/>
- <field name="product_qty" required="1" sum="qty"/>
- <field name="product_uom_id" required="1" invisible="1"/>
- <field name="source_location" invisible="1"/>
- <field name="dest_location" invisible="1"/>
- <field name="note" invisible="1"/>
- <field name="lot_id" domain="[('product_id','=',product_id)]"/>
- </tree>
- </field>
- <group>
- <field name="note" attrs="{'readonly':[('state','!=','draft')]}" />
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record id="sis_transfer_action" model="ir.actions.act_window">
- <field name="name">Transferir Productos</field>
- <field name="res_model">sis.stock.transfer</field>
- <field name="type">ir.actions.act_window</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="view_id" ref="sis_transfer_tree_view"/>
- <field name="target">current</field>
- <field name="context">{'default_type':'transfer','type':'transfer'}</field>
- <field name="domain">[('type', '=', 'transfer')]</field>
- </record>
- <menuitem action="sis_transfer_action"
- id="sis_stock_transfer_menu"
- parent="base.menu_sales"
- sequence="100"/>
- <record id="sis_appointment_action" model="ir.actions.act_window">
- <field name="name">Consulta médica</field>
- <field name="res_model">sis.stock.transfer</field>
- <field name="type">ir.actions.act_window</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="view_id" ref="sis_appointment_tree_view"/>
- <field name="target">current</field>
- <field name="context">{'default_type':'appointment','type': 'appointment'}</field>
- <field name="domain">[('type', '=', 'appointment')]</field>
- </record>
- <menuitem action="sis_appointment_action"
- id="sis_stock_appointment_menu"
- parent="base.menu_sales"
- sequence="100"/>
- </data>
- </openerp>
|