Prevent undefined type in on_change_product

review6581002
Fix typo in domain for posted customer credit notes

issue4236
review10551002