Commit Graph
111009 Commits
Author SHA1 Message Date
Géry Debongnie fef645fcc5 [FIX] web: increase timeout for js tests
We have a new runbot server which is quite slow.  Because of this, it
takes too much time to run this unit test suite (for comparison, one of
the last build by the main runbot takes 126s).

This is necessary for now, until we use chrome headless or something...
2017-09-05 15:41:26 +02:00
Christophe Simonis 3ff4feafd2 [MERGE] forward port branch saas-15 up to 4d4d75709d 2017-09-04 18:12:00 +02:00
Christophe Simonis 4d4d75709d [FIX] core: also consider materialized views as existing
At the end of registry loading, a check is made on every model to
verify its table exists in the database. Materialized views weren't
considered during this check.

Note that we can't use `information_schema` views in this case because
it does include materialized views on purpose [1].

Forward-port of 4ca6945256

[1] http://www.postgresql-archive.org/Materialized-views-don-t-show-up-in-information-schema-tp5822643p5822644.html
2017-09-04 17:51:50 +02:00
Christophe Simonis fc2a39cc7d [MERGE] forward port branch saas-14 up to 99426b95b5 2017-09-04 17:12:40 +02:00
Christophe Simonis 99426b95b5 [MERGE] forward port branch 10.0 up to c5df78f38b 2017-09-04 16:15:28 +02:00
Elkasitu c5df78f38b [FIX] ir_model: Don't prefetch unnecessary fields
Do not prefetch unnecessary fields during the uninstallation of modules.

Previous to this commit, prefetching of unnecessary fields would cause server crashes
on some modules that add a field on ir_model_fields.
i.e. website_form
2017-09-04 15:46:19 +02:00
Cedric Snauwaert c39ad11d44 [FIX] account: when opening reconciliation from an account, only open view for that particular account 2017-09-04 14:44:01 +02:00
Christophe Simonis dad095de30 [MERGE] forward port branch 9.0 up to dc88a1ac42 2017-09-04 11:58:43 +02:00
Patel Jalpesh dc88a1ac42 [FIX] l10n_fr: migrate tags on taxes
Closes #19231
2017-09-04 11:55:45 +02:00
Lucas Perais (lpe) f98bb2b86b [FIX] website_sale: correct images of product and variants
Before this commit, when trying to edit through the website editor the product image, it was in fact the product variant that we edited.

This commit corrects it and when an image is displayed, the model it comes from is reliable

OPW 767539

closes #19168
2017-09-04 10:19:25 +02:00
Nicolas Martinelli abea8d3513 [FIX] crm: expected closing
Complement of commit 9d2f48dc7f

opw-724375
2017-09-04 10:13:12 +02:00
Lucas Perais (lpe) d22d4dcc23 [FIX] website_crm: fix lead creation through website_form
Before this commit, a message received through the contact us form did create a Lead, but any notification was impossible (even if a user was a follower of the relevant sales team.
This was because the default sales team is integrated in the values for create in models.py, which mail_thread can't see, but needs in order to notify

This commit corrects the behavior which now converge with standard lead creation by adding the default sales_team earlier in the values for create

OPW 762651

closes #19180
2017-09-04 10:09:06 +02:00
Nicolas Lempereur 004eab9e8a [FIX] sale_timesheet: sudo() order != task company
As in a7985a5ab the SO could be in another company than the linked task
and this should not hamper creating / modifying timesheet lines in the
task company that happened since 71bb9a09.

opw-34138
closes #19234
2017-09-04 09:50:14 +02:00
Goffin Simon 23f0fb6168 [FIX] website_sale: product category tree not clickable in eCommerce
When  the last selected category or search criteria in eCommerce had
no products(No product defined), the website category tree was not
clickable.

opw:767021
2017-09-04 09:39:05 +02:00
Aaron Bohy b7c92ecaac [FIX] web: dialog: remove setTimeout making tests fail
... sometimes.

When a dialog is destroyed, the last opened dialog (the one which
is just below), if any, is focused. This allows to close it
directly by pressing ESC. For an unknown reason, this was done in
a setTimeout (delay 0).

The problem is that the setTimeout made some JS tests fail
randomly, when a test ending by closing a dialog was executed
right before a test using a many2one inside a dialog. When this
happened, the second test failed sometimes because its dialog was
focused (because of the previous test) while waiting for the
autocomplete dropdown to open, triggering a blur event on the m2o
input, and thus making jquery autocomplete aborting the search,
and the opening of the dropdown.
2017-09-04 09:31:59 +02:00
Nicolas Martinelli 8813e9cffc [FIX] website_sale_delivery: disable 'Pay Now' button
- Enable several shippers
- Enable Paypal acquier
- Buy a product on the eCommerce, go to payment page
- Change the shipper

While the page is reloading, the user has time to click on the 'Pay Now'
button.

opw-748467
2017-09-04 09:12:47 +02:00
Nicolas Martinelli 04990288a5 [FIX] website_sale: archived products
Archived products still published on the website will trigger a
traceback when accessed (the link might still exist in a search engine
results).

opw-767740
2017-09-04 08:46:46 +02:00
Wolfgang Taferner 85213a49b5 [FIX] mrp: generating raw move based on bom line should copy sequence
Closes #19182
opw-769259
2017-09-04 08:40:25 +02:00
Wolfgang Taferner bfa6394383 [FIX] hr_attendance: only if the check_out is later than the check_in
You can not create a check-in at 09:00 in case you have an attendance
where you checked out at 09:00.

Complement of bfa55e42f9

Closes #19226
opw-769773
2017-09-04 08:28:32 +02:00
Nicolas Martinelli 5d1dafbf9b [FIX] hr_expense: prevent deletion of posted expense
Prevent the deletion of expense or expense sheet if they are linked to a
journal entry.

Closes #19128
Closes #19044

opw-767549
2017-09-04 08:22:40 +02:00
Odoo Translation Bot 39dafce595 [I18N] Update translation terms from Transifex 2017-09-03 07:07:46 +02:00
Odoo Translation Bot 0e0771e319 [I18N] Update translation terms from Transifex 2017-09-03 04:40:05 +02:00
Odoo Translation Bot 11ce4d228d [I18N] Update translation terms from Transifex 2017-09-03 00:30:50 +02:00
Lucas Perais (lpe) b6778ee752 [FIX] account: reconciliation_widget: rounding of reconciliation_amount computation
Use case:
- a tax of 10%, computation method: percentage of tax included
- a account_reconciliation_model with an amount of 90%
- make a statement of 1.31 (or something weird when it comes to digits)
- reconcile it with a counterpart
- prefill that counterpart with the account_reconciliation just created
- push on reconcile

Before this commit, the amount that was computed was not rounded, resulting in making unbalanced account_moves (by 0.001)
This was invisble since the display of monetary is rounded
After this commit, the rounding is done according to the currency's parameters and produces correct move_lines

OPW 751881
2017-09-01 17:15:47 +02:00
Adrien Dieudonne c2563dbb0d [FIX] web: BasicModel: correctly sort editable lists
This rev. fixes several issues with the sorting of dataPoints of
type list in the BasicModel.

First, only 'static' lists (i.e. x2many lists) must be sorted
client-side, and results of search_read RPCs must remain unsorted
as they are already retrieved sorted from the server.

Second, editable and non-editable x2many lists don't behave the
same with respect to sorting (we reproduced in this commit the
behavior of saas-15). With editable lists, the edited rows are
unsorted, except if the user explicitely ask for a sort (by
clicking on a column header), until the form view is saved. With
non-editable lists (as for x2many kanban), the sort is performed
directly when a record is created or updated (as the edition is
done from a dialog).
2017-09-01 14:30:06 +02:00
Aaron Bohy 0694caabfb [FIX] mail: FieldMany2ManyTagsEmail: apply changes
The FieldMany2ManyTagsEmail requires that the records in the
relation have an email address set. However, it didn't take into
account the changes that might have been done on the field's
value (i.e. the check wasn't applied on subrecords that just had
been added to the relation).
2017-09-01 14:29:55 +02:00
Jérome Maes a980376bfa [FIX] sale_timesheet: avoid crash when comparing UoM of different category
If not UoM set, timesheet UoM is hours by default
and product one is Units. We can consider 1 unit =
1 hour.
2017-09-01 11:39:26 +02:00
Denis Ledoux cdbe2f0ed4 [FIX] hr_timesheet: security, do not require all timesheets user to be HR officer.
Regular employees are added to the timesheets user group
so they can access to the Timesheets modules.

Requiring timesheets users to be HR Officer would almost mean to
require all employees to be HR officer, which is not the case.

The above is the result of the revision
a806f96fa2

Before, the timesheets user group was the
timesheets officer group, and it was the only
group for the module timesheets. There
were no timesheets manager or user group.
This group implied the HR Officer groups,
but it made sense as it was the Timesheets
Officer group.

Now that it is the timesheets user group,
it doesn't make sense to imply
the HR Officer group.
2017-09-01 11:39:17 +02:00
Aaron Bohy e818cba321 [FIX] web: tests: correctly reset AUTOCOMPLETE_DELAY
... once the test is done.
2017-08-31 16:41:37 +02:00
Aaron Bohy 9c4eb2353c [FIX] web: search view: don't crash when typing a date
Before this rev., it crashed when the user typed a date (actually,
the last character of a date) in the search view (e.g. in
Accounting > Customer Invoices).
2017-08-31 16:41:37 +02:00
Adrien Peiffer (ACSONE) 4ca6945256 [FIX] base: consider materialized view as table
Closes #18442
opw-769167
2017-08-31 15:00:22 +02:00
Adrien Peiffer (ACSONE) 0fff391c38 [FIX] tools: empty name
Check if name isn't empty before executing regex. xlsxwriter can handle
an empty name.

opw-769163
Closes #18877
2017-08-31 13:47:41 +02:00
Jeremy Kersten f8694f14cc [FIX] sale_timesheet: fix case where self is multi
Commit #71bb9a09f is wrong in case you write on several timesheet at the same time.

Self is multi, when you have more than 1 timesheet, we need to check for each,
if one is of type delivery
2017-08-31 12:26:34 +02:00
Christophe Simonis b19f22cb97 [FIX] stock_account: correct syntax error introduced during previous forward-port 2017-08-31 00:28:01 +02:00
Christophe Simonis 600d015938 [MERGE] forward port branch saas-15 up to cb4dbfb7b7 2017-08-30 18:04:40 +02:00
Christophe Simonis cb4dbfb7b7 [MERGE] forward port branch saas-14 up to 583fcf0a67 2017-08-30 16:13:19 +02:00
Nicolas Martinelli 65f5fc6bf8 [FIX] stock: delivery slip
Complement of commit b0d498c11d

The delivered quantity displayed on the "Delivery Slip" should use the
same UOM than the "Ordered Quantity".

opw-766914
2017-08-30 16:12:15 +02:00
Christophe Simonis 583fcf0a67 [MERGE] forward port branch 10.0 up to 1b7e31f341 2017-08-30 15:34:58 +02:00
Christophe Simonis 1b7e31f341 [MERGE] forward port branch saas-11 up to 3f72629794 2017-08-30 15:30:01 +02:00
Christophe Simonis 3f72629794 [MERGE] forward port branch 9.0 up to cb21934e00 2017-08-30 15:29:24 +02:00
Christophe Simonis 792204ae9e [MERGE] forward port branch saas-11 up to dce35ca44b 2017-08-30 14:15:32 +02:00
Richard Mathot 6a5c1001d3 [FIX] mrp: stupid typo introduced at ccfc4e7026
Sorry about that.
2017-08-30 14:12:47 +02:00
Nicolas Martinelli cb21934e00 [FIX] stock: inventory adjustment
Backport of commit c00267bc34

opw-767538
2017-08-30 14:04:01 +02:00
Christophe Simonis dce35ca44b [FIX] l10n_*: limit tag migration to 9.0 series 2017-08-30 13:29:44 +02:00
Christophe Simonis f75fd6dcdb [MERGE] forward port branch 9.0 up to 24ca3793bf 2017-08-30 13:19:58 +02:00
Christophe Matthieu 67adc9d9a9 [FIX] account: update the reconciliation line on input instead of on blur
This change is used to view the residual amount when the amount used for
the write-off.
Create a new line on key press enter.
2017-08-30 12:59:46 +02:00
Christophe Simonis 24ca3793bf [FIX] website_forum: do not compare recordset against integer 2017-08-30 12:45:35 +02:00
qsm-odoo 9b58abdd5c [FIX] web: reset 'invisible' table cells to correct display
Make sure '.o_invisible_modifier' table-cells are forced back to
`display: table-cell` to keep correct alignement. Indeed using the
`initial` value forced them to `inline` instead (creating some
obvious visual bugs in some cases).
2017-08-30 12:40:53 +02:00
Aaron Bohy f1082f1552 [FIX] web: don't send virtual id on save
The problem occurred on form views with an x2many field with a
default value containing CREATE commands, i.e. when opening such
a form view in create mode, the x2many field is pre-filled with
some (non-existing yet) subrecords.

If the user then edited those subrecords, and then clicked on
'Save' to create the main record, an 'UPDATE' command was sent
alongside the 'CREATE' one for the x2many, and the id of the
'UPDATE' command was a virtual id (as the subrecord didn't exist
yet), and it crashed.

This could happen in MRP:
  - Enable lots in Iventory
  - Choose a product which is a component of another (through mrp bom)
  - Set this product as tracked by lot
  - Set this product inventory quantity to 0
  - Create a new manufacturing order for the product for which it is a
    component
  - Click on "Check Availability"
  - click on Produce: the many2many already contains a subrecord
  - edit the lot field of that subrecord
  - click on 'Record Production'
2017-08-30 12:29:47 +02:00
Lucas Perais (lpe) aee1456e89 [FIX] website_sale: correcting syntax typo in xml 2017-08-30 11:43:49 +02:00