[FIX+IMP] account_tax_balance:

* Test
* README
* add extra parent menu. If not, with the web_responsive module is mixed
  between other menus
This commit is contained in:
eLBati
2017-01-18 16:48:46 +01:00
committed by Borruso
parent 052ebd4472
commit d3fcbb4455
6 changed files with 294 additions and 14 deletions

View File

@@ -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(