Review: Needs Fixing
depreciation_date = datetime(year + (month / 12), (month % 12 or 1), day)=>
depreciation_date = datetime(year + (month / 12), (month % 12 or 12), day)
days = float(total_days) - float(depreciation_date.strftime('%j')) => no need
to convert total_days in to float.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-account-asset-prorata_temporis_impl-uco/+merge/61402
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-account-asset.
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help : https://help.launchpad.net/ListHelp