As it turns out, the fix committed by Stéphane won't work because the year is passed in the wrong context entry: tmp_context = {
+<<<<<<< WRONG 'fiscal_year_id' : obj_inv.period_id.fiscalyear_id.id, 'test' : True,
+=======
+ 'fiscalyear_id': obj_inv.period_id.fiscalyear_id.id
+>>>>>>> RIGHT
}
As it turns out, the fix committed by Stéphane won't work because the year is passed in the wrong context entry:
tmp_ context = {
'fiscal_ year_id' : obj_inv. period_ id.fiscalyear_ id.id,
'test' : True, period_ id.fiscalyear_ id.id
+<<<<<<< WRONG
+=======
+ 'fiscalyear_id': obj_inv.
+>>>>>>> RIGHT
}