Commit Graph
113693 Commits
Author SHA1 Message Date
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
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
Christophe Simonis aaa7566141 [MERGE] forward port branch 9.0 up to 455b5aaff8 2017-11-03 11:42:39 +01:00
Nicolas Martinelli 15310c4d66 [FIX] web_editor: upload without optimization
In Enterprise:
- Go in Settings > Technical > Mail > Templates
- Edit a template
- In the editor, upload an image
- Choose "Upload image without optimization"

You are sent back to the app switcher.

opw-778918
2017-11-03 10:19:47 +01:00
Nicolas Martinelli 95747685f7 [FIX] stock: group by in Packages
Location and Company are non-stored fields. Therefore, grouping by these
fields leads to a traceback.

opw-779564
2017-11-03 10:05:59 +01:00
Miquel Raïch f993ca8ce7 [FIX] point_of_sale: adapt test for multicompany
Only products without company can have taxes of different companies

Closes #20256 
Fixes #20250
2017-11-03 10:02:43 +01:00
Nicolas Martinelli e66ef451c9 [FIX] stock: incorrect decorator 2017-11-03 09:54:30 +01:00
Nicolas Martinelli 084dbf9b8f [FIX] stock: inventory adjustment
The inventory adjustment form is not suitable for large inventories.

First, a list view embedded in a form view is not convenient since it
doesn't provide any search capabilities. The user has to rely on the
search feature of the browser, which has restricted features in
comparison to the Odoo search field.

Then, the existing onchange mechanism coupled with computed fields
triggers heavy computations impacting all lines each time a single
line is modified. This leads to a hanging page for every inventory line
modification, which causes a non-negligeable loss of time.

This commit introduces a new tree view for inventory lines, accessible
thanks to a stat button on the inventory page. This button is available
in debug mode, if the inventory is in state 'Confirmed'. The tree view
contains the same fields than the tree view embedded in the form view,
without the flaws of the latter.

opw-760614
2017-11-03 09:54:30 +01:00
Andrew Latham 5aebc22722 [FIX] account: correct English mistakes
From #20652 taking visible strings to 11.0
2017-11-03 09:18:56 +01:00
Nicolas Martinelli 0e7f3be6b6 [FIX] stock: incorrect decorator 2017-11-03 08:57:27 +01:00
xmo-odoo b62bb5add2 IAP doc: tutorial (#20317)
* [ADD] doc: iap tutorial

Should be easier to approach than the raw APIDoc. 
contains:
- overview of the flow
- tutorial (coalroller) with guidelines
- technical description of objects/helpers
2017-11-02 19:06:33 +01:00
qsm-odoo 9818f1c535 [FIX] web_editor: allow selecting an uploaded img without crash
Somehow, fixing multi selection with https://github.com/odoo/odoo/commit/e011d58bee140411ccfb1ef9115dddc090d573c3
broke the use of the image upload button combined with no selected
image at the beginning.
2017-11-02 17:02:00 +01:00
Martin Trigaux be7927d629 [FIX] payment_buckaroo: remove bad link
The link does not work anymore.
Even when it was, it did not provide any information as can be seen in
https://web.archive.org/web/20160608025556/http://www.buckaroo-payments.com:80/business/customers/online-payment/

Fixes #16987
2017-11-02 16:34:11 +01:00
Martin Geubelle 3e63f01cf1 [FIX] web: FieldSelector: add model in field attributes
The key `model` was missing in the FieldSelector selected fields.
The model can be useful for example to create a one2many related field.
2017-11-02 16:02:11 +01:00
Simon Lejeune b2466c80ae [FIX] mrp: default view of stock move line
This view was introduced by rev[1] to be more adequate in the usecase
of the finished move line in mrp. A priority was not set and thus it
became the default view for stock move line, even in the stock
application. Moreover, it used a field only used in mrp in a domain
resulting traceback when displayed in the context of stock.

[1] f6c89de81e

Fixes #20610
2017-11-02 15:33:47 +01:00
Moises Lopez - https://www.vauxoo.com/ 534f91d496 [I18N] base_vat: VAT Translation for es_MX
Closes #20613
2017-11-02 15:26:45 +01:00
Martin Trigaux a7fda25301 [FIX] mrp: unclear label
Missing verb or something
Courtesy of Translators
2017-11-02 15:19:01 +01:00
Simon Lejeune 50a6f50df1 [FIX] mrp: production chained to a done or cancelled move
Do not try to run `action_assign` on the next move if it is done or
cancelled. The issue is that `action_assign` will first unlink the
existing pack operations before creating new ones, and the system
forbids to unlink these ones.

To reproduce this issue:
1. Create a product, routes manufacturing and MTO
2. Create SO with that product
3. Go to DO and force assign then cancel the delivery
4. Go to Manufacturing order created and produce

opw 778897
2017-11-02 14:02:18 +01:00
Laurent Smet 455b5aaff8 [FIX] account, point_of_sale: fix rounding issues with taxes computation (#20573)
Suppose a tax of 20% with price_included = True and apply this tax on 399.99:
- base = 399.99 / 1.2 = 333.32500000000005
- tax_amount = base * 0.2 = 66.665
- round(base) + round(tax_amount) = 333.33 + 66.67 = 400.0 (!= 399.99: WRONG)

-opw: 777925
2017-11-02 14:02:04 +01:00
Yenthe V.G 112ed4f54d [FIX] base: correct typo
Closes #20601
2017-11-02 13:57:01 +01:00
Xavier Morel e134dde867 [FIX] base: make partner.company_type properly writeable
In 7eab8e26d3 res.partner was converted
to the new API, at that point company_type was changed from a stored
field manually synchronised with is_company (through create/write
overrides) into a proper computed field.

However to make it "editable" it was simply marked as
"readonly=False", which means even though UI-wise it looks editable
editing it does not actually do anything (things work in the partners
form because there's also an onchange which updates is_company on the
fly).

Fix by implementing an inverse function and actually do this
correctly.

Fixes #20623
2017-11-02 13:14:59 +01:00
Nicolas Martinelli 75b7f62783 [FIX] maintenance: default supplier
- Go to Maintenance Requests, Create
- Go to 'Equipment' field, 'Create and edit'
- Go to 'Product Information' tab
- Click on 'Vendor' field, 'Create and edit'

'Is a Vendor' field is False

opw-779200
2017-11-02 11:51:24 +01:00