~stock-logistic-core-editors/stock-logistic-warehouse/7.0

« back to all changes in this revision

Viewing changes to stock_lot_valuation/stock.py

  • Committer: Lorenzo Battistini
  • Date: 2013-05-10 08:55:26 UTC
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: lorenzo.battistini@agilebg.com-20130510085526-ee9jouvhxf1xx5nx
[add] skeleton

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
##############################################################################
 
3
#    
 
4
#    Copyright (C) 2013 Agile Business Group sagl (<http://www.agilebg.com>)
 
5
#
 
6
#    This program is free software: you can redistribute it and/or modify
 
7
#    it under the terms of the GNU Affero General Public License as published
 
8
#    by the Free Software Foundation, either version 3 of the License, or
 
9
#    (at your option) any later version.
 
10
#
 
11
#    This program is distributed in the hope that it will be useful,
 
12
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
#    GNU Affero General Public License for more details.
 
15
#
 
16
#    You should have received a copy of the GNU Affero General Public License
 
17
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
#
 
19
##############################################################################
 
20
 
 
21
from openerp.osv import fields, orm
 
22
from openerp.tools.translate import _
 
23
 
 
24
class stock_move(orm.Model):
 
25
    _inherit = "stock.move"
 
26
 
 
27
    def _get_reference_accounting_values_for_valuation(self, cr, uid, move, context=None):
 
28
        res = super(stock_move,self)._get_reference_accounting_values_for_valuation(
 
29
            cr, uid, move, context=context)
 
30
        return res