@renatonlima 

Resolvido:

https://github.com/openerpbrasil-fiscal/l10n_br_core/blob/develop/l10n_br_account_service/l10n_br_account_service.py