project_service_budget.xml 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- form view -->
  5. <record model="ir.ui.view" id="project_service_task_budget_history">
  6. <field name="name">project.service.task</field>
  7. <field name="model">project.service.task</field>
  8. <field name="inherit_id" ref="eiru_service.project_service_task_form"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//field[@name='user_id']" position="after">
  11. <button name="%(action_budget_add)d"
  12. type="action" class="oe_button oe_form_button oe_highlight" string="Enviar" context="{'default_task_id': id, 'default_amount':amount_total}" attrs="{'readonly': [('state','!=', 'Preparado')],'invisible': [('approved','=',True)]}"/>
  13. </xpath>
  14. <xpath expr="//group[@string='Facturación']" position="after">
  15. <group string ="Histórico de presupuestos">
  16. <field name="budget_ids" nolabel="1" readonly="1">
  17. <tree string="Budget" editable="bottom">
  18. <field name="date" string="Fecha"/>
  19. <field name="task_id" string="Descripcion"/>
  20. <field name="user_id" string="Funcionario"/>
  21. <field name="amount" string="Valor"/>
  22. </tree>
  23. </field>
  24. </group>
  25. </xpath>
  26. </field>
  27. </record>
  28. </data>
  29. </openerp>