Commit Graph
113713 Commits
Author SHA1 Message Date
Fabrice Henrion 053209fb0e [FIX] mail: add missing space
Closes #20782
2017-11-09 10:58:38 +01:00
Martin Trigaux da68d1d573 [FIX] fleet: harmonize terms 2017-11-09 09:54:48 +01:00
qsm-odoo c7171795f8 [FIX] web_editor: restore snippet option data parameter
Snippet options were not receiving proper data parameter on
instantiantion due to a websitepocalypse wrong adaptation. Those
data are parameters to tweak an option behavior, directly defined
on the option's <div/> in the XML. By mistake, they were now taken
on the child <li/> element (main DOM element of the option).

A visual example of the bug is the overlay colorpicker displaying
"Background Color" as a title instead of "Overlay Color".
2017-11-08 18:28:48 +01:00
Martin Geubelle 191f9d0598 [FIX] web: reuse the same BasicModel instance
Before this revision, only the FormView allowed to reuse the same datapoint.
This was only used when opening a FormViewDialog when opening the form view
of record in a one2many field.

However, this could be useful in other places for other views. In Studio for
example, we need to instantiate a x2m view without the parent view ; we thus
need to be able to reuse the same model for all basic views.
2017-11-08 17:19:28 +01:00
Martin Geubelle c13c9e0b5c [FIX] web: invalid domain in DomainSelector
A domain could contain the key `parent` (in an embedded subview), like:

    domain="[('display_name', '=', parent.display_name)]")

This is currently not handled by the DomainSelector.

This will probably be handled in a future version but for this stable version,
this case that triggered an error is now catched and an error message is
displayed in the widget.

This was causing a traceback when opening a domain with `parent` in the edition
of a subview with Studio.
2017-11-08 17:19:28 +01:00
Nicolas Lempereur 9f0bc83788 [FIX] web: calendar IE9+ incompatibility
The "Event" API is not the same between IE9 till IE11 and all the other
browser (eg: IE Edge, google chrome, firefox, ...).

For example here is a seemingly accepted polyfill to have it working the
'same' on most browsers using CustomEvent:

https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill

This commit just trigger the event with jQuery which attains the same
result but work everywhere.

opw-780056
closes #20759
2017-11-08 15:55:40 +01:00
Martin Trigaux abf8568879 [FIX] fleet: fix typo
Courtesy of translator teams
2017-11-08 15:52:30 +01:00
Martin Trigaux 0f10589eb4 [FIX] base,sale_timesheet: English
Thoses -> those
Add model description

Courtesy of translators for report
2017-11-08 14:27:48 +01:00
Nicolas Lempereur 54d5678696 [FIX] board: manage modifiers on save
With da136d83 we have modifiers on every elements but when saving them
for dashboard they have to be stringified to be used.

Also a part of a previous code was still present that removed context
and domain from a saved dashboard when modifying it.

opw-779071
closes #20725
2017-11-08 12:43:55 +01:00
Martin Trigaux 36caadaf6a [IMP] calendar: translate calendar reminders name
and rename the alarms by email for a better name

Makes sense to be translated as general and useful to have it as data.

Fixes #20634
Closes #20644
2017-11-08 10:23:45 +01:00
Wolfgang Taferner 13f9d8a502 [FIX] stock: key error due to bad search/replace -> typo 2017-11-08 08:41:31 +01:00
Martin Trigaux c7e0a802a6 [FIX] sale_payment: correct plural form
To make it translatable
2017-11-07 16:50:41 +01:00
Christophe Simonis 449ec5e29d [MERGE] forward port branch saas-16 up to 255478acbd 2017-11-07 15:28:28 +01:00
Christophe Monniez 8670f62e3c [REF] documentation: reorganize setup/install
Odoo setup/install documentation needed a re-organization and an update
to reflect the latest dependencies versions.
There was too much warnings and danger signs on this page.
Finally, the structure was not the same for each install method.

* As CentOs is actually too old to handle python3 dependencies for Odoo,
  rpm install method is explicitely mentioning Fedora 26.
* The "yum" package manager has been deprecated in Fedora and replaced
  with "dnf".
* As Debian and Ubuntu don't ship a python3-num2words package, the
  documentation must provide a hint on how to install the module using pip.
* The documentation was missing the virtualenv way of installing Odoo.
* Paragraphs mentioning configuration file were removed. The
  reference/cmdline page should be updated consequently.
2017-11-07 14:22:43 +01:00
Rémi Rahir e08ce34334 [FIX] doc: iap doc
Added missing images in the documentation.
2017-11-07 14:13:50 +01:00
Martin Geubelle 255478acbd [FIX] web: clear m2o input at creation cancel
After entering a value in a many2one, if one clicks somewhere else, a popup
is opened to suggest the user to create (or not) a new record with the entered
value.

Before this rev, closing this popup resulted in an unclear situation where the
input was still set with the entered value but the new record hadn't been created.

This commit fixes this by clearing the input value if the record is not created.

See task#36055
2017-11-07 14:12:18 +01:00
Simon Lejeune 2fe84fd217 [FIX] stock: a view location cannot contain any quant 2017-11-07 14:01:33 +01:00
Martin Trigaux d0e1650042 [FIX] sms: correctly fetch the phone number
`records` is the `active_model` object
from `records`, we retrieve `partners` on which there is a field mobile

Fixes #20134
2017-11-07 13:50:59 +01:00
Martin Trigaux 35b66c8f9e [FIX] sale_timesheet: clarify field label
Was unclear
Courtesy of the translators team
2017-11-07 12:17:39 +01:00
Nicolas Martinelli 02dfd4fed8 [FIX] l10n_us: ABA/Routing number
Edit/create a bank account:
- Add a correct ABA number => nothing is displayed
- Add an incorrect number (e.g. with letters) => it crashes

Combining an `Integer` field with a `char` widget is just a bad idea...

opw-781069
2017-11-07 12:14:45 +01:00
Christophe Simonis 45958ab312 [MERGE] forward port branch saas-16 up to 5f9c3f51a8 2017-11-07 11:45:42 +01:00
Jeremy Kersten f8bf66b6de [FIX] website_crm_partner_assign: assign opportunity to the commercial_partner_id
Before this commit, an opp created from a contact via the portal was assign to
himself instead of the commercial_partner_id.

So the saleperson was not assigned to the opportunity, and the opp created was
not for the company but for the contact only.

That make sense to share the opp to the company and assign the saleman directly.

Thanks to GBR for the reporting.
2017-11-07 11:38:12 +01:00
Christophe Simonis 5f9c3f51a8 [MERGE] forward port branch saas-15 up to db4886d511 2017-11-07 11:01:14 +01:00
Christophe Simonis db4886d511 [MERGE] forward port branch saas-14 up to 928a284b11 2017-11-07 10:59:45 +01:00
Martin Trigaux 8e298f69cd [FIX] base: correct ISO language code
Bad ISO 639-1 code
In 9.0 iso_code was guessed with `get_iso_codes` which was too simplistic
e.g. it_IT => it (correct) but ja_JP => ja_JP (incorrect)

Fixes tw:tashiropen/status/927779483041415168
2017-11-07 09:49:29 +01:00
Christophe Monniez 77ca51f089 [FIX] base: set mimetype on js and css assets
On MS Windows, the mimetypes module relies on the Windows Registry to
guess mimetypes. As a consequence, when generating assets bundle for
javascript files, the mime type of js files may be wrong. In that
particular case, the Odoo user is facing an empty web page.
This commit enforce 'application/javascript' for js assets when they are
saved as ir_attachment in the database.
2017-11-07 09:28:25 +01:00
Hbto [ Vauxoo ] 99989ad84b [FIX] account: fix _compute_parent_state() if called on more than 1 record
Was PR#20479. Courtesy of Vauxoo
2017-11-07 09:19:01 +01:00
jem-odoo e6d4bdf72b [FIX] resource: avoid duplicate attendances when updating module
Since some calendar are in data, and their attendances
in an 'eval' with '0' ORM command, we need to put them
in noupdate mode to avoid duplicating attendances when
we update the module.
2017-11-07 08:57:29 +01:00
Simon Lejeune 4a5f07654f [FIX] stock: origin and partner_id when procurement group is set
We chose to erase the partner_id and ref field on a picking when its
content may refer to multile records. Note that the partner_id field was
already hidden in the view of internal picking.
2017-11-07 08:23:16 +01:00
Joren Van Onder 82a90bc094 [FIX] pos_mercury: decode bytes from ir.ui.view render and requests
Due to switching to P3.

opw-779720
2017-11-06 19:56:26 -08:00
Joren Van Onder 2dfcc18950 [FIX] pos_mercury: escape_html does not exist
It's called html_escape. Introduced in
e2f1af78c4.

opw-779720
2017-11-06 19:56:18 -08:00
Christophe Simonis 928a284b11 [MERGE] forward port branch 10.0 up to 08ab28a66c 2017-11-06 16:00:15 +01:00
Martin Trigaux dc6757032f [I18N] mail: clarify the view button
View may be the action or the object
It is not translated the same way in some languages (e.g. Fi)

Fixes #20595
2017-11-06 14:39:10 +01:00
Nicolas Martinelli 08ab28a66c [FIX] sale_expense: fields consistency
Use case to reproduce:
- Set a product to be expensed
- Set the expense_policy to something else than no
- Do a delivery order with a picking
- Validate the picking
-> Delivered quantity to 0 and impossible to create an invoice
if the invoice_policy is delivered_quantity

It happens due to this commit 48ea59d
What does it do:
- The move could be generated by an expense.
- If the move has 'no' as expense policy thus we won't add it in the invoice
Problem we can't guess if the move come from an expense or not (limitation).

This commit add an onchange on can_be_expense is order to set the expense
policy back to 'no' when the user uncheck it.

Courtesy of amoyaux

opw-777139
2017-11-06 13:05:37 +01:00
Wolfgang Taferner 939e00abc4 [FIX] account: remove duplicated methods 2017-11-06 12:51:03 +01:00
Christophe Simonis 88c641e6dc [MERGE] forward port branch 10.0 up to 6c1c1f6e9e 2017-11-06 12:42:56 +01:00
rde fae62ea457 [FIX] website_sale: promo code remove duplicate display and popover
Before this commit:
1. The promo code form would be displayed in the cart popover (when you
   mouseover the 'My Cart' menu in the navbar.)
2. The promo code form would appear twice at the 'Payment' step at the checkout

Now:
1.  The promo code form is not displayed in the popover anymore
2.  The promo code form will only be shown once at the checkout 'Payment' step

This closes #20539
2017-11-06 11:19:46 +01:00
Yenthe V.G 8787f5acee [FIX] website: Redirect search to correct controller
This commit closes #20706 and closes #20074
2017-11-05 22:49:45 +01:00
Jeremy Kersten 15b88ee15a [FIX] website: fix 404 page when asset not yet generated
This commit closes #20554
2017-11-05 22:47:25 +01:00
Odoo Translation Bot 11a8728c74 [I18N] Update translation terms from Transifex 2017-11-05 04:37:27 +01:00
Odoo Translation Bot 6c1c1f6e9e [I18N] Update translation terms from Transifex 2017-11-05 01:11:44 +01:00
Christophe Simonis bf102b4cbc [MERGE] forward port branch 9.0 up to 6c996723b2 2017-11-03 14:36:22 +01:00
Christophe Monniez 4035d55d56 [FIX] package: fix the windows build test
As the windows package provides odoo from sources alongs with
python 3, the test of the build was failing.
The odoo-bin.exe was not found because py2exe is not used anymore.

Windows firewall is now disabled from package.py to prevent it
from blocking local xmlrpc calls.

Also, the docker containers were removed when package tests were
finished, even when no docker was involved in the process (e.g. only
a windows build).

This commit fixes the test part of the windows build process.
2017-11-03 14:33:24 +01:00
Lucas Perais (lpe) 4b72944bba [FIX] point_of_sale: fix invoice download and receipt printing
When opening the POS in this specific case:
- Under Mozilla Firefox
- auto printing the receipt is True
- invoicing is True

Before this commit, when issuing an invoice for a customer, a Traceback was thrown to the user and the invoice was not downloaded.
This was because the invoiced parameter resolved before the printing action was.

After this commit, we constain the invoiced parameter to be resolved when the action returns.
There is no traceback, and the invoice is downloaded

OPW 777647

closes #20570
2017-11-03 14:27:24 +01:00
Christophe Simonis 5fa577a14d [MERGE] forward port branch saas-15 up to 8ec60550a7 2017-11-03 13:36:41 +01:00
Nicolas Martinelli 6c996723b2 [FIX] point_of_sale: wrong variable name
`tax_amount` is not defined here, making it impossible to remove an
order line...
2017-11-03 13:16:15 +01:00
Nicolas Martinelli f85c8843c9 [FIX] account, point_of_sale: tax with fixed amount
- Create a tax:
  Fixed amount: 10
  Price included
- Add it by default to a product costing 100
- In a SO/PO/Invoice, add 2 units of the product

The total price is 210 instead of 200.

opw-779696
2017-11-03 12:57:34 +01:00
Denis Ledoux 8360daa057 [FIX] sale_stock: failing sale_stock.tour according to the modules installed
The `sale_stock.tour` failed in the case the admin was not
part of the group
`product.group_stock_packaging`
or the group
`sale.group_mrp_properties`

because then the sale order was working with the editable list,
which does not open a dialog,
while the test was relying on the dialog to be opened,
in order to close it.

The fix is simply to pass the fact to close the dialog if
there is none.

opw-779308
2017-11-03 12:51:09 +01:00
Christophe Simonis 8ec60550a7 [MERGE] forward port branch saas-14 up to d8888bdbae 2017-11-03 12:50:21 +01:00
Christophe Simonis d8888bdbae [MERGE] forward port branch 10.0 up to aaa7566141 2017-11-03 12:10:41 +01:00