diff --git a/account_tax_balance/README.rst b/account_tax_balance/README.rst
index ba3acddb..2ad8dc47 100644
--- a/account_tax_balance/README.rst
+++ b/account_tax_balance/README.rst
@@ -20,7 +20,7 @@ Select the company, the date range, the target moves and 'open taxes'
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/91/9.0
+ :target: https://runbot.odoo-community.org/runbot/91/10.0
Bug Tracker
===========
diff --git a/account_tax_balance/models/account_move.py b/account_tax_balance/models/account_move.py
index a7092c95..be5ff189 100644
--- a/account_tax_balance/models/account_move.py
+++ b/account_tax_balance/models/account_move.py
@@ -19,7 +19,10 @@ class AccountMove(models.Model):
], compute='_compute_move_type', store=True, readonly=True)
@api.multi
- @api.depends('line_ids.account_id.internal_type', 'line_ids.balance')
+ @api.depends(
+ 'line_ids.account_id.internal_type', 'line_ids.balance',
+ 'line_ids.account_id.user_type_id.type'
+ )
def _compute_move_type(self):
def _balance_get(line_ids, internal_type):
return sum(line_ids.filtered(
diff --git a/account_tax_balance/tests/test_account_tax_balance.py b/account_tax_balance/tests/test_account_tax_balance.py
index e66eca5c..a6c8c035 100644
--- a/account_tax_balance/tests/test_account_tax_balance.py
+++ b/account_tax_balance/tests/test_account_tax_balance.py
@@ -65,7 +65,7 @@ class TestAccountTaxBalance(TransactionCase):
self.assertEqual(invoice.state, 'draft')
# change the state of invoice to open by clicking Validate button
- invoice.signal_workflow('invoice_open')
+ invoice.action_invoice_open()
self.assertEquals(tax.base_balance, 100.)
self.assertEquals(tax.balance, 10.)
@@ -135,7 +135,7 @@ class TestAccountTaxBalance(TransactionCase):
self.assertEqual(refund.state, 'draft')
# change the state of refund to open by clicking Validate button
- refund.signal_workflow('invoice_open')
+ refund.action_invoice_open()
self.assertEquals(tax.base_balance, 75.)
self.assertEquals(tax.balance, 7.5)
diff --git a/account_tax_balance/wizard/open_tax_balances_view.xml b/account_tax_balance/wizard/open_tax_balances_view.xml
index 91a125a9..60836ee7 100644
--- a/account_tax_balance/wizard/open_tax_balances_view.xml
+++ b/account_tax_balance/wizard/open_tax_balances_view.xml
@@ -33,10 +33,16 @@
new
+
+