Commit Graph

248 Commits

Author SHA1 Message Date
Christophe Simonis 970f9466aa [MERGE] forward port of branch saas-3 up to 55d6c19 2015-05-28 14:45:30 +02:00
Christophe Simonis 55d6c190da [MERGE] forward port of branch 7.0 up to e33bcde 2015-05-28 14:41:30 +02:00
Goffin Simon 443605ce56 [FIX] account_asset: entries from assets
When an entry is generated from an asset, the number of this entry must be
 the sequence number linked to the journal of the asset and the reference of
 this entry is the name of the asset.

 opw:639760
2015-05-27 12:23:02 +02:00
Christophe Simonis e27744df0c [MERGE] forward port of branch saas-3 up to b79f64f 2015-03-18 13:16:23 +01:00
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 b7c912ec68 [MERGE] forward port of branch saas-3 up to 22f2728 2014-11-06 15:03:43 +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
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Gery Debongnie 3be9d940f7 [FIX] code cleanup (addon account_asset)
simplify the method _entry_count by using search_count and by removing try/except/pass

bzr revid: ged@openerp.com-20140507134544-oi3y8hwf16nituki
2014-05-07 15:45:44 +02:00
Gery Debongnie f57b767361 [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140415150146-5ovdjzta58t5dhd2
2014-04-15 17:01:46 +02:00
Christophe Simonis 3a7e003656 [MERGE] forward port of branch saas-3 up to revid 9394 chs@openerp.com-20140410103638-x7vajn70ewsfp0ck
bzr revid: chs@openerp.com-20140410110424-enhdg6pufhii56ni
2014-04-10 13:04:24 +02: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
Randhir Mayatra rma-openerp 3caf591550 [IMP] change related button into stat for account,project
bzr revid: rma@tinyerp.com-20140325124531-kkwm1v8bhndzs846
2014-03-25 18:15:31 +05:30
Atul Patel (OpenERP) 403575f272 [MERGE]: Merged with addons
bzr revid: atp@tinyerp.com-20140210064642-edr5rju09v49dzqg
2014-02-10 12:16:42 +05:30
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
Nimesh Contractor (OpenERP) 2b313fd2ae [IMP] improve code
bzr revid: nco@tinyerp.com-20130603114523-vzdorpta47sbq5ub
2013-06-03 17:15:23 +05:30
Nimesh Contractor (OpenERP) 91a657d4a3 [IMP] make string translateable.
bzr revid: nco@tinyerp.com-20130603112601-n1b14xdz2iacr1i8
2013-06-03 16:56:01 +05:30
Mahendra Barad (OpenERP Trainee) 6d20cdc043 [IMP]account: set breadcum Journal Items in asset
bzr revid: baradmahendra344@gmail.com-20130531132640-ycc72g8jlmtgm1km
2013-05-31 18:56:40 +05:30
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