kwargs always NoneType

Bug #1255918 reported by schnere
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Guewen Baconnier @ Camptocamp

Bug Description


in account_fiscal_position_rule_sale/, method: _fiscal_position_map I always get an error, that kwargs should be a mapping not NoneType.
So I did a little debugging and found out, that kwargs = context.update() always returns None.
I've fixed this with settings kwargs = context first and the update with kwargs.update.

Next problem is, when shop_id is not set, the if-statement does not what it should do:

if context.get('shop_id', False) always returns false...

This fix works for me:

if context.get('shop_id', False) == False:

Please see and review my attached patched. I'm looking forward for comments.

Best regards,


Related branches

Revision history for this message
schnere (schnere) wrote :
Changed in openerp-fiscal-rules:
status: New → Confirmed
assignee: nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
Changed in openerp-fiscal-rules:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.