Commit Graph
106475 Commits
Author SHA1 Message Date
Olivier Dony 32168400a4 [FIX] account.move.line: restore compatibility with RPC calls
Rev. d6e1d41128 removed old API
compatibility layer, but failed to preserve the ability to
call certain public methods from the RPC layer, when extra
browse_record parameters were required.

In particular the @api.v7 version of
`prepare_move_lines_for_reconciliation_widget` was dropped
and there was no way to call it with a `target_currency` RPC
parameter anymore.
2016-11-25 13:17:32 +01:00
Simon Lejeune a720364225 [REF] requirements.txt: downgrade lxml to 3.5.0
In order to circumvent https://bugs.launchpad.net/lxml/+bug/1625506
2016-11-25 12:34:27 +01:00
Christophe Simonis e2a8f7c61c [FIX] product: ensure at least 1 item when computing price from pricelist 2016-11-25 12:06:54 +01:00
Jeremy Kersten 4fa39c0e19 [FIX] website_forum: ask reason when refuse a post.
Call was done in ajax to speed up the moderation and don't wait refresh at each accpet/refuse post.
But the problem is that when you refuse a post, you need to be redirected to a new page to ask more
infos about the reason.
The fix is to do the request in ajax only when it is an 'accepted' post.

This commits fixes odoo/odoo@14462
2016-11-25 09:13:33 +01:00
Christophe Simonis 7d4ac39c4c [MERGE] forward port branch saas-12 up to d853d3c 2016-11-24 18:35:42 +01:00
Christophe Simonis d853d3c00e [MERGE] forward port branch saas-11 up to 3f3c88b 2016-11-24 18:29:46 +01:00
Christophe Simonis 3f3c88b4bb [MERGE] forward port branch 9.0 up to aa7d1ab 2016-11-24 18:24:29 +01:00
Pierre Masereel 41b2cf3a27 [FIX] purchase: double validation minimum amount
When we enable in the settings 'Get 2 levels of approvals' with a
'Double validation amount', and then create a request for quotation.
When we confirm it, even if the total amount of the request for
quotation is below the amount set in the settings, the purchase order
needs to be approved.

We excpect that if a purchase order has a total amount below the
validation amount setting, the purchase order is automatically
confirmed.

So to fix it, we compare the amount when the user click on the button
confirm. And immediatly call the function 'button_approve' if the amount
is below the double validation amount set in settings.

Bug introduced in rev: https://github.com/odoo/odoo/commit/9d4efc81a

opw - 694381
2016-11-24 17:17:38 +01:00
Christophe Simonis 440c8cc7c9 [FIX] payment_ogone: process s2s requests as sudo 2016-11-24 16:42:43 +01:00
François Revol ffe3c5a6d1 [CLA] Add ICLA signature by mmu_man
I hereby confirm I have signed the CLA and read the PR guidelines at
www.odoo.com/submit-pr

(yes, github mutilates nicknames with underscores)

Closes #13875
2016-11-24 16:29:18 +01:00
Christophe Simonis b57eb754bf [FIX] core: ignore comments when clean html from emails 2016-11-24 14:18:09 +01:00
Nicolas Martinelli 7e7205a7bf [FIX] payment_stripe: make it work
The module `payment_stripe` was apparently not designed to work with
module `website_payment`, althought the payment method is available. For
example:
- Go to '/my/home', select "Pay Now" on an invoice
- Try to pay with Stripe ==> nothing happens

This commit brings the necessary modifications to make it compatible
with `website_payment`. Moreover, it prevents the creation of 2
`payment.transactions`, which was not necessary.

opw-693421
2016-11-24 12:33:55 +01:00
Denis Ledoux cf98d58f88 [FIX] *: fix product.uom._compute_price method calls
During the conversion to the new api,
the method `product.uom`.`_compute_price` has had its signature
changed.

Formerly, it was:
`def _compute_price(self, cr, uid, from_uom_id, price, to_uom_id=False):`
Now, it is:
`def _compute_price(self, price, to_unit):`

Basically:
- the first argument `from_uom_id` is removed, and you now should
call this method from the model record directly
- the last argument is no longer a kwargs

Some calls to this method were still done the former way:
 - Some have been added during forward ports
 - Some are oversights when this method has been converted to the new api

This revision corrects the calls that were still done the former way
to the new way.

opw-694871
2016-11-24 11:33:38 +01:00
Goffin Simon 46c5db095a [FIX] account_tax_cash_basis: _get_tax_cash_basis_lines
When refunding a supplier invoice with tax cash basis and no cash flow,
a movement for the cash basis tax was created.

Only entries with cash flow must be created for cash basis taxes.

opw:693453
2016-11-24 09:57:09 +01:00
Nicolas Martinelli aa7d1ab9d1 [FIX] account: invoice tracebacks
When the company field is empty on an invoice, tracebacks occur.

Fixes #14410
opw-694476
2016-11-23 16:00:58 +01:00
Damien Bouvy 3321d9c1ca [FIX] payment_ogone: serialize correctly & validate with sudo 2016-11-23 14:59:52 +01:00
Odoo Translation Bot 9ab572fa4c [I18N] Update translation terms from Transifex 2016-11-23 13:50:32 +01:00
Josse Colpaert a6b41186ca [FIX] stock: fix issue when creating package and computing children quants
children_quant_ids is a computed field that does a search based on current
record id. However this causes a traceback when creating a record as
there is no id. This commit fixes this issue.
2016-11-23 12:49:49 +01:00
Josse Colpaert ba1602ee77 [FIX] stock: fix search and domain on location_id, company_id, owner_id of stock.quant.package
Those fields were stored computed fields before. However store has been
removed while migrating to the new API. We need a search function if we
want to be able to search on those fields and to use domains.

Domains are necessary to take packages from the right source locations.

The computation is done by searching the packages with the
"location/owner/..." domain and by returning a parent-of domain
in order to include all parent packages too.
2016-11-23 12:48:20 +01:00
qsm-odoo 9a1fd7c940 [FIX] website: fix opening of the SelectEditMenuDialog
When on a page event for example, when the user choose "Edit menu",
a modal is first opened to ask which menu to edit (the top menu or
the event menu ?).

This feature was broken with a web_editor refactoring. Indeed, the
dialog was converted to use the standard dialog class but the
widget was still inserted in the DOM thanks to "appendTo" instead of
the modal built-in "open" method, preventing it to be properly opened.
2016-11-23 10:34:18 +01:00
Thibault Delavallée 1e23b1921a [FIX] hr_holidays: fix forward-ported code still using workflows
Commit 0b87f76628 introduced in 9 some new
controllers in hr holidays. They are used to activate some workflow signals
through dedicated controllers.

However hr holidays workflow have been removed meanwhile at commit
6a8e4c6119. This commit fixes the forward-port
by correctling calling methods instead of trigerring workflow signals.
2016-11-23 09:46:10 +01:00
Goffin Simon 1c58ff30bd [FIX] account: _get_analytic_amount_currency
When creating a timesheet with several lines, it creates several
analytic lines and it raised an error: "Expected singleton"

opw:694722
2016-11-23 09:44:55 +01:00
Nicolas Lempereur 54d091448b [FIX] sale, website_portal_sale: see portal button
With a9bd9ab1 the access action was refined depending on the user.

But when sending a mail about a sale order, this lead to an issue since
a mail template is rendered with the current user and not the mail
recipients.

So in the case of a sale order, the recipient could not have a button
leading to /my/orders/{order_id} whilst he should have, because the
user used to render the mail was the sender (which was an employee and
not a share user).

This commit adds a context key "force_website" which force the action to
an available /my/orders even if the sender is not a share user.

opw-691040
2016-11-23 09:32:18 +01:00
Goffin Simon aad8079c73 [FIX] website_sale: Empty quantity in website cart
Empty quantity on a line in the website cart didn't delete the line.

opw:694361
2016-11-22 22:06:16 +01:00
Christophe Simonis 6a18e31cee [MERGE] forward port branch saas-12 up to c56cf85 2016-11-22 17:54:22 +01:00
Christophe Simonis c56cf85a3a [MERGE] forward port branch saas-11 up to 2633bb4 2016-11-22 17:50:41 +01:00
Christophe Simonis 2633bb4853 [MERGE] forward port branch 9.0 up to c7b1712 2016-11-22 17:35:59 +01:00
Christophe Simonis c7b1712592 [MERGE] forward port branch saas-6 up to 9780551 2016-11-22 17:33:38 +01:00
Christophe Simonis 9780551bb7 [MERGE] forward port branch 8.0 up to fbdac9c 2016-11-22 17:23:24 +01:00
Pierre Masereel 7196896e01 [FIX] web_tip: destroy method set call off() on undefined
In some cases, when the destoy method of 'Tip' calls the off() function on
'$breathing', even if this one is not defined.

To fix this error, we check that '$breathing' is not 'undefined' before
calling off() on it.
2016-11-22 17:14:02 +01:00
Pierre Masereel dcf50bf242 [FIX] purchase: update order_lines date_planned
When we are trying to use the button 'set date to all order lines, we
get a traceback saying, that update cannot be done, because it ensure
that there's only one record. (After 9.0, there is no more this
'ensure_one').

This bug has been introduced in rev: https://github.com/odoo/odoo/commit/401a3cfaf6fd09f594e45c181e908900acba3777

To fix it, we iterate over the order lines, and do the update of each
line.
2016-11-22 16:49:28 +01:00
Jeremy Kersten 2edc4b0234 [IMP] website_forum: add message for moderator
task-29810
2016-11-22 16:44:25 +01:00
Jeremy Kersten e94de1484f [FIX] *: make field 'name' from some *.tag model tanslatable 2016-11-22 16:44:25 +01:00
Nicolas Martinelli 27b6d245e7 [FIX] account, account_tax_cash_basis: rounding
When tax cash basis is used, the user might face the error "Wrong credit
or debit value in accounting entry !". A detailed use case can be found
in issue #14158.

The reason is that a float representation of `1.0` of the field
`matched_percentage` will become `1.000...2` when used in Python.
Therefore, such an expression such as `line.credit_cash_basis -
line.credit * matched_percentage` might lead to a slightly negative
value for the credit/debit, which will not pass the condition `CHECK
(credit+debit>=0)`.

Fixes #14158
opw-692797
2016-11-22 16:04:52 +01:00
Moises Lopez - https://www.vauxoo.com/ 4fb15ccdd7 [RES] base: Add thousand separation for es_MX ","
More information from https://en.wikipedia.org/wiki/Decimal_mark section:
"examples of use"
`The following examples show the decimal mark and the thousands separator in
various countries that use the Arabic numeral system.`
`Style: 1,234,567.89    Countries: Malaysia, Mexico, New Zealand, Pakistan,
Philippines, Singapore, Taiwan, Thailand, United Kingdom, United States`

Closes #14402
2016-11-22 15:08:39 +01:00
Alexis de Lattre 56653c8ce3 [FIX] stock: Typo in XML: strinsg -> string
Closes #14417
2016-11-22 15:04:58 +01:00
angelfentanez e965ac14dd [FIX] modules: add missing parameter to find_module
AddonsImportHook's find_module method to follow PEP302 by setting None as
default for the path parameter
Similar to edeb5a8c

Fixes #14087
Closes #14088
2016-11-22 14:51:05 +01:00
angelfentanez b1483b530a [CLA] Sign vauxoo CLA
cf #14088
2016-11-22 14:51:05 +01:00
qsm-odoo 131a16525e [FIX] web: pivot cell clicking when no current list/form view
When clicking a pivot cell, an action is triggered using the cell data
and current action list view and form view. If no list view and/or form
view exists for the current viewmanager, the action chooses the default
list and/or form view.

The fallback when there is no list and/or form view was broken with
commit https://github.com/odoo/odoo/commit/002660a9b05cf8620e1c5287a8538ac5e806d59e#diff-9e64efee6e4d81d03c04c0aad259d99cL280,
when the views internal data were restructured.

Fixes #14392.
2016-11-22 14:44:29 +01:00
Nicolas Martinelli b1dfce904a [FIX] sale: customized invoices
In Sale settings, enable "Personalize the sales orders and invoice
report..." and also "Show line subtotals with taxes included (B2C)".
Print an invoice ==> traceback.

This is because the field `price_total` doesn't exist on an invoice
line. Note that this field exists on a SO line.

opw-694438
2016-11-22 14:05:43 +01:00
Christophe Simonis 457a705bf0 [MERGE] forward port branch saas-12 up to d1fddd2 2016-11-22 14:02:03 +01:00
Jairo Llopis fbdac9c853 [FIX] website: fix search in existing pages
Previous implementation did not allow the user to search for pages 'name'
but only on the slugified name.

Now we slugify the needles before to find a match.

1. Create a new page: 'The new'
2. add a link on your website and try to find this page...
    - Before this commit, the only ways was to type 'the-new'
    - After this commit 'the new', 'The new', 'The-new', ... will match

This commit closes #10771
2016-11-22 13:47:17 +01:00
Christophe Simonis d1fddd24dd [MERGE] forward port branch saas-11 up to 659fb5d 2016-11-22 13:28:15 +01:00
Josse Colpaert a7b614f43b [FIX] mrp: make location on routing visible only when using advanced routings
The location field is shown all the time. However it is only used for 2-steps
which is more complicated to configure and understand. That is why advanced
routings group is used to hide this field in other cases.
2016-11-22 13:00:11 +01:00
Josse Colpaert 91acb7f04c [FIX] mrp: take langage into account when checking if the production order has still the default name 2016-11-22 13:00:11 +01:00
Josse Colpaert 8d59da3549 [FIX] mrp_repair: fix issue when having several warehouses in one company
onchange_operation_type on repair line sets source and destinations locations
when changing the type. However the code does not handle multiple warehouses
in one company. Now the first found warehouse is taken into account and
code does not crash anymore.
2016-11-22 13:00:11 +01:00
Josse Colpaert 461e39f045 [IMP] mrp: avoid highlighting 'Post Inventory' button
Having 'Post Inventory' button highlighted makes it look like a necessary step
to take. However in practice using 'Mark As Done' is sufficient. Moreover this
action also posts the inventory.

Removing the oe_highlight makes it look like an optional step. It is still
necessary in some cases with SO / MO when not all products are produced.
2016-11-22 13:00:11 +01:00
Josse Colpaert 659fb5d47e [FIX] stock: fix location complete_name and name_get
- complete_name field should show the entire hierarchy of locations.
   However currently it stops at first non view location. This commit
   fixes the complete_name computation.
 - name_get should correctly handle translations. It is now correctly
   computed instead of relying on stored value which could be incorrect
   depending on langages. Moreover name_get displays short name like
   old implementation of complete_name.
2016-11-22 12:52:57 +01:00
Christophe Simonis 42aaa68d10 [MERGE] forward port branch 9.0 up to b73518f 2016-11-22 12:41:06 +01:00
Christophe Simonis 64e73b8352 [MERGE] forward port branch 9.0 up to 290601e 2016-11-22 12:39:02 +01:00