Commit Graph

74659 Commits

Author SHA1 Message Date
Olivier Dony 5add0d31f3 [IMP] hr.employee: default search should includes work emails (useful e.g. for trigrams)
bzr revid: odo@openerp.com-20131023162807-qjw68383a7612op6
2013-10-23 18:28:07 +02:00
Christophe Simonis d7f9722a83 [FIX] web: bind RouteMap using environ to allow correct redirections
bzr revid: chs@openerp.com-20131023162646-9t8iu2okkddg56yi
2013-10-23 18:26:46 +02:00
Olivier Dony b1c221e9c4 [FIX] hr: notification about new employee joining should only be sent to employees (base.group_user)
In the future we should directly use the
`Whole Company` mail.group, but this does
not work well enough now, as recipients
will not be able to directly go to the
employee record (e.g. to follow her)

bzr revid: odo@openerp.com-20131023155340-z2e78xo3vb7yq008
2013-10-23 17:53:40 +02:00
Martin Trigaux eee78a1803 [FIX] stock_invoice_directly: if picking is not done while doing partial picking, create invoice on this backorder instead of the current picking
bzr revid: mat@openerp.com-20131023153432-o7p90h9vmsp04ujb
2013-10-23 17:34:32 +02:00
Martin Trigaux 20b9015339 [FIX] stock_invoice_directly: if picking is not done while doing partial picking, create invoice on this backorder instead of the current picking
lp bug: https://launchpad.net/bugs/1060259 fixed

bzr revid: mat@openerp.com-20131023151342-328egar30upq5d5u
2013-10-23 17:13:42 +02:00
Martin Trigaux d2042182b4 [FIX] product_visible_discount: don't compute negative discount, also prevent zero division
bzr revid: mat@openerp.com-20131023132646-8l760d4swsq42zzo
2013-10-23 15:26:46 +02:00
Thibault Delavallée e14de7a637 [FIX] Fixed previous commit, car go to len of the string.
bzr revid: tde@openerp.com-20131023123839-gvf9ugft2b2xmo9a
2013-10-23 14:38:39 +02:00
Thibault Delavallée 7f61d18ef9 [CLEAN] tools: cleaned modified code
bzr revid: tde@openerp.com-20131023122744-3b3hayy4f8ss2bjx
2013-10-23 14:27:44 +02:00
Thibault Delavallée 833c1f2072 [IMP] view_form: fieldstatus: deprecated folded on widget
bzr revid: tde@openerp.com-20131023120804-vx7etkzewkgx9sk0
2013-10-23 14:08:04 +02:00
Thibault Delavallée 3a8b57ddc5 [FIX] project: seems weird to be able to work on write_date without using it
bzr revid: tde@openerp.com-20131023115525-1wu68w3fcljj37cs
2013-10-23 13:55:25 +02:00
Thibault Delavallée 374f3c9c22 [REV] hr_recruitment: continuing reverting most changes, reparing analysis views.
bzr revid: tde@openerp.com-20131023115505-k4eqt1jo5w0ruo4o
2013-10-23 13:55:05 +02:00
Martin Trigaux 80e142cca3 [FIX] product_visible_discount: don't change the behaviour of account.invoice to be consistent with the normal behaviour (don't use pricelists)
bzr revid: mat@openerp.com-20131023114233-74rtyy5vdsdcy4cl
2013-10-23 13:42:33 +02:00
Thibault Delavallée b7a7cf5fb9 [MERGE] Sync with saas-2
bzr revid: tde@openerp.com-20131021104729-8c39qu7pr431cb51
bzr revid: tde@openerp.com-20131023113825-u1uqcu07bt6i17rk
2013-10-23 13:38:25 +02:00
Thibault Delavallée d4ce734a3b [MERGE] Sync with saas-2
bzr revid: tde@openerp.com-20131023113815-hldc1ouglq9hhgcu
2013-10-23 13:38:15 +02:00
Thibault Delavallée d56d97ec62 [REV] project: like before for CRM (see previous commit) reverted
most changes about stages.

Override in project_mrp is back therefore.

bzr revid: tde@openerp.com-20131023113716-jw8jh1jvn4dgpcyr
2013-10-23 13:37:16 +02:00
Denis Ledoux 3279b24128 [MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 3748 rev-id: dle@openerp.com-20131023103308-18pj2gqq3imrcir7
bzr revid: dle@openerp.com-20131023110926-tc2n3oqg0l2ga138
2013-10-23 13:09:26 +02:00
Thibault Delavallée 8ce54029cf [REV] crm: reverted most changes about stages for this branch.
We keep fold, because it has a meaning in kanban view, and is kind of
'drop' stage, for won / lost / cancel / dead.

New stage is now the stage with the lower sequence, not necessarily the
stage with sequence 1. Note that this could break the _track because it
checks for stages with sequence <= 1; however with OpenERP values it
works fine. In some specific stage configuration, some subtypes could
not be tracked precisely.

bzr revid: tde@openerp.com-20131023100429-a3vfxi5zkn18v6qq
2013-10-23 12:04:29 +02:00
Launchpad Translations on behalf of openerp 8d046c15d4 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131023052221-vwbblwzow9zkbd7l
2013-10-23 05:22:21 +00:00
Christophe Simonis c58f13c8e9 [FIX] im: do not search users before start polling. This avoid a race condition for im.user creation
bzr revid: chs@openerp.com-20131022171010-ilfvqced6q8qta3h
2013-10-22 19:10:10 +02:00
Denis Ledoux 4e0530f16c [FIX]web: test testing the customer filter save was wrong, was using wrong method text() instead of val() to set the filter name
bzr revid: dle@openerp.com-20131022165318-2imkhgb6iecalbbi
2013-10-22 18:53:18 +02:00
Denis Ledoux 752341f0cb [FIX]web: filter name input for custom filters in search dropdown is now required
bzr revid: dle@openerp.com-20131022162519-u03cn5k5od8jg6ka
2013-10-22 18:25:19 +02:00
Martin Trigaux 391e45b34e [REV] l10n_fr: revert changes to rev 8409
bzr revid: mat@openerp.com-20131022143044-67uqzvvbois9150k
2013-10-22 16:30:44 +02:00
Thibault Delavallée 57c11338ae [IMP] tools: mail: added a protection in a string.find, could have a None argument
bzr revid: tde@openerp.com-20131022142908-sol44xaprx1b0b0a
2013-10-22 16:29:08 +02:00
Thibault Delavallée af29bf7bc9 [FIX] tools: mail: fixed shortening of html content.
Fixed length computation of text in html nodes: multiples successive
whitespaces are considered as one whitespaces; better truncate position
when adding a read more link; now always protect words (placed after
the first word that exceeds the shorten position); pre nodes are preserved
about whitespaces; when the read more link should go into a quote, it instead
goes at the end of the first parent node not being quoted instead of at
a wrong position.

Added tests for shorten position.

bzr revid: tde@openerp.com-20131022135037-igauu2kkglvdrqu7
2013-10-22 15:50:37 +02:00
Christophe Simonis 91fdcc63a7 [FIX] board: correct /board/add_to_dashboard to use new @route decorator and request object
bzr revid: chs@openerp.com-20131022131049-lb6mva47y0i3kpvq
2013-10-22 15:10:49 +02:00
Christophe Simonis d97bd2bce2 [FIX] web: avoid useless redirection when in mono db mode
bzr revid: chs@openerp.com-20131022104145-janmthq1r6sibm2e
2013-10-22 12:41:45 +02:00
Martin Trigaux 26256ee55a [FIX] account: computation of debit/credit on partner is based on past year moves instead of reported entries, courtesy of Nhomar Hernandez (vauxoo)
This change allows to have consistency in values instead of depending on when the fiscal year is closed and when the entries are generated

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

bzr revid: mat@openerp.com-20131022095301-tigk2ixheljvqxwc
2013-10-22 11:53:01 +02:00
Martin Trigaux cba3a4114e [FIX] account: compute debit credit based on previous year to have consistent result all the time, courtesy of Nhomar (vauxoo)
bzr revid: mat@openerp.com-20131022091925-mqj2etd71guplhm7
2013-10-22 11:19:25 +02:00
Martin Trigaux a2e0acf7d4 [REV] revert partner.py to revision 9043 (error cf lp:1219381 comment #11)
bzr revid: mat@openerp.com-20131022091728-hebgvt1m26y9wjot
2013-10-22 11:17:28 +02:00
Martin Trigaux 0e28dc6b62 [MERGE] sync with 7.0
bzr revid: mat@openerp.com-20131022091319-dzpe0i8936alq22y
2013-10-22 11:13:19 +02:00
Launchpad Translations on behalf of openerp 1433c5fc0b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131022051531-skzykboyadt54zs1
bzr revid: launchpad_translations_on_behalf_of_openerp-20131018061132-rzws6tazubx0zysd
bzr revid: launchpad_translations_on_behalf_of_openerp-20131020050513-83ofvmdau85nhc89
bzr revid: launchpad_translations_on_behalf_of_openerp-20131022051535-g7vpsdx91u9d7zbs
2013-10-22 05:15:35 +00:00
Martin Trigaux ffc27c288f [FIX] hr_timesheet: cost and revenues of parent analytic accounts aggregate from child analytic accounts
bzr revid: mat@openerp.com-20131021160326-62hpxyypgu70v6w2
2013-10-21 18:03:26 +02:00
Olivier Dony fadd46c5cb hr_holidays: force refuse.@flow_stop to False to correctly update existing databases
bzr revid: odo@openerp.com-20131021155120-vn63of44ya0od9e2
2013-10-21 17:51:20 +02:00
Christophe Simonis 3e04036aa5 [MERGE] forward port of branch saas-1 up to revid 8794 chs@openerp.com-20131021141431-5bdk9waai17julkb
bzr revid: chs@openerp.com-20131021145334-i9gtbk52mre1bu1x
2013-10-21 16:53:34 +02:00
Olivier Dony 6752a298ec [IMP] ir.translation: `module` field is useful for admin/debugging
bzr revid: odo@openerp.com-20131021143641-eflzertf2r7hap44
2013-10-21 16:36:41 +02:00
Christophe Simonis 9a775cd3f5 [MERGE] forward port of branch 7.0 up to revid 9535 odo@openerp.com-20131021124748-x4jnibwyab4gam23
bzr revid: chs@openerp.com-20131021141431-5bdk9waai17julkb
2013-10-21 16:14:31 +02:00
Olivier Dony 6a3683f116 [FIX] l10n_fr: 2014 tax update patch has removed obsolete templates, causing an error at module update
Due to the relationship between fiscal position
templates and tax templates, the removal of
obsolete tax templates may crash if the corresponding
fiscal positions are not deleted before.
In a recent l10n_fr patch [1] a number of
templates disappeared, which causes an error during
subsequent updates on databases where the obsolete
templates are still present.
      
As a workaround, we can force a deletion of
all fiscal position templates before loading
them. This is relatively safe because the templates
are not connected to live data, and will be
re-created during the update (except for the
obsolete ones which will be gone forever).

[1] addons 7.0 rev 9515 rev-id: odo@openerp.com-20131010114424-atzr3bl9e9diir2g

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

bzr revid: odo@openerp.com-20131021124748-x4jnibwyab4gam23
2013-10-21 14:47:48 +02:00
Thibault Delavallée 1322839430 [IMP] crm: boards: improved domains according to the new closed attribute on stages
bzr revid: tde@openerp.com-20131021113452-qs0ri511hcxhetmw
2013-10-21 13:34:52 +02:00
Thibault Delavallée 48d424511a [REV] crm_lead_view: mark won/lost buttons are back, but invisible, to be able to be removed without breaking inheriting views
bzr revid: tde@openerp.com-20131021113433-hzdwid0h429xywac
2013-10-21 13:34:33 +02:00
Thibault Delavallée 0d51bd2c3a [MERGE] Sybnc with saas-2 branch
bzr revid: tde@openerp.com-20131021104937-kmtahyp59xr1vlov
2013-10-21 12:49:37 +02:00
Thibault Delavallée 878ceca988 [REV] stages: removed bar_fold and bar_color fields.
After some experiments, having colors does not seem to give an
usable result on statusbar widget. Indeed we need to have the
current stage highlited, and maybe something to tell that some
stages have a special meaning and/or are the end of the pipe.
The closed field already gives that meaning.

Moreover the issue with the statusbar widget is that it indicates
state and action. Having both dimensions with colors / icons
is quite difficult to understand. We therefore stand on a simpler
version of the widget, only with stages and the current stage
highlighted.

bzr revid: tde@openerp.com-20131021104912-8ybhw0svdoghheh3
2013-10-21 12:49:12 +02:00
Thibault Delavallée a28c14a8cc [REV] StatusField: reverted changes about bar widget color and thing slike that.
bzr revid: tde@openerp.com-20131021104708-vrax9zhpjwyjq6ns
2013-10-21 12:47:08 +02:00
Martin Trigaux 6ba45e5cbf [FIX] procurement: change SQL query to be compatible with both postgres 8.4 and 9.3
bzr revid: mat@openerp.com-20131021095735-yz9pb5pphfdgl44j
2013-10-21 11:57:35 +02:00
Launchpad Translations on behalf of openerp 16fd47c3e1 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131019052801-ouw53m70o0eabxnv
bzr revid: launchpad_translations_on_behalf_of_openerp-20131020050509-ar8koyz20p82rdjq
bzr revid: launchpad_translations_on_behalf_of_openerp-20131021045723-bkmqoimoalwb3lzq
2013-10-21 04:57:23 +00:00
Olivier Dony 9227f3d5fc [MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 4913 rev-id: odo@openerp.com-20131018145638-0evfafu4yqg2itia
bzr revid: odo@openerp.com-20131018154805-axo5jrsbyd24qwle
2013-10-18 17:48:05 +02:00
Olivier Dony b361ec0151 [FIX] base.import.module: this wizard is disabled and should be dropped entirely in trunk
Kept the model for backwards compatibility until then

bzr revid: odo@openerp.com-20131018145638-0evfafu4yqg2itia
2013-10-18 16:56:38 +02:00
Thibault Delavallée 62e88a16e4 [FIX] mail: mail_mail: fixed url embedded in notification emails.
When having emails not linked to a notification (mail.notification = False)
the link is generated without any clue about the source record.
However we can try to use model and res_id defined on the mail_mail record
to correctly format a link.

Added support of model and res_id in message_redirect_action. This method
now can redirect based on a message_id, or based on model / res_id.

bzr revid: tde@openerp.com-20131018144924-j4f22hen3lsua7cb
2013-10-18 16:49:24 +02:00
Thibault Delavallée 2cb3b0f382 [FIX] sale_crm: fixed view inheritance
TODO: re-add the button in invisible

bzr revid: tde@openerp.com-20131018144448-hpbds5oobcqpr1uv
2013-10-18 16:44:48 +02:00
Martin Trigaux 1a9297aaed [FIX] account: correct test on closing fiscal year to fail with error message and set the test to the previous year instead of next year (makes more sense)
bzr revid: mat@openerp.com-20131018140424-yyfc561nisym2gem
2013-10-18 16:04:24 +02:00
Martin Trigaux 7d3e01bea3 [FIX] account: go green test\!, also set the test to previous year
bzr revid: mat@openerp.com-20131018135925-x2n1yw96973srmk1
2013-10-18 15:59:25 +02:00