Commit Graph

235 Commits

Author SHA1 Message Date
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
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