sale_view.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- sale order line pack line -->
  5. <record model="ir.ui.view" id="view_sale_line_pack_line_tree">
  6. <field name="name">sale.line.pack.line.tree</field>
  7. <field name="model">sale.order.line.pack.line</field>
  8. <field name="arch" type="xml">
  9. <tree string="Sales Order Line Pack Lines" editable="bottom">
  10. <field name="product_id" groups="base.group_user"/>
  11. <field name="price_unit"/>
  12. <field name="product_uom_qty"/>
  13. <field name="discount" groups="sale.group_discount_per_so_line"/>
  14. <field name="price_subtotal"/>
  15. </tree>
  16. </field>
  17. </record>
  18. <record model="ir.ui.view" id="view_order_line_form2">
  19. <field name="name">view.order.line.button</field>
  20. <field name="model">sale.order.line</field>
  21. <field eval="90" name="priority"/>
  22. <field name="arch" type="xml">
  23. <form string="Sales Order Lines" create="false">
  24. <header>
  25. <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done" statusbar_colors="{'exception':'red','cancel':'red'}"/>
  26. </header>
  27. <sheet>
  28. <field name="pack_type" invisible="1"/>
  29. <div attrs="{'invisible':[('pack_type', '!=', 'none_detailed_assited_price')]}">
  30. <div name="product_pack">
  31. <label for="pack_line_ids"/>
  32. <field name="pack_line_ids"/>
  33. </div>
  34. <group class="oe_subtotal_footer oe_right" colspan="2" name="pack_total">
  35. <field name="pack_total" widget="monetary" options="{'currency_field': 'currency_id'}"/>
  36. <div class="oe_subtotal_footer_separator" colspan="2"/>
  37. <field name="price_unit" widget="monetary" options="{'currency_field': 'currency_id'}"/>
  38. </group>
  39. </div>
  40. </sheet>
  41. <footer>
  42. <button class="oe_highlight" name="button_save_data" string="Save" type="object" />
  43. or
  44. <button class="oe_link" special="cancel" string="Cancel" />
  45. </footer>
  46. </form>
  47. </field>
  48. </record>
  49. <record model="ir.ui.view" id="view_order_stock_form">
  50. <field name="name">sale.order.form.inherit</field>
  51. <field name="model">sale.order</field>
  52. <field name="inherit_id" ref="sale.view_order_form"/>
  53. <field name="arch" type="xml">
  54. <!-- button to open line form -->
  55. <xpath expr="//field[@name='order_line']/tree//field[@name='price_subtotal']" position="after">
  56. <field name="pack_type" invisible="1"/>
  57. <button name="action_pack_detail" string="Detail" attrs="{'invisible':[('pack_type', '!=', 'none_detailed_assited_price')]}" type="object"/>
  58. </xpath>
  59. </field>
  60. </record>
  61. </data>
  62. </openerp>