diff --git a/stock_force_date/__manifest__.py b/stock_force_date/__manifest__.py index 36da60615..1670f80cd 100644 --- a/stock_force_date/__manifest__.py +++ b/stock_force_date/__manifest__.py @@ -6,7 +6,7 @@ # Author: fasluca() # you can modify it under the terms of the GNU LESSER # GENERAL PUBLIC LICENSE (LGPL v3), Version 3. - +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -19,7 +19,7 @@ ############################################################################## { 'name': 'Stock Force Date', - 'version': '10.0.1.0', + 'version': '10.0.1.0.1', 'summary': 'Force Date in Stock Picking', 'description': """ This module will give you a way to record stock picking to a specific date. diff --git a/stock_force_date/doc/RELEASE_NOTES.md b/stock_force_date/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..2d63e20f2 --- /dev/null +++ b/stock_force_date/doc/RELEASE_NOTES.md @@ -0,0 +1,11 @@ +## Module + +#### 31.07.2017 +#### Version 10.0.1.0.0 +##### ADD +- Initial Commit for stock_force_date + +#### 23.08.2019 +#### Version 10.0.1.0.1 +##### FIX +- Bug Fixed, product price not get updated issue. diff --git a/stock_force_date/models/stock.py b/stock_force_date/models/stock.py index 63b04456a..704db41f2 100644 --- a/stock_force_date/models/stock.py +++ b/stock_force_date/models/stock.py @@ -269,4 +269,12 @@ class StockMove(models.Model): {'date_done': f_date}) # pickings.filtered(lambda picking: picking.state == 'done' and not picking.date_done).write({'date_done': time.strftime(DEFAULT_SERVER_DATETIME_FORMAT)}) - return True + @api.multi + def action_done(self): + """Function to update the price, (added after)""" + self.product_price_update_before_done() + res = super(StockMove, self).action_done() + self.product_price_update_after_done() + return res + +