Commits

Raimon Esteve (Zikzakmedia) committed 1a6e22b Merge

Merged in pokoli/trytond-account_invoice_data/taxes_from_onchange (pull request #3)

Get taxes from product_on_change

Comments (0)

Files changed (1)

                 product.category.id or None,
             'account': values.get('account'),
             'unit_price': values.get('unit_price'),
-            'taxes': [('add', product.customer_taxes)],
+            'taxes': [('add', values.get('taxes'))],
             'note': note,
             'sequence': 1,
         }
                 product.category.id or None,
             'account': values.get('account'),
             'unit_price': values.get('unit_price'),
-            'taxes': [('add', product.customer_taxes)],
+            'taxes': [('add', values.get('taxes'))],
             'sequence': 1,
          }
         return vals