Browse Source

[FIX] Bug Fixed 'stock_force_date'

pull/127/head
Ajmalcybrosys 6 years ago
parent
commit
b42dd280a5
  1. 4
      stock_force_date/__manifest__.py
  2. 11
      stock_force_date/doc/RELEASE_NOTES.md
  3. 10
      stock_force_date/models/stock.py

4
stock_force_date/__manifest__.py

@ -6,7 +6,7 @@
# Author: fasluca(<https://www.cybrosys.com>)
# 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.

11
stock_force_date/doc/RELEASE_NOTES.md

@ -0,0 +1,11 @@
## Module <stock_force_date>
#### 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.

10
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

Loading…
Cancel
Save