openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #07627
[Bug 935564] Re: Several bug account_asset 4
That is... the required changes would be:
http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/account_asset/account_asset_invoice.py line 51
vals = {
'name': line.name,
'code': line.invoice_id.number or False,
'category_id': line.asset_category_id.id,
'purchase_value': line.price_subtotal,
'period_id': line.invoice_id.period_id.id,
'partner_id': line.invoice_id.partner_id.id,
'company_id': line.invoice_id.company_id.id,
'currency_id': line.invoice_id.currency_id.id,
}
ADD field:
'purchase_date' : line.invoice_id.date_invoice,
-----
On same point the default values of asset should be taken from asset
category instead of being hardcoded on asset defaults:
'method': line.asset_category_id.method,
'method_number': line.asset_category_id.method_number,
'method_time': line.asset_category_id.method_time,
'method_period': line.asset_category_id.method_period,
'method_progress_factor': line.asset_category_id.method_progress_factor,
'method_end': line.asset_category_id.method_end,
'prorata': line.asset_category_id.prorata,
And... I think that are all little bugs I found in account_asset modules. Wishing it will be helpful:
Ana
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/935564
Title:
Several bug account_asset 4
Status in OpenERP Addons (modules):
New
Bug description:
This one could be one requirement only in our country:
Creating the account move the taken data is:
http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/view/head:/account_asset/account_asset.py line 358
depreciation_date = line.asset_id.prorata and
line.asset_id.purchase_date or time.strftime('%Y-%m-%d')
This is the purchase data or the moment where user pushes the wizard
button to calculate asset account_moves
In our country it should be simply:
depreciation_date = line.depreciation_date
That is the account movement data is the one set in
account.asset.depreciation.line
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/935564/+subscriptions
References