Launchpad automatic translations update.
[odoo/odoo.git] / addons / account_anglo_saxon / product.py
1 ##############################################################################
2 #    
3 #    OpenERP, Open Source Management Solution
4 #    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
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
8 #    published by the Free Software Foundation, either version 3 of the
9 #    License, or (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 osv import fields, osv
22
23 class product_category(osv.osv):
24     _inherit = "product.category"
25     _columns = {
26         'property_account_creditor_price_difference_categ': fields.property(
27             'account.account',
28             type='many2one',
29             relation='account.account',
30             string="Price Difference Account",
31             method=True,
32             view_load=True,
33             help="This account will be used to value price difference between purchase price and cost price."),                
34
35     }
36 product_category()
37
38 class product_template(osv.osv):
39     _inherit = "product.template"
40     _columns = {
41         'property_account_creditor_price_difference': fields.property(
42             'account.account',
43             type='many2one',
44             relation='account.account',
45             string="Price Difference Account",
46             method=True,
47             view_load=True,
48             help="This account will be used to value price difference between purchase price and cost price."),                
49
50     }
51 product_template()
52
53
54 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
55