[FIX] account: safer access to parent in invoice line form
authorMartin Trigaux <mat@openerp.com>
Tue, 27 May 2014 08:16:44 +0000 (10:16 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 27 May 2014 08:16:44 +0000 (10:16 +0200)
commit222e7915a62c1e11a9e2d4b66c628a984af8b894
tree792ba3b55311a73866639681e199366fb208cf27
parent8b546d20adc5c7b27ecf1e64a2e80d3d36059f5a
[FIX] account: safer access to parent in invoice line form

In the account.invoice.line form, do not assume the parent is defined when
evaluating the context to invoice_line_tax_id as we could come from another
view (e.g.: purchase order line form).
Fixes #206
addons/account/account_invoice_view.xml