~openbias/bias-trunk/bias-public-trunk

« back to all changes in this revision

Viewing changes to bias_partner_address_pricelist/partner.py

  • Committer: Jose Patricio
  • Date: 2011-10-19 03:16:40 UTC
  • Revision ID: josepato@bias.com.mx-20111019031640-05zd7r5lxwx084qu
el push inicial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
##############################################################################
 
3
#
 
4
#    OpenERP, Open Source Management Solution
 
5
#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
 
6
#
 
7
#    This program is free software: you can redistribute it and/or modify
 
8
#    it under the terms of the GNU Affero General Public License as
 
9
#    published by the Free Software Foundation, either version 3 of the
 
10
#    License, or (at your option) any later version.
 
11
#
 
12
#    This program is distributed in the hope that it will be useful,
 
13
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
#    GNU Affero General Public License for more details.
 
16
#
 
17
#    You should have received a copy of the GNU Affero General Public License
 
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
#
 
20
##############################################################################
 
21
# Generated by the OpenERP plugin for Dia !
 
22
from osv import fields,osv
 
23
from tools.translate import _
 
24
 
 
25
class res_partner_address(osv.osv):
 
26
    _inherit = 'res.partner.address'
 
27
    _columns = {
 
28
        'property_product_pricelist': fields.property(
 
29
            'product.pricelist',
 
30
            type='many2one', 
 
31
            relation='product.pricelist', 
 
32
            domain=[('type','=','sale')],
 
33
            string="Sale Pricelist", 
 
34
            method=True,
 
35
            view_load=True,
 
36
            help="This pricelist will be used, instead of the default one, for sales to the current partner"),
 
37
#        'property_product_pricelist_purchase': fields.property(
 
38
#            'product.pricelist',
 
39
#            type='many2one', 
 
40
#            relation='product.pricelist', 
 
41
#            domain=[('type','=','purchase')],
 
42
#            string="Purchase Pricelist", 
 
43
#            method=True,
 
44
#            view_load=True,
 
45
#            help="This pricelist will be used, instead of the default one, for purchases from the current partner"),
 
46
    }
 
47
 
 
48
res_partner_address()
 
49