Commit Graph
94071 Commits
Author SHA1 Message Date
Christophe Simonis 109dae2efa [MERGE] forward port of branch 8.0 up to d4f41a1 2015-02-26 18:56:26 +01:00
Christophe Simonis f6d32a9fe9 [FIX] website_quote: use a copy of the context. 2015-02-26 17:59:14 +01:00
Denis Ledoux d4f41a18a6 [FIX] sale: sales count button on variants
The button was no more redirecting to the
sales order lines list view,
following a distraction error introduced during 68b8286d5f
2015-02-26 17:39:47 +01:00
Denis Ledoux 25bf2674d5 [FIX] web: prevent set value of priority if readonly
The priority widget did not handle the readonly concept
It was therefore possible to set the priority of
an issue (for instance) even if the field was marked
as readonly.

opw-628960
2015-02-26 17:21:10 +01:00
Jérome Maes f6ddf1a617 [FIX] hr: employee kanban alignment style 2015-02-26 16:41:30 +01:00
Jérome Maes 8ab68d8048 [FIX] web : fix the dropdown style to delete attachments 2015-02-26 16:41:29 +01:00
Jérome Maes d169e6f935 [FIX] im_livechat : remove the cookie when close anonymous conversation, and prefix image link by server url in template 2015-02-26 16:41:29 +01:00
David Monjoie 5f45e7ca96 [FIX] hr_timesheet_sheet: properly unlink timesheets when deleting a timesheet_sheet
Adaptation of https://github.com/acsone/odoo/commit/afe4a97d037b4075c8cd0514b6d1b829e1208629, but we properly unlink the timesheet lines themselves instead of going for the account.analytic.lines like the original commit proposition did. Actually, the unlink method of hr.analytic.timesheet already unlinks the corresponding acount.analytic.line, but those records were previously deleted via ondelete='cascade', which didn't trigger the unlink method at all, so the associated analytic lines were not deleted accordingly.
Fixes opw 628256.
2015-02-26 16:18:08 +01:00
Daniel Kraft 51f61ed23d [ADD] D9T GmbH CLA
closes #5433
2015-02-26 16:15:50 +01:00
Aaron Bohy efb3de5034 [FIX] Web: ListView and ListView.Groups: pagers
* Fixes the pager on grouped list views for which there was no
  specific behavior (except of doing +1 or -1) for next and previous
  actions on last and first pages respectively.
* Hides the previous and next buttons of the main pager on grouped list
  views as these buttons have no effect in grouped mode.
2015-02-26 15:36:36 +01:00
Christophe Simonis f0dc416871 [FIX] phantomjs 2.0 compatibility
phantomjs 2.0 remove the deprecated attribute `phantom.args`. Use the
new `system` module.
2015-02-26 15:08:17 +01:00
Goffin Simon f99cea5f69 [FIX] versioning: override read_group in Experiment to always display all Experiment states. 2015-02-26 15:02:04 +01:00
Olivier Dony 05bbe78d87 [FIX] product.product: name_search() must preserve natural order
The natural order was discarded when merging results with a set,
and this was actually un-necessary as the second search()
excludes the previously found `ids`.
2015-02-26 14:03:05 +01:00
Olivier Dony bf31ab6718 [FIX] product.template: name_search compatibility with product.product
In the rare places with a m2o field to product.template
(e.g BoMs), it is necessary to be able to search on product
codes, EAN, etc, the way it works on product.product.
This is done by delegating the name_search to product.product
and then returning the corresponding templates.
This has a small penalty of executing name_get() twice,
but is simpler and more robust for future changes.

An alternative would have been to extract the name_search()
method into a mixin and mix it on both product.product and
product.template. However this would be more brittle and
only work as long as the name_search implementation strictly
uses fields that are present in both tables.

OPW 626662
2015-02-26 14:03:05 +01:00
Christophe Simonis faad625a45 [FIX] account: set group on view instead of *in* view 2015-02-26 12:05:57 +01:00
Xavier Morel e700805a43 [FIX] ws doc: language switcher in some iOS versions 2015-02-26 11:47:07 +01:00
Thibault Delavallée e332b2bb20 [FIX] view_form, web_kanban: KanbanSelection widget in form and kanban: tooltip
now takes the stage custom tooltip if present, like the selection
value, instead of the default one.
2015-02-26 10:47:47 +01:00
Vijay Baladaniya 10a1d44389 [FIX] Change the target_version for anonymization.
Fixed #5476
2015-02-26 10:30:01 +01:00
Thibault Delavallée 6d9e0c071c [FIX] website_quote: wording in tips. 2015-02-26 10:23:43 +01:00
Thibault Delavallée 73103b0545 [FIX] project: fixed typos / wording in helps / tooltips. 2015-02-26 10:21:09 +01:00
Raphael Collet 0c1b95d824 Merge pull request #5439 from guewen/test-inherits-3-levels
Reload fields of parent inherits, fixes #5398
2015-02-26 10:06:31 +01:00
Fabrice Henrion e9b391c308 [FIX] base_import: typos
closes #5478
2015-02-26 10:02:45 +01:00
Martin Trigaux c70b17fcbc [FIX] purchase: fixup of 2a37a94, missing rename 2015-02-26 10:16:52 +05:30
Christophe Simonis bc9701a3fd [FIX] sale_stock: correct sale.order report
After 222fcb137b, the main record has
been rename to `doc`.
2015-02-25 19:05:40 +01:00
Jeremy Kersten fcbb825cd0 [IMP] website_forum: replace 'My Profile' by user karma and remove useless code 2015-02-25 18:50:42 +01:00
Denis Ledoux 22acc5d379 [FIX] project_timesheet: retrocompatibility for 73f7a2ba35
It looks like it was possible to pass vals['date']
in date format (!= datetime format) to _create_analytic_entries.

This rev. is a retrocompatible patch for 73f7a2ba35.

In addition, it solves the same issue than the rev.
73f7a2ba35, but in the case the project is
set on the task after the work hours are created.
See ab5ecef476

opw-628729
2015-02-25 18:30:26 +01:00
Martin Trigaux 2a37a94a67 [FIX] purchase: scope of variables is a bitch 2015-02-25 17:03:17 +05:30
Josse Colpaert 37f9459610 [IMP] Return of return should be linked with original destination move should fix #5253
[FIX] Split of return move should keep the returned move

[IMP] Better comment and check for state not cancelled
2015-02-25 12:03:49 +01:00
Josse Colpaert d416492259 [IMP] To determine the invoice we put extra moves in, it is better to take the values from the sale order / purchase order if we can find it through the picking
[IMP] Add comments

[IMP] Simplify code
2015-02-25 10:30:36 +01:00
Josse Colpaert cb6e27c992 [IMP] When invoicing from multiple pickings, services should be checked for all purchases/sales
[FIX] Should make sure purchase order lines are not invoiced twice
2015-02-25 10:29:50 +01:00
Jeremy Kersten 3050e35d31 [FIX] google_calendar: don't send mail from calendar when date has been changed.
If a meeting has been changed in google, a mail has been already sent.
2015-02-24 18:18:53 +01:00
Denis Ledoux 22606c8905 [FIX] report: abstract reports default lang
In ir_ui_view.py, in method render (line 132 atm),
the values passed to the rendering engine is a merge of the context
and the values.

Therefore, if at this place, the language is rightly set in the context,
the report lang will be as well in the values.

In abstract_report.py, the values passed to the render method is the
wrapped report localcontext in which are added some key/values
(docs, doc_ids, doc_model).
By default, the lang in the localcontext is False
See __init__ method of rml_parse class in report_sxw.py.
If setLang method is not called, the lang in the localcontext remains False.

In this rev., we avoid to overwrite the lang from the context by the lang
of the localcontext if this one is False, so the lang of the report is set
with the current context lang.

Forcing the lang of the report to False had as side-effect to prevent the
editing of report using the website editor(e.g. playslip_report)

opw-628720
2015-02-24 17:42:25 +01:00
Aaron Bohy 38fb6119b4 [FIX] Web: base.sass: 4 spaces indentation
base.sass did not compile because those lines where indented using 2
spaces instead of 4.
2015-02-24 16:56:21 +01:00
Thibault Delavallée d776711e62 [FIX]website_event: track website_published field if you
want to trigger subtypes.

This field is defined in the website_publish mixin; it is redefined
here just to add the track_visibility parameter.
2015-02-24 16:50:23 +01:00
Olivier Dony 0c483d3f43 [FIX] typos in last forward-port 2015-02-24 15:50:13 +01:00
Olivier Dony 95a2f8b121 [MERGE] Forward-port latest bugfixes from 8.0 up to cbb51610ee 2015-02-24 14:47:19 +01:00
Goffin Simon cbb51610ee [FIX] ir.ui.view: qweb translations: allow looking up translation in parent template
- Translations lookup normally uses the namespace of the current
QWeb template, after merging all inherited views.
But when a QWeb template is "cloned" by a child view using
inheritance with `primary` mode, the translations are more
likely to exist for the original (parent) template, and would not
be found when using only the "child" namespace.
This patch adds support for looking up each translation
also in the parent namespace in this case, if none was found
for the child template in the first place.

- ir.translation's _get_source() now supports a list of res_id
to search for, in addition to a single res_id

- Also moved the logic of routes /website/customize_template_get
and /website/get_view_translations to the ir.ui.view model where
it belongs.

opw: 615241

Closes #5325
2015-02-24 14:01:34 +01:00
David Monjoie 46186f54eb [FIX] openerp: fixed stretching of module icons in kanban view 2015-02-24 13:45:23 +01:00
Somesh Khare db4355d381 [FIX] web: many2many checkbox widget did not keep checked values 2015-02-24 11:46:55 +01:00
Guewen Baconnier 608e58cce1 Reload fields of parent inherits, fixes #5398 2015-02-24 10:34:09 +01:00
Darshan Kalola 337946ab80 [FIX] planner,planner_crm: display issues
- re-enable animation effect when click on "Mark as done" button
- examples for the notepads do appear again when clicking on "?"
- progress bar should be at a few % at first launch of the planner
2015-02-24 09:26:13 +01:00
Jeremy Kersten bba21e83a8 [FIX] website_crm_score: continue to assign for others salesteam even if one team have no more leads. 2015-02-23 20:18:18 +01:00
Jeremy Kersten 0c964f0b7b [TYPO] modules: better safe than sorry
Too many people copy-past this line without understand !
2015-02-23 20:15:57 +01:00
Christophe Simonis 7578143525 [REL] 8.saas~6 2015-02-23 19:20:34 +01:00
Christophe Simonis 7f1564a9f1 [MERGE] forward port of branch 8.0 up to a6a1764 2015-02-23 19:04:39 +01:00
Christophe Simonis a6a1764b2c [FIX] models: initialize _fields attribute.
Custom fields can point to custom models that have not been initialized
yet (`_setup_base` not called). Ensure every models in the registry
have a `_fields` attribute.
Use a `frozendict` as a defensive check to ensure it wont be modified
before calling `_setup_base`.
2015-02-23 18:33:26 +01:00
Christophe Simonis 3792f502d7 [IMP] website: keep id in inherited view.
This help migration as some (not yet updated) inherited views still
hook on this id.
2015-02-23 18:21:41 +01:00
Denis Ledoux 7ffbb8d142 [FIX] project: task count button & link
The tasks list view "act_project_project_2_project_task_all"
always displays inactive tasks ("'active_test': False" in context).

Both the link in the kanban and the button in the form
leading to this list view should therefore counts both
inactive & active tasks.

opw-628672
2015-02-23 16:08:42 +01:00
Julien De Coster 4a971be438 [IMP] Don't shorten already shortened links 2015-02-23 16:03:01 +01:00
Raphael Collet 5ec8596f67 [FIX] fields: fix _column.new() by relying on to_field_args()
The implementation was based on the ill-defined method `same_parameters()` that
compares arguments based on a heuristic.  Instead, we now create a new column
and check whether it is equivalent to `self` by comparing the arguments
returned by `to_field_args()`.  If that is the case, `self` is reused instead
of the new column.

The code refactoring also fixes the column reuse which was broken by the
introduction of the parameter `compute` in commit 9333c62.  Indeed, with that
parameter, `same_parameters()` always returned False, since old-api columns do
not have that parameter by default.  The parameter has been renamed to
`_computed_field`, and is no longer passed for creating columns.
2015-02-23 15:50:09 +01:00