Commit Graph
117156 Commits
Author SHA1 Message Date
Christophe Matthieu acb4689827 [FIX] ir_qweb: t-esc escape the content only if don't use widget
trusts widgets who must return safe html content
2017-10-12 10:09:59 +02:00
Goffin Simon 20aaa69eef [FIX] account, hr_expense: registering a payment for a multiple lines expense sheet
When registering a payment for an expense sheet with several expense lines, only
the first line of the expense sheet was linked to the account move line of the payment.
So the payment was considered as partially reconciled.

Now when a payment is registered for an expense sheet with several expense lines,
the user is redirected to the manual reconciliation widget to link the move line of
the payment to all the expense lines. In this way, the payment will be considered as fully
reconciled.

DO NOT FORWARD-PORT! ONLY FOR v10

opw:772505
2017-10-12 09:49:29 +02:00
Martin Trigaux 74452f947f [I18N] web: fix bad translation
The languages are not on Transifex so manually correcting the files.
opw-776115
2017-10-12 09:32:36 +02:00
Goffin Simon 8aca743c6e [FIX] website_sale_delivery: Incorrect price displayed for Delivery Method
The price on a delivery.carrier is computed according to the currency of the SO
in function "get_price".

opw:771773
2017-10-12 09:29:27 +02:00
Christophe Monniez 347acbb4c2 [IMP] packaging: remove some packages dependencies
On Ubuntu Xenian, the Odoo package was difficult to install because
three Debian packages were required but could not be found in Ubuntu
repositories. As those packages are not really crucial, they are
now only suggegsted by the Debian package which is therefore
installable on Ubuntu Xenial. One can manually install them as
explained in the documentation.

Closes #20000
2017-10-12 08:51:17 +02:00
Christophe Monniez fc76b1d565 [REM] remove any openid reference
Purpose: openid is not used anymore in Odoo, therefore it can be
safely removed.
2017-10-12 08:43:21 +02:00
Jairo Llopis d329b946d6 [FIX] website_portal: improve mobile layout
This commit closes odoo/odoo#19267
2017-10-11 17:56:23 +02:00
Odoo Translation Bot 38155cd786 [I18N] Update translation terms from Transifex 2017-10-11 17:17:17 +02:00
Christophe Monniez 7d45ca23e1 [FIX] package: add missing rpm python3 package
python3-psycopg2 package was missing in the RPM.
2017-10-11 16:24:25 +02:00
Laurent Smet 2f3b469dee [FIX] account: fix unreconciled amount on reconciliation widget
Try to reconcile a bank statement of 1000 to an invoice of 650 amount.
The balance amount of 350 is missing on the resulting account.move and
the bank amount is 650 instead of 1000.

task: https://www.odoo.com/web#id=36342&view_type=form&model=project.task&action=333&active_id=967&menu_id=4720
2017-10-11 16:07:36 +02:00
Adrien Dieudonne 9ad378244c Revert "[FIX] test_main_flows: missing dependency to run it in a browser"
This reverts commit 58e9144250.
2017-10-11 16:05:30 +02:00
Adrien Dieudonne 58e9144250 [FIX] test_main_flows: missing dependency to run it in a browser 2017-10-11 15:57:29 +02:00
David Vidal ee7cfba917 [FIX] website_sale: Avoid compute tax for every company
When a product has multiple company taxes and b2c prices is enabled, price is
not computed properly and adds to the base price every company tax present.

This patch filters the company set on the company so taxes are computed just
for that company.
2017-10-11 15:55:20 +02:00
Dharmang Soni 2564d66fe0 [FIX] mail: smooth scrolling in discuss for iOS app
In the iOS app, the content immediately ceases to
scroll when you remove your finger from the touchscreen.

Now, he content continues to scroll for a while after
finishing the scroll gesture and removing your finger
from the touchscreen.
The speed and duration of the continued scrolling is
proportional to how vigorous the scroll gesture was.

This Css property is the only way we find to have
the same behavior in the android app and in the iOS app.
2017-10-11 15:11:45 +02:00
qsm-odoo bc623461b3 [FIX] website_sale: allow to properly click on mobile checkout button
Part of the button was hidden by the (invisible) right column content
when using some particular themes.
This is because of a messy XML structure that cannot be safely repaired
in a stable version. This commit fixes the bug with CSS.

Note: this may need to be backported to 9.0 and the XML structure should
be improved in master.
2017-10-11 15:01:32 +02:00
Christophe Simonis 5a9f1539e1 [MERGE] forward port branch 9.0 up to 99703583d4 2017-10-11 13:59:22 +02:00
Raphael Collet 10412d351c [FIX] fields: prefetching of related fields (#20017)
Prefetching is underused when all fields are traversed one record at a time.
So instead, traverse all records one field at a time.  This guarantees batch
prefetching/computation on every field being accessed.
2017-10-11 13:39:02 +02:00
Jeremy Kersten 48fa000bb2 [FIX] website: don't force a maxlength for key
That seems useless and break some code like the 'website menu' feature from website_event

This fix closes odoo/odoo#20023
2017-10-11 13:37:12 +02:00
Adrien Dieudonne aac4918096 [FIX] web: kanban mobile horizontal scroll issue
In mobile, the .o_kanban_card_content width wasn't defined.
In desktop, we don't have this issue because the .container bootstrap
element set the width.

Now, the kanban card content is correctly displayed in
the workcenter kanban view.
2017-10-11 13:21:45 +02:00
zeroheure 7df69c455d [11.0][FIX] Fixed icons size in html address block
Fix  #19875 (Misaligned contact informations on contactus page ) by adding fa-fw attribute in each call of fa icons in address block.
Reference http://fontawesome.io/examples/#fixed-width
2017-10-11 13:18:18 +02:00
ougc27 f58e6351ee [CLA] update jarsa's CCLA contributors list
Closes #19983
2017-10-11 12:17:19 +02:00
Adrian Torres 64d52cf85f [IMP] base_import_module: Add layer of security (#19175)
Previous to this commit, anyone could import studio customizations into
a community db, this was troublesome since some people would just
install studio, do their customizations and then move them into a
community db, not paying anything at all.

This commit fixes this by checking whether the exported views were
created with studio or not and if studio is installed
2017-10-11 12:03:05 +02:00
Xavier Morel c418d73445 [FIX] product: image update in variants
Fixes #19945
2017-10-11 11:59:16 +02:00
Raphael Collet 0af8d4ffd2 [FIX] fields: performance optimization
Add a shortcut in `copy_cache`, to avoid iterating on all fields.
2017-10-11 11:55:02 +02:00
Martin Trigaux 4cdc1f4df2 [FIX] base: avoid confusion between synchronize and update terms
The action "Load a Translation" is wrongfully considered as only for
installation of a new language (while it is for update too).

The action "Synchronize Terms" is wrongfully considered as to refresh
translations of installed language (while it is to generate empty translations).
Rename to "Generate Missing Terms"

The res.lang tree view encourage this misconception with a "update terms" that
actually triggers a synchronize terms action.
Change the triggered action to the "Load & Update"

Move the list of languages to always visible in settings.
This list is not very technical and will avoid to go to debug mode for basic
actions like updating the sources of checking what languages are installed.
Going less often to dev mode will hide the misleading "Synchronize Terms" action
for normal users.

Closes #19911
2017-10-11 11:54:05 +02:00
Xavier Morel 4c3846e7e0 [FIX] tools: use codecs for csv reader/writer
The class PoFile was already using it.
TextIOWrapper closes its underlying buffer causing the "Synchronize Terms" action
to fail (trying to read on a closed buffer).

Fixes #19911
2017-10-11 11:42:31 +02:00
Martin Trigaux f5b2a4b0f2 [FIX] doc: update to version 11
Use python 3.5
Refer to correct page of the doc
Remove old bazar to git (was intended for the 8.0)

Remove outdated setup_dev script: it was intended for odoo developers but if you
are not able to make a git clone, you are going to have a bad time later.
2017-10-11 11:38:36 +02:00
Richard Mathot 66f7d393d3 [FIX] web: debug mode tooltip
Display properly the content of context object instead of
[object Object].
2017-10-11 10:40:46 +02:00
Nicolas Martinelli 02dffa45ae [FIX] hr_expense: included tax and round globally
- Set 'Tax calculation rounding method' to 'Round Globally'
- Create a expense product with a tax of 20% included in the price
- Create a expense of 19.99
- Submit the expense in a expense sheet
- Validate the expense
- Post the expense
- Register a payment of 19.99

The expense is not set as paid.

The source of the issue is that the tax line is created without being
rounded. In the specific example, two lines are created with amounts:
- 16.658
- 3.33166667 (Tax)

This introduces rounding error in the computation of the matched
percentage, and the expense is not set as paid.

We force the rounding of the taxes since the 'Round Globally' option has
no impact on an expense report.

opw-773908
2017-10-11 09:56:59 +02:00
Jeremy Kersten c7e9a8f74f [FIX] website_sale: improve microdata
opw-774350
2017-10-10 21:45:24 +02:00
Christophe Simonis e1104ac344 [FIX] core: revert cb1cfadda2
Due to Cache reimplementation, this commit can't be applied as-it in
version 11.0 and need to be adapted correctly.

Undo PR #19963
2017-10-10 18:36:34 +02:00
Rémi Rahir ee73f6a028 [FIX] iap: fix charge helper
InsufficientCreditError was not properly raised, thus not caught by the JS.
2017-10-10 17:34:07 +02:00
Nicolas Martinelli 99703583d4 [FIX] account: invoiced amount
- Create 2 companies: A is parent of B.
- Demo is in Company A
- Create 2 invoices for a partner: one in A, one in B (100 each)
- Validate the invoices

Connected as Demo, the 'Invoiced' amount on the partner form view (stat
button) is 100, while clicking on it shows both invoices (total of 200).

There is no need to manually add the company in the `where` clause since
the `_apply_ir_rules` will take care of adding the appropriate
multi-company rules.

opw-772479
2017-10-10 17:20:41 +02:00
Xavier Morel 087bebf87a [FIX] base: japanese address pattern
original commit forgot an "s" (in %(street2)s), leading to `\n`
becoming the format character, except that's not a *valid* format'
character, yielding a ValueError "unsupported format character
'?' (0xa)" any time an address is displayed if the current country is
Japan (and the system thus uses the japanese address pattern rather
than a generic one).

Closes #20008
2017-10-10 17:16:31 +02:00
Christophe Simonis 6c2ab192ea [MERGE] forward port branch saas-16 up to 88a9980b0c 2017-10-10 16:49:59 +02:00
Deep Patel bfba2c0e75 [FIX] web_editor, portal: some edition fixes
- Hide navbar divider in mobile view
- Change font to default when applying header style
- Remove form tag from media dialog search input to avoid redirection
2017-10-10 16:19:29 +02:00
Yannick Tivisse 39f83aa890 [FIX] res_lang: Use a non-breaking space as thousand separator in fr_FR 2017-10-10 16:18:20 +02:00
Christophe Simonis 2d8e6ff05e [FIX] mail: handle empty recordset when computing unread message count 2017-10-10 15:56:22 +02:00
Cédric Pigeon (ACSONE) 4206d1c2a2 [FIX] models: in create, add translations after setting x2many fields. (#19348)
Otherwise if a record rule is defined on a x2many field on the model, the creation will fail because
ir.translation creation check access rules on the model and in this case, the x2many relation are
not set yet.
2017-10-10 15:53:09 +02:00
Xavier Morel 7f6d32d5e0 Revert "[FIX] qwebjs: add tests to test suite" 2017-10-10 15:39:39 +02:00
Ankit Joshi f98fe5ac75 [FIX]mrp: In mo origin field shouldn't be hidden in normal mode. 2017-10-10 15:21:10 +02:00
Martin Trigaux 12ef9ed0af [I18N] base: update source terms
Was missing from previous commit
Add missing reference to sms modules in the Transifex configuration file
2017-10-10 15:18:44 +02:00
Simon Lejeune b33ef74d16 [FIX] purchase: amount of the purchase in the logged message
When a picking is created from a purchase order, a message is logged in
the chatter:  "This transfer has been created from: POXXX: XX$".

Ideally, an inventory user should not have access to the purchase
orders. Sadly, removing the access right brings a lot of access right
issues, so this commit only remove the amount from the logged message

We adapt the name_get that always displayed the total amount of the
purchase order since rev[1], as a message was logged in the chatter when
a picking is created from a purchase order and the message contained this
value.

We implement a context key to display the total amount in the name_get,
as it is used when linking a vendor bill to a purchase order.

[1] 0c618d79ff
2017-10-10 15:17:11 +02:00
Roser Garcia e277f57241 [CLA] add member in Eficent's CLA
Closes #20009
2017-10-10 15:11:25 +02:00
Goffin Simon cae506f0ed [FIX] website_quote: quotation template with visible discount on pricelist
Steps to reproduce the bug:

Let's consider a product A with a price of 100
Let's consider a pricelist P with a visible discount of 50% on product A.
Let's consider a quotation template Q with one line with the product A with 50%
of discount.
Let's create a SO with pricelist P and set the quotation template Q on it.

Bug:

The unit price of A on SO is 50 instead of 100 and the visible discount is 50%
instead of 75%.

With the fix:

The unit price is 100 and the discount is 75%

opw:771996
2017-10-10 14:46:35 +02:00
Richard Mathot 1bd7785c52 [FIX] crm: model does not exist anymore 2017-10-10 14:39:50 +02:00
Nicolas Lempereur 1c38486ed6 [FIX] mail: error if called in onchange of virtual
This field can be called on an hr.expense for onchange on an
hr.expense.sheet record, thus the recordset could be a virtual ID so
self.ids could be empty leading to an error.
2017-10-10 14:29:30 +02:00
Xavier Morel 60a207dd6c [FIX] qwebjs: add tests to test suite 2017-10-10 14:27:44 +02:00
amoyaux 64237aa3ab [FIX] stock: package transfer shows related pickings
Use case to reproduce:
- Create a picking with a package
- Go to the source or destination package
- Click on package transfers
-> It displays all the pickings

This happens because the package transfer button calls
the all picking tree view that display them.

This commit use an action instead that will add a domain
on it in order to only display the pickings that used the
selected package.

opw-774013
2017-10-10 14:26:35 +02:00
Xavier Morel 6e646bc8bd [FIX] web: make qwebjs tests pass again
A bunch of features had been added to the qweb test files and qwebjs
did not pass them as features were either implemented differently or
not implemented at all:

* Fixed wonky and not cross-impl tests
  - added ``not`` word replacemenet to qwebjs as I wasn't sure how to
    handle that one cross-impl
* fixed t-esc/t-raw to render content *inside* the host node e.g.
  span@t-esc should render as <span>{contents of esc}</span>
* added fallback to body content if t-esc/t-raw yields an empty result
* process t-att in order with t-att-* and t-attf-* rather than before
  them both
* suppress attribute generation entirely in case of falsy value
2017-10-10 14:25:19 +02:00