1 ##############################################################################
3 # OpenERP, Open Source Management Solution
4 # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
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.
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.
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/>.
19 ##############################################################################
21 from openerp.osv import fields, osv
23 class product_category(osv.osv):
24 _inherit = "product.category"
26 'property_account_creditor_price_difference_categ': fields.property(
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."),
32 #Redefine fields to change help text for anglo saxon methodology.
33 'property_account_income_categ': fields.property(
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(
40 relation='account.account',
41 string="Expense Account",
42 help="This account will be used to value outgoing stock using cost price."),
46 class product_template(osv.osv):
47 _inherit = "product.template"
49 'property_account_creditor_price_difference': fields.property(
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."),
55 #Redefine fields to change help text for anglo saxon methodology.
56 'property_account_income': fields.property(
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(
63 relation='account.account',
64 string="Expense Account",
65 help="This account will be used to value outgoing stock using cost price."),
70 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: