purchase_order_view.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!--
  5. PURCHASE ORDER
  6. -->
  7. <record id="purchase_order_line_total" model="ir.ui.view">
  8. <field name="name">purchase.order.line.total</field>
  9. <field name="model">purchase.order</field>
  10. <field name="inherit_id" ref="purchase.purchase_order_form"/>
  11. <field name="arch" type="xml">
  12. <!--
  13. PURCHASE ORDER
  14. -->
  15. <field name="picking_type_id" position="after">
  16. <field name="invoice_number" attrs="{'readonly':[('state','in',('approved','done'))]}"/>
  17. </field>
  18. <!--
  19. PURCHASE ORDER LINE
  20. -->
  21. <xpath expr="//tree[@string='Purchase Order Lines']//field[@name='price_subtotal']" position="after">
  22. <field name="amount_total" readonly="1"/>
  23. </xpath>
  24. <xpath expr="//tree[@string='Purchase Order Lines']//field[@name='date_planned']" position="attributes">
  25. <attribute name="invisible">1</attribute>
  26. </xpath>
  27. <xpath expr="//tree[@string='Purchase Order Lines']//field[@name='name']" position="attributes">
  28. <attribute name="invisible">1</attribute>
  29. </xpath>
  30. <xpath expr="//tree[@string='Purchase Order Lines']//field[@name='product_uom']" position="attributes">
  31. <attribute name="string">Unidad de Medida</attribute>
  32. </xpath>
  33. <!--
  34. BUTTONS
  35. -->
  36. <button name="bid_received" states="sent" position="after">
  37. <button name="purchase_process_now" string="Procesar Compra" type="object" states="draft,sent" groups="base.group_user" class="oe_highlight"/>
  38. </button>
  39. <button name="print_quotation" position="attributes">
  40. <attribute name="invisible">1</attribute>
  41. </button>
  42. <button name="wkf_send_rfq" position="attributes">
  43. <attribute name="invisible">1</attribute>
  44. </button>
  45. <button name="purchase_confirm" position="attributes">
  46. <attribute name="invisible">1</attribute>
  47. </button>
  48. <button name="wkf_send_rfq" states="approved" position="attributes">
  49. <attribute name="invisible">1</attribute>
  50. </button>
  51. </field>
  52. </record>
  53. <!--
  54. ACCOUNT INVOICE
  55. -->
  56. <!-- <record id="account_invoice_supplier_cred_cont" model="ir.ui.view">
  57. <field name="name">account.invoice.supplier.cred.cont</field>
  58. <field name="model">account.invoice</field>
  59. <field name="inherit_id" ref="account.invoice_supplier_form" />
  60. <field name="arch" type="xml">
  61. <xpath expr="//field[@name='journal_id']" position="after">
  62. <field name="contado"/>
  63. <field name="credito"/>
  64. </xpath>
  65. </field>
  66. </record> -->
  67. </data>
  68. </openerp>