summaryrefslogtreecommitdiff
path: root/addons/website/data/website_data.xml
diff options
context:
space:
mode:
authorfw-bot <otis@odoo.com>2019-12-23 16:43:13 +0000
committerSimon Lejeune <sle@openerp.com>2019-12-23 17:04:17 +0000
commite72ae1aa0c3c7fe7315393eda812ac21d5c4a33d (patch)
tree41df9bf233bf66f2512ed16fa0cd86615dcb1d7c /addons/website/data/website_data.xml
parent6ddf7a50b55e21c21f0295c07cb033e6eb2f382e (diff)
[FIX] stock: assign SN on move Lines
Before this commit, we can't use the Generate and Assign Serial Numbers on already existing move line. It always creates new one, even if the picking type use "Pre-fill Detailed Operations". Now, it will edit existing lines, except if we ask to generate more SN than we have unassigned move lines, or if the picking don't use the "Pre-fill Detailed Operations" option, in which cases it will still create new move line with the generated SN. Also, before this commit, paste a list of serial numbers to assign them on multiple move lines in once work only with creation of a new move line for each serial number. Now, it's also work with existing move lines. Finally, some code shared the same logic in `stock.move` in the move line onchange method and in the `_generate_serial_numbers` method. Moves this code in a new method, `_generate_serial_move_line_commands`, and call it in the two previous methods. task-2150561 closes odoo/odoo#42316 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/website/data/website_data.xml')
0 files changed, 0 insertions, 0 deletions