Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: unit test of onchange in v10 - full new api
by
LasLabs, Dave Lasley
I typically will just make the necessary changes to the record, such as the product in this instance, then run the onchange method. Its all just using the record cache now, so it just works.
-Dave Lasley
For sure expert really could help me here.In OCA test, i haven't found any example where i could understand explicitlyThen i can't understand how can i specify a particular product for my own test.In old api we had `def my_onchange (self, cr, ..., product, pricelist, ...)`Compared to old api there is a behavior I can't reproduceHi guys,I need your advice about unit test and onchange in v10,For test unit, it's easy just call method by replacing product by the product you want test.example hereBut in new api, there is no more argument in onchange method.
where I put my product value.Thanks a lot
Bonne journée
David BEAL - Akretion
Odoo Development / Integration_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
unit test of onchange in v10 - full new api
byAkretion France., David BEAL-
Re: unit test of onchange in v10 - full new api
byTecnativa. S. L., Pedro M. Baeza -
Re: unit test of onchange in v10 - full new api
byAkretion France., David BEAL