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.

44 lines
2.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="account_analytic_account_recurring_form_form" model="ir.ui.view">
  5. <field name="name">account.analytic.account.invoice.recurring.form.inherit</field>
  6. <field name="model">account.analytic.account</field>
  7. <field name="inherit_id" ref="account_analytic_analysis.account_analytic_account_form_form"/>
  8. <field eval="40" name="priority"/>
  9. <field name="arch" type="xml">
  10. <group name='invoice_on_timesheets' position='after'>
  11. <separator string="Recurring Invoices" attrs="{'invisible': [('recurring_invoices','!=',True)]}"/>
  12. <div>
  13. <field name="recurring_invoices" on_change="onchange_recurring_invoices(recurring_invoices, date_start)" class="oe_inline"/>
  14. <label for="recurring_invoices" />
  15. <button class="oe_link" name="recurring_create_invoice" attrs="{'invisible': [('recurring_invoices','!=',True)]}" string=". create invoices" type="object" groups="base.group_no_one"/>
  16. </div>
  17. <group attrs="{'invisible': [('recurring_invoices','!=',True)]}">
  18. <label for="recurring_interval"/>
  19. <div>
  20. <field name="recurring_interval" class="oe_inline" attrs="{'required': [('recurring_invoices', '=', True)]}"/>
  21. <field name="recurring_rule_type" class="oe_inline" attrs="{'required': [('recurring_invoices', '=', True)]}"/>
  22. </div>
  23. <field name="recurring_next_date"/>
  24. </group>
  25. <label for="recurring_invoice_line_ids" attrs="{'invisible': [('recurring_invoices','=',False)]}"/>
  26. <div attrs="{'invisible': [('recurring_invoices','=',False)]}">
  27. <field name="recurring_invoice_line_ids">
  28. <tree string="Account Analytic Lines" editable="bottom">
  29. <field name="product_id" on_change="product_id_change(product_id, uom_id, quantity, name, parent.partner_id, price_unit, parent.pricelist_id, parent.company_id)"/>
  30. <field name="name"/>
  31. <field name="quantity"/>
  32. <field name="uom_id"/>
  33. <field name="price_unit"/>
  34. <field name="price_subtotal"/>
  35. </tree>
  36. </field>
  37. </div>
  38. </group>
  39. </field>
  40. </record>
  41. </data>
  42. </openerp>