~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: Julio Serna
  • Date: 2012-07-30 22:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 362.
  • Revision ID: julio@vauxoo.com-20120730221147-dfp3r919nbp522hb
[INIT] added module mrp_default_location

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- encoding: utf-8 -*-
 
2
###########################################################################
 
3
#    Module Writen to OpenERP, Open Source Management Solution
 
4
#
 
5
#    Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
 
6
#    All Rights Reserved.
 
7
#    info@vauxoo.com
 
8
############################################################################
 
9
#    Coded by: julio (julio@vauxoo.com)
 
10
############################################################################
 
11
#
 
12
#    This program is free software: you can redistribute it and/or modify
 
13
#    it under the terms of the GNU Affero General Public License as
 
14
#    published by the Free Software Foundation, either version 3 of the
 
15
#    License, or (at your option) any later version.
 
16
#
 
17
#    This program is distributed in the hope that it will be useful,
 
18
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
#    GNU Affero General Public License for more details.
 
21
#
 
22
#    You should have received a copy of the GNU Affero General Public License
 
23
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
24
#
 
25
##############################################################################
 
26
 
 
27
import time
 
28
from osv import osv, fields
 
29
from tools.translate import _
 
30
from tools import config
 
31
import base64
 
32
import csv
 
33
import cStringIO
 
34
import tools
 
35
 
 
36
 
 
37
class product_category(osv.osv):
 
38
    _inherit='product.category'
 
39
    _columns = {
 
40
        'location_src_id' : fields.many2one('stock.location','Raw Materials Location'),
 
41
        'location_dest_id' : fields.many2one('stock.location','Finished Products Location'),
 
42
    }
 
43
        
 
44
product_category()