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",
33 help="This account will be used to value price difference between purchase price and cost price."),
35 #Redefine fields to change help text for anglo saxon methodology.
36 'property_account_income_categ': fields.property(
39 relation='account.account',
40 string="Income Account",
43 help="This account will be used to value outgoing stock for the current product category using sale price"),
44 'property_account_expense_categ': fields.property(
47 relation='account.account',
48 string="Expense Account",
51 help="This account will be used to value outgoing stock for the current product category using cost price"),
56 class product_template(osv.osv):
57 _inherit = "product.template"
59 'property_account_creditor_price_difference': fields.property(
62 relation='account.account',
63 string="Price Difference Account",
66 help="This account will be used to value price difference between purchase price and cost price."),
68 #Redefine fields to change help text for anglo saxon methodology.
69 'property_account_income': fields.property(
72 relation='account.account',
73 string="Income Account",
76 help="This account will be used to value outgoing stock for the current product category using sale price"),
77 'property_account_expense': fields.property(
80 relation='account.account',
81 string="Expense Account",
84 help="This account will be used to value outgoing stock for the current product category using cost price"),
90 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: