fix #1253
remove pudb
- Fix #1253
- avoid using sale objects in stock_account module
- check the purchase side