~camptocamp/c2c-rd-addons/8.0a

« back to all changes in this revision

Viewing changes to c2c_stock/stock.py

improved logging, improved import structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
20
#
21
21
##############################################################################
22
 
 
23
22
from osv import osv, fields
24
 
import decimal_precision as dp
25
 
 
26
 
import math
27
 
#from _common import rounding
28
 
import re  
29
 
from tools.translate import _
30
 
        
31
 
import sys
32
 
 
33
23
#----------------------------------------------------------
34
24
#  Stock Move INHERIT
35
25
#----------------------------------------------------------
36
26
class stock_location(osv.osv):
37
27
    _inherit = "stock.location"
38
 
    _columns = {
39
 
 
40
 
        'capacity' : fields.float('Capacity',type='float', help="Defines the capcity of the loction"),
41
 
        'uom_id': fields.many2one('product.uom', 'Storage Unit'),
42
 
     }
43
 
 
44
 
 
45
 
stock_location()
 
 
b'\\ No newline at end of file'
 
28
    _columns = \
 
29
        { 'capacity' : fields.float('Capacity',type='float', help="Defines the capacity of the location")
 
30
        , 'uom_id'   : fields.many2one('product.uom', 'Storage Unit')
 
31
        }
 
32
stock_location()