product_views.xml 1.4 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_category_property_form" model="ir.ui.view">
  4. <field name="name">product.category.property.form.inherit.stock</field>
  5. <field name="model">product.category</field>
  6. <field name="inherit_id" ref="account.view_category_property_form"/>
  7. <field name="arch" type="xml">
  8. <field name="property_account_income_categ_id" position="before">
  9. <field name="property_account_creditor_price_difference_categ"
  10. domain="[('deprecated','=',False)]" groups="account.group_account_readonly"
  11. attrs="{'invisible':[('property_valuation', '=', 'manual_periodic')]}"/>
  12. </field>
  13. </field>
  14. </record>
  15. <record id="product_template_form_view" model="ir.ui.view">
  16. <field name="name">product.normal.form.inherit.stock</field>
  17. <field name="model">product.template</field>
  18. <field name="inherit_id" ref="account.product_template_form_view"/>
  19. <field name="arch" type="xml">
  20. <field name="property_account_expense_id" position="after">
  21. <field name="property_account_creditor_price_difference" domain="[('deprecated','=',False)]" attrs="{'readonly':[('purchase_ok', '=', 0)]}" groups="account.group_account_readonly"/>
  22. </field>
  23. </field>
  24. </record>
  25. </odoo>