[FIX] account: default partner format
authorMartin Trigaux <mat@odoo.com>
Fri, 31 Oct 2014 07:38:34 +0000 (08:38 +0100)
committerMartin Trigaux <mat@odoo.com>
Fri, 31 Oct 2014 07:40:30 +0000 (08:40 +0100)
commitaa9914568b8b8dcece03f64a1ba4d072d8bc2b4d
treeed646b26b7761bca68c9af6e9d17d0f7a2fce246
parentb8f1ed147eb742591111297ce3fd1ed5c96a5c10
[FIX] account: default partner format

When creating a new account.move.line, the computation of the default values should accept both `id` and `(id, name)` format.
The key partner_id may be containing a tuple so browsing should only be done on the first element of the tuple.
Fixes #3386
addons/account/account_move_line.py