[FIX] account_asset: Changed order by id for history changes. Improved indentations. Changed field types.
bzr revid: uco@tinyerp.com-20110627105105-33w6pup1elslw542
This commit is contained in:
parent
0c4460a25f
commit
89d9c9407d
|
@ -42,7 +42,7 @@
|
|||
"wizard/account_asset_change_duration_view.xml",
|
||||
"account_asset_view.xml",
|
||||
"account_asset_invoice_view.xml",
|
||||
"account_asset_report_view.xml",
|
||||
"account_asset_report_view.xml",
|
||||
"report/account_asset_report_view.xml",
|
||||
#modif
|
||||
],
|
||||
|
|
|
@ -524,7 +524,7 @@ class account_asset_history(osv.osv):
|
|||
'method_end': fields.date('Ending date'),
|
||||
'note': fields.text('Note'),
|
||||
}
|
||||
_order = 'create_date desc'
|
||||
_order = 'id desc'
|
||||
_defaults = {
|
||||
'date': lambda *args: time.strftime('%Y-%m-%d'),
|
||||
'user_id': lambda self,cr, uid,ctx: uid
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
##############################################################################
|
||||
import time
|
||||
|
||||
from osv import osv,fields
|
||||
from osv import osv, fields
|
||||
|
||||
class asset_modify(osv.osv_memory):
|
||||
_name = 'asset.modify'
|
||||
|
@ -28,8 +28,8 @@ class asset_modify(osv.osv_memory):
|
|||
|
||||
_columns = {
|
||||
'name': fields.char('Reason', size=64, required=True),
|
||||
'method_delay': fields.float('Number of interval'),
|
||||
'method_period': fields.float('Period per interval'),
|
||||
'method_delay': fields.integer('Number of Depreciation'),
|
||||
'method_period': fields.integer('Period Length'),
|
||||
'method_end': fields.date('Ending date'),
|
||||
'note': fields.text('Notes'),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue