Commit Graph

233 Commits

Author SHA1 Message Date
Christophe Simonis b79f64f1f8 [MERGE] forward port of branch 7.0 up to e1daaff 2015-03-18 12:52:33 +01:00
Goffin Simon e2ccc5709b [FIX] account_asset: wrong currency to compute the residual amount of an asset
The result of the residual amount of an asset is : asset.purchase_value - amount - asset.salvage_value
where purchase_value and asset.salvage_value are in the currency of the asset. Amount is the difference
between debit and credit of an account move line expressed in the currency of the company.
This is why the amount must be convert in the currency of the asset.
2015-03-17 08:51:43 +01:00
Goffin Simon 2606e37b18 [FIX] account_asset: currency problem with depreciation in asset management
The amount used to create an account asset depreciation line must be in
the currency of the asset.
opw: 628663
2015-03-16 09:28:24 +01:00
Denis Ledoux 22f2728d22 [MERGE] forward port of branch 7.0 up to d36c8b5 2014-11-06 14:56:45 +01:00
Julien Legros 150dc66ec0 [FIX] account_asset: moves should use the depreciation line date 2014-11-06 14:06:55 +01:00
Julien Legros cb91966b11 [REVERT] 056c06570c and a5cf719739 2014-11-05 18:26:34 +01:00
Julien Legros 056c06570c [FIX] account_asset: asset depreciation should use the correct dates
fix a5cf719739
2014-11-05 17:38:50 +01:00
Julien Legros a5cf719739 [FIX] account_asset: move lines should use the depreciation line date
opw-616843
2014-11-05 16:59:44 +01:00
Denis Ledoux 7715bf1823 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9969 revid:dle@openerp.com-20140409162932-y5fxd5wbojing2t2
bzr revid: dle@openerp.com-20140409163132-n3apqh6nvfg2qof9
2014-04-09 18:31:32 +02:00
Martin Trigaux 71c61ce1df [FIX] account_asset: copy should not keep history and move lines of previous asset
bzr revid: mat@openerp.com-20140409100658-1oj741aw5sne8dtr
2014-04-09 12:06:58 +02:00
Denis Ledoux 1fb1a6f2af [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9789 revid:dle@openerp.com-20140124120102-we2yxio553ws2yz4
bzr revid: dle@openerp.com-20140120174449-tui0a24zgn9bien2
bzr revid: dle@openerp.com-20140121125538-ke7i6kaz486hwgl8
bzr revid: dle@openerp.com-20140122134115-0ogjemlqe327xoac
bzr revid: dle@openerp.com-20140123103655-mf2zslfbgue97ed2
bzr revid: dle@openerp.com-20140124121027-uk9zy4dx9tqlsblr
2014-01-24 13:10:27 +01:00
Denis Ledoux 679cfaaa03 [FIX] account_asset: accounts should be regular type only
Asset Account, Depreciation Account and Depr. Expense Account must be of type regular, only.

Thus, we add a domain on each, so we can choose only regular accounts.

bzr revid: dle@openerp.com-20140117104037-jqhijy0p4rjdx3fr
2014-01-17 11:40:37 +01:00
Quentin (OpenERP) 429ef87172 [MERGE] accounts* modules: forward port of revision 9033 of addons v7 that was passing 'account_period_prefer_normal=True' in the context in each and every call to account_period.find(). The behaviour is modified in order to search only on normal periods by default
bzr revid: qdp-launchpad@openerp.com-20130418094147-q2ks4w47sn4fxdv2
bzr revid: qdp-launchpad@openerp.com-20130418103907-0qom5yfcq8osnovp
2013-04-18 12:39:07 +02:00
Quentin (OpenERP) c46929268d [FIX] account* modules: added 'account_period_prefer_normal':True in context when trying to find the period related to a date.
This patch will be forward ported in trunk by changing the behaviour of account_period.find() in order to fetch the normal periods by default (account_period_prefer_normal will be True by default) because there are no business case i could think of where you'd like to get the opening period (except in the closure but it's held in a different way there). On the other hand, it's pretty easy to forget to put that key in the context and introduce a new bug that will select the opening period instead of the wanted one

bzr revid: qdp-launchpad@openerp.com-20130418102433-t52uj23trkpr8vnb
2013-04-18 12:24:33 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Thibault Delavallée 4da68cbc22 [FORWARD] Forward port of addons 7.0 until revision 9008
bzr revid: tde@openerp.com-20130411124446-73gzyw3eo925w3dv
2013-04-11 14:44:46 +02:00
Vidhin Mehta 8ddd4f04b6 [FIX]Wrong class name give in super call
bzr revid: vme@tinyerp.com-20130405055147-18jnqoyq9ja6n24j
2013-04-05 11:21:47 +05:30
Quentin (OpenERP) 0c0528d834 [FIX] account_asset: import statement
bzr revid: qdp-launchpad@openerp.com-20130314124046-mwqslwiy81jwd9kk
2013-03-14 13:40:46 +01:00
Quentin (OpenERP) 3631571040 [MERGE] account_asset: don't restrit to delete an asset if it has unposted depreciation lines (on delete cascade + restrict if it exists some account.move.line)
bzr revid: qdp-launchpad@openerp.com-20130306170538-kqxquf6kzkndgxgy
2013-03-06 18:05:38 +01:00
Josse Colpaert b697596de3 [FIX] Deleting asset also deletes its depreciation lines
bzr revid: jco@openerp.com-20130305092111-30szqz1hqa55sqz8
2013-03-05 10:21:11 +01:00
Josse Colpaert 0a6f2417e7 [FIX] Changes the period used into the period chosen and not the period of today
lp bug: https://launchpad.net/bugs/1078004 fixed

bzr revid: jco@openerp.com-20121221134956-fgg1ltu1qy1j2ion
2012-12-21 14:49:56 +01:00
Cecile Tonglet a3939acfa5 [FIX] replace from/import decimal_precision by from/import openerp.addons.decimal_precision
bzr revid: cto@openerp.com-20121217152303-8e3b1x30rlw9cb0d
2012-12-17 16:23:03 +01:00
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Nimesh (Open ERP) 05573bb935 [IMP] improve onchge.
bzr revid: nco@tinyerp.com-20121128093448-i70yati7mdcr5o1f
2012-11-28 15:04:48 +05:30
Atul Patel (OpenERP) 334bf9d4fd [MERGE]: Merged account_asset related changed
bzr revid: atp@tinyerp.com-20121127113808-bxttqn8erkqpv08b
2012-11-27 17:08:08 +05:30
Jagdish Panchal bf67bcc6d5 [IMP] account_asset: add missing tool tip and imprve layout of Change Duration wizard
bzr revid: jap@tinyerp.com-20121126132758-xotxwzy3k9figmma
2012-11-26 18:57:58 +05:30
Jagdish Panchal bbdb105831 [IMP] account_asset: improve onchange method
bzr revid: jap@tinyerp.com-20121126113056-k8u35utj7v75sa4o
2012-11-26 17:00:56 +05:30
Jagdish Panchal 9ed5746c0c [IMP] account_asset: rename field, add onchange method on purchase_value, salvage_value and account_check_writing: Move Total Field below Payment Method field
bzr revid: jap@tinyerp.com-20121126101353-seazfz9jn10abhat
2012-11-26 15:43:53 +05:30
Cedric Snauwaert f76ac92242 [FIX]fix problem when iterating on several ids in create_move (value_residual was not recomputed)
bzr revid: csn@openerp.com-20121114150133-8hvrdkrwor7v9i2m
2012-11-14 16:01:33 +01:00
Cedric Snauwaert 112152b5d8 [MERGE]merge with trunk
bzr revid: csn@openerp.com-20121114094751-iz3yf6bj73e5u2pa
2012-11-14 10:47:51 +01:00
Fabien Pinckaers d80cfe8ed0 [FIX] assets
bzr revid: fp@tinyerp.com-20121113080706-1zlo8qnbieys8nxy
2012-11-13 09:07:06 +01:00
Cedric Snauwaert 499cc41b20 [FIX]module account_asset : fix the date problem with depreciation board (without using prorata) when recomputing the board and some entries were already validated
bzr revid: csn@openerp.com-20121102152751-6jt0uom3hqn8arhs
2012-11-02 16:27:51 +01:00
Cedric Snauwaert 3af0bb41ad [MERGE]merge with latest addons_trunk
bzr revid: csn@openerp.com-20121102104549-qqy8ud6nduvpyee6
2012-11-02 11:45:49 +01:00
Khushboo Bhatt (Open ERP) e9942561c0 [FIX]account_asset:Fixes the expresion problem in asset
bzr revid: kbh@tinyerp.com-20121102091445-xgsn8kvsu3glom1d
2012-11-02 14:44:45 +05:30
jacara 459270ebff [FIX]account_asset:Fixes the expresion problem in
lp bug: https://launchpad.net/bugs/1074228 fixed

bzr revid: kbh@tinyerp.com-20121102072500-ylzaw1i75a13kimh
2012-11-02 12:55:00 +05:30
Harry (OpenERP) 6e20739822 [IMP] account_asset: comment
bzr revid: hmo@tinyerp.com-20121023100729-j8veyhmidat0nppp
2012-10-23 15:37:29 +05:30
Harry (OpenERP) 0128b0698d [MERGE]
bzr revid: hmo@tinyerp.com-20121023094002-t4tr2m98fzcry3q2
2012-10-23 15:10:02 +05:30
Antonin Bourguignon 1653332080 [MERGE] trunk
bzr revid: abo@openerp.com-20121002102915-424prxd74izb1szw
2012-10-02 12:29:15 +02:00
Fabien Pinckaers 7959fdd810 [MERGE] asset date
bzr revid: fp@tinyerp.com-20120929132128-bc719yizclniycgq
2012-09-29 15:21:28 +02:00
Bharat Devnani (OpenERP) a242e46a8f [IMP] improved the depreciation_date
bzr revid: bde@tinyerp.com-20121011083025-tqt7p9ufqaeykfc4
2012-10-11 14:00:25 +05:30
Fabien Pinckaers 6793e30508 [FIX]
bzr revid: fp@tinyerp.com-20120929091635-nwuk8xpj9plxxwml
2012-09-29 11:16:35 +02:00
Mayur Maheshwari (OpenERP) 0b87880029 [IMP]all: imporve string state to status
bzr revid: mma@tinyerp.com-20121012114258-w2q3hg1wb5wlt8wi
2012-10-12 17:12:58 +05:30
Ajay Chauhan (OpenERP) 151552cfdf [IMP] account_asset: fix the issue of residual value
bzr revid: cha@tinyerp.com-20120828092232-7a8t9ntuto0eubhb
2012-08-28 14:52:32 +05:30
Ajay Chauhan (OpenERP) 87e7926a14 [IMP] account_asset: fixed depriciation board calculation problem
bzr revid: cha@tinyerp.com-20120824054747-vgfv4e3xv7h7ao0r
2012-08-24 11:17:47 +05:30
Ajay Chauhan (OpenERP) 53c75799ee [MERGE] merge with main addons
bzr revid: cha@tinyerp.com-20120824053413-muusma66uwo92313
2012-08-24 11:04:13 +05:30
Ajay Chauhan (OpenERP) 987e362d7f [IMP] account_asset: revert old changes
bzr revid: cha@tinyerp.com-20120824051706-16pn120zdtxfve49
2012-08-24 10:47:06 +05:30
Bharat Devnani (OpenERP) e46502580a [IMP] changed the condition in def create_move of account_asset/account_asset.py
bzr revid: bde@tinyerp.com-20120725111327-rd1se9de0yoj8wgg
2012-07-25 16:43:27 +05:30
pso (OpenERP) 8048661b01 [MERGE] Merge with main branch
bzr revid: pso@tinyerp.com-20120719073136-a7a5t43y2nm51zji
2012-07-19 13:01:36 +05:30
Quentin (OpenERP) cfc2c74e37 [IMP] account_asset: usability, review of form views
bzr revid: qdp-launchpad@openerp.com-20120718122730-kvmfa63h5zlxj59v
2012-07-18 14:27:30 +02:00