-
Committer:
Fabien Pinckaers
-
Date:
2011-11-13 22:30:56 UTC
-
Revision ID:
fp@tinyerp.com-20111113223056-g65pf5vzg7dwkks1
[IMP] Allows to put a view argument in a YAML record and OpenERP will
call all the on_change and default_get correctly. This increases
a lot the coverage and reduce lines of test to develop.
Put the XML_ID of the view of False so that OpenERP will find the
first form view itself.
Example to create a PO with all on_change:
!record {model: purchase.order, id: purchase_new, view: False}:
partner_id: base.res_partner_asus
order_line:
- product_id: product.product_product_pc1
product_qty: 5.0