view.xml 1.2 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="account_analytic_account_form_inherit" model="ir.ui.view">
  5. <field name="name">account.analytic.account.form.inherit</field>
  6. <field name="model">stock.location</field>
  7. <field name="inherit_id" ref="stock.view_location_form"/>
  8. <field name="arch" type="xml">
  9. <field name="partner_id" position="after">
  10. <field name="account_analytic_account_id" domain="[('partner_id','=',partner_id)]"/>
  11. </field>
  12. </field>
  13. </record>
  14. <record id="account_analytic_account_invoice_form_inherit" model="ir.ui.view">
  15. <field name="name">account.analytic.account.invoice.form.inherit</field>
  16. <field name="model">account.invoice</field>
  17. <field name="inherit_id" ref="account.invoice_supplier_form"/>
  18. <field name="arch" type="xml">
  19. <field name="period_id" position="after">
  20. <field name="account_analytic_account_id" domain="[('partner_id','=',partner_id)]"/>
  21. </field>
  22. </field>
  23. </record>
  24. </data>
  25. </openerp>