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 openerp.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             type='many2one',
28             relation='account.account',
29             string="Price Difference Account",
30             help="This account will be used to value price difference between purchase price and cost price."),
31
32         #Redefine fields to change help text for anglo saxon methodology.            
33         'property_account_income_categ': fields.property(
34             type='many2one',
35             relation='account.account',
36             string="Income Account",
37             help="This account will be used to value outgoing stock using sale price."),
38         'property_account_expense_categ': fields.property(
39             type='many2one',
40             relation='account.account',
41             string="Expense Account",
42             help="This account will be used to value outgoing stock using cost price."),
43
44     }
45
46 class product_template(osv.osv):
47     _inherit = "product.template"
48     _columns = {
49         'property_account_creditor_price_difference': fields.property(
50             type='many2one',
51             relation='account.account',
52             string="Price Difference Account",
53             help="This account will be used to value price difference between purchase price and cost price."),
54             
55         #Redefine fields to change help text for anglo saxon methodology.
56         'property_account_income': fields.property(
57             type='many2one',
58             relation='account.account',
59             string="Income Account",
60             help="This account will be used to value outgoing stock using sale price."),
61         'property_account_expense': fields.property(
62             type='many2one',
63             relation='account.account',
64             string="Expense Account",
65             help="This account will be used to value outgoing stock using cost price."),
66
67     }
68
69
70 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
71