purchase_order_view.xml 3.4 KB

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