Commit Graph
44169 Commits
Author SHA1 Message Date
Chris Biersbach 728fbdc4a9 [FIX] OPW 578367: hr_timesheet_sheet: Fixed onchange_employee to also return a value for user_id
bzr revid: cbi@openerp.com-20120831104503-vu60ueof5sjm0zwz
2012-08-31 12:45:03 +02:00
Xavier ALT c4bb6b1669 [MERGE] OPW 577140: stock: use float_compare() to check if initial and provided quantity equals - based on UoM rounding
bzr revid: xal@openerp.com-20120827064849-67mo7ln8uyx1z2pl
2012-08-27 08:48:49 +02:00
Xavier ALT d84e7e1c8c [FIX] OPW 577140: stock: use float_compare() to check if initial and provided quantity equals - based on UoM rounding
bzr revid: xal@openerp.com-20120826205954-of9eokcaiok3d7yt
2012-08-26 22:59:54 +02:00
Olivier Dony fc8eeb7eb5 [FIX] res_users: improve behavior when user record is locked during login
Avoid logging an ugly and frightening traceback,
plus properly rollback the failed transaction before
continuing.
This is an extra fix for previous commit
rev. 4049 rev-id odo@openerp.com-20120213183207-45ptopqm0szritgx

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

bzr revid: odo@openerp.com-20120822162921-i6zrik38w1czkamq
2012-08-22 18:29:21 +02:00
Xavier ALT a6214e81a8 [MERGE] BUG 1039664: edi: fix wrong cursor when generating edi_web_url_view
regression from revid: xal@openerp.com-20120820155414-ajy5iyb37uyfsuzo

bzr revid: xal@openerp.com-20120822092221-omje60kw4ieq33y5
2012-08-22 11:22:21 +02:00
Olivier Dony 2dfab34d14 [FIX] document: complete previous fix, restore sort order after filtering
bzr revid: odo@openerp.com-20120822091040-96czcj6aunim29jw
2012-08-22 11:10:40 +02:00
Serpent Consulting Services 4abdb42b11 [FIX] EDI : Correct cursor passed to call,regression fixed caused by http://bazaar.launchpad.net/~openerp/openobject-addons/6.1/revision/6956
lp bug: https://launchpad.net/bugs/1039664 fixed

bzr revid: support@serpentcs.com-20120821214708-z08v9l8ind6usgvh
2012-08-22 03:17:08 +05:30
Xavier ALT 14215b3245 [FIX] OPW 577963: ir_attachment: speed up ir.attachment search for large databases
bzr revid: xal@openerp.com-20120821151052-jemk0b3d7h0z3t82
2012-08-21 17:10:52 +02:00
Xavier ALT 4745bc6864 [FIX] OPW 577963: ir_attachment: speed up ir.attachment search for large databases
bzr revid: xal@openerp.com-20120821150805-484i08b6083eigi1
2012-08-21 17:08:05 +02:00
Olivier Dony c47ac52388 [FIX] OPW 577963: ir.attachment: finish previous fix by restoring original sort order
bzr revid: odo@openerp.com-20120821141605-ejcfki1rh2z4xhdi
2012-08-21 16:16:05 +02:00
Quentin (OpenERP) 7793ec32d3 [MERGE] fixes in account_voucher
bzr revid: qdp-launchpad@openerp.com-20120821140908-jnl2z30fssqi88z7
2012-08-21 16:09:08 +02:00
Olivier Dony f28ac2a94d [FIX] OPW 577963: ir_attachment: speed up ir.attachment search for large databases
Frequents calls to list.remove() were being a bottleneck for large
document lists (100k+). Using a set make remove() calls much faster.

This commit has a corresponding server patch in the core ir.attachment
search method.

bzr revid: odo@openerp.com-20120821131920-j653hvmff78fxxtr
2012-08-21 15:19:20 +02:00
Olivier Dony eec2708f48 [FIX] OPW 577963: ir_attachment: speed up ir.attachment search for large databases
Frequents calls to list.remove() were being a bottleneck for large
document lists (100k+). Using a set make remove() calls much faster.

Also turned a read() into a pure SQL command, as its high-level
features were unnecessary (security checks performed before and
after it anyways) and it was 50% slower than the direct SQL version.

This commit has a corresponding addons patch in order to use a set
instead of a list in the document module as well.

bzr revid: odo@openerp.com-20120821130202-71z83drt347lf45n
2012-08-21 15:02:02 +02:00
Quentin (OpenERP) 4be1d9067c [FIX] account_voucher: in case of supplier vouchers, the accounting entries related to an exchange rate difference must be inverted
bzr revid: qdp-launchpad@openerp.com-20120821122347-cj73raq76dj4ktcv
2012-08-21 14:23:47 +02:00
Quentin (OpenERP) 1d81d63c56 [FIX] account_voucher: round the amount_in_company_currency accordingly to the precision set on the company currency
bzr revid: qdp-launchpad@openerp.com-20120821122042-a78exkcem4p6j2ou
2012-08-21 14:20:42 +02:00
Xavier ALT 1cbf53158c [MERGE] OPW 576491: edi + email_template: correctly generate edi_web_view_url when sending email from mail.compose.message wizard
* edi: improve generation/usage of edi_web_url_view for template rendering

   - wrap edi_web_url_view generation to _edi_get_object_web_url_view() method.
   - automatically add 'edi_web_url_view' to all email.template rendering context

   - introduce LazyEdiWebUrlViewGetter class, to allow resolving record wihtin
     template rendering context - only when necessary. This to prevent generating
     unrequested edi_web_url_view links

 * mail & email_template: allow to modify render_template context

   - add _prepare_render_template_context() method to allow modifying context
     before rendering template.

bzr revid: xal@openerp.com-20120820155601-appnnpp4p3a803nz
2012-08-20 17:56:01 +02:00
Xavier ALT ed1c6351a8 [MERGE] OPW 577014: email_template: for not force mass_mail in mail.compose.message wizard, if user is working on a single resource
bzr revid: xal@openerp.com-20120820155414-ajy5iyb37uyfsuzo
2012-08-20 17:54:14 +02:00
Xavier ALT f6afacfe5d [MERGE] OPW 576484: account: fix invoice residual, avoid adding multiple times residual for same partial reconcile
bzr revid: xal@openerp.com-20120820155257-409j3axs2pvslp2t
2012-08-20 17:52:57 +02:00
Quentin (OpenERP) 597f723c28 [FIX] account_voucher: supplier payment, accounting entry generation
bzr revid: qdp-launchpad@openerp.com-20120820123021-sombshfgl2bpp2z9
2012-08-20 14:30:21 +02:00
Xavier ALT 2ac69f518d [FIX] edi: fix wrong if conditions
bzr revid: xal@openerp.com-20120820101153-ca5tnbzhume60bzi
2012-08-20 12:11:53 +02:00
Xavier ALT bd5bc1ae18 [FIX] edi: improve generation/usage of edi_web_url_view for template rendering
- wrap edi_web_url_view generation to _edi_get_object_web_url_view() method.
  - automatically add 'edi_web_url_view' to all email.template rendering context

  - introduce LazyEdiWebUrlViewGetter class, to allow resolving record wihtin
    template rendering context - only when necessary. This to prevent generating
    unrequested edi_web_url_view links

bzr revid: xal@openerp.com-20120820083456-teqk4kdqe8mv59p8
2012-08-20 10:34:56 +02:00
Xavier ALT dc7ed565d6 [FIX] email_template: allow to modify render_template context
- add _prepare_render_template_context() method to email.template to allow
    modifying context used for rendering template.

  - override mail.compose.message wizard to use email.template's
    _prepare_render_template_context instead of mail's one.

bzr revid: xal@openerp.com-20120820083047-a52nj5e113c0lniz
2012-08-20 10:30:47 +02:00
Xavier ALT 9f7d2c697a [FIX] mail: improved render_template context preparation
- rename '_pre_render_template' to '_prepare_render_template_context'
  - _preare_render_template_context return a new context, which is distinct
    from original method context - as we want to control more precisely what
    context will be available to render_template().

bzr revid: xal@openerp.com-20120820081911-34h2zlzcrspfpyz6
2012-08-20 10:19:11 +02:00
Xavier ALT 8d64d9fabc [FIX] email_template: when composing email on unique resource force non mass_mail mode
bzr revid: xal@openerp.com-20120820075641-0cqi0r5jkgz0dd02
2012-08-20 09:56:41 +02:00
Olivier Dony 6b18295b80 [MERGE] OPW 578181: fix missing column in hr.holiday list, making group by date_from fail miserably
bzr revid: odo@openerp.com-20120817135555-clyc6lxnnx7zjbw0
2012-08-17 15:55:55 +02:00
Hemendra Paregi (Open ERP) 63884bc726 [FIX] hr_holiday:Leave Allocation Request Group By Start_Date Give Error'(Case:578181)
bzr revid: hpa@tinyerp.com-20120817103050-4e3au9wm2m09pare
2012-08-17 16:00:50 +05:30
Xavier ALT fe4cc98be2 [MERGE] OPW 574507: mrp: 'change qty' wizard on MO have to also update the related picking list stock move quantity
bzr revid: xal@openerp.com-20120817083610-pzmdyrczmw4asocb
2012-08-17 10:36:10 +02:00
Xavier ALT 3cd26cd0e9 [MERGE] OPW 576461: account: on invoice move creation, correctly compute quantity and amount currency when journal is configured for grouping
bzr revid: xal@openerp.com-20120817073309-3r3r1eq4o39lwkt1
2012-08-17 09:33:09 +02:00
Launchpad Translations on behalf of openerp 16ec6f67dd Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120814052054-bx2tnsaore0gfpgq
bzr revid: launchpad_translations_on_behalf_of_openerp-20120815051428-du6l7jjry6vs3c3u
bzr revid: launchpad_translations_on_behalf_of_openerp-20120816051052-slbzroi4qb1z52y7
bzr revid: launchpad_translations_on_behalf_of_openerp-20120817051219-1mhj7vyaljydnn8d
2012-08-17 05:12:19 +00:00
Olivier Dony 29e4998075 [MERGE] OPW 576295: ir_attachment: fix regression/typo introduced in r.4069
count is explicitly set to False in order to
filter the results coming from upstream before
doing the actual count

bzr revid: odo@openerp.com-20120816154020-5s6wbwfb5l2xsnyv
2012-08-16 17:40:20 +02:00
Olivier Dony 148d897804 [MERGE] OPW 577592: form view - properly flag m2o fields as dirty when removing the value
bzr revid: odo@openerp.com-20120814145350-cyqkzsmy8l0mvwfd
2012-08-14 16:53:50 +02:00
Olivier Dony 6d2ad2e217 [FIX] OPW 576675: base_crypt: avoid causing TransactionRollbackErrors after each registry reload
See individual commit message for more info

bzr revid: odo@openerp.com-20120813151648-gvxggkz0dnj3y6ax
2012-08-13 17:16:48 +02:00
Olivier Dony 468ce1b127 [FIX] base_crypt: safer initial crypting of user passwords
Avoid locking the full users table unless there is
really at least one user record to crypt.
Avoid using a separate cursor that could create a deadlock
or TransactionRollbackError in the main init() transaction.

bzr revid: odo@openerp.com-20120813145200-cc0gfzz04aundxhw
2012-08-13 16:52:00 +02:00
Olivier Dony fb346a6de3 [FIX] base_crypt: avoid table lock on res_users during simple auth check
Performing a full table lock is potentially very slow
due to the number of tables holding foreign keys towards
res_users, so we should avoid doing that for simple
auth check() calls. The point was only to avoid failing
the update of the last login timestamp, which we don't
actually care much about. So we can replace that with a
simple SELECT FOR UPDATE NOWAIT on that specific user
row and and skip the update in case the LOCK was
not granted

bzr revid: odo@openerp.com-20120813143552-3g3z0q9n1iox8a0b
2012-08-13 16:35:52 +02:00
Quentin (OpenERP) ba0de3350a [MERGE] l10n_be fixes
bzr revid: qdp-launchpad@openerp.com-20120813120228-00j6e539rq0nr7ab
2012-08-13 14:02:28 +02:00
Quentin (OpenERP) 37a022f647 [FIX] l10n_be: amounts in xml file MUST have 2 digits after the comma (43.5 isn't valid)
bzr revid: qdp-launchpad@openerp.com-20120813102610-tdzhimus2c4h6j3a
2012-08-13 12:26:10 +02:00
Launchpad Translations on behalf of openerp f71e64b4cd Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120811055952-typ7197zyc2v5scp
bzr revid: launchpad_translations_on_behalf_of_openerp-20120812045640-zto7bzgboyhpb7cr
bzr revid: launchpad_translations_on_behalf_of_openerp-20120813055320-1dinuvvl8tfr9b2p
2012-08-13 05:53:20 +00:00
Olivier Dony 004079c5d9 [MERGE] mail.thread: fix message_process to avoid duplicate deliveries
Due to a programming error in the code, any message that had
several values in the References header create as many
duplicate copies of the message as they were previous
messages in the discussion.
Also cleaned up and simplified the code.

bzr revid: odo@openerp.com-20120810123753-c00y4l1276b8guqb
2012-08-10 14:37:53 +02:00
Olivier Dony dc9e734a6d [FIX] mail.thread: fix message_process to avoid duplicate deliveries
Due to a programming error in the code, any message that had
several values in the References header create as many
duplicate copies of the message as they were previous
messages in the discussion.
Also cleaned up and simplified the code.

bzr revid: odo@openerp.com-20120810114838-k273zok10911l6ij
2012-08-10 13:48:38 +02:00
Xavier Morel 1e9414c5aa [FIX] inability to select an autocompletion via mouse in an m2o in an editable o2m list
Problem due to over-eager form autosave.

Pretty straight backport of 
revid:xmo@openerp.com-20120808151843-et2r8hplxxyqc7v6

bzr revid: xmo@openerp.com-20120810090955-gpp3kg2dahck5um5
2012-08-10 11:09:55 +02:00
Launchpad Translations on behalf of openerp a7c185322d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120808051435-7ovg1bmd1gb6s3hz
bzr revid: launchpad_translations_on_behalf_of_openerp-20120809052629-eyd2kea4cdp97s1t
bzr revid: launchpad_translations_on_behalf_of_openerp-20120810051904-awl3psagj1aelg62
2012-08-10 05:19:04 +00:00
Xavier ALT de9089dc64 [MERGE] OPW 576898: stock: when changing stock.move product lot, do not crash if user didn't fill the product field
bzr revid: xal@openerp.com-20120807100435-x2k5ux8nmfetdndi
2012-08-07 12:04:35 +02:00
Launchpad Translations on behalf of openerp 3d40f09971 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120728052243-304xink9qklo9o5k
bzr revid: launchpad_translations_on_behalf_of_openerp-20120730051020-apk36tysy5q3bm4o
bzr revid: launchpad_translations_on_behalf_of_openerp-20120731052313-ve6sr64fp4nix7se
bzr revid: launchpad_translations_on_behalf_of_openerp-20120801052836-fa0ul4g04zhdtm7o
bzr revid: launchpad_translations_on_behalf_of_openerp-20120802052312-by1kdzs61ggz0m6j
bzr revid: launchpad_translations_on_behalf_of_openerp-20120803062010-c8w9wo8wa1hy6bfb
bzr revid: launchpad_translations_on_behalf_of_openerp-20120804054337-6q3qsbusftik8fmx
bzr revid: launchpad_translations_on_behalf_of_openerp-20120805051428-kkj863b5so1l6tfh
bzr revid: launchpad_translations_on_behalf_of_openerp-20120806051827-qkugkbqclpleiaj4
bzr revid: launchpad_translations_on_behalf_of_openerp-20120807063100-d1if2qgn87k40gnt
bzr revid: launchpad_translations_on_behalf_of_openerp-20120804054410-juo7el8gtahcg2jx
bzr revid: launchpad_translations_on_behalf_of_openerp-20120805051508-lu2oz4ii9aii9pvh
bzr revid: launchpad_translations_on_behalf_of_openerp-20120806051924-5x5r1x93q2bb9qwp
bzr revid: launchpad_translations_on_behalf_of_openerp-20120807063131-zwlmwom0ydpjsl68
2012-08-07 06:31:31 +00:00
Launchpad Translations on behalf of openerp c9273bc1b5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120804054416-fmxi0yi2pzpbxyzc
bzr revid: launchpad_translations_on_behalf_of_openerp-20120805051514-15yf7hmi2vrk2nbp
bzr revid: launchpad_translations_on_behalf_of_openerp-20120806051930-3n73m929jlj9l237
2012-08-06 05:19:30 +00:00
Mohammed Shekha b77a42a714 [FIX]Fix the issue of many2one did not became dirty when we remove the value from many2one field.
bzr revid: msh@openerp.com-20120804082445-yv0v9ygw1cm4d83f
2012-08-04 13:54:45 +05:30
Olivier Dony 8ad123ce71 [MERGE] project.issue: actually use the Reply-To address of the project when sending out messages
bzr revid: odo@openerp.com-20120803143226-idlpx997udur4j6h
2012-08-03 16:32:26 +02:00
Xavier Morel 003f450530 [FIX] correctly pass context to import_data so e.g. defaults from the action can reach write/update
lp bug: https://launchpad.net/bugs/997025 fixed

bzr revid: xmo@openerp.com-20120803142226-22jqmy65i9v478mf
2012-08-03 16:22:26 +02:00
Olivier Dony a48431b0be [FIX] project.issue: actually use the Reply-To address of the project when sending out messages
bzr revid: odo@openerp.com-20120803131406-vh5migr9bb5ij29y
2012-08-03 15:14:06 +02:00
Xavier Morel 6f002dddd6 [FIX] OPW 575691: parse server datetime manually
datejs's parser completely fails over itself during CST/EST transition

bzr revid: xmo@openerp.com-20120803124956-e9zwqfm7l5wmvi8l
2012-08-03 14:49:56 +02:00
Launchpad Translations on behalf of openerp c8f8e0d43f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120803062138-267wqwowxgoj0id8
2012-08-03 06:21:38 +00:00