[FIX] Style and garbage code
@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
__name__ = ("Copy the product taxes to the pos.line")
__name__ = "Copy the product taxes to the pos.line"
def migrate(cr, version):
@ -20,8 +20,6 @@
from openerp import models, fields, api
# import logging
# _logger = logging.getLogger(__name__)
class PosOrderLine(models.Model):
@ -59,4 +57,3 @@ class PosOrder(models.Model):
val += c.get('amount', 0.0)
return val
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
@ -154,7 +154,7 @@ function pos_pricelist_db(instance, module) {
}
for (var i = 0, len = taxes_ids.length; i < len; i++) {
var tax_id = taxes_ids[i];
if (! tax_id in found_taxes) {
if (!(tax_id in found_taxes)) {
taxes.push(tax_id);
@ -263,7 +263,6 @@ function pos_pricelist_models(instance, module) {
*/
get_applicable_taxes_for_orderline: function () {
// find applicable taxes for this product and this customer
var fiscal_position_taxes = [];
var product = this.get_product();
var product_tax_ids = product.taxes_id;
var product_taxes = [];