Name:
[FIX] point_of_sale: write the country id, not the record, in tests c…
State:
Killed
PR State:
merged
PR Author:
Roy Le
PR Author Email:
PR:
#1258
Committer:
Roy Le
Committer Email:
roy.le@viindoo.com
Commit:
32806c2345b15e9b566f0ab6011c76ec73e5d507
Description:
[FIX] point_of_sale: write the country id, not the record, in tests common
TestPoSCommon.setUpClass writes the company country as a res.country
record instead of its id. The ORM tolerates it, but every res.company
write override that inspects vals['country_id'] then receives a record
where any other caller passes an id or False. An override comparing that
value against an id trips the reflected BaseModel.__eq__, which emits an
"unsupported operand type(s)" py.warnings for every test class derived
from TestPoSCommon, and the comparison silently evaluates to False.
Write the id, as done everywhere else in the test suite.
Branch:
17.0
Age:
Up-time:
Not finished