diff options
| author | Goffin Simon <sig@odoo.com> | 2016-11-30 16:39:57 +0100 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2016-12-01 10:04:30 +0100 |
| commit | a433ae65cb2c31a278980588c865d4f351612878 (patch) | |
| tree | b04be72f58054b002ed1e31f9455e3a03f82de2a /setup/setup_dev.py | |
| parent | aac0faafb824e53bd27e861c7808c88a5757dd77 (diff) | |
[FIX] purchase: default picking_type_id with ir.values
The deleted code put the same picking_type_id for all companies.
The function _get_picking_in returns the right default picking_type_id
according to the company.
Steps to reproduce:
-stock.warehouse0 is on company A.
-Define another company B with its own warehouse.
-Update the purchase module -> a new default value for picking_type_id on purchase
order for company B is created wtih the value of company A
-Create a purchase order on company B, Odoo tries to get the picking_type_id from company A.
If user doesn't have any rights on company A, it occurs a security warning.
Otherwise the purchase order is linked to a picking operation of another company.
opw:694059
Diffstat (limited to 'setup/setup_dev.py')
0 files changed, 0 insertions, 0 deletions
