You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
7.0 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="view_pos_pos_form" model="ir.ui.view">
  5. <field name="name">pos.order</field>
  6. <field name="model">pos.order</field>
  7. <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='lines']/tree/field[@name='discount']" position="after">
  10. <field name="tax_ids" widget="many2many_tags"/>
  11. </xpath>
  12. </field>
  13. </record>
  14. <!--
  15. <record model="ir.ui.view" id="view_pos_pos_form">
  16. <field name="name">pos.order</field>
  17. <field name="model">pos.order</field>
  18. <field name="arch" type="xml">
  19. <form string="Point of Sale Orders">
  20. <header>
  21. <button name="%(action_pos_payment)d" string="Payment" class="oe_highlight" type="action" states="draft" context="{'pos_session_id' : session_id}"/>
  22. <button name="action_invoice" string="Invoice" type="object" states="paid" attrs="{'readonly': [('partner_id','=',False)]}"/>
  23. <button name="refund" string="Return Products" type="object"
  24. attrs="{'invisible':[('state','=','draft')]}"/>
  25. <button name="%(action_report_pos_receipt)d" string="Reprint" type="action" states="paid,done,invoiced"/>
  26. <field name="state" widget="statusbar" statusbar_visible="draft,paid,done" statusbar_colors='{"cancel":"red"}'/>
  27. </header>
  28. <sheet>
  29. <group col="4" colspan="4">
  30. <field name="name"/>
  31. <field name="date_order"/>
  32. <field name="session_id" required="1"/>
  33. <field name="partner_id" on_change="onchange_partner_id(partner_id, context)" domain="[('customer', '=', True)]" context="{'search_default_customer':1}" attrs="{'readonly': [('state','=','invoiced')]}"/>
  34. </group>
  35. <notebook colspan="4">
  36. <page string="Products">
  37. <field name="lines" colspan="4" nolabel="1">
  38. <tree string="Order lines" editable="bottom">
  39. <field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)"/>
  40. <field name="qty" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
  41. <field name="price_unit" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
  42. <field name="discount" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
  43. <field name="price_subtotal"/>
  44. <field name="price_subtotal_incl"/>
  45. </tree>
  46. <form string="Order lines">
  47. <group col="4">
  48. <field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,qty,parent.partner_id)"/>
  49. <field name="qty" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
  50. <field name="discount" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
  51. <field name="price_unit" on_change="onchange_qty(product_id, discount, qty, price_unit, context)"/>
  52. <field name="price_subtotal" invisible="1"/>
  53. <field name="price_subtotal_incl" invisible="1"/>
  54. <field name="notice"/>
  55. </group>
  56. </form>
  57. </field>
  58. <group class="oe_subtotal_footer oe_right" colspan="2" name="order_total">
  59. <field name="amount_tax"/>
  60. <div class="oe_subtotal_footer_separator oe_inline">
  61. <label for="amount_total" />
  62. <button name="button_dummy"
  63. states="draft" string="(update)" class="oe_edit_only oe_link"/>
  64. </div>
  65. <field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator"/>
  66. </group>
  67. <div class="oe_clear"/>
  68. </page>
  69. <page string="Payments">
  70. <field name="statement_ids" colspan="4" nolabel="1">
  71. <tree editable="bottom" string="Statement lines">
  72. <field name="journal_id"/>
  73. <field name="statement_id"/>
  74. <field name="amount"/>
  75. </tree>
  76. </field>
  77. </page>
  78. <page string="Extra Info">
  79. <group string="General Information">
  80. <field name="company_id" groups="base.group_multi_company"/>
  81. <field name="location_id" widget="selection" groups="stock.group_locations"/>
  82. <field name="user_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'point_of_sale.group_pos_user']}"/>
  83. <field name="pricelist_id" groups="product.group_sale_pricelist" domain="[('type','=','sale')]"/>
  84. <field name="picking_id" readonly="1"/>
  85. <field name="pos_reference"/>
  86. </group>
  87. <group string="Accounting Information">
  88. <field name="sale_journal" domain="[('type','=','sale')]"/>
  89. <field name="invoice_id" readonly="1"
  90. attrs="{'invisible':[('state','&lt;&gt;','invoiced')]}"/>
  91. <button name="%(pos_invoice_report)d" string="Re-Print"
  92. icon="gtk-print" type="action" attrs="{'invisible':[('state','&lt;&gt;','invoiced')]}"/>
  93. <field name="account_move" readonly="1"
  94. attrs="{'invisible':[('state','&lt;&gt;','done')]}"/>
  95. </group>
  96. </page>
  97. <page string="Notes" >
  98. <field name="note"/>
  99. </page>
  100. </notebook>
  101. </sheet>
  102. </form>
  103. </field>
  104. </record>
  105. -->
  106. </data>
  107. </openerp>