123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- <?xml version="1.0" encoding="utf-8"?>
- <!--
- product_features for OpenERP
- Copyright (C) 2009 NetAndCo (<http://www.netandco.net>).
- Authors, Mathieu Lemercier, mathieu@netandco.net, Franck Bret, franck@netandco.net
- Copyright (C) 2011 Akretion Benoît Guillot <benoit.guillot@akretion.com>
- The licence is in the file __openerp__.py
- -->
- <openerp>
- <data>
- <record model="ir.ui.view" id="sale_nota_remision_form_view">
- <field name="name">sale.nota.remision.form.view</field>
- <field name="model">sale.nota.remision</field>
- <field name="arch" type="xml">
- <form string="Reference Note">
- <header>
- <!--<button name="validar" string="Validar" type="object" states="draft" class="oe_highlight" groups="base.group_user"/>-->
- <!--<button name="validar" string="Validar" type="object" states="progress" groups="base.group_user"/>-->
- <field name="state" widget="statusbar" statusbar_visible="draft,cancel,progress,done"/>
- </header>
- <h1>
- <label string="Note Reference " attrs="{'invisible': [('state','not in',('draft'))]}"/>
- <field name="name" class="oe_inline" readonly="1"/>
- </h1>
- <group col="4" string="Company Data">
- <field name="partner_company"
- context="{'search_default_customer':1,'show_address': 1}"
- options='{"always_reload": True, "no_create":True}'
- readonly="1"/>
- <field name="initial_transfer_date"/>
- <field name="origin"/>
- <field name="finish_transfer_date"/>
- </group>
- <group col="4" string="Partner Data">
- <group>
- <field name="partner_id"
- domain="[('customer','=',True)]"
- context="{'search_default_customer':1, 'show_address': 1}"
- options='{"always_reload": True, "no_create":True}'/>
- </group>
- <group>
- <field name="partner_ruc"/>
- <field name="partner_phone"/>
- <field name="partner_mobile"/>
- </group>
- </group>
- <group col="4" string="Salesman Data">
- <field name="user_id" options="{'no_create':True}"/>
- <field name="user_ruc"/>
- <field name="user_phone"/>
- <field name="user_mobile"/>
- </group>
- <group col="4" string="Vehicle Data">
- <field name="vehicle_name"/>
- <field name="vehicle_plate"/>
- </group>
- <group col="4" string="Driver Data">
- <field name="logistic_company_id" options="{'no_create':True}"/>
- <field name="logistic_ruc"/>
- <field name="logistic_phone"/>
- <field name="logistic_mobile"/>
- <field name="driver_id" options='{"no_create":True}'/>
- <field name="driver_ruc"/>
- <field name="driver_phone"/>
- <field name="driver_mobile"/>
- </group>
- <group string="Transfer Motives (mark just one option)" col="8">
- <field name="is_sale"/>
- <field name="is_purchase"/>
- <field name="is_export"/>
- <field name="is_import"/>
- <field name="is_consignment"/>
- <field name="is_return"/>
- <field name="is_intertal_transfer"/>
- <field name="is_transformation_transfer"/>
- <field name="is_repair_transfer"/>
- <field name="is_movil_transfer"/>
- <field name="is_exhibition"/>
- <field name="is_fair"/>
- </group>
- <group col="2">
- <field name="sale_voucher"/>
- <field name="another_transfer"/>
- </group>
- <notebook>
- <page string="Productos">
- <field name="nota_line">
- <form string="Note Lines">
- <group>
- <group>
- <field name="product_id"/>
- <label for="product_uom_qty"/>
- <div>
- <field name="product_uom_qty"/>
- </div>
- <field name="price_unit"/>
- </group>
- </group>
- <label for="name"/>
- <field name="name"/>
- </form>
- <tree string="Nota Order Lines" editable="bottom">
- <field name="product_id"
- groups="base.group_user"/>
- <field name="name"/>
- <field name="product_uom_qty"/>
- <field name="price_unit"/>
- <field name="discount"/>
- <field name="price_subtotal"/>
- <field name="state" invisible="1"/>
- </tree>
- </field>
- <group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">
- <div class="oe_subtotal_footer_separator oe_inline">
- <label for="amount_total" />
- </div>
- <field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"/>
- </group>
- </page>
- </notebook>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="sale_nota_remision_tree_view">
- <field name="name">sale.nota.remision.tree.view</field>
- <field name="model">sale.nota.remision</field>
- <field name="arch" type="xml">
- <tree string="Nota de Remisión">
- <field name="name"/>
- <field name="origin"/>
- <field name="partner_id"/>
- </tree>
- </field>
- </record>
- <record id="action_sale_nota_remision" model="ir.actions.act_window">
- <field name="name">Nota de Remisión</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">sale.nota.remision</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- </record>
- <menuitem name="Reference Note" action="action_sale_nota_remision" id="menu_sale_nota_remision" parent="base.menu_sales" sequence="7" groups="base.group_sale_salesman"/>
- <record model="ir.ui.view" id="sale_order_nota_remision_add">
- <field name="name">sale.order.nota.remision.add</field>
- <field name="model">sale.order</field>
- <field name="inherit_id" ref="sale.view_order_form" />
- <field name="arch" type="xml">
- <xpath expr="//header/button[@name='action_button_confirm']" position="before">
- <button name="action_button_create_note" attrs="{'invisible': [('note_reference_exists', '=', True)]}" string="Crear Nota de Remisión" type="object" class="oe_highlight" groups="base.group_user"/>
- <button name="action_button_view_note" attrs="{'invisible': [('note_reference_exists', '=', False)]}" string="Ver Nota de Remisión" type="object" groups="base.group_user"/>
- <!--<button name="action_button_view_note" string="View Note" attrs="{'invisible': [('state','=','draft')]}" type="object" class="oe_highlight" groups="base.group_user"/>-->
- </xpath>
- <field name="date_order" position="after">
- <field name="note_reference_exists"/>
- </field>
- </field>
- </record>
- </data>
- </openerp>
|