Commit Graph

35 Commits

Author SHA1 Message Date
Wolfgang Taferner b09a766f0a [IMP] workflow: add sequence for ordering workflow transitions (split/join mode especially for XOR)
Makes ordering transitions easier and more deterministic.

(Rebase of #1564)
2014-08-05 12:26:28 +02: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
Christophe Simonis ee613ec6cd [IMP] remove useless table/column creations in base.sql. Let the ORM do it job.
[FIX] force creation of workflow used columns.

bzr revid: chs@openerp.com-20140425162828-e85aut02ua8c53nv
2014-04-25 18:28:28 +02:00
Xavier Morel eebda715bb [IMP] py26 compatibility
bzr revid: xmo@openerp.com-20140120135333-7b7qccr4quh2h1um
2014-01-20 14:53:33 +01:00
Stephane Wirtel 5aef04550f [REF] Merge a refactoring of the workflow (lp:~openerp-dev/openobject-server/trunk-refactor-workflow-stw)
bzr revid: stw@openerp.com-20140109095017-xakyapswp8b5eed5
2014-01-09 10:50:17 +01:00
Stephane Wirtel 1c398cd6f8 [REF] Start to abstract the Workflow engine
bzr revid: stw@openerp.com-20131024075707-k1092bspi6ebixdw
2013-10-24 09:57:07 +02:00
Stephane Wirtel f6c1b6bb86 [REF] Create a WorkflowItem object
bzr revid: stw@openerp.com-20131023135838-ix7x6mzui3i3wfbi
2013-10-23 15:58:38 +02:00
Stephane Wirtel 6a3a2709ef [REF] Remove the useless wkf_expr.py file and copy it into workitem.py
bzr revid: stw@openerp.com-20131023130705-k4u7ssba820b7hwi
2013-10-23 15:07:05 +02:00
Stephane Wirtel fad743a978 [REF] Remove old code from the workflow engine
bzr revid: stw@openerp.com-20131023125818-3g3fe49lfrube9kq
2013-10-23 14:58:18 +02:00
Stephane Wirtel c7afc04be3 [REF] First step, use the same vocabulary for the cr, uid, res_type and res_id
=> Session, Record.
* a Session is a container of one cursor and one user 
* a Record is a container for the res_type and res_id, in this object, the right
  names are model and id.

Examples:

session = Session(cr, uid)
record = Record(res_type, res_id)
record.mode, record.id

A new class named 'WorkflowService' is a wrapper for the instance.* functions.

bzr revid: stw@openerp.com-20131023125343-uo0bq52n86ae0fb0
2013-10-23 14:53:43 +02:00
Thibault Delavallée 292ecbb301 [FIX] workflows: fixed a regression in transition check, group attribute on transaction is group_id, not groups_id
bzr revid: tde@openerp.com-20130809105122-a1433kqvznj4sntp
2013-08-09 12:51:22 +02:00
Vo Minh Thu 2397c1a98b [IMP] workflows: added docstring, some variable renaming (to wkf_expr).
bzr revid: vmt@openerp.com-20130723125242-mpzpjfbnyrmx3bzt
2013-07-23 14:52:42 +02:00
Vo Minh Thu 1e7e2ca753 [REF] no longer use openerp.pooler.
Either use openerp.modules.registry.RegistryManager when the full
new() signature is needed, or use openerp.registry().

Replaced also some pool.get() with pool[] because KeyErrors
are better than AttributeErrors on None.

bzr revid: vmt@openerp.com-20130327111014-2i0hlvpy5y5ku7hm
2013-03-27 12:10:14 +01:00
Vo Minh Thu 5cc71e1bab [FIX] workitem: the early return in the case workitem.state == running was seemingly wrong as workitem.state is mutated in some other IFs.
bzr revid: vmt@openerp.com-20130326143937-lf4mswer4ablj46i
2013-03-26 15:39:37 +01:00
Xavier Morel db6b6480f7 [IMP] switch workflows to standard logging (silenced by default), remove wkf_logs
bzr revid: xmo@openerp.com-20130319163133-3n1k1hgooddzxntz
2013-03-19 17:31:33 +01:00
Xavier Morel 5f956523d4 [IMP] flow of workflow.workitem.process
bzr revid: xmo@openerp.com-20130319154857-q7l99vyqtksegiy0
2013-03-19 16:48:57 +01:00
Xavier Morel 2d251ea987 [REM] unused openerp.workflow.common
bzr revid: xmo@openerp.com-20130319153422-0s7sly0cjg491s0b
2013-03-19 16:34:22 +01:00
Vo Minh Thu 8b5e317eab [REF] service: workflow is not a service
- simply use openerp.workflow instead of the funky netsvc.LocalService
- the funky netsvc.LocalService is still available though
- all the methods are now simple function (the self was unnecessary)

bzr revid: vmt@openerp.com-20130130173759-xxgyafxqzp3okz3c
2013-01-30 18:37:59 +01:00
Cecile Tonglet ad8b76de53 [MERGE] From trunk (second time)
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47:53 +01:00
Cecile Tonglet 5f0070dcb6 [FIX] Remove unused imports and fix some imports that doesn't use the new namespace
bzr revid: cto@openerp.com-20121217143029-e9ki4ftwihq7pdme
2012-12-17 15:30:29 +01:00
Xavier Morel c6079dd6bb [REM] unnecessary parens
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Vo Minh Thu 63de663ece [IMP] wkf_expr: Ignore empty lines and lines with blanks.
bzr revid: vmt@openerp.com-20121128150637-pikxf9tw2nj0qpuk
2012-11-28 16:06:37 +01:00
Turkesh Patel (Open ERP) 790b07a83a [IMP] improved code
bzr revid: tpa@tinyerp.com-20121023091001-a5z5utrnxv3tcbsk
2012-10-23 14:40:01 +05:30
Turkesh Patel (Open ERP) 620453c4a0 [FIX] Workflow function activities explode if they contain empty lines.
bzr revid: tpa@tinyerp.com-20120905102821-8q6d42d5p0xudxmv
2012-09-05 15:58:21 +05:30
Vo Minh Thu f057f2afa5 [IMP] openerp.loglevels: removed calls to openerp.loglevels.Logger().
bzr revid: vmt@openerp.com-20120124173017-c66z3kq11wmbrrke
2012-01-24 18:30:17 +01:00
Fabien Pinckaers f8ef59db7e [FIX] workflow returning actions
bzr revid: fp@tinyerp.com-20111211102140-8zyihjdldfbas85u
2011-12-11 11:21:40 +01:00
Olivier Dony acecf5e71e [MERGE] sync w/ latest trunk
bzr revid: odo@openerp.com-20110929100200-cq90mv3d3tymluyw
2011-09-29 12:02:00 +02:00
Antony Lesuisse 7a88d9058d [MERGE] trunk
bzr revid: al@openerp.com-20110924145258-16r9qi7hr3dip1jz
2011-09-24 16:52:58 +02:00
Vo Minh Thu bbd90612bc [MERGE] report/preprocess: make sure to remove the quotes of repeatIn third argument.
Also add docstrings to the workflow_service classes.

bzr revid: vmt@openerp.com-20110920120436-txwspf556lolbibv
2011-09-20 14:04:36 +02:00
Harry (OpenERP) 0e1765a4d5 [FIX] workflow: pass active_model in context on run server action
bzr revid: hmo@tinyerp.com-20110914102505-03tzr0ncfsngnqnu
2011-09-14 15:55:05 +05:30
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
Viktor Nagy f25e0e9f48 Added documentation to workflow_service methods.
bzr revid: viktor.nagy@toolpart.hu-20110722064749-ovx9biphwz50tizd
2011-07-22 08:47:49 +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 f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00