Skip to content

Commit

Permalink
[REF] more empty lines removal
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Mar 18, 2012
1 parent 1b71ff5 commit fd9fbf0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion l10n_br_delivery/delivery.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from osv import fields,osv

class delivery_carrier(osv.osv):

_inherit = "delivery.carrier"

_columns = {
Expand Down
1 change: 0 additions & 1 deletion l10n_br_product/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from osv import fields,osv

class product_template(osv.osv):

_inherit = "product.template"

_columns = {
Expand Down
4 changes: 1 addition & 3 deletions l10n_br_sale/sale.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
encoding: utf-8 -*-
#################################################################################
# #
# Copyright (C) 2009 Renato Lima - Akretion #
Expand Down Expand Up @@ -254,15 +254,13 @@ def _make_invoice(self, cr, uid, order, lines, context=None):
inv_obj.button_compute(cr, uid, [inv.id])
return inv_id_product or inv_id_service


def _prepare_order_picking(self, cr, uid, order, context=None):
result = super(sale_order, self)._prepare_order_picking(cr, uid, order, context)
result['fiscal_operation_category_id'] = order.fiscal_operation_category_id and order.fiscal_operation_category_id.id
result['fiscal_operation_id'] = order.fiscal_operation_id and order.fiscal_operation_id.id
result['fiscal_position'] = order.fiscal_position and order.fiscal_position.id
return result


def _amount_line_tax(self, cr, uid, line, context=None):
val = 0.0
for c in self.pool.get('account.tax').compute_all(cr, uid, line.tax_id, line.price_unit * (1-(line.discount or 0.0)/100.0), line.product_uom_qty, line.order_id.partner_invoice_id.id, line.product_id, line.order_id.partner_id, fiscal_operation=line.fiscal_operation_id)['taxes']:
Expand Down

0 comments on commit fd9fbf0

Please sign in to comment.