Commit Graph
114970 Commits
Author SHA1 Message Date
Odoo Translation Bot d06bf070cb [I18N] Update translation terms from Transifex 2018-01-28 07:04:23 +01:00
Christophe Simonis 8613724bfc [FIX] stock_dropshipping: adapt test.
Field `schedule_date` is now readonly for new records. Simply set the
correct `expected_date` on the move line.
2018-01-25 16:44:37 +01:00
Christophe Simonis cb50970f3f [MERGE] forward port branch 11.0 up to eefe879a37 2018-01-25 15:41:45 +01:00
fda-odoo eefe879a37 [MERGE] fix payment flow with acquirers in e-commerce, invoices and quotations
As some flows were broken, this set of fixs improve the different routes for all acquirers
See commit messages for more information

Thanks to @jpr-odoo for his first implementation and to @tde and @fgi
2018-01-25 13:12:25 +01:00
Christophe Simonis c6b2fa47ed Revert "[FIX] base: bad back-port"
This reverts commit 0ac6043ec7.
2018-01-25 12:43:02 +01:00
Christophe Simonis da9baf2331 [MERGE] forward port branch saas-15 up to 0c97be858c 2018-01-25 11:14:56 +01:00
Christophe Simonis 1d884bec75 [FIX] mass_mailing: set related field on model as readonly
This avoid writing on `ir.model` for unprivileged users.

Courtesy of Jose Suniaga (suniagajose)

Closes #22496
2018-01-25 11:05:28 +01:00
Nicolas Martinelli a57a290bd8 [FIX] stock: scheduled date read-only on picking
- Create a picking
- At creation, add a product and change the scheduled date

The scheduled date is reset to its original value when saving.

This is a standard behavior of the ORM for computed fields. Therefore we
simply forbid the modification of the scheduled date at creation.

opw-807572
2018-01-25 09:09:41 +01:00
Christophe Simonis 0c97be858c [MERGE] forward port branch saas-14 up to 4ea4f99df9 2018-01-24 18:12:53 +01:00
Christophe Simonis 4ea4f99df9 [MERGE] forward port branch 10.0 up to efd300156b 2018-01-24 17:23:28 +01:00
Christophe Simonis efd300156b [MERGE] forward port branch 9.0 up to d29c2dbbdd 2018-01-24 17:22:44 +01:00
Lucas Perais (lpe) d29c2dbbdd [FIX] account: no payment terms on refund
In the case where:
create an invoice with payment terms that contains at least 2 term lines
Validate
create a refund by clicking cancel and reconcile

Before this commit, the refund move lines were wrongly created and reconciled with the invoice's move lines

After this commit, since payment terms are irrelevant on refunds, we set it to false and the problem doesn't raise

OPW 804752
2018-01-24 16:41:42 +01:00
Lucas Perais (lpe) adad192cc0 [FIX] account: reconciliation on payment terms
The case: create an invoice of 2000 euros. Payment terms have been configured as:
1) fixed amount 150, 0 days after invoice date.
2) fixed amount 200, 10 days after invoice date.
3) fixed amount 200, 20 days after invoice date.
4) balance, 30 days after invoice date

Before this commit, when issuing a payment of 150 at day 0, that payment got reconciled with the balance line.

After this commit, the payment is reconciled with the right payment term line

OPW 805006
2018-01-24 16:38:41 +01:00
Lucas Perais (lpe) 2e515a61bc [FIX] mail: res_model of followers should compute as uid=1
Take as example:
having demo user as expense manager
create with demo user an expense sheet for the employee linked to admin
on save, there was an access rights error for the write on mail_followers

After this commit, there isn't the error anymore,
since the computation of the field related is done with sudo

OPW 804740
2018-01-24 16:30:25 +01:00
Lucas Perais (lpe) 7dd3ab9c55 [FIX] website_sale: pending message do not disappear
On the payment confirmation page, when the payment is still pending.

Before this commit:
the user friendly message disappeared and a warning icon took its place

After this commit, the warning icon is prepended to the message.

OPW 787799
2018-01-24 16:18:02 +01:00
Christophe Simonis 6f2d1b8261 [MERGE] forward port branch 10.0 up to 34bfadb2f2 2018-01-24 15:50:56 +01:00
Christophe Simonis 9a2b9b1ae1 [FIX] l10n_fr: correct taxes' tags migration script 2018-01-24 15:49:11 +01:00
Romain Derie 3c998acaaf [FIX] website_blog: archive multiple blog.post throws a server error
Step to reproduce:
  - Go to 'Blog' > 'Blog Posts' in the 'Website Admin' module
  - Select several blog.post on the list view
  - Click on 'Archive' in the 'Action' dropdown

This will throw a server error since write() is overriden for blog.post and
do an ensure_one()

This commit closes #22208
2018-01-24 15:48:49 +01:00
fda-odoo 7335fade15 [FIX] website_quote: fix a typo
Add a 's' to 'any question' and remove space before '!'
2018-01-24 15:41:39 +01:00
fda-odoo 4fc96f9795 [FIX] account_payment, sale_payment: stop propagation of status message in URL after payment
We only want to keep the access_token from the URL and not all the error and success messages.
2018-01-24 15:41:31 +01:00
fda-odoo 2bd17285ea [FIX] payment_stripe: fix the 404 error and redirect on /my/orders page
Fix the 404 error with stripe on the page /my/orders if website_quote and website_sale aren't installed
2018-01-24 15:41:01 +01:00
fda-odoo 9ba1cc46c5 [FIX] payment: save the token if the option is checked in the form mode of the related acquirer.
The function was searching for the wrong acquirer in the page, so check the option was without effect
2018-01-24 15:38:54 +01:00
fda-odoo 2a59f2804f [FIX] payment: display a better button for "add new card"
it removes the + while the rotating spin is showing and display the + icon after the loading
2018-01-24 15:38:02 +01:00
fda-odoo c0e919b8eb [FIX] payment_ogone, payment_stripe, payment_authorize: give partner_id as parameter to s2s_process
If the page doesn't provide the partner_id, the three acquirer will now add it before process the payment.
2018-01-24 15:36:56 +01:00
fda-odoo c91994fcd3 [FIX] website_quote: fix redirection from acquirers in form mode with access_token taken into account and propagated in the payment form
By propagate the access-token we can send to token to the acquirer that will be able to use a valid return url after payment
2018-01-24 15:35:41 +01:00
fda-odoo 5b780f6c87 [FIX] payment: display the link ('Manage your payment methods') if there exists any payment method. 2018-01-24 15:34:56 +01:00
fda-odoo 1423ad9379 [Fix] payment: hide save_token field if the payment_mode is in form mode and change typo 2018-01-24 15:34:39 +01:00
fda-odoo b7a064af9f [FIX] portal, website_quote: change display of a button and default quotation template option
-> Move a button into its wizard and not in the void
-> In the sale order, set the default value for require_payment related to  sale_portal_confirmation_options.
2018-01-24 15:33:53 +01:00
fda-odoo 196f491e12 [FIX] website_sale, sale_payment: display hardcoded message for authorized status in both e-commerce and portal 2018-01-24 15:33:38 +01:00
jpr-odoo 480eaf460a [FIX] payment: reduce margins to have same height then options without payment icons) and label align centered on the vertical axis 2018-01-24 15:33:19 +01:00
jpr-odoo 1f712532a3 [FIX] payment: fix card brand type icon position into s2s form if s2s form not in bootstrap_formatting
up the number of brand cards displayed by default too.
2018-01-24 15:31:51 +01:00
fda-odoo f62b31caf3 [FIX/IMP] account,account_payment,sale,sale_payment: add a payment notification message for user who are coming back in Odoo after a payment (like in online quotations & e-commerce)
WARNING: To avoid breaking any configuration in stable (11.0), the template payment_confirmation_status has been replicated in each module.
They must be removed before a forward-port in master
2018-01-24 15:30:59 +01:00
fda-odoo 2ba6301d34 [FIX] website_sale: stop the generation of invoices if the option is unchecked in the e-commerce settings
An invoice was always generated even if the option was unchecked when we the order is confirmed.
2018-01-24 15:29:58 +01:00
fda-odoo daf6ab1c87 [FIX] Payment, payment_authorize: show an error if customer doesn't have a complete profil on authorize.net payment.
If the user has no Zip code, country or city, authorize refuse the payment, but Odoo doens't show any error.
The commit invite the user to log in in this case or to fill his missing information
2018-01-24 15:28:53 +01:00
fda-odoo 50beec7fa0 [FIX] payment: improve invalid input management on payment form
The different fields weren't correctly checked on a payment form. This commit improve the error messages and display it for each field. It adds too a verification on the fields in the case of the field are filled automatically by Firefox on a refresh (F5).
2018-01-24 15:28:32 +01:00
Nicolas Martinelli 34bfadb2f2 [FIX] web: suggested date
- Set the OS to a GMT- timezone (e.g. 'America/Los Angeles')
- Set the format of the date to '%d/%m/%Y'
- Go to 'Account > Adviser > Journal Entries'
- Type '02-01-2018'

The suggested date is 31/01/2018.

Setting the moment object as UTC will lead to a conversion of the date
to the OS timezone when calling `toDate`, e.g.:
Mon Jan 31 2018 16:00:00 GMT-0800 (PST)

UTC should only be used in case of datetime, not date.

opw-803466
2018-01-24 14:11:55 +01:00
RomainLibert 894229c268 [FIX] resource: Fix annoying bug with timezones
When encoding global leaves, we put the timezone of this particular
leave to False, which raises an exception when given directly to pytz.

Simple solution is to pass 'UTC' in case we receive False. This
behaviour might be improved in master later.
2018-01-24 14:01:27 +01:00
qsm-odoo bf5c90d0be [FIX] web_editor: strange horizontal scroll on mousedown
Before this commit, when pressing the mouse button on the end of the
ace editor, it scrolled to the right, selecting the whole sentence
end. This strange behavior was due to some initialization mistake
made by commit https://github.com/odoo/odoo/commit/5a030db3eb77b6d80187f8ae1a64303b2f50391d
2018-01-24 14:01:06 +01:00
Christophe Simonis 21c2f519a2 [MERGE] forward port branch 10.0 up to c0fa5228d8 2018-01-24 13:24:02 +01:00
Christophe Simonis c0fa5228d8 [MERGE] forward port branch 9.0 up to 779afb7ac5 2018-01-24 11:50:35 +01:00
Olivier Colson ffaca543c4 [FIX] account: properly allow switching between CoA when no move has been done
A required field was missing at the creation of the wizard doing this.
2018-01-24 11:40:28 +01:00
Martin Trigaux 0ac6043ec7 [FIX] base: bad back-port
53e221fc was intended for 11.0 and backported too quickly in 10.0

Remove fields that do not exist yet
2018-01-24 11:39:56 +01:00
Erick Birbe ad5a6c7fbd [CLA] Update Vauxoo's CLA
Incorporate Erick Birbe (ebirbe) as Vauxoo's contributor

Closes #21533
2018-01-24 11:37:41 +01:00
Yenthe V.G 4fa16b195d [CLA] add end date of Yenthe666 for VanRoey
Closes #22326
2018-01-24 11:37:03 +01:00
Olivier Dony b79d05fff0 [FIX] sms: switch phonenumbers warning to INFO
Having it in INFO should be sufficient for its purpose, and will avoid
impacting all CI builds done on a system that does not have the lib
installed.

For the record, this is not a hard requirement because the lib was not
available in Debian stable packages at the time of release. It is only
enabled on demand for those who want the feature and can install it
manually.

Also slightly improved the message.

Fixes #22426
Closes #22459
2018-01-24 11:25:50 +01:00
Sergei Ruzki 53e221fc16 [FIX] base: adding BYN to currenciest list
From 2016-07-01 BYN is new currency sign for Belarus
See https://en.wikipedia.org/wiki/Belarusian_ruble

BYR is no longer used.
Kept for backward compatibility and stability reason

Closes #22307
2018-01-24 11:19:27 +01:00
Sergei Ruzki 1ac7257dd2 [CLA] signature for sergeiruzkiicode
Done at #22307
2018-01-24 11:18:52 +01:00
Simon Lejeune 2bdbe40414 [FIX] stock: scrap: constrain on product_uom_qty
`precision_get` return digits, so use `precision_digits` in the call to
`float_is_zero`.

steps to reproduce:
- set the digits of product unit of measures to 0
- try to scrap something
- it'll fail because the default value of product_uom_qty is "0.0"
2018-01-24 11:05:10 +01:00
Martin Geubelle 2d3ecf29b3 [FIX] web: handle nested x2m default values
A `default_get` for a x2many field can return a new list of commands for one of
its x2many field, like

[[0, 0, {
    'groups_id': [[6, 0, [1, 2, 3]]],
}]]

where [1, 2, 3] is a list of existing ids.

This use case was not correctly handled by the BasicModel because
`_makeDefaultRecord` was not recursive.

Closes #22401
2018-01-24 10:59:45 +01:00
tbe-odoo c0f004205d [FIX] http: Implicit session deactivation -> Explicit destruction
- Replace the implicit session deactivation with explicit destruction.
2018-01-24 10:58:06 +01:00