Refactored the restrict_partner_id check in the stock_account module to make it more flexible for future updates. Now, it's easier to extend restrict_partner_id check without override the whole method. Related with https://github.com/odoo/odoo/pull/155694 closes odoo/odoo#158687 X-original-commit: 8a4c6e51a200c4b093571d4f2003b39de07fe4b1 Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>