Commit Graph
113066 Commits
Author SHA1 Message Date
jaredkipe bd7ee997c7 [FIX: safe_eval’ing large strings gives illegal opcode.
* FIX: safe_eval’ing large strings gives illegal opcode.

* Update comment to be more explicit.
2017-10-03 17:51:24 +02:00
Christophe Simonis 597ee1c581 [MERGE] forward port branch saas-18 up to afaf7cc7cc 2017-10-02 16:44:17 +02:00
Simon Lejeune afaf7cc7cc [FIX] stock: lock/unlock in classi view
Wrong condition implemented in rev[1] and it was not possible to add a
stock move in a ready picking anymore in the classic view.

[1] f359ca0585
2017-10-02 15:50:37 +02:00
qsm-odoo ff702bc6e8 [FIX] doc: update following af297345c6 2017-10-02 15:45:26 +02:00
qsm-odoo 14c7af50fe [FIX] website: prevent dropping snippets in <p/>
Main snippets can be dropped in `.oe_structure` elements and
`[data-oe-type=html]` elements. The second case happens when adding
a field in a page thanks to `t-field`. If used on a <p/> element,
the content cannot contain snippets (as browsers will not allow <div/>
and <section/> in a <p/>).

Note: we should not use <p/> with HTML fields at all but this might
happen with old databases... or by mistake. The problem is that the
problem is not visible during development without this fix.
2017-10-02 15:43:44 +02:00
stefanorigano 299d2ea153 [FIX] mail: thread note bg-color
This commit fix 596e88f , using a better bg-color in order to improve
text readability. It apply also apply a minor padding-left to avoid
having text attached to the coloured div border.
Moreover, the bg-colour can not be applied to activities thread.

The little history behind: remove the bg-color was decided by fp and
the UX dep. I’m not aware if 596e88f is approved or not, but the final
result was not acceptable.
2017-10-02 15:42:24 +02:00
stefanorigano a5f8ed8975 [REF] mail: adapt systray mobile chatter to v11 design 2017-10-02 15:42:24 +02:00
stefanorigano 06b6df95f5 [FIX] mail: 'chatter's entry', restore UX prior to 7a91d87
This commit will restore the chatter entries UX defined for v11
and accidentally removed on 7a91d87.

In v11 unread systray chat entries have white bg and bold text. Entries
that have been read, instead, should be less emphasised with
light grey bg and normal font weight
2017-10-02 15:42:24 +02:00
stefanorigano 6e5157187d [FIX] mail: 'chatter app icons', restore design prior to 7a91d87
This commit will restore the chatter App icon design defined for v11
and accidentally removed on 7a91d87.

Apps icons should NOT have a circular shape in order to keep branding
consistency.
2017-10-02 15:42:24 +02:00
amoyaux f359ca0585 [FIX] stock: lock/unlock show details view
It is not possible to work directly on the operation tab
when the detailed operation tab is available. On detailed
operations page it is now impossible to add a new move line
when the picking is done and locked.

This commit add some condition in the view and add a check
in the move line creation. If the move line has a picking but
no move then we create it (mark as done directly)
2017-10-02 15:34:24 +02:00
Simon Lejeune d11a8049a7 [FIX] stock: scrap: consider reserved quantity 2017-10-02 15:28:34 +02:00
Olivier Colson 0556b7fe31 [FIX] account, base_setup, crm, event, google_calendar, hr, hr_attendance, hr_expense, hr_payroll, hr_recruitment, l10n_be_hr_payroll_fleet, mass_mailing, mrp, project, purchase, sale, stock, website: rename the actions leading to settings to "settings", for breadcrumbs
Before that, the breadcrumb used the name of the action called to access the settings view, which sometimes did no correspond with the settings tab that was actually used.
2017-10-02 15:15:14 +02:00
Odoo Translation Bot 0333007a08 [I18N] Update translation terms from Transifex 2017-10-02 15:06:48 +02:00
Martin Trigaux 71c8fd8d89 [I18N] base: add missing terms
base.pot includes the description of all modules, including enterprise modules
2017-10-02 13:58:30 +02:00
Martin Trigaux 998a1aee3b [IMP] hr: remove useless group description
The group is in base, this is where the group should be described.
Manage your "own stuff" is probably not very informative anyway.
2017-10-02 13:58:01 +02:00
Richard Mathot ff3b21bd3f [FIX] ir_actions: help messages cleaning 2017-10-02 13:45:54 +02:00
Pierre Masereel fcc0404f84 [FIX] stock: stock move edition
This commit fine tune the appearance of the show detials icon as well as
the editability of the quantity done directly through the move line.

- if no product is selected, don't allow to fill quantity done
- if the selected product requires the show details icon, don't allow to
  fill quantity done and directly display it
2017-10-02 13:42:43 +02:00
Martin Trigaux 0e3455222d [I18N] Update translation source terms 2017-10-02 13:34:51 +02:00
Martin Trigaux 446971925e [FIX] pad: pad content encoding
Avoid error during pad creation

TypeError: cannot use a string pattern on a bytes-like object
2017-10-02 13:34:51 +02:00
Martin Trigaux e1b0e33830 [FIX] hr_recuitment: grammar 2017-10-02 13:34:51 +02:00
Christophe Simonis 5ce21c7355 [MERGE] forward port branch saas-16 up to b3d0897f2d 2017-10-02 13:05:17 +02:00
Simon Lejeune abfac77a06 [REF] stock, stock_account: scheduler
The scheduler cron will now only call `run_scheduler`. We refactore this
method to extract `_run_scheduler_tasks` and place a call to
`_merge_quant` a the end.

We override `_run_scheduler_tasks` in stock_account to run the fifo
vacuum when the scheduler cron is executed.
2017-10-02 12:55:22 +02:00
Christophe Simonis b3d0897f2d [MERGE] forward port branch saas-15 up to 729cf0e17d 2017-10-02 12:06:22 +02:00
Christophe Simonis 729cf0e17d [MERGE] forward port branch saas-14 up to b4799d0efb 2017-10-02 11:54:36 +02:00
Martin Trigaux af297345c6 [FIX] crm: avoid clash on attribute name
The sum is already used in views for
   <field name="foo" sum="Total" />

Where "Total" is translatable and extracted in source terms export.

The progress bar kanban widget expect a field name (untranslatable).

Avoid to translate a field name by changing the attribute
2017-10-02 11:46:55 +02:00
Martin Trigaux ad2a93dc24 [FIX] crm: remove untranslatable terms 2017-10-02 11:09:00 +02:00
Christophe Simonis b4799d0efb [MERGE] forward port branch 10.0 up to 2821730738 2017-10-02 11:04:54 +02:00
Christophe Simonis 2821730738 [MERGE] forward port branch 9.0 up to 55925d88b4 2017-10-02 11:03:02 +02:00
Olivier Colson 4321730f93 [IMP] calendar, lunch: "recurrence" instead of "recurrency" in field labels, templates and comments 2017-10-02 11:00:36 +02:00
xmo-odoo 82ef2f1b8e [FIX] calendar: validation error when moving some events back
Observed via google sync, for some events being moved around during
sync the stop_datetime ends up being before the start_datetime failing
the sync. Not (explicitly) reading the computed fields from the old
record properly recomputes them during copy.

Underlying issue linked to (stored) computed fields when multiple
fields are computed by the same method *and* the creation provides a
subset of these fields explicitly: depending on the order in
which *recompute* iterates the fields, it's possible that some of the
fields provided explicitly get extracted (from the cache) before
fields not-provided trigger a recomputation (and overwrite) of
computed fields.

In this case `recompute` iterates [start_datetime, start_date,
stop_date, stop_datetime], if `start_datetime` and `stop_datetime` are
provided explicitly to create, first recompute will check for
`start_datetime`, find it in the cache and extract it, then it checks
for `start_date`, does not find it in the cache, calls
`_compute_dates` which writes all four fields, then it extracts the
recomputed `start_datetime`, creating an incoherence: `start_datetime`
is the one from the old event while `stop_datetime` is the one from
the update/computation. This may lead to invisible corruption if the
event is moved forwards (e.g. creates a multi-day event) and triggers
a validation error if the event is moved backwards (stop_datetime is
now before start_datetime).

ping @rco-odoo multi-field computes may need some special handling
with respect to invalidations & sequencing & the like (e.g. check
their caching as a unit or something).

OPW-771886
2017-10-02 10:55:15 +02:00
Olivier Colson 55925d88b4 [IMP] lunch: "recurrence" instead of "recurrency" in field labels, templates and comments 2017-10-02 10:53:35 +02:00
Olivier Colson 52ed76ec70 [IMP] calendar, lunch: "recurrence" instead of "recurrency" in field labels, templates and comments 2017-10-02 10:42:57 +02:00
Jeremy Kersten ab2283ef83 [IMP] http_routing, website: move website method into website
Method _guess_mimetype should be in website module.
2017-10-02 10:30:25 +02:00
Martin Trigaux 7572b57c27 [FIX] mail: do not translate channel_icons 2017-10-02 10:25:12 +02:00
Simon Lejeune 021a95d998 [FIX] stock: move: _action_assign and _free_reservation
The code made the assumption that everything brought by in chained move
is available on the quants. This is not always true, for example when x
products are brought by a move in the chain, the user can make an
inventory adjustment that reduce the quantity available. Thus, we
implement a fallback in case the quantity brought by is not available:
do not reserve more than what's really available. If the user make
available some products with the same characteristics (lot/owner/pack)
in the location, they will be used by a new call to _action_assign.
Indeed, the reserved quants are not discernable. This is not an issue in
reality, as the user cannot discern the products himself if they share
the same characteristics.
2017-10-02 10:11:49 +02:00
Vailiy Korobatov 77d4999940 [FIX] typo in guidelines file 2017-10-02 09:43:43 +02:00
Kinjal Mehta f6144fe1f3 [REF] stock: update picking operation and delivery slip report.
Updated report for stock refactoring.
2017-10-02 09:32:35 +02:00
Fabien Pinckaers ae190e8912 [IMP] web: kanban view, no hover on tags as not clickable 2017-10-02 09:04:59 +02:00
Géry Debongnie 962fa7325d [DOC] web: add some doc in control panel mixin
This should make it easier for developers to use the control panel mixin
properly.
2017-10-01 11:35:46 +02:00
Odoo Translation Bot 3837f6dc8f [I18N] Update translation terms from Transifex 2017-10-01 07:14:55 +02:00
Odoo Translation Bot 682b2c0985 [I18N] Update translation terms from Transifex 2017-10-01 04:41:44 +02:00
Odoo Translation Bot 97de7c7c48 [I18N] Update translation terms from Transifex 2017-10-01 01:44:20 +02:00
qsm-odoo 1d34e269da [FIX] web: update column data when adding a record in a kanban
When a record was added in a kanban thanks to the quick create, column
tooltip and column progressbar were not updating the values they showed.
Now, adding/deleting records updates the whole column as the update
operations.

Thanks to @kig-odoo for the test.

Note: to backport (partially)
2017-09-30 18:39:13 +02:00
qsm-odoo a09462b7fc [FIX] web: allow updating a newly created kanban record
When using quick create to create a kanban record, if this record was
then updated thanks to a field widget, the view crashed. This was
because it tried to update the whole column but the newly created
record was not properly attached to it in the model.

Thanks to @sja-odoo for the test.

Note: to backport (partially)
2017-09-30 18:39:13 +02:00
Aaron Bohy 5164d30c92 [FIX] web: correctly redraw x2m list after onchange
When an onchange is set on an x2many field displayed as an editable
list in a form view, and the user updates one of the subrecords,
the updated subrecord is kept in the DOM and updated, and all other
subrecords in the relation are re-rendered and re-inserted at their
correct place in the list (because the onchange might have changed
them).

Before this rev., the order of the subrecords after the edited one
was reversed.
2017-09-30 17:33:20 +02:00
Simon Lejeune 1cded67619 [FIX] stock: edit done move line
When undoing the original move line, make sure to handle the packages
correctly (in the destination location, undo the result package, not the
source one.
2017-09-30 17:12:20 +02:00
Simon Lejeune 191873f8a5 [FIX] stock: edit done move line
When undoing the original move line, make sure to undo the quantity
according to the UOM of the move line.
2017-09-30 17:12:20 +02:00
Simon Lejeune 6a093d1dec [REF] stock: when editing the initial demand of a receipt, run action assign
We also display the "check availability" button if the move is ready but
one of the move is partially available.
2017-09-30 17:11:48 +02:00
Jeremy Kersten 39454be0e1 [IMP] website_Sale: fix ecommerce layout for mobile + uniformize title 2017-09-30 16:17:47 +02:00
rde 727d461e1d [IMP] website: create special extension page redirect backend + own template
Before this commit:
1. You could create a page with supported extension in the path (eg: myfile.js)
You would then be redirected to the webeditor (myfile.js?enable_editor..)
But in this case, it would just redirect you to a plain text page without odoo
layout because supported extension are rendered with a specific mimetype.
(is it is a .js page, it will just render the page content as a js file)
2. These kind of page would still call t-layout that you should be removed in
backend in order to make it work

Now:
1. You will be automatically redirected to the back end to edit your file
instead of landing on a text-only page.
2. Supported extension now have their own template (eg: .js file now have
<script text=..> tag added automatically in their content)
2017-09-30 16:11:48 +02:00