~agilebg/openerp-fiscal-rules/7.0-bug-1239999-elbati

« back to all changes in this revision

Viewing changes to account_fiscal_position_rule_sale/sale.py

  • Committer: Renato Lima
  • Date: 2013-02-11 23:51:34 UTC
  • mto: This revision was merged to the branch mainline in revision 59.
  • Revision ID: renatonlima@gmail.com-20130211235134-23p2rmjmjtxqb7ml
Added context default and use domain and removed comment in __openerp__.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
    def _fiscal_position_map(self, cr, uid, result, **kwargs):
33
33
 
 
34
        if not kwargs.get('context', False):
 
35
            kwargs['context'] = {}
 
36
 
34
37
        kwargs['context'].update({'use_domain': ('use_sale', '=', True)})
35
38
        obj_shop = self.pool.get('sale.shop').browse(
36
39
            cr, uid, kwargs.get('shop_id'))