Commit Graph
113045 Commits
Author SHA1 Message Date
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
Nicolas Lempereur f2df388c38 [FIX] web: settings scroll w/o control panel
Have the settings scroll without the mock control panel.

courtesy of @qsm-odoo
2017-09-30 16:11:05 +02:00
Aaron Bohy c8f15742c3 [FIX] web: Kanban: open record when a tag is clicked
Kanban records with 'global click' feature activated should open
the record in a form view when the corresponding card is clicked.
Before this rev., it wasn't working if the user clicked on a tag
of the kanban record, because of an unused click handler defined
on the Many2ManyTags widget (preventing the global click feature
from actually performing the global click).

This rev. removes that handler in the KanbanFieldMany2ManyTags.
2017-09-30 16:02:23 +02:00
Aaron Bohy b53af081cb Revert "[IMP] web: filter when clicking on tags in Kanban"
This reverts commit b6ef149b as it seems that we don't want this
feature ultimately (was confusing for users trying to open the
record, but it filtered instead).

Note that opening the record by clicking on a tag still doesn't
work, but this is fixed by the next commit.
2017-09-30 15:59:24 +02:00
Aaron Bohy 776bac6a06 [FIX] web: don't discard x2many rows coming from default_get
Problem occured in the MRP Production wizard (with a consumed
product tracked by serial number). The opened record is a new
record, and its one2many has 2 default rows that are prefilled.
If the user edited one of the quantities in those rows, and set
an invalid value instead (e.g. a letter), the row was removed
without notice when it was focused out. This was because the
model wasn't aware that a change has been done on the record,
and as the record was flagged as new, it was simply abandonned.
2017-09-30 15:59:24 +02:00
David Monjoie 16eb262c60 [FIX] web: fix one2many default get
The one2many default get code used to meddle with basic_model's res_ids
manually, which ended up desynchronizing the data and res_ids fields
of the list representation of the one2many values.

This commit solves the issue by using the proper mechanisms of the
basic_model, that is creating a proper datapoint for those ids.

Steps to reproduce the original issue:
- Install sale_mamangement, mrp and purchase
- Create a product
- In the Inventory tab, in Routes, uncheck Buy
- Check and then uncheck back any other route than Buy
- Get a traceback because we are looking for a record with a given
  res_id in the list data but since they are desynchronized, data
  is empty at that point even though res_ids is not.
2017-09-30 15:59:24 +02:00
Jeremy Kersten 0997579df4 [FIX] website_sale: partial revert layout change
Remove a part of the PR #19463

Specs for PR undo a previous task.
2017-09-30 15:27:33 +02:00
Siddharth Gajjar 8174d46bf0 [IMP] website_sale: checkout layout usablity improvement. 2017-09-30 15:20:17 +02:00
jpr-odoo 59b3f676bb [IMP/FIX] website_sale, website_sale_delivery: fixed alignment issue, removed unexpected spaces, update some view for shop/payment 2017-09-30 15:20:17 +02:00
Pierre Masereel e608954506 [FIX] stock: color of move and move lines when picking is done 2017-09-30 15:20:01 +02:00
Fabien Pinckaers 64557f93d3 [IMP] mrp,stock: planned --> scheduled date 2017-09-30 15:18:17 +02:00
fwi-odoo d9ffd5204d [FIX] web: correctly apply onchange on boolean field
When an onchange sets a boolean field to 'true', if this boolean was set to 'false'
previously, the old value was used instead of 'false'.
2017-09-30 15:11:39 +02:00
qdp-odoo 236742cb0e [FIX] sale, account: fix tax group style in quotation/invoice reports 2017-09-30 15:02:17 +02:00
Cedric Snauwaert 6cefff4bf4 [FIX] account: fix use of group of tax in reconciliation widget
when having a tax with multiple children (grouped tax) if we use it in the reconciliation
widget while creating a new line, not all taxes children were taken into account.
2017-09-30 14:40:22 +02:00