Commit Graph

67999 Commits

Author SHA1 Message Date
Olivier Dony b1560fb788 [FIX] web_analytics: test mock does not have a proper wbeclient instance
As a quick workaround: double-check for the presence
of a client in the openerp instance. Should probably
be replaced by a proper mock in the web tests

bzr revid: odo@openerp.com-20130130174334-mysskhhmvurj64fg
2013-01-30 18:43:34 +01:00
Olivier Dony 7ed95d2224 [MERGE] web_analytics: properly initialize the analytics tracker, even in embedded mode
bzr revid: odo@openerp.com-20130130171747-nnbh6ytm7ihgm53w
2013-01-30 18:17:47 +01:00
Olivier Dony c8397f7c40 [FIX] web_analytics: properly initialize the analytics tracker, even in embedded mode
bzr revid: odo@openerp.com-20130130165327-jpf24sfxbq50jn53
2013-01-30 17:53:27 +01:00
Thibault Delavallée 0dc0b1c08a [IMP] mail: added auto_follow mechanism on fields like 'user_id'. mail.thread defines a basic heuristic to find those tracked fields: fields called 'user_id', linking to res_users, that are tracked. This allows to automatically subscribe the responsible of main models in OpenERP, like opportunity, task, issue, applicant. This revision also sets some subtypes as not followed by default to avoid leaking information (for example when changing state of a recruitment with the applicant automatically added as follower).
bzr revid: tde@openerp.com-20130130145834-e5lr8h36xozavr7f
2013-01-30 15:58:34 +01:00
Thibault Delavallée d9e333bded [FIX] mail: notification email: email_from is now correctly set (alias of the author if user and alias configured; author email; or email_from of the mail.message).
bzr revid: tde@openerp.com-20130130140930-1x3g1bft9usdu7np
2013-01-30 15:09:30 +01:00
Thibault Delavallée 1eba44d8c2 [IMP] mail.message.subtype: set some subtypes as not followed by default, to avoid leaking information.
bzr revid: tde@openerp.com-20130130135825-xuc4gd1cd2j4wdeb
2013-01-30 14:58:25 +01:00
Thibault Delavallée 1ef967e5aa [FIX] mail: notification email: email_from is now correctly set (alias of the author if user and alias configured; author email; or email_from of the mail.message).
bzr revid: tde@openerp.com-20130130134447-nu4lt7jb7db5aprh
2013-01-30 14:44:47 +01:00
Thibault Delavallée 843956a624 [IMP] mail: Chatter widget: timeago is not used anymore for old dates; it just displays the date for message older than 1 week. Also added a tip on the timeago which gives the correct date.
bzr revid: tde@openerp.com-20130130132951-w7h14j1fko5a6b73
2013-01-30 14:29:51 +01:00
Thibault Delavallée 6ca19ea42e [IMP] mail: auto_subscribe: moved code to find auto_follow fields into a dedicated method that can be overridden.
bzr revid: tde@openerp.com-20130130132723-ktipo8twxwl6v8ei
2013-01-30 14:27:23 +01:00
Thibault Delavallée f74f2aa9fd [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20130130125406-95pghooygh5jow0s
2013-01-30 13:54:06 +01:00
Thibault Delavallée dc3d791c4e [FIX] crm_lead: message_new now uses the on_change_partner_id to set the contact info of the partner, if the partner has been found during the gateway process.
bzr revid: tde@openerp.com-20130130125333-ebiwvimltamasj49
2013-01-30 13:53:33 +01:00
Thibault Delavallée c159d3b0bf [FIX] mail: email notifications: send emails to the author if he asked to be notified of its own message using the explicit recipients field of mail.message. Email sending falls back on the regular mode that depends on the preferences field.
bzr revid: tde@openerp.com-20130130123921-4ly0yh0zyk6gf0og
2013-01-30 13:39:21 +01:00
Thibault Delavallée d57be0a0c0 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20130130123622-5heyerp2aem4wjv3
2013-01-30 13:36:22 +01:00
Thibault Delavallée 9264c09405 [FIX] [IMP] kanban view: number of items in a column is now also displayed for folded columns. Indeed, using custom filters, it can be interesting to know whether there are items in the folded column. This branch also solves some CSS issues related to kanban view and re-indent some code.
bzr revid: tde@openerp.com-20130130123524-am3ecj01r7t9augz
2013-01-30 13:35:24 +01:00
Christophe Matthieu dbe1312355 [IMP] mail: display unread button on all documents chatter messages
bzr revid: chm@openerp.com-20130130121523-8ox71me2w0mlb46u
2013-01-30 13:15:23 +01:00
Thibault Delavallée d04b3984dc [IMP] kanban: display number of folded records
bzr revid: tde@openerp.com-20130130120711-tj9zb3fw4b6fhqvd
2013-01-30 13:07:11 +01:00
Vo Minh Thu 7674db0ed5 [FIX] The import test in openerp/run_tests is wrong, the import of run_tests in openerp/__init__ was wrong too.
lp bug: https://launchpad.net/bugs/1108929 fixed

bzr revid: vmt@openerp.com-20130130103458-t4stvpibhb1353nw
2013-01-30 11:34:58 +01:00
Thibault Delavallée 1ea0204f6b [IMP] Message subtypes: set almost all subtypes as False by default, to avoid spamming contact partners.
bzr revid: tde@openerp.com-20130130090942-duiwfvtcj2d0ad6c
2013-01-30 10:09:42 +01:00
Thibault Delavallée ccb2a26406 [IMP] mail: added auto_follow mechanism for some tracked fields like 'user_id' that should be relational fileds towards res.users.
bzr revid: tde@openerp.com-20130130090936-l52gq292h8rq79ue
2013-01-30 10:09:36 +01:00
Launchpad Translations on behalf of openerp 5d3812badd Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130126053711-ja93llrv8p3pu6ok
bzr revid: launchpad_translations_on_behalf_of_openerp-20130127050921-4ee0qhynow5m95wf
bzr revid: launchpad_translations_on_behalf_of_openerp-20130129061801-bf4xt34ikig91lwr
bzr revid: launchpad_translations_on_behalf_of_openerp-20130130051939-dhup79bt2uw7v3cz
bzr revid: launchpad_translations_on_behalf_of_openerp-20130130052010-s7ntowxt1wk06nes
2013-01-30 05:20:10 +00:00
Thibault Delavallée 443ab6ed73 [IMP] mail: when pushing to myself, now sends email according to normal rules.
bzr revid: tde@openerp.com-20130129160752-q8zgixlzkfb9cm1s
2013-01-29 17:07:52 +01:00
Frédéric van der Essen e1cb1c660d [MERGE] point_of_sale: various fixes:
- taxes computation
- currency rounding
- paymentline keyboard focus
- css corrections
- invoice generation

bzr revid: fva@openerp.com-20130129153750-ghb4hrrc289z6kga
2013-01-29 16:37:50 +01:00
Christophe Matthieu 79c15f832c [FIX] mail: js change _date to date for display date of message. display complete date if more of 7 days
bzr revid: chm@openerp.com-20130129153528-cffz4dbbn6i80euw
2013-01-29 16:35:28 +01:00
Frédéric van der Essen b5a47b24fc [FIX] point_of_sale: css gradient fix
bzr revid: fva@openerp.com-20130129152421-sgke1e3ckh9ohppi
2013-01-29 16:24:21 +01:00
Thibault Delavallée e9f6e0036e [IMP] crm_lead: message_new now uses the on_change_partner_id to set the address of the partner of the lead, if any.
bzr revid: tde@openerp.com-20130129143815-37voxmjw22eop7jl
2013-01-29 15:38:15 +01:00
Fabien Meghazi 337faa6829 [FIX] Use relative protocol in scripts url in order to avoid mixed content warnings in IE
bzr revid: fme@openerp.com-20130129142638-81uffjq3aiopr8ta
2013-01-29 15:26:38 +01:00
Frédéric van der Essen fa2d7e79b4 [MERGE] from upstream
bzr revid: fva@openerp.com-20130129142603-i7sur3jomgqk0217
2013-01-29 15:26:03 +01:00
Frédéric van der Essen a06e93e218 [FIX] point_of_sale: keyboard focus for payment widget
bzr revid: fva@openerp.com-20130129140146-uz1jpmv4u3dmulus
2013-01-29 15:01:46 +01:00
csn-openerp 22c857caf3 [FIX] sale: proper guard of external ID resolution in config settings
ir.model.data.get_object() raises ValueErrors for missing references!

bzr revid: csn@openerp.com-20130129133631-d1kgb8b3wmdahy8s
2013-01-29 14:36:31 +01:00
csn-openerp efbb25bae3 [FIX] account: missing ondelete cascade rule on m2o between 2 TransientModels
bzr revid: csn@openerp.com-20130129133427-ar1wiknf0ck15257
2013-01-29 14:34:27 +01:00
Olivier Dony f0199dbcd5 [FIX] membership: proper guard for external ID resolution, when looking for invoice search view
Similar to correction done in previous commit.

bzr revid: odo@openerp.com-20130129123127-6rkcksxhozm6al0d
2013-01-29 13:31:27 +01:00
Olivier Dony 0be7cd3a29 [FIX] membership: use Customer Invoice form view rather than Supplier Invoice one, courtesy of Niels Huylebroeck
lp bug: https://launchpad.net/bugs/1100271 fixed

bzr revid: odo@openerp.com-20130129122637-f0t2n8tw1bqaaoqf
2013-01-29 13:26:37 +01:00
Launchpad Translations on behalf of openerp 39951ce27c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130125060526-1sardheh24y8unc0
bzr revid: launchpad_translations_on_behalf_of_openerp-20130126053740-34a73mqkdg04j9s4
bzr revid: launchpad_translations_on_behalf_of_openerp-20130127051008-60htke4mkwclnqfk
bzr revid: launchpad_translations_on_behalf_of_openerp-20130128055849-swluxyrhgvpbmrg2
bzr revid: launchpad_translations_on_behalf_of_openerp-20130129061824-peffot06nnwkgdkp
2013-01-29 06:18:24 +00:00
Frédéric van der Essen e9c6fd0dea [FIX] point_of_sale: correct currency rounding
bzr revid: fva@openerp.com-20130128171800-wobu3q7l5d16qhyq
2013-01-28 18:18:00 +01:00
Frédéric van der Essen 2e3adb48c4 [FIX] point_of_sale: taxes behaviour in invoice generation from pos orders matches the sale order behaviour
bzr revid: fva@openerp.com-20130128143641-51vssmkvxbxcprvn
2013-01-28 15:36:41 +01:00
Niels Huylebroeck 26ea11f21b [FIX] membership: added correction by Olivier Dony to catch errors if the xmlid was deleted by user.
bzr revid: nh@agaplan.eu-20130128140710-4l5fcxesmx1fflwd
2013-01-28 15:07:10 +01:00
Xavier Morel b87102f22e [FIX] Inject user context in all domain and context evaluation
Custom keys from user context may be used in action contexts (not just
e.g. searchview filters). For instance, have a custom key
context_salesteam (in the user model) and an action defining some
search default as a function of the salesteam.

In that case, the action's context evaluation (view.js:~275) will blow
up.

Ensure that does not happen.

Note: eval_contexts already injects user_context in the reduction of
contexts to evaluate. It should be possible to alter the reduction
function to avoid having to inject instance.session.user_context
through pyeval.context(), maybe by _.extend-ing ``result_context``
into ``evaluation_context`` at the *top* of the reduction function
rather than at its bottom?

bzr revid: xmo@openerp.com-20130128130640-ksyvxvx6rlc4820n
2013-01-28 14:06:40 +01:00
Launchpad Translations on behalf of openerp b7f2a1979a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130126053743-gvzlf7q6x7t1epw7
bzr revid: launchpad_translations_on_behalf_of_openerp-20130127051012-oel2zn0owk19akxk
2013-01-27 05:10:12 +00:00
Antony Lesuisse 4e6607c75c [IMP] res.partner missing group by country
bzr revid: al@openerp.com-20130125214027-usu1y7eho9gm9uld
2013-01-25 22:40:27 +01:00
Frédéric van der Essen 86d8c56dce [FIX] point_of_sale: removed obsolete console.log
bzr revid: fva@openerp.com-20130125153405-4n49h8nbmwx2ji3k
2013-01-25 16:34:05 +01:00
Xavier Morel 8e21d2a847 [FIX] avoid storing new admin password in browser history on database creation, courtesy of Holger Brunn
bzr revid: xmo@openerp.com-20130125114331-yabvigl2qjscnzv5
2013-01-25 12:43:31 +01:00
Holger Brunn e02e396925 [IMP] set _push_me: false to fix lp:1091759
bzr revid: hbrunn@therp.nl-20130125110159-b43murb3dzbp9oib
2013-01-25 12:01:59 +01:00
Xavier Morel 4c46187ebf [IMP] set_content_full_screen code, avoid duplications
bzr revid: xmo@openerp.com-20130125100547-ujawyg4ohnrofl3u
2013-01-25 11:05:47 +01:00
Xavier Morel ac550e4239 [FIX] aggregates not being displayed in list o2ms
A template alteration previously used to remove the bottom pager of
listviews in o2ms now matches aggregate field displays.

bzr revid: xmo@openerp.com-20130125085739-isro8w216gpa038a
2013-01-25 09:57:39 +01:00
Launchpad Translations on behalf of openerp 1558bb732d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130125060530-mvl0r5jn2ysf7amp
2013-01-25 06:05:30 +00:00
Launchpad Translations on behalf of openerp 06c7519a62 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130124053457-8qf8k6eb4ukdig0k
bzr revid: launchpad_translations_on_behalf_of_openerp-20130125060437-nlhqe2dilssuf70x
2013-01-25 06:04:37 +00:00
Fabien Meghazi f8aa2a7f33 [FIX] Can't open records in form view from grouped kanban
lp bug: https://launchpad.net/bugs/1103518 fixed

bzr revid: fme@openerp.com-20130124170230-99g7tcb1c6yh8e0o
2013-01-24 18:02:30 +01:00
Frédéric van der Essen 4c1016415c [FIX] point_of_sale: add subtotal to printed ticket
bzr revid: fva@openerp.com-20130124162225-wv0vgody2xtx2hog
2013-01-24 17:22:25 +01:00
Xavier Morel e761ab7454 [FIX] domain returned by onchange
The "new" form engine performs a bunch of conversions on the form arch
from json to xml to text to json again (or something), thus the
``node`` attribute on form fields might be json but it's got no more
relation to the form's own arch (and the fields defined therein).

Meanwhile the domains processing for onchange recursively traversed
the *form*'s arch trying to find a node matching the key it had to set
its @domain to what it was given. It long predates the "new" form
engine, and since it alters the *original* arch not a copy the "new"
form engine broke it. And since that's untested, it's been broken for
a bunch of months (probably).

Fix by looking up the field according to the domain key (in
form.fields), and setting the domain in the node of the field, rather
than the node of the form's arch.

lp bug: https://launchpad.net/bugs/1088447 fixed

bzr revid: xmo@openerp.com-20130124144018-0g3sl2nej2aj6syp
2013-01-24 15:40:18 +01:00
Frédéric van der Essen 8ca77e464b [FIX] point_of_sale: editing values with the numpad works as best as possible for now
bzr revid: fva@openerp.com-20130124140631-oqii3gq402nx14xf
2013-01-24 15:06:31 +01:00