Feature/accounting invoice delivery costs

fixes only issue #112 , does not include issue #99.
Vc cadastrou a taxa no cadastro da empresa?

Manda o log do erro q eu de uma olhada.

Abracos

Luis Felipe Miléo
KMEE
+55 35 8876-3663
+55 21 4063-8872
mileo@kmee.com.br
kmee.com.br

In l10n_br_account_product/account.py
<https://github.com/OCA/l10n-brazil/pull/113#discussion-diff-21785611>:

> @@ -66,6 +66,44 @@ def _compute_tax(self, cr, uid, taxes, total_line, product, product_qty,
>          result['taxes'] = taxes
>          return result
>
> +    def _compute_costs(self, cr, uid, insurance_value, freight_value, other_costs_value, context=False):
> +        result = []
> +        total_included = 0.0
> +
> +        company = self.pool.get('res.users').browse(cr, uid, [uid], context=context)[0].company_id
> +
> +        costs = {
> +            company.insurance_tax_id : insurance_value,
> +            company.freight_tax_id : freight_value,
> +            company.other_costs_tax_id : other_costs_value,

Quando estes valores são nulos está ocorrendo um erro dentro do for abaixo,
quando se edita um pedido de venda e muda o valor do frete. Caso não
entender lhe envio o email com o log completo.

—
Reply to this email directly or view it on GitHub
<https://github.com/OCA/l10n-brazil/pull/113/files#r21785611>.