nota_remision_view.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. product_features for OpenERP
  4. Copyright (C) 2009 NetAndCo (<http://www.netandco.net>).
  5. Authors, Mathieu Lemercier, mathieu@netandco.net, Franck Bret, franck@netandco.net
  6. Copyright (C) 2011 Akretion Benoît Guillot <benoit.guillot@akretion.com>
  7. The licence is in the file __openerp__.py
  8. -->
  9. <openerp>
  10. <data>
  11. <record model="ir.ui.view" id="sale_nota_remision_form_view">
  12. <field name="name">sale.nota.remision.form.view</field>
  13. <field name="model">sale.nota.remision</field>
  14. <field name="arch" type="xml">
  15. <form string="Reference Note">
  16. <header>
  17. <!--<button name="validar" string="Validar" type="object" states="draft" class="oe_highlight" groups="base.group_user"/>-->
  18. <!--<button name="validar" string="Validar" type="object" states="progress" groups="base.group_user"/>-->
  19. <field name="state" widget="statusbar" statusbar_visible="draft,cancel,progress,done"/>
  20. </header>
  21. <h1>
  22. <label string="Note Reference " attrs="{'invisible': [('state','not in',('draft'))]}"/>
  23. <field name="name" class="oe_inline" readonly="1"/>
  24. </h1>
  25. <group col="4" string="Company Data">
  26. <field name="partner_company"
  27. context="{'search_default_customer':1,'show_address': 1}"
  28. options='{"always_reload": True, "no_create":True}'
  29. readonly="1"/>
  30. <field name="initial_transfer_date"/>
  31. <field name="origin"/>
  32. <field name="finish_transfer_date"/>
  33. </group>
  34. <group col="4" string="Partner Data">
  35. <group>
  36. <field name="partner_id"
  37. domain="[('customer','=',True)]"
  38. context="{'search_default_customer':1, 'show_address': 1}"
  39. options='{"always_reload": True, "no_create":True}'/>
  40. </group>
  41. <group>
  42. <field name="partner_ruc"/>
  43. <field name="partner_phone"/>
  44. <field name="partner_mobile"/>
  45. </group>
  46. </group>
  47. <group col="4" string="Salesman Data">
  48. <field name="user_id" options="{'no_create':True}"/>
  49. <field name="user_ruc"/>
  50. <field name="user_phone"/>
  51. <field name="user_mobile"/>
  52. </group>
  53. <group col="4" string="Vehicle Data">
  54. <field name="vehicle_name"/>
  55. <field name="vehicle_plate"/>
  56. </group>
  57. <group col="4" string="Driver Data">
  58. <field name="logistic_company_id" options="{'no_create':True}"/>
  59. <field name="logistic_ruc"/>
  60. <field name="logistic_phone"/>
  61. <field name="logistic_mobile"/>
  62. <field name="driver_id" options='{"no_create":True}'/>
  63. <field name="driver_ruc"/>
  64. <field name="driver_phone"/>
  65. <field name="driver_mobile"/>
  66. </group>
  67. <group string="Transfer Motives (mark just one option)" col="8">
  68. <field name="is_sale"/>
  69. <field name="is_purchase"/>
  70. <field name="is_export"/>
  71. <field name="is_import"/>
  72. <field name="is_consignment"/>
  73. <field name="is_return"/>
  74. <field name="is_intertal_transfer"/>
  75. <field name="is_transformation_transfer"/>
  76. <field name="is_repair_transfer"/>
  77. <field name="is_movil_transfer"/>
  78. <field name="is_exhibition"/>
  79. <field name="is_fair"/>
  80. </group>
  81. <group col="2">
  82. <field name="sale_voucher"/>
  83. <field name="another_transfer"/>
  84. </group>
  85. <notebook>
  86. <page string="Productos">
  87. <field name="nota_line">
  88. <form string="Note Lines">
  89. <group>
  90. <group>
  91. <field name="product_id"/>
  92. <label for="product_uom_qty"/>
  93. <div>
  94. <field name="product_uom_qty"/>
  95. </div>
  96. <field name="price_unit"/>
  97. </group>
  98. </group>
  99. <label for="name"/>
  100. <field name="name"/>
  101. </form>
  102. <tree string="Nota Order Lines" editable="bottom">
  103. <field name="product_id"
  104. groups="base.group_user"/>
  105. <field name="name"/>
  106. <field name="product_uom_qty"/>
  107. <field name="price_unit"/>
  108. <field name="discount"/>
  109. <field name="price_subtotal"/>
  110. <field name="state" invisible="1"/>
  111. </tree>
  112. </field>
  113. <group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">
  114. <div class="oe_subtotal_footer_separator oe_inline">
  115. <label for="amount_total" />
  116. </div>
  117. <field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"/>
  118. </group>
  119. </page>
  120. </notebook>
  121. </form>
  122. </field>
  123. </record>
  124. <record model="ir.ui.view" id="sale_nota_remision_tree_view">
  125. <field name="name">sale.nota.remision.tree.view</field>
  126. <field name="model">sale.nota.remision</field>
  127. <field name="arch" type="xml">
  128. <tree string="Nota de Remisión">
  129. <field name="name"/>
  130. <field name="origin"/>
  131. <field name="partner_id"/>
  132. </tree>
  133. </field>
  134. </record>
  135. <record id="action_sale_nota_remision" model="ir.actions.act_window">
  136. <field name="name">Nota de Remisión</field>
  137. <field name="type">ir.actions.act_window</field>
  138. <field name="res_model">sale.nota.remision</field>
  139. <field name="view_type">form</field>
  140. <field name="view_mode">tree,form</field>
  141. </record>
  142. <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"/>
  143. <record model="ir.ui.view" id="sale_order_nota_remision_add">
  144. <field name="name">sale.order.nota.remision.add</field>
  145. <field name="model">sale.order</field>
  146. <field name="inherit_id" ref="sale.view_order_form" />
  147. <field name="arch" type="xml">
  148. <xpath expr="//header/button[@name='action_button_confirm']" position="before">
  149. <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"/>
  150. <button name="action_button_view_note" attrs="{'invisible': [('note_reference_exists', '=', False)]}" string="Ver Nota de Remisión" type="object" groups="base.group_user"/>
  151. <!--<button name="action_button_view_note" string="View Note" attrs="{'invisible': [('state','=','draft')]}" type="object" class="oe_highlight" groups="base.group_user"/>-->
  152. </xpath>
  153. <field name="date_order" position="after">
  154. <field name="note_reference_exists"/>
  155. </field>
  156. </field>
  157. </record>
  158. </data>
  159. </openerp>