If no country is specified on a partner, self.country_id is res.country() and partner_country_code contains res.country(). In the next line the code was comparing `res.country()` with `'BE'`, raising a warning. closes odoo/odoo#54026 X-original-commit: ef9fc11ded5eaef81ee4d844039bf41a714599f5 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>