Commit Graph

5274 Commits

Author SHA1 Message Date
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
niv-openerp 5696282656 [MERGE] saas2
bzr revid: nicolas.vanhoren@openerp.com-20131018103501-sns9zca0nmpm9efn
2013-10-18 12:35:01 +02:00
Olivier Dony 71f1665b98 [FIX] tools.mail: typo causing infinite loop + fix test parameters to actually enter it
bzr revid: odo@openerp.com-20131018085118-9b2ltkpff5c8yzmr
2013-10-18 10:51:18 +02:00
Thibault Delavallée 6bc32a8b4b [FIX] tools: mail: fixed / improved html_email_clean.
Read more links could not appear when the shorten limit was obtained
inside a quote that is removed in the process, removing the read
more link node. It now get the first parent that is not inside a
quote to be sure the link is displayed.

Added the test-case that helped find this bug.

bzr revid: tde@openerp.com-20131017110525-etn0u5s91zbnvul1
2013-10-17 13:05:25 +02:00
Christophe Simonis 6a1079822e [IMP] module loading: run post- migration scripts before running the tests. This allow migration of demo databases
bzr revid: chs@openerp.com-20131016100540-i9nospifzzzsilt2
2013-10-16 12:05:40 +02:00
Thibault Delavallée 983d5eb9fa [FIX] tools: html_email_clean: fixed regex for
signature that was buggy when having dots.
Also fixed read more link addition.

Added test case that triggered the error.

bzr revid: tde@openerp.com-20131016103516-w44j6r5oaljpwvmx
2013-10-16 12:35:16 +02:00
Olivier Dony 54f740960e [MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 4912 rev-id: odo@openerp.com-20131016110621-36vvlpn8dgsabyt1
bzr revid: odo@openerp.com-20131016111800-jjybreg62bwz61zn
2013-10-16 13:18:00 +02:00
Olivier Dony 77caeeeba5 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5101 rev-id: odo@openerp.com-20131016105812-844cd9xljvkjwtm3
bzr revid: odo@openerp.com-20131016110621-36vvlpn8dgsabyt1
2013-10-16 13:06:21 +02:00
Olivier Dony 06b2ce213c [FIX] document: overridden ORM methods need to respect API idiosyncrasies, otherwise check() calls may fail
bzr revid: odo@openerp.com-20131016105812-844cd9xljvkjwtm3
2013-10-16 12:58:12 +02:00
Launchpad Translations on behalf of openerp 7dcf81b3bb Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131016043732-72lt6k8x0kz2g3ph
bzr revid: launchpad_translations_on_behalf_of_openerp-20131016045615-liul2fwhpqsswf68
2013-10-16 04:56:15 +00:00
Launchpad Translations on behalf of openerp 8874046c39 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131013053740-rinm5yfv4pp3toj2
bzr revid: launchpad_translations_on_behalf_of_openerp-20131015051750-ss2jdlo4w12420rv
bzr revid: launchpad_translations_on_behalf_of_openerp-20131015051826-9alld47gks4izhjq
2013-10-15 05:18:26 +00:00
Antony Lesuisse ff9e439733 [FIX] fcntl not needed on windows
bzr revid: al@openerp.com-20131015013700-eo0y09ft0p3w0fwe
2013-10-15 03:37:00 +02:00
Martin Trigaux 1d59e6f784 [IMP] fonts: improvement of custom font intergration in rml reports
creation of model res.font
preload font list with basic pdf fonts for performances improvements
add 'reload fonts' on view to scan the filesystem
font selection is a simple on2many

bzr revid: mat@openerp.com-20131014151906-racz1lm0arw6ahfk
2013-10-14 17:19:06 +02:00
Martin Trigaux b9c3d93416 [IMP] font: handle better the difference of fonts
bzr revid: mat@openerp.com-20131014150507-4ueuyyneo6h2f6ju
2013-10-14 17:05:07 +02:00
Martin Trigaux 53e8625cea [FIX] font: cleaning and better default data
bzr revid: mat@openerp.com-20131014123815-6tnegdiv4cnaimtf
2013-10-14 14:38:15 +02:00
Martin Trigaux 3798b1ed96 [IMP] better labels
bzr revid: mat@openerp.com-20131014101523-bwb4lda2rxbqpb8a
2013-10-14 12:15:23 +02:00
Martin Trigaux b3a8a4493d [IMP] fonts: adapt fonts to many2one instead of list
bzr revid: mat@openerp.com-20131014094122-6ndc5scni2xyzksy
2013-10-14 11:41:22 +02:00
Antony Lesuisse d2eb959710 [FIX] ensure the use the registry signaling for registries loaded with -d
bzr revid: al@openerp.com-20131013021322-5ej7ovpcrf7ilnn5
2013-10-13 04:13:22 +02:00
Olivier Dony 7cb7405ffd [IMP] orm: _store_get_values: rename variables to make this horror slightly more readable
We keep having to fight variable decay in that function, for some reason.

bzr revid: odo@openerp.com-20131011134501-7b5rflknjm1r9zfd
2013-10-11 15:45:01 +02:00
Olivier Dony 8ac110c4dd [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5098 rev-id: odo@openerp.com-20131011123914-7zuvd9mch21yxgj8
bzr revid: dle@openerp.com-20131009131902-a93nsbou4w8y0vlx
bzr revid: chs@openerp.com-20131009175454-j06y1ngylfbqyrpj
bzr revid: dle@openerp.com-20130918160049-fo88fl7uyhfoofkv
bzr revid: dle@openerp.com-20130924130544-kmkyr0d73cusvdav
bzr revid: odo@openerp.com-20131011134433-nyfjipvlql4xu127
2013-10-11 15:44:33 +02:00
Olivier Dony 088cb0255d [FIX] registry: restore `elif` changed to `if` in previous commit, for better readability (no effect)
This should have no effect because when the first `if`
is entered a new registry is instantiated with
the default value for base_cache_signaling_sequence
set to 1, preventing entering the next `if` even
without `elif`.

bzr revid: odo@openerp.com-20131011123914-7zuvd9mch21yxgj8
2013-10-11 14:39:14 +02:00
Olivier Dony 78579d289b [FIX] registry: avoid discarding registry or cache when the registry is fresh
When the sequence value is 1 it means that either:
 - the registry was just instantiated, so there is no
   reason to reload it immediately, the real checks will
   start at next request
 - the db was just created with new sequences set to 1,
   so there has been no change to reload

In both cases there is no good reason to reload the
registry, and it is actually a performance killer,
especially for cron workers that keep iterating on
the list of databases.

bzr revid: odo@openerp.com-20131011100313-4bud8e9xq2afp9z7
2013-10-11 12:03:13 +02:00
Launchpad Translations on behalf of openerp 8c3f19d913 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131011044915-qxutw9o1lhyymj8l
2013-10-11 04:49:15 +00:00
Antony Lesuisse a3fffe3b15 [REM] chorus on multiprocessing cron, it doesnt really helps
bzr revid: al@openerp.com-20131010231628-b81uhmhg14aj85tq
2013-10-11 01:16:28 +02:00
Olivier Dony dafa12d92c [FIX] ir.model: FK constraints for custom m2o fields were never created, creating possible data integrity errors
bzr revid: odo@openerp.com-20131010170718-lwoxkqc1tx7i8vhg
2013-10-10 19:07:18 +02:00
Launchpad Translations on behalf of openerp 2779496635 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131009054822-v57c9imyteomp381
bzr revid: launchpad_translations_on_behalf_of_openerp-20131009054909-1nmq8z3sk3ao5j0m
2013-10-09 05:49:09 +00:00
Martin Trigaux a0059326fc [IMP] remove useless comment
bzr revid: mat@openerp.com-20131008111631-y47f0y4wyf8hsf2g
2013-10-08 13:16:31 +02:00
Martin Trigaux 9680b1cd39 [IMP] move comment to the right line
bzr revid: mat@openerp.com-20131008105412-pqxpo2q12odjyqp4
2013-10-08 12:54:12 +02:00
Martin Trigaux 241c054b35 [IMP] correctly bound _symbol_f and redifine self._symbol_set_char to keep the API
bzr revid: mat@openerp.com-20131008104737-eellli48re2pfmos
2013-10-08 12:47:37 +02:00
Martin Trigaux 3ae73d572d [FIX] function fields: bound symbol methods of function field (type char) to the correct methods of the char field
lp bug: https://launchpad.net/bugs/1208074 fixed

bzr revid: mat@openerp.com-20131008102135-r7lqvky0vd75yo1q
2013-10-08 12:21:35 +02:00
Launchpad Translations on behalf of openerp 05994eb775 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131008061813-6iqrtiyhjo3otr9v
2013-10-08 06:18:13 +00:00
Antony Lesuisse df230e07e4 move workflow
bzr revid: al@openerp.com-20131006151827-oevn6uuv005qbsu8
2013-10-06 17:18:27 +02:00
Antony Lesuisse e14ec807d2 fix xml order for change password wizard
bzr revid: al@openerp.com-20131006150857-6jm5jpjl1u4p0vo7
2013-10-06 17:08:57 +02:00
Antony Lesuisse 08c2fe46f1 fix manifest
bzr revid: al@openerp.com-20131006150525-stso6goforsxsnjl
2013-10-06 17:05:25 +02:00
Antony Lesuisse 8e688b8ac6 missing import
bzr revid: al@openerp.com-20131006150425-m7xjwji6xncxdum3
2013-10-06 17:04:25 +02:00
Antony Lesuisse 6e2e77beec fix res_group rename, move files to clean up res
bzr revid: al@openerp.com-20131006150309-fg8vuvaq9hmvi9oh
2013-10-06 17:03:09 +02:00
Antony Lesuisse 6488849191 [REM] res.config and res.users cleanups.
removed deprecated configuration wizards
removed deprecated busniess card report
moved change password wizard to res_users.py

bzr revid: al@openerp.com-20131006144020-zyp2jz5vy28m9q3f
2013-10-06 16:40:20 +02:00
Antony Lesuisse 31a8dc36e5 [REM] shortcuts, deprecated by bookmarks
bzr revid: al@openerp.com-20131006132424-bpd8w0zzuf42s55l
2013-10-06 15:24:24 +02:00
Antony Lesuisse f1faa55cb6 rename links get, allow reference fields without size.
bzr revid: al@openerp.com-20131006114704-mkbheq3l355u21jb
2013-10-06 13:47:04 +02:00
Antony Lesuisse 881a76dbcf [IMP] Technical menu reorg, remove depreacted requests.
Moved low levels object to database structure.
Removed res.request models bu keep res.request.link, res.request.link is used
to flag models worth to be linked by references fields.
Moved currency and state to the approriate directory.

bzr revid: al@openerp.com-20131006112608-3qucrevmkf43kq20
2013-10-06 13:26:08 +02:00
Antony Lesuisse a32bf724f2 [IMP] ir_actions cleanups.
Remove deprecated old style wizards.
Remove unsed get_model() function.
Move crons into Actions menuitem.
Move todos into Actions menuitem.

bzr revid: al@openerp.com-20131006102404-s46md70ahydihiih
2013-10-06 12:24:04 +02:00
Antony Lesuisse 780ae08294 [IMP] add an easier to use XML-RPC faultCode compliant protocol
remove the /openerp/* routes, they were never used because the protocol was too 
different from the historical /xmlrpc/ routes. Instead we introduce a
/xmlrpc/2/ route identical to /xmlrpc/ with the only difference that it returns
int faultCodes making it compliant with the XML-RPC specification.

bzr revid: al@openerp.com-20131006102131-707kxc9zyd1mvlps
2013-10-06 12:21:31 +02:00
Antony Lesuisse 156094df3d [FIX] preliminary code for socket activation, to avoid connection refused during restart
bzr revid: al@openerp.com-20131005235639-vifvbhu4o17lf780
2013-10-06 01:56:39 +02:00
Antony Lesuisse 40ba925691 [IMP] --auto-reload to enable code and xml auto reload, service cleanup.
Added an autoreload mecanism based on pyinotify that restart the server as soon
as a .py or .xml file change is detected, for xml updates the relevant -u are
automatically added to exec(2).

pyinotify is linux specific and should be replaced by a cross plaform library
such as watchdog. Unfortunatly watchdog is not yet packaged in debian. We could
support both libraries, patches are welcome.

Refactored the code in cli/* and service/*. The 3 running modes of openerp
(threaded, prefork, gevent) are now in openerp/service/server.py, one class per
mode, and they share the same interface.

Added a signal handler to increase or decrase the number of HTTP workers in
prefork mode (SIGTTIN, SIGTTOU).

bzr revid: al@openerp.com-20131005225740-hrxwy50ldi5yql0e
2013-10-06 00:57:40 +02:00
Antony Lesuisse e6b18fc7aa rename server
bzr revid: al@openerp.com-20131005221829-a18vx5ag6ef4ufee
2013-10-06 00:18:29 +02:00
Antony Lesuisse 2170da5e1e merge trunk
bzr revid: al@openerp.com-20131005220411-l1op0sya6h515m5b
2013-10-06 00:04:11 +02:00
Antony Lesuisse c52df72706 fix signal name
bzr revid: al@openerp.com-20131005215821-r60pgkgsrp1lo2ug
2013-10-05 23:58:21 +02:00
Antony Lesuisse 0a75a6b5ff simplier autoreload working
bzr revid: al@openerp.com-20131005212240-5lp8tgwukeg5wwdq
2013-10-05 23:22:40 +02:00