diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-06-14 12:16:38 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-06-14 12:21:27 +0200 |
| commit | 811771d3f807af34d90d8b2d97b41318509b1bd8 (patch) | |
| tree | 0e77ed4095bd9f8ec34d9687b7a7bfd6fb852ba8 /addons/web/static/src/js/framework/session_instance.js | |
| parent | 87717509c0c67b066dba58390bd43d1f2734d75b (diff) | |
[FIX] account_voucher: `get_product_accounts` expects a browse record
The method `get_products_accounts` obviously requires
a fiscal position browse record for its `fiscal_pos` parameter:
```
@api.multi
def get_product_accounts(self, fiscal_pos=None):
accounts = self._get_product_accounts()
if not fiscal_pos:
fiscal_pos = self.env['account.fiscal.position']
return fiscal_pos.map_accounts(accounts)
```
But the method `product_id_change` called it with a fiscal
position id, through its own class method `_get_account`
This probably happened during the merge at revision
75d7bbb46e100b7ffda091a11183d4ed14d3bbed
which has not been correctly rebased on the acounting 9.0
revision
c04065abd8f62c9a211c8fa824f5eecf68e61b73
opw-678735
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions
