~vauxoo/addons-vauxoo/8.0-import_tax_tariff-dev-yani-rev-2

« back to all changes in this revision

Viewing changes to mrp_default_location/product.py

  • Committer: Nhomar Hernandez
  • Date: 2013-04-19 20:33:12 UTC
  • mfrom: (542.1.314 addons-vauxoo)
  • Revision ID: nhomar@gmail.com-20130419203312-o35v7dn79l6vur0t
[MERGE - PEP8 AND V7-MIG] All migrated to V7 Just
improved osv.osv => osv.Model, osv.osv_memory => osv.TransientModel
import inside openerp.* enviroment
Erased class instansiation no necesarry anymore in V7
AUTOPEP8 run, Left PEP8 long lines manually.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
##############################################################################
26
26
 
27
27
import time
28
 
from osv import osv, fields
29
 
from tools.translate import _
 
28
from openerp.osv import osv, fields
 
29
from openerp.tools.translate import _
 
30
 
30
31
from tools import config
31
32
import base64
32
33
import csv
33
34
import cStringIO
34
 
import tools
35
 
 
36
 
 
37
 
class product_category(osv.osv):
38
 
    _inherit='product.category'
 
35
import openerp.tools as tools
 
36
 
 
37
 
 
38
class product_category(osv.Model):
 
39
    _inherit = 'product.category'
39
40
    _columns = {
40
 
        'location_src_id' : fields.many2one('stock.location','Raw Materials Location'),
41
 
        'location_dest_id' : fields.many2one('stock.location','Finished Products Location'),
 
41
        'location_src_id': fields.many2one('stock.location', 'Raw Materials Location'),
 
42
        'location_dest_id': fields.many2one('stock.location', 'Finished Products Location'),
42
43
    }
43
 
        
44
 
product_category()
 
44