Review: Needs Information

Ciao Sergio,

maybe we can just exclude the tax code by not adding it to the dictionary 
returned by _tax_amounts_by_code:

    def _tax_amounts_by_code(self, move):
        res={}
        for move_line in move.line_id:
            if move_line.tax_code_id and not 
move_line.tax_code_id.exclude_from_registries and move_line.tax_amount:
                if not res.get(move_line.tax_code_id.id):
                    res[move_line.tax_code_id.id] = 0.0
                    
self.localcontext['used_tax_codes'][move_line.tax_code_id.id] = True
                res[move_line.tax_code_id.id] += (move_line.tax_amount
                    * self.localcontext['data']['tax_sign'])
        return res

without having to modify the mako?
Do you think it is possible?
-- 
https://code.launchpad.net/~icsergio/openobject-italia/61_fix_l10n_it_vat_registries/+merge/196403
Your team OpenERP Italia core devs is subscribed to branch 
lp:openobject-italia/6.1.

_______________________________________________
Mailing list: https://launchpad.net/~openobject-italia-core-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openobject-italia-core-devs
More help   : https://help.launchpad.net/ListHelp

Rispondere a