Vauxoo / addons-vauxoo

All our modules related to developments that solves generic issues on Odoo, or that solve internal problems on Odoo Core, if something is here, maybe it is solving an issue in your company, try it and report what you see.
http://www.vauxoo.com
193 stars 288 forks source link

[FIX] account_anglo_saxon_stock_move: Handle exception properly #1394

Closed luisg123v closed 4 years ago

luisg123v commented 4 years ago

When the accrual stock is reconciled through the cron and an exception occurs, the error is logged. however, it's not being handled properly, which causes another exception.

The exception is checked for its name, value and message. However, Odoo exceptions don't normally have a message attribute. A safer way is to check its arguments, which is what this commit does.

luisg123v commented 4 years ago

@keylor2906 could you check this, please?

I'm getting this error on the databases I'm migrating.

CC @hbto

hbto commented 4 years ago

👍