Commit Graph

74631 Commits

Author SHA1 Message Date
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
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
Launchpad Translations on behalf of openerp 954f9ea511 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131016043744-ndoaph0q8ii4w005
bzr revid: launchpad_translations_on_behalf_of_openerp-20131017053322-jq2sy3zx8arizsue
bzr revid: launchpad_translations_on_behalf_of_openerp-20131018055154-vsi79g8qo0a613ya
2013-10-18 05:51:54 +00:00
Denis Ledoux f0c49f88d0 [FIX]google_spreadsheet: was checking if module auth_crypt was installed, to decide to display popup in the spreadsheet to ask the credentials. Now it only check if the password is empty (works for auth_crypt module and ldap module).
bzr revid: dle@openerp.com-20131017143409-m783tf5ozmotlld2
2013-10-17 16:34:09 +02:00
Denis Ledoux 8bc3ffd234 [FIX]google_drive: permission granted for anyone with the link has been set to readonly, and add write permission to current user (email) only
bzr revid: dle@openerp.com-20131017142545-81ab6xbqi5nb6c06
2013-10-17 16:25:45 +02:00
Denis Ledoux af9b8590b5 [FIX]google_drive: when create a document in drive, add the permission 'writer' to 'anyone with the link'. Hence, anyone that can see the attachement, can edit the document
bzr revid: dle@openerp.com-20131017134744-nr9g21rhebtpkq4s
2013-10-17 15:47:44 +02:00
Thibault Delavallée 438b06ef13 [FIX] mail: followers widget: wrong default value when calling read_followers_data, should be a list, not a dict
bzr revid: tde@openerp.com-20131017131634-b1j9evzgu9q837i8
2013-10-17 15:16:34 +02:00
Denis Ledoux d15798786a [FIX]project_issue: add onchange_partner_id which was inherited before with base_stage, but the inheritance has been removed
bzr revid: dle@openerp.com-20131017121013-mtzvjogi2hxgfcpq
2013-10-17 14:10:13 +02:00
Thibault Delavallée d52f335ff9 [FIX] project_issue: onchange_partner_id does not take any email_from anymore in parameter.
Removed from the view.

bzr revid: tde@openerp.com-20131017113503-hw02unqai9ytoee3
2013-10-17 13:35:03 +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
Thibault Delavallée 3333c5c329 [IMP] data_export: when exporting on active_domain instead of
selected ids, display a message to tell the user what
he is doing.

bzr revid: tde@openerp.com-20131017094457-q1b7j3927eeoy4fo
2013-10-17 11:44:57 +02:00
Thibault Delavallée eb98ba3fd6 [FIX] list_view: when composing the active_domain
in list view because of the list header being checked,
also take into account the current action domain;

bzr revid: tde@openerp.com-20131017094355-murxot4rqirw3g68
2013-10-17 11:43:55 +02:00
Thibault Delavallée 6495fcf883 [IMP] mail: mail.compose.message: when working on an active_domain
due to list view header being checked, display
an info in the mass mailing wizard to warn the
user he is about to mail all records matching
its search filter, not only the selected ids.

bzr revid: tde@openerp.com-20131017093830-cvxihr3zwohos9ol
2013-10-17 11:38:30 +02:00
niv-openerp 0ded676e72 [FIX] changed back default authetication level of old routes to "user" to remove inconsistency
bzr revid: nicolas.vanhoren@openerp.com-20131017084818-ijen4a2ywyg9lrxe
2013-10-17 10:48:18 +02:00
Olivier Dony d72ccec81a [FIX] google_drive: base.config.settings must be a TransientModel
Making it a real Model causes access right errors,
as it has no ACLs. 
+ cleanup other model declarations

bzr revid: odo@openerp.com-20131016164135-uf3gxe0p1i6h3xyq
2013-10-16 18:41:35 +02:00
Olivier Dony 23b209047b [FIX] google_drive, google_base_account: safer management of auth code, better usability
Persist the auth code in the settings to show
that it has already been set, even if it is not
technically used by the system.
Also fixed a variable referenced before assignment.

bzr revid: odo@openerp.com-20131016163908-9d05x85me3n30ala
2013-10-16 18:39:08 +02:00
Denis Ledoux bbeb6e60aa [FIX]crm: leads/opps merge order, condition was not correct: lead/opp with stage sequence = 1 where regarded as canceled, or they are acutally regarded as new.
bzr revid: dle@openerp.com-20131016153457-42a235ks80226b8o
2013-10-16 17:34:57 +02:00
Denis Ledoux b95f5443db [FIX]crm: leads/opps merge order, was not the same as before the state removal from the stages
bzr revid: dle@openerp.com-20131016144849-yueclv7xqmk806nz
2013-10-16 16:48:49 +02:00
Thibault Delavallée fa9905e335 [FIX] hr_holidays: fixed tests about exception raised
when trying to validate too much holidays. The exception
is now a Warning, not an except_orm anymore.

bzr revid: tde@openerp.com-20131016120929-1pg7q4bjvpolfevj
2013-10-16 14:09:29 +02:00
Thibault Delavallée 08770d83c1 [FIX] crm: fixed stage_find method. This method receives a domain
for searching stages. However it adds a condition on the type of the stages
independently of the received domain.

It now creates a term for stage types only if not found in the domain
given in parameter.

bzr revid: tde@openerp.com-20131016105855-isq9frwp1fnquw4x
2013-10-16 12:58:55 +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 023777a86f [IMP] base_action_rule: added 'on_create_or_write' kind that is triggered
on both creation or update. This kind is added especially for migrations
to help migrating old actions not necessarily tailored for 'on_create'
or 'on_write' kind that are new in saas-2.

bzr revid: tde@openerp.com-20131016091305-k9w3tuayl1kag8oc
2013-10-16 11:13:05 +02:00
Olivier Dony 43e88e54bf [FIX] hr_holidays: typo - boolean values should be set with @eval!
bzr revid: odo@openerp.com-20131016112857-i29unpw5ee8yv3lx
2013-10-16 13:28:57 +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
Olivier Dony 3a16a8ac17 [FIX] crm_partner_assign: Assignation tab on leads should be available to all sales users
bzr revid: odo@openerp.com-20131016104735-w3aarztjbg6r0ngm
2013-10-16 12:47:35 +02:00
Thibault Delavallée aa34259629 [FIX] hr: fixed priorities of kanban views. Employees see the
kanban view defined for portal users because of priorities all equal to 16.
Now employees see the correct kanban view defined in HR, portal users see
the portal kanban view defined in portal_hr_employees.

bzr revid: tde@openerp.com-20131016092106-pqtjp7tyw27or3ow
2013-10-16 11:21:06 +02:00
Launchpad Translations on behalf of openerp ad7c84e43b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131016051402-s4et4c32h28r73sg
2013-10-16 05:14:02 +00: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
Olivier Dony 748ac8626c [FIX] mail: typo during earlier fwd-port merge
bzr revid: odo@openerp.com-20131015181331-97k21d3xooox8z1j
2013-10-15 20:13:31 +02:00
Olivier Dony 58928c5c4c [FIX] hr_holidays: force draft.@flow_start to False to correctly update existing databases + fix validation logic
The check_holidays() validation was not working correctly
because it was called both before and after inserting new
leave requests, with inconsistent results.
Using it as a fixed constraint is simpler.

bzr revid: odo@openerp.com-20131015165416-in0rfd7rrjmekv0g
2013-10-15 18:54:16 +02:00
Christophe Simonis 17c661328b [FIX] base_import: use @route decorator to ensure user is logged into session
bzr revid: chs@openerp.com-20131015163444-v09924ah0wpe74be
2013-10-15 18:34:44 +02:00
Christophe Simonis f3ac2643d9 [FIX] mail: /mail/download_attachment: content_disposition() does not take request as parameter anymore.
bzr revid: chs@openerp.com-20131015154357-4fnj8b6fy5sbvpa7
2013-10-15 17:43:57 +02:00
Christophe Simonis b2c74f5f42 [FIX] mail: use @route decorator for routes
bzr revid: chs@openerp.com-20131015153631-18pdi1xzk84kg1y2
2013-10-15 17:36:31 +02:00
Martin Trigaux 435a038391 [FIX] account: include reconciled move lines generated at the opening of a new fiscal year (and indirectly take into account moves from previous fiscal years)
bzr revid: mat@openerp.com-20131015142948-db6x1py5auwzbn3e
2013-10-15 16:29:48 +02:00
Martin Trigaux 345f6739eb [REM] account: unused test (merged with account_fiscalyear_close.yml)
bzr revid: mat@openerp.com-20131015141453-dbznqlqfo4beglz9
2013-10-15 16:14:53 +02:00
Martin Trigaux afaa1159ad [ADD] account: test for added check
bzr revid: mat@openerp.com-20131015141408-rpdp110btoc0wll3
2013-10-15 16:14:08 +02:00
Denis Ledoux f42b33100d [FIX]project_issue: add onchange_partner_id which was inherited before with base_stage, but the inheritance has been removed
bzr revid: dle@openerp.com-20131015141355-xfu9gq0xyy19bmgl
2013-10-15 16:13:55 +02:00
Christophe Simonis 42ac45e290 [FIX] web_diagram: use new @route API to force auth of session
bzr revid: chs@openerp.com-20131015141254-xk1ot8uxkthbaub1
2013-10-15 16:12:54 +02:00
Christophe Matthieu 6b20e1baea [FIX] product: wrong product and supplierinfo demo data. Because product_id of product.supplierinfo is a product.template field and not a product.product field
bzr revid: chm@openerp.com-20131015132738-d1l7bb8vbndz5mu5
2013-10-15 15:27:38 +02:00
Martin Trigaux d36a90b39e [FIX] account: correctly compute debit/credit for partner including previous moves reported to new fiscal year
lp bug: https://launchpad.net/bugs/1219381 fixed

bzr revid: mat@openerp.com-20131015121015-jdwkzv9tjicg2m1u
2013-10-15 14:10:15 +02:00
Xavier Morel ee4802b1b7 [ADD] forgot a file in previous commit
bzr revid: xmo@openerp.com-20131015112348-94c10psv1nm4evs6
2013-10-15 13:23:48 +02:00
Martin Trigaux 98d31e411f [FIX] stock: correctly handle case when we have no child location
bzr revid: mat@openerp.com-20131015112016-vj6yr6kfxfe8go2p
2013-10-15 13:20:16 +02:00