Commit Graph
99161 Commits
Author SHA1 Message Date
Raphael Collet 9699f510e4 [FIX] res_users: fix wrong index when parsing m2m commands 2015-08-05 14:35:42 +02:00
Denis Ledoux 91417516ae [FIX] web_calendar: use of selection fields as color filters
Using a selection field as color filters in a calendar view
had as effect to display the second letter of the state name
(The state name string, index 1)
as filter, instead of the full state name.

Besides, the colors of the filters did not match.

e.g., Sales > Sales > Sales Orders > Calendar View

opw-646486
2015-08-05 14:25:45 +02:00
Ajay Patel 544be8b873 [IMP]qweb:solve t-field integer issue while render on frontend. 2015-08-05 14:07:53 +02:00
Goffin Simon 28ff2e9585 [FIX] board: edit an event
if parent of the search view is destroyed, the title is undefined.

opw:644769, 646575
2015-08-05 13:57:29 +02:00
Christophe Simonis abb4b5d66a [FIX] web: force request.uid for /web route 2015-08-05 13:39:48 +02:00
Christophe Simonis 52f7f0b126 [FIX] web: /web route should be reachable in non-monodb mode 2015-08-05 13:01:33 +02:00
Christophe Simonis 245f45d03f [FIX] website_forum: route to ask a question should be available in GET 2015-08-05 13:01:33 +02:00
Arthur Maniet 77878da066 [FIX] barcodes: key repeat prevention was mistakenly activated
TIL: The $(callback) function passes the jquery object to the callback
2015-08-05 12:45:02 +02:00
Christophe Simonis 498147fbbf [FIX] point_of_sale,web,website_{blog,forum,sale}: remove useless method login_redirect() 2015-08-05 12:01:12 +02:00
Christophe Simonis b13553d2b6 [FIX] web, base: POST requests handling
POST requests on routes with auth="user" are now correctly handled when
the user is not connected. Request data (form and files) are stored in
the session. Once the user is logged, redirect her to a specific route
that will reprocess the original POST request.
2015-08-05 12:01:12 +02:00
Thomas Groutars 6f4738e298 [FIX] Allow to write on several companies 2015-08-05 11:52:49 +02:00
qsm-odoo f330d35324 [FIX] web_calendar: double scrollbar + hour format
* Change 12A -> 11A in 12am -> 11pm
* Compute calendar height so that it fits the web client content height
2015-08-05 11:48:40 +02:00
Damien Bouvy e4a93776b3 [FIX] payment_ogone: s2s feedback controller does not need authentication and function name error no longer prevents tx validation 2015-08-05 11:42:24 +02:00
Valerie Pirenne a067129d4d [IMP] lunch: account balance on new order view 2015-08-05 10:43:44 +02:00
Nicolas Martinelli f26b94fd7d [FIX] sale: filter taxes to keep the ones applying to the partner company
The problem originally arises in the frontend (eCommerce). In this case, it is
necessary to switch the user id to the SUPERUSER_ID in order to be allowed to
create a SO. This is done in the method sale_get_order in the module
website_sale. The consequence is that in a multicompany configuration, all taxes
of the product will be retrieved and applied in the frontend.

This fix filters the taxes retrieved to keep only the ones which apply to the
company of the partner, when the user id is SUPERUSER_ID.

opw-645258
opw-645915
2015-08-05 10:39:56 +02:00
Christophe Matthieu 4474b5ac70 [IMP] web_editor: display not found snippets template warning message 2015-08-05 10:31:15 +02:00
Christophe Matthieu 426baf3710 [FIX] mass_mailing: move website FieldTextHtmlPopupContent template in mass_mailing 2015-08-05 10:31:15 +02:00
Goffin Simon 663be8118f [FIX] account: tax sign in supplier invoice
When changing manually the the amount of tax in supplier invoice,
the tax sign of the tax must be kept.

opw:645691
2015-08-05 10:30:11 +02:00
Nicolas Martinelli 6f355623f0 [IMP] account_cancel: better handling of bank statement cancellation
Before this addition, cancelling a bank statement line was allowed even if the
bank statement was confirmed. However, when the bank statement is confirmed, it
is not possible to reconcile it afterwards. The consequence is that is was not
possible to reconcile this bank statement line without cancelling the whole
bank statement, and therefore forcing the user to do the complete
reconciliation process again.

With this addition, it is not possible to cancel a bank statement line if the
corresponding bank statement is confirmed. However, we offer the user the
possibility to reset the bank statement to draft through a new button. This new
button will only change the state of the bank statement, and will not modify
the state of the associated bank statement lines. The consequence is that the
user will be able to first set the bank statement to draft, then cancel the
bank statement lines he wants, and finally launch the reconciliation process
only on the lines which were cancelled.

opw-645903
2015-08-05 08:18:21 +02:00
odoo-tac e7e4283a57 [FIX] hr_timesheet: magic values when is_timesheet
Timesheets entries could only be created with the help of the magic
default_is_timesheet=1 set in the context, thus in views.

To allow manual creation or import of timesheets by setting is_timesheet=True
directly, the values of invisible but required fields will be computed at
create insted of default_get.
2015-08-04 22:48:58 +02:00
Antony Lesuisse a7dee722cc [IMP] payment: acquirer from view
- Split credentials from technical configuation moved to technical feature.
- Fix website_published button
2015-08-04 21:34:13 +02:00
Denis Ledoux 4d9cef5412 [FIX] google_calendar: Google doesn't allow wrong attendee emails
Odoo allows bad formatted emails for partners (and attendees).
Google doesn't.
Therefore, upon sync, if the email is wrong, we do
not send it to Google, to avoid Google being mad at us.

opw-646369
2015-08-04 18:54:58 +02:00
Denis Ledoux dd500b34b7 [FIX] google_calendar: log google bad requests reason
For debugging easyness.
For instance, when trying to sync an event with an attendee
with a wrong email, google failed, it's wasn't easy
to know why from the logs

It is now a bit easier.

opw-646369
2015-08-04 18:54:58 +02:00
Denis Ledoux caf42af596 [FIX] website_slides: config default values method
By convention, configuration wizards inheriting
from `res.config.settings` must define
their default values methods by
`get_default_`
not simply by
`get_`.

If not, the default values will simply not be loaded.
Therefore, the default value for the `Google Doc Key` field
was not loaded in the Website settings
(Settings > Configuration > Website Settings).

opw-646659
2015-08-04 17:56:02 +02:00
Laetitia Gangloff a56319c390 [FIX] l10n_be_coda: Add date_invoice in demo data
To be sure than the invoice is integrated into the create fiscal year in demo data
Closes #7723
2015-08-04 17:18:38 +02:00
Ronak Baxi f8efc8a6c3 [FIX] payment: typo in track_visibility 2015-08-04 17:03:51 +02:00
Olivier Dony c96174da5f [MERGE] Forward-port of latest bugfixes from saas-3 up to 733cb3e76f 2015-08-04 15:22:49 +02:00
Denis Ledoux be98d30e79 [FIX] website_mail: advanced email features button snippet colors
Due to the fact the background color was hardcoded, it
wasn't possible to edit the colors of the button link
with the website editor wysiwyg

opw-646655
2015-08-04 15:18:18 +02:00
Olivier Dony 733cb3e76f [MERGE] Forward-port from 7.0 up to 8b3d69a0d7 2015-08-04 15:17:51 +02:00
Martin Trigaux 83f968da5b [FIX] base: typo
Courtesy of Mathias Neef
2015-08-04 13:54:46 +02:00
Aaron Bohy 4cd0010ac8 [REF] sale_crm: stat_button: remove unnecessary classname 2015-08-04 12:16:17 +02:00
Aaron Bohy 37f5875ea5 [FIX] web: form_view: WidgetButton
Buttons that are not stat buttons couldn't use font-awesome icons, as it
automatically fallbacked on the icons in /web/static/src/img/icons. This was
the case for several templates where the icon thus couldn't be found as it was
looking for a font-awesome icon in the icons folder (e.g. fa-cog.png).

Also cleans some unused less rules defined on the stat buttons in
enterprise_compatibility.less
2015-08-04 12:16:17 +02:00
Aaron Bohy 5ebcc01fda [REF] *: search view: remove deprecated icon from filters 2015-08-04 12:16:16 +02:00
Daniel Reis 8b3d69a0d7 [FIX] orm: performance of regex to check search order spec
This regex is used for a quick sanity check of
the order_spec in `search(order=<order_spec>)`.
Because it was build on the repetition of a
group ending with a series of optional patterns,
it could cause expensive backtracking when the
order spec did not actually match the regex
(the regex engine was trying all possible ways
to split the groups)

Forcing the repeating group to either end
with a comma or the end of the string prevents
prohibitive backtracking, while being even
more restrictive with regard to the syntax of
the order spec.

Closes #7755
2015-08-04 11:45:01 +02:00
Nicolas Lempereur 212854dead [FIX] point_of_sale: unknow customer not in saas-6
Commit 96f0c28 contained changed code in saas-6 (widget.order
becomes order) and the string Unknown Customer is not anymore
present.

So the commit is useless in saas-6 and higher.

related to forward port d383598
2015-08-04 10:05:36 +02:00
Aaron Bohy a41cbba8f1 [FIX] crm,doc: remove whitespace in view_mode
Fixes 4 actions where a whitespace was inserted in the view_mode, resulting in
an unknown view_mode (' graph') in the view_switcher.

Also updates the doc to prevent people to think they can insert whitespaces in
the view_mode definition.
2015-08-04 08:20:12 +02:00
Aaron Bohy 4b69b1ec5a [FIX] web_gantt: render gantt diagram in DOM
Action and view managers render theirs elements in document fragments, and
append them to the DOM once they are ready. The dhtmlxgantt v.1.3 requires that
the gantt diagram in rendered in the DOM. This rev. is an hack to ensure that
this is always the case.

Note that this is no more a requirement with dhtmlxgantt v.3.1.
2015-08-04 08:20:12 +02:00
Olivier Dony df002518ee [FIX] models: access error due to prefetch of indirectly referenced records
Complements commit af9393d505
in light of commit 62b0d99cfe,
to really have the correct effect.

When the prefetching failed due to the presence of
extra records in the cache (for which the access is denied),
the `read` operation was indeed retried. However the
result was not stored in the cache because the cache
already held a FailedValue (automatically added when the
prefetch failed).
2015-08-04 00:00:31 +02:00
Kiril Vangelovski d1d4688521 [FIX] analytic_user_function: hr.timesheet user onchange
Make additional argument to on_change_user_id in analytic_user_function
optional so that it wont break other modules.
2015-08-03 23:30:43 +02:00
Mohammed Shekha 4d1029d7d0 [FIX] ir_sequence: proper warning for zero increment 2015-08-03 23:10:42 +02:00
Joren Van Onder 7b32ca8452 [IMP] hr_timesheet: get rid of the "Service" product
The existence of the "Service" product caused issues when users would
eg. remove this product.

We allow user to create timsheets even if they dont have an employee associated
or if the product is missing on the employee. Those timesheets can still be
invoiced using the force product field of the wizard.

product_id is left blank if it cannot be deduced from the associated employee
and the amount is zero.

account_id is left blank we it not required anymore

journal_id is set the first general journal found.
2015-08-03 21:51:59 +02:00
Pedro M. Baeza 4fdd99588c [FIX] board: Put keyword argument on fields_view_get super call 2015-08-03 19:04:13 +02:00
Denis Ledoux 28f89db7b7 [FIX] stock: call to create of ir.sequence using args=
By default, the argument to pass the record values is `vals`,
not `values`.
Besides, it's not mandatory to provide the argument name
when it's not optional.

opw-646374
2015-08-03 18:04:57 +02:00
Martin Trigaux 2a528aba29 [FIX] account: view definition
create=false is parsed client side using JSON.parse, so expecting JS false
2015-08-03 17:38:21 +02:00
Martin Trigaux 180b2e7746 [I18N] Transifex project URL
Thank you Transifex to change the URL scheme from time to time, that's cool.
cf https://www.transifex.com/blog/2015/new-url-schema/
2015-08-03 17:25:44 +02:00
Denis Ledoux 5140e89224 [FIX] im_livechat: security record rule on im_chat.session
There is no `to_id` field on the model `im_chat.session`,
but there is a `channel_id` field.

This is probably a copy/paste mistake, as the rule
just above had the same exact domain.

opw-646243
2015-08-03 16:52:11 +02:00
Nicolas Martinelli 6d882973f7 [I18N] account: add missing term TIN
Introduced in commit 7ddc9846a2
Fixes #5757
2015-08-03 14:40:17 +02:00
qsm-odoo 48cc23d09a [IMP] web_kanban: Adapt kanban priority field
Use the new priority widget
2015-08-03 13:09:42 +02:00
qsm-odoo 53fc284945 [IMP] web: New priority widget + form field 2015-08-03 13:09:42 +02:00
qsm-odoo 6eef975051 [FIX] web: Progress bar value update
The progressbar formfield was not updated if its value was changed
from the outside (on_change, ...)
2015-08-03 13:09:42 +02:00