odoo/odoo — pull request #1162 by astirpe (2014-07-15 08:03:43+00:00)
Title: [FIX] [8.0] Restore signature of hook method

The signature of method `finalize_invoice_move_lines()` was modified while merging *v8 api branch*.
After that commit, the method took only one parameter: the dict `move_lines`.

Instead the method should take two parameters: **`invoice_browse`** and `move_lines`.
This is necessary when you want to hook for updating move lines with new values depending on their related invoice.

Also, in case `invoice_browse` parameter is missing, all modules that extend *finalize_invoice_move_lines()* would be broken and need to be fixed (which is not very nice).