Commit Graph
127612 Commits
Author SHA1 Message Date
TWA c257b8f0a9 [FIX] partner_autocomplete: prevent possible concurrent flag update 2018-09-27 10:45:30 +02:00
TWA e609a6ad4c [IMP] partner_autocomplete: improved additional informations template 2018-09-27 10:45:30 +02:00
TWA 03cd389024 [IMP] crm_reveal: improved additional informations template 2018-09-27 10:45:30 +02:00
TWA 9adbd587d3 [FIX] iap: fix double rpc in get credit widget 2018-09-27 10:45:30 +02:00
Martin Trigaux 2c26fc0e86 [FIX] calendar: do not crash on all day selection
While start and stop are required fields, it is possible to trigger the
computation from the UI before saving (e.g. create an event, set no date, check
"all day" checkbox).

Fixes #27265
2018-09-27 10:33:33 +02:00
Martin Trigaux 17416e664c [FIX] web: translate search view
Group By and Filters strings in the search view were not translatable
2018-09-27 10:24:32 +02:00
Géry Debongnie dbddb233cf [DOC] doc: rename AppSwitcher into HomeMenu
The AppSwitcher widget was renamed to HomeMenu a long time ago, but the
documentation was not updated accordingly.
2018-09-27 10:06:41 +02:00
Raphael Collet 3a30391e9d [FIX] base: superuser cannot become active 2018-09-27 09:54:28 +02:00
Vincent Schippefilt 13d3456791 [FIX] web: fix crash in sidebar when adding attachment
task-id : 1873908
2018-09-26 21:42:58 +02:00
qsm-odoo 6f3affe886 [FIX] website_blog: BS4, restore blog options 2018-09-26 21:08:35 +02:00
qsm-odoo 86e6345095 [FIX] website: allow choosing a body background in full layout
Previous system was strange: you were able to choose a body color but
not a body background when you were in full layout mode.
As transparent colors will soon be able to be chosen by the user, it
makes even more sense to give that possibility as the user can set a
body background pattern and a transparent footer color to let it
appear. Choosing a transparent background image which will be mixed with
the body color is also a common feature.

Also changes boxed layout option to use a white background for the boxed
content (we should maybe give the opportunity to the user to choose that
color instead of using always white).
2018-09-26 21:08:35 +02:00
qsm-odoo 5c9d313007 [FIX] website: better allow color extensions in the future 2018-09-26 21:08:35 +02:00
qsm-odoo 67ac1b541d [FIX] website: remove "Ok" button of theme customize dialog 2018-09-26 20:49:26 +02:00
Christophe Simonis b3d9496263 [MERGE] forward port branch 11.0 up to 1e8ab568c1f 2018-09-26 20:02:37 +02:00
Christophe Simonis a17ddde9a1 [MERGE] forward port branch 11.0 up to 1e8ab568c1f 2018-09-26 20:02:37 +02:00
Raphael Collet 186b1c09cc [FIX] base: avoid prefetching all the fields when getting context
When getting the context of res_users, all the fields are read but if
the schema is being modified and the modifications are not yet commited
in the database, this leads to a bad query.

With this commit, a read is used to fetch only the needed fields.

Thanks to @RCO for finding this issue that only occurs in specific
planetary alignment.

closes odoo/odoo#27263
2018-09-26 17:49:30 +00:00
Katherine Zaoral b08aa26d8f [CLA] add new member to Adhoc CLA
closes odoo/odoo#31333
2019-02-26 09:46:46 +00:00
Jorge Pinna Puissant 5021791fa9 [FIX] account: empty partner field in payment
* Create a new invoice and validate it.
* Create a new bank statement, without having the partner filled in.
* Reconcile the bank statement to the invoice.
* Open the generated payment.

Before this commit, the field partner and partner type are empty in the
payment.

Now, the field partner is filled with the invoice's partner, and the
field partner type is calculated.

opw-1917028

closes odoo/odoo#31399
2019-02-25 10:48:56 +00:00
Nicolas Martinelli 9274dfc44e [FIX] product: pricelist based on cost
- Create 2 companies C1 (USD) and C2 (EUR)
- Create 2 products P1 and P2
  P1: company: C1; cost: 50
  P2: company: C2; cost: 50
- Make sure to define the cost in both companies since it is a property
  field (set it to 50 in all cases)
- Update the currency rates for both companies
- Create a pricelist in EUR, with a price based on the cost price.
- Create a SO in C1, select the pricelist previously created
- Add P1 and P2

The unit price for P1 is converted, while the unit price for P2 is 50.

This is not correct: both cost prices are set to 50, so the unit price
should be identical.

This is because the pricelist always assumes that the price retrieved is
in the product currency. In this case, this is not correct: the price
retrieved is in the company currency, since the cost price is in the
company currency.

Closes #30616
opw-1934443

closes odoo/odoo#31402
2019-02-25 13:58:02 +00:00
Nicolas Martinelli 950d0f1849 [FIX] product, stock_account: cost currency
The cost of the product is a property field, meaning that:
- its value depends on the current company;
- its currency is the company currency

However, several views use the monetary widget to display its currency
with the default `currency_id` field. This can be incorrect, since the
latter is computed based on the product's company.

We introduce the new computed field `cost_currency_id` which has the
appropriate value and can be used in the views.

Closes #30616
opw-1934443
2019-02-25 13:58:02 +00:00
Arnold Moyaux 443b810e09 [FIX] stock: validate a picking with only scrap
Usecase:
- Create a planned transfer
- Add line with initial demand
- Create a scrap
- Click on button validate

The wizard asking for a backorder or not is diplayed. The UserError
that prevent to validate a picking without quantity done or reserved
should have been raised. The scrap moves are directly processed once
the user validates his scrap order. Validate a picking with only done
moves, will not have any effect.

closes odoo/odoo#31076
2019-02-20 09:17:10 +00:00
Arnold Moyaux 86cb78740b [FIX] stock: picking to scratch location with BO
Usecase to reproduce:
- Create an internal picking from stock to scrap
- Add some scrap move inside due to scrap button in header
- Add some move with initial demand for future
- Mark the picking as done and validate it
- The wizard asking for a backorder appear -> Validate or No backorder

The moves with initial demand are duplicated(one new move for each
without intial demand nor quantity done)
A note is logged in the chatter with backorder False has been created.

There is a problem since _action_done on a scrap move from scrap model
will process the scrap move individualy but will create a back order
(commit e088acbc0f try to fix this issue)
However when we create a picking that goes to scrap location, the back
order will not be created since all moves are scrapped.
With the current configuration we can't guess in _action_done if
it comes from scrap or picking validate that goes to a scrap location.

The current solution is to use a context key in order to indicate if the
call come from picking validate or scrap. If it comes from scrap do not
create a back order no matter the case. If it comes from picking, follow
the standard beahvior with a backorder or not.

opw-1934835
2019-02-18 10:02:06 +00:00
Odoo Translation Bot f7a976584b [I18N] Update translation terms from Transifex 2019-02-24 03:16:28 +01:00
Lucas Perais (lpe) 71a295a1d5 [FIX] base: qweb t-call propagates t-lang
Before this commit, the t-lang on a t-call was not
propagated into the context's of the callee template

It resulted into mismatch translation and formatting in the final
rendered template
i.e. having a t-esc with a qweb widget float would take the wrong float format

After this commit, the t-lang parameter alters the context of the template
and t-esc with widgets are translated

OPW 1939989

closes odoo/odoo#31291
2019-02-22 13:40:39 +00:00
Lucas Perais (lpe) 64a3d8f1d6 [FIX] portal: portal access management wizard for company
Have a partner which is a company, with some children
Click on the action "Portal Access Management"

Before this commit, only the children of the company is selectable in the wizard
but not the company itself

After this commit, the company is part of the list

OPW 1931920

closes odoo/odoo#31344
2019-02-22 08:51:46 +00:00
Moens Alexandre 21e44d472d [DOC] base: more explicit documentation
compute_sudo has no effects on non stored computed fields.
It was technically already said in the previous lines (REcomputed) but
it was not particularly explicit

closes odoo/odoo#31320
2019-02-21 13:00:47 +00:00
Moens Alexandre a874858981 [FIX] auth_signup: incorrect use of compute_sudo
compute_sudo does not do anything when the computed field is not stored.
This fixes an issue where user not part of base.group_erp_manager
couldn't modify res.partner

opw-1942803
2019-02-21 12:59:31 +00:00
Abu Zafar 82e526fc36 [CLA] signature for MjAbuz
closes odoo/odoo#31163
2019-02-20 13:13:46 +00:00
Luis 9f6fbca89b [CLA] add eilst to savoirfairelinux
closes odoo/odoo#31255
2019-02-20 13:03:44 +00:00
Christophe Simonis 5f08d82bcd [MERGE] forward port branch 11.0 up to fd122aec52 2018-09-26 19:37:29 +02:00
ThanhDodeurOdoo 2d82692648 [REF] documents, base: binary_content
- Changed the binary_content method
to make it more generic and allow alternative ways of checking
the access rights by using a new method check_access_mode.

   Reason: Asked by ODO following documents' security review.

- if all pages are processed, splitting a pdf will
archive the original attachment.

   Reason: FP feedback.

Task: 1853490
2018-09-26 19:18:38 +02:00
RomainLibert 379b09e2ee [IMP] crm,sale*: change/add demo data for dashboards 2018-09-26 18:35:13 +02:00
fda-odoo 8eb76675dd [IMP] l10n_generic_coa : adding demodata for OCREmpty invoice with an attachment in order to demonstrate OCR feature 2018-09-26 18:31:38 +02:00
fda-odoo c49037dee7 [IMP] account: add option to install account_invoice_extract
As account_invoice_extract is now in auto_install=True, we should show a default option in account to install or uninstall the module.
2018-09-26 18:31:38 +02:00
Mathieu Duckerts-Antoine 692b557284 [FIX] web: avoid empty header in pivot.
In comparison mode, a useless line with an
empty header was sometimes created due to
problem in the treatment of read_group results.
This is no longer the case.
2018-09-26 18:21:39 +02:00
Mathieu Duckerts-Antoine 61253cbf6b [FIX] web: better submenu switcher style in groupby menu 2018-09-26 17:42:55 +02:00
Géry Debongnie cc5e298185 [DOC] doc: add documentation on Systray Menu (JS) 2018-09-26 17:39:51 +02:00
Thibault Delavallée a637eaf438 [IMP] hr_holidays: improve kanban views
Purpose of this commit is to make kanban vignette a bit more aligned with
Odoo style. Those are much better now thanks to @est-odoo.
2018-09-26 17:22:27 +02:00
Thibault Delavallée ebaf57a5a7 [IMP] hr_holidays: department leaves should be based on members
Leaves and allocations have a My Department filter allowing to see leaves
or allocations linked to my department. Currently it is defined as the
department the current user manages. It is better to see the departments
current user is a member as it has more uses notably for HR officers.

Coming from @est-odoo direct live feedback.
2018-09-26 17:22:27 +02:00
Josse Colpaert c02279c9c7 [REM] iot: remove server-side module 2018-09-26 17:10:47 +02:00
Rémi Rahir 258cd4a869 [REM] account: remove docsaway
Removing the install button for docsaway as it was removed from
enterprise in commit 13abf0bfe78f5a000fecb9a05eedf03f07146394
2018-09-26 16:35:59 +02:00
Vincent Schippefilt 4f624b70fc [FIX] web: dialogs with shouldFocusButtons option have the focus set.
Before this fix, sometimes dialogs that had the option shouldFocusButtons set on open
did not set the focus on the buttons. This is especially true for the "discard changes"
dialog where it is less usable with the keyboard.

After this fix, we wait for the widget to append itself to the dom before setting the focus.
2018-09-26 16:18:41 +02:00
Vincent Schippefilt fe4c3e0064 [IMP] web: do not set accesskeys on buttons with tabindex=-1
It excludes a lot of 'noise' when we do not set automatically access keys to all
the skipped items, this allows a better focus on actions when using the keyboard.
2018-09-26 16:18:41 +02:00
Vincent Schippefilt 01abb0f254 [FIX] web: focus the buttons in warning dialogs 2018-09-26 16:18:41 +02:00
len-odoo fd122aec52 [FIX] website: fix image carousel
We fix a number of problems:
    - grayscale filter not being applied except on desktop Firefox
    - incorrect vertical-align on iOS
    - image sliders being displayed below the margin on iOS
    - carousel indicators flickering at initial load
    - very short indicator panel, almost unusable on mobile
    - misaligned indicators because of first margin
There are two modes on which these fixes apply:
    - image gallery in slideshow
    - slideshow in modal
       (e.g. obtained by clicking on the gallery set on masonry mode)
Note that due to a refactoring, the gallerySlider was not loaded in the modal,
completely breaking the indicators.

Coauthored by @nle-odoo

opw 1874274

closes odoo/odoo#27226
2018-09-26 14:14:14 +00:00
Olivier Colson eeed14c2a3 [FIX] l10n_ro: remove double unaffected earnings account
Only one account of this type is allowed by COA. Before that, the module wouldn't install itself.
2018-09-26 15:56:11 +02:00
Adrien Dieudonne 498c27a6af [FIX] line chart: show tick labels on x axes
Before this commit all x axis labels were not displayed because
ticksLabels was empty.

Now, we show all labels except the first one and the last one
because they are truncate.

We need at least two intermediate labels to know the scale and
the direction.
So, we only remove labels when there is more than 3 data points.
2018-09-26 15:55:12 +02:00
Gert Pellin b4bcf86f8e [FIX] hw_scale: read values from Adam scale
with migration from python2 to python3 not all regexes where converted
to byte-array.
2018-09-26 15:49:17 +02:00
Mathieu Duckerts-Antoine 8513aa0f98 [IMP] web: readable format of numbers
The functions 'formatFloat' and 'formatInteger' now format
a number x like utils.human_number when a predicate 'humanReadable'
is available in options and humanReadable(x) is true.
2018-09-26 15:37:03 +02:00
Laurent Smet c1954ba9c6 [FIX] account: set inv state to 'open' when unreconciling in 'in_payment'
- Check post_at_bank_rec on bank journal.
- Create an invoice of amount=x
- Register a payment of amount=x using the bank journal
(invoice state is now 'in_payment')
- unreconcile the payment

... The invoice state is still 'in_payment' instead of going back to 'open'.
2018-09-26 15:34:21 +02:00