diff options
| author | Nans Lefebvre <len@odoo.com> | 2019-03-11 09:06:30 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-03-12 09:05:42 +0000 |
| commit | 1be873d40d7aa8b1959e3c5a1ec6a6ead2323b6a (patch) | |
| tree | 9114fcf6d46c26148061c25a6bb6ecba21261a41 /addons/web/static/src/js/views/basic | |
| parent | 587e90fe18900037055fde2086597f6957e30a22 (diff) | |
[FIX] purchase: do not overwrite vendor reference on vendor bills
The reference fields is supposed to contain the reference number in the vendor's
system. E.g. if the vendor is using Odoo, it could be SO0744.
Therefore this reference is not supposed to change once written by the user.
However there is the _onchange_origin that uses the origin purchase order lines
to populate the reference fields on invoice_line_ids changes.
We remove entirely this behaviour for reference,
essentially reverting 052a5702c500.
Instead we put a default for origin and reference in action_view_invoice
so that these values are initially used at create.
opw 1920747
opw 1944840
closes odoo/odoo#31757
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
