[IMP] convert applicant to employee: name
[odoo/odoo.git] / addons / account_anglo_saxon / product.py
index 8e7a42e..443642d 100644 (file)
@@ -18,7 +18,7 @@
 #
 ##############################################################################
 
-from osv import fields, osv
+from openerp.osv import fields, osv
 
 class product_category(osv.osv):
     _inherit = "product.category"
@@ -28,10 +28,25 @@ class product_category(osv.osv):
             type='many2one',
             relation='account.account',
             string="Price Difference Account",
-            method=True,
             view_load=True,
             help="This account will be used to value price difference between purchase price and cost price."),
 
+        #Redefine fields to change help text for anglo saxon methodology.            
+        'property_account_income_categ': fields.property(
+            'account.account',
+            type='many2one',
+            relation='account.account',
+            string="Income Account",
+            view_load=True,
+            help="This account will be used to value outgoing stock using sale price."),
+        'property_account_expense_categ': fields.property(
+            'account.account',
+            type='many2one',
+            relation='account.account',
+            string="Expense Account",
+            view_load=True,
+            help="This account will be used to value outgoing stock using cost price."),
+
     }
 product_category()
 
@@ -43,9 +58,24 @@ class product_template(osv.osv):
             type='many2one',
             relation='account.account',
             string="Price Difference Account",
-            method=True,
             view_load=True,
             help="This account will be used to value price difference between purchase price and cost price."),
+            
+        #Redefine fields to change help text for anglo saxon methodology.
+        'property_account_income': fields.property(
+            'account.account',
+            type='many2one',
+            relation='account.account',
+            string="Income Account",
+            view_load=True,
+            help="This account will be used to value outgoing stock using sale price."),
+        'property_account_expense': fields.property(
+            'account.account',
+            type='many2one',
+            relation='account.account',
+            string="Expense Account",
+            view_load=True,
+            help="This account will be used to value outgoing stock using cost price."),
 
     }
 product_template()