Commit Graph

61 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
Antonin Bourguignon f929ebc73b [MERGE] trunk
bzr revid: abo@openerp.com-20130213105620-xyez3q7ddgc0x5x8
2013-02-13 11:56:20 +01:00
Raphael Collet e76befd6c6 [MERGE] trunk-service-thu (remove the class openerp.netsvc.ExportService)
bzr revid: rco@openerp.com-20130212154230-y54s2rbetllwnh4q
2013-02-12 16:42:30 +01:00
Vo Minh Thu c99c4091ce [REM] Deleted .apidoc lines.
They were probably used by some tools. How sad.

bzr revid: vmt@openerp.com-20130212142410-zqdjd8jw3gtvxab0
2013-02-12 15:24:10 +01:00
Vo Minh Thu a57b655e43 [REF] object_proxy is no longer used by audittrail (which patches directly openerp.service.model).
bzr revid: vmt@openerp.com-20130131161442-17rwinwygte6usfg
2013-01-31 17:14:42 +01:00
Vo Minh Thu e86f90b0c7 [FIX] osv.object_service must be called osv.object_proxy.
bzr revid: vmt@openerp.com-20130130135859-vy96niq19fjsp8g4
2013-01-30 14:58:59 +01:00
Vo Minh Thu 674056c4a5 [REF] services: somewhat clean use of openerp exceptions.
bzr revid: vmt@openerp.com-20130130134451-yft2y56hkpnoxgwa
2013-01-30 14:44:51 +01:00
Vo Minh Thu 19b0315f68 [REF] model service: removed the unneeded object_service class.
bzr revid: vmt@openerp.com-20130130113646-pviw5d6gnohk7wrb
2013-01-30 12:36:46 +01:00
Antonin Bourguignon 8214854b79 [IMP] doc
bzr revid: abo@openerp.com-20130117144755-r9oboeaw8rr1seqa
2013-01-17 15:47:55 +01:00
Antony Lesuisse d7d1fe562c [IMP] dbname on localthread for logging
bzr revid: al@openerp.com-20121209034910-0iv3mek8860yts3i
2012-12-09 04:49:10 +01:00
Olivier Dony 0357fddc61 [FIX] orm,web_services: properly return results of workflow triggers
bzr revid: odo@openerp.com-20121106181507-ss1w425c1omsn3sb
2012-11-06 19:15:07 +01:00
Odowan Kenobi 4b896c36af [REF] allow to intercept the signals sent to workflows (through buttons) in objects. This is done by adding a function named _workflow_signal() in orm that can be inherited in dedicated objects. Courtesy from Olivier Dony
bzr revid: qdp-launchpad@openerp.com-20120918130436-ll7potrsya23lc36
2012-09-18 15:04:36 +02:00
Vo Minh Thu f22f2fc770 [IMP] openerp.{modules,osv}: _logger with fully qualified module name.
bzr revid: vmt@openerp.com-20120124124252-91g3ysf33zsq4nhd
2012-01-24 13:42:52 +01:00
Vo Minh Thu b5caa70b83 [IMP] tools: removed some functools functions (they were there for previous python versions).
bzr revid: vmt@openerp.com-20120118114109-txh1cjv503xautty
2012-01-18 12:41:09 +01:00
niv-openerp 9b998a6551 [fix] forgot debugging lines
bzr revid: nicolas.vanhoren@openerp.com-20120105161621-ej6wkj5g6qi052rs
2012-01-05 17:16:21 +01:00
niv-openerp 4d3387c54c [imp] added service in object_service to be able to call a method specifying kwargs
bzr revid: nicolas.vanhoren@openerp.com-20120105160351-0xy697sjeihplx6v
2012-01-05 17:03:51 +01:00
Antony Lesuisse ace4703440 [MERGE] trunk
bzr revid: al@openerp.com-20111001012210-uqqso9y80a21hgeo
2011-10-01 03:22:10 +02:00
Vo Minh Thu f82c6503b7 [FIX] xmlrpc: handle old/new exceptions with old/new clients.
bzr revid: vmt@openerp.com-20110930085012-pqzzb3qwvdwu9hxy
2011-09-30 10:50:12 +02:00
Antony Lesuisse 46d3f7e42c [FIX] osv object_proxy to use new style class
bzr revid: al@openerp.com-20110929224919-uacfp8w53jfqikkj
2011-09-30 00:49:19 +02:00
Vo Minh Thu 27f9a9676f [FIX] exceptions: except_osv in already a synonym for o.e.Warning, except_orm should not be qualified.
bzr revid: vmt@openerp.com-20110929073124-kxwwatr8l697ng8r
2011-09-29 09:31:24 +02:00
Antony Lesuisse c71979e6ae [MERGE] /openerp/6.1 xmlrpc compliant
bzr revid: al@openerp.com-20110928220539-5q8eujk1l0q43d4x
2011-09-29 00:05:39 +02:00
Olivier Dony 209390d627 [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20110927165133-uwl7px6bxl6eu7us
2011-09-27 18:51:33 +02:00
Vo Minh Thu 157580b8e8 [IMP] xmlrpc: use proper exception type to map to xmlrpc error codes.
bzr revid: vmt@openerp.com-20110926151403-fhx4ph22tua2s3st
2011-09-26 17:14:03 +02:00
Vo Minh Thu bbd10d96c0 [IMP] exceptions: replace ExceptionNoTb with AccessDenied.
bzr revid: vmt@openerp.com-20110926125358-8yy4tvnemfna72u7
2011-09-26 14:53:58 +02:00
Olivier Dony 2e7a134228 [IMP] orm: introduce cleaner class hierarchy for models
We'll now have a BaseModel with 3 subclasses, AbstractModel,
TransientModel and Model. Model is for regular models, 
TransientModel for automatically-vacuumed models, and
AbstractModel for common superclasses meant to be 
inherited by other models only, and not directly used.

bzr revid: odo@openerp.com-20110923124525-jfzk55dk3ban2ps2
2011-09-23 14:45:25 +02:00
Olivier Dony 7d4cdb69f2 [IMP] orm: minor cleanup: avoid duplicate functions to do the same thing
bzr revid: odo@openerp.com-20110922172027-7kiae4yd2vuwwk6w
2011-09-22 19:20:27 +02:00
Olivier Dony aece39ac83 [IMP] TransientModel: unnecessary unlink() override
Workflow instance deletion is taken care of by the
regular Model.unlink() method, by calling 
workflow.trg_delete().

bzr revid: odo@openerp.com-20110922165003-ub5761gjlnebz4yh
2011-09-22 18:50:03 +02:00
Vo Minh Thu abcef35c76 [FIX] osv: forgot to "import expression".
bzr revid: vmt@openerp.com-20110829120020-b4tfvgizlednt452
2011-08-29 14:00:20 +02:00
Vo Minh Thu 4d2c765f75 [FIX] osv: broken SQL query.
bzr revid: vmt@openerp.com-20110823124524-p0e1jq49vgssgb1y
2011-08-23 14:45:24 +02:00
Vo Minh Thu ad716633bc [REF] osv: osv_memory is now TransientModel.
bzr revid: vmt@openerp.com-20110816104650-euix946m490dliqp
2011-08-16 12:46:50 +02:00
Vo Minh Thu 51117db344 [REF] osv: replace isinstance(m,osv_memory) by m.is_transient().
bzr revid: vmt@openerp.com-20110816095755-2g5cblolcvchtewx
2011-08-16 11:57:55 +02:00
Vo Minh Thu 7e9c72d041 [FIX] osv: super instead of self.
bzr revid: vmt@openerp.com-20110816080900-fg6g5kz40ulbvxbr
2011-08-16 10:09:00 +02:00
Vo Minh Thu 9964cd1d84 [REF] osv: previous diff makes unneccessary one of makeInstance/createInstance.
bzr revid: vmt@openerp.com-20110816074431-v16wfzcy55ojkhwi
2011-08-16 09:44:31 +02:00
Vo Minh Thu 5865633ffb [FIX] osv: forgot the "return" statement.
bzr revid: vmt@openerp.com-20110812130822-6q1qym3nww64zk4p
2011-08-12 15:08:22 +02:00
Vo Minh Thu ddd65ab5c1 [REF] osv: removed orm_memory, adapted the distinguished bits to osv_memory,
so yes, there are still two user-visible classes instead of a boolean flag.

bzr revid: vmt@openerp.com-20110812124128-43rr422swy6h2vs8
2011-08-12 14:41:28 +02:00
Vo Minh Thu 2f5e8d48b3 [REF] osv: moved (and adapted) vacuum code to osv_memory.
bzr revid: vmt@openerp.com-20110812113355-lylavdsc3mqjovrj
2011-08-12 13:33:55 +02:00
Vo Minh Thu c4d7dde645 [REF] netsvc: object_proxy is no longer in netsvc.
bzr revid: vmt@openerp.com-20110729083824-onx5kklbgzb9pok2
2011-07-29 10:38:24 +02:00
Vo Minh Thu 64490ad5ac [REF] netsvc: removed unused kwarg.
bzr revid: vmt@openerp.com-20110728141910-r0z95l3mf1zeh8us
2011-07-28 16:19:10 +02:00
Vo Minh Thu e193912717 [REF] netsvc: removed exportMethod that was only used with the previously removed class LocalService.
bzr revid: vmt@openerp.com-20110728123916-cobk8vk2oktkidke
2011-07-28 14:39:16 +02:00
Vo Minh Thu 44d41334d7 [REF] osv: osv_memory is really just osv,
the change is not enough as we still want to differentiate between regular osv and osv
that should be wiped from the db from time to time.

bzr revid: vmt@openerp.com-20110728082752-39jur9oo0m93ebzh
2011-07-28 10:27:52 +02:00
P. Christeas cf6e623f7d API docs: settings file and titles at modules
bzr revid: xrg@linux.gr-20110623090357-nazly8vpfnw0iskr
2011-06-23 12:03:57 +03:00
Vo Minh Thu abb606aa7c [MERGE] orm: _auto_init made of smaller methods, use a metaclass to discover new models.
bzr revid: vmt@openerp.com-20110615160123-7bk8u94y916mdpkj
2011-06-15 18:01:23 +02:00
Vo Minh Thu 55c220f137 [MERGE] [osv: moved osv_pool to modules/registry.
bzr revid: vmt@openerp.com-20110615153954-d0fbws57z2w2r6db
2011-06-15 17:39:54 +02:00
Vo Minh Thu dc4ee86376 [REF] osv: use a metaclass to discover new models.
bzr revid: vmt@openerp.com-20110615102115-sjobt06ag72xiqaf
2011-06-15 12:21:15 +02:00
Vo Minh Thu 26f22874d9 [LINT] removed unused variable, forgot to change two variables in last commit, corrected typo introduced at 3417.6.6.
bzr revid: vmt@openerp.com-20110615072231-jh977xk1jupekkpp
2011-06-15 09:22:31 +02:00
Vo Minh Thu e375049414 [REF] osv: moved osv_pool to modules/registry.
bzr revid: vmt@openerp.com-20110614142226-yd3y39a8z3ubwvxm
2011-06-14 16:22:26 +02:00
Yogesh (OpenERP) 522b77fdfa [FIX] fix problem of variable name.
bzr revid: ysa@tinyerp.com-20110601094908-9o24f6ohms7fx6p9
2011-06-01 15:19:08 +05:30
Vo Minh Thu 554b33978a [IMP] osv: removed unnecessary module arg, added comments.
bzr revid: vmt@openerp.com-20110527123236-tvd4jgco8iigmrxh
2011-05-27 14:32:36 +02:00
Vo Minh Thu ee58f9da5f [FIX] osv_pool: it appears it is necessary to have the model in the pool earlier on.
bzr revid: vmt@openerp.com-20110527100310-qw9760rd8spiwjgm
2011-05-27 12:03:10 +02:00
Vo Minh Thu a87ebe9600 [REF] osv:
- make it more explcicit in osv_pool that afreshly instanciated object is added to the pool
- osv_pool.init_set() is called just once with False, so
  no need to check if it is the first time it is called or
  if is called with True
- and rename it in do_parent_store as it is what it does.

bzr revid: vmt@openerp.com-20110526210532-a8i91shptz5h4k48
2011-05-26 23:05:32 +02:00