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 osv import fields, osv
23 class product_category(osv.osv):
24 _inherit = "product.category"
26 'property_account_creditor_price_difference_categ': fields.property(
29 relation='account.account',
30 string="Price Difference Account",
32 help="This account will be used to value price difference between purchase price and cost price."),
34 #Redefine fields to change help text for anglo saxon methodology.
35 'property_account_income_categ': fields.property(
38 relation='account.account',
39 string="Income Account",
41 help="This account will be used to value outgoing stock for the current product category using sale price"),
42 'property_account_expense_categ': fields.property(
45 relation='account.account',
46 string="Expense Account",
48 help="This account will be used to value outgoing stock for the current product category using cost price"),
53 class product_template(osv.osv):
54 _inherit = "product.template"
56 'property_account_creditor_price_difference': fields.property(
59 relation='account.account',
60 string="Price Difference Account",
62 help="This account will be used to value price difference between purchase price and cost price."),
64 #Redefine fields to change help text for anglo saxon methodology.
65 'property_account_income': fields.property(
68 relation='account.account',
69 string="Income Account",
71 help="This account will be used to value outgoing stock for the current product category using sale price"),
72 'property_account_expense': fields.property(
75 relation='account.account',
76 string="Expense Account",
78 help="This account will be used to value outgoing stock for the current product category using cost price"),
84 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: