Commit Graph
106997 Commits
Author SHA1 Message Date
Pierre Masereel 1f6ec2b8d6 [FIX] purchase: null stock_moves creation
When the quantity of a purchase order line is manually decreased and if
the purchase order line as been generated by more than one procurement.
If the new quantity is lower than the quantity of the smallest
procurement, it is impossible to validate the picking containg the
stock_moves created by the purchase order validation.

It is impossible to validate the picking, because it contains
stock_moves with 'product_qty' set to 0. Those stock_moves are generated
during the validation of a purchase order.

To fix this issue, we avoid the creation of stock moves with a
'product_qty' set to 0 which has no sense.
2017-01-18 11:45:26 +01:00
Thibault Delavallée 3efc16e9a0 [FIX] mail: fix typo introduced at last forward port
Format all the dae
2017-01-18 11:36:27 +01:00
Nicolas Martinelli 41740aad0d [FIX] event_sale, website_event_sale: price tax included
Commit 5f5f8d8efe introduces the possibility to display prices for B2B
or B2C channels, i.e. prices with taxes excluded or taxes included.

However, the module `event_sale` was not included in this improvement.
This is an issue since it is not possible to display the event ticket
prices with taxes included.

opw-702209
2017-01-18 10:01:54 +01:00
Jérome Maes 8e94783778 [FIX] google_calendar: correct previous fix, and set correct context
The first fix (de21eda9f4) was not enough ...
2017-01-18 09:56:14 +01:00
Christophe Simonis 44276dfdc3 [MERGE] forward port branch saas-11 up to a0aca47fef 2017-01-17 19:12:20 +01:00
Christophe Simonis a0aca47fef [FIX] website_sale_stock: search warehouse as sudo
Oversight of new-api convertion done in previous forward-port.
2017-01-17 18:45:24 +01:00
Christophe Simonis 70f86ce4e8 [MERGE] forward port branch 9.0 up to 16fa61b34f 2017-01-17 18:04:57 +01:00
Christophe Simonis 16fa61b34f [MERGE] forward port branch saas-6 up to 7cb977fc3c 2017-01-17 16:11:05 +01:00
Christophe Simonis 7cb977fc3c [FIX] calendar: also reset res_id when sending mail to attendees 2017-01-17 14:44:50 +01:00
Josse Colpaert ffe13756f5 [FIX] mrp: manufacturing vignette in inventory dashboard
When clicking on the "manufacturing" vignette in the inventory
dashboard, the records were not filtered correctly (example: add a new
warehouse, a new "manufacturing" vignette appears for this warehouse in
the inventory dashboard, clicking on it would display the MO of all the
warehouses).

With this fix, as with the pickings, it will only show the count of MO
filtered to that specific picking type in the vignette, and clicking on
it will displayed the filtered ones.

We implementent the method of the compute field the same way the similar
method for the picking is implemented.

fixes #15008
2017-01-17 14:43:06 +01:00
Christophe Simonis ecd03bec8a [MERGE] forward port branch 8.0 up to 8f1c2bfc91 2017-01-17 14:17:56 +01:00
Christophe Simonis 8f1c2bfc91 [FIX] mail: force mail.message linked record invalidation 2017-01-17 14:14:16 +01:00
Thibault Francois d588efba6c [FIX] project: remove unused field
Remove unused fields (including inherited view) in kanban project view,
For example, `user_id` triggers a read for each project on res partner,
40 projects display = 40 read on `res.partner`.

Closes #15096
Related to opw-696979
2017-01-17 13:22:24 +01:00
Nicolas Martinelli bbbf317fd3 [FIX] l10n_be: VAT Declaration
The VAT declaration produces an error when uploaded to the official
website. Although the structure is correct, the "Representative" and the
"Declarant" contain the same information, which is not consistent.

opw-702066
2017-01-17 11:51:02 +01:00
qdp-odoo 1e8d9e1c64 [REV] account: revert fix made on ea1eca2.
When an account.move.reconcile was unlinked, the reconcile_ref on the related move lines was no longer cleared.
2017-01-17 11:21:17 +01:00
Pedro M. Baeza ea1eca22d3 [FIX] account: Don't trigger twice the reconcile_ref compute method. Was PR #14892
Both store triggers on reconcile_ref are triggered by the same condition,
but seen on 2 tables different, but they always happen together, so no
need for both.

On regular Odoo, the only problem is the performance: the write operation
is performed twice, but on a system with connector or other parallelization
technology, this provokes lot of concurrency problems.
2017-01-17 10:48:56 +01:00
Goffin Simon 342dad44cd [FIX] account_asset: To ensure the migration compatibility with 9.0
This fix allow to keep the same behavior of 8.0 and 10.0 to manage the assets.

In 9.0, the field account_income_recognition_id(oldname='account_expense_depreciation_id') has been
deleted from the account.asset.category.form view with 6120babb45 and
then it was not possible to manage the assets like in 8.0 and 10.0

But as this fix is in a stable version, it must be compatible with instances without any upgrade
of the view account.asset.category.form.

This issue has been solved in saas-11 with this commit: eb8d4aaa59

opw:703860,702265
2017-01-17 09:53:58 +01:00
Pierre Masereel 77767801c6 [FIX] bus: do not suggest company users to portal users
When you are connected as a portal user, you can access to the list of
company users when you try to create a channel of type "Direct Message".

This is caused by a SQL request that doesn't check the access rights of
the user before returning the list of users.

To fix this, we check that the user can create a mail channel, before
returning partners information.

opw-704127
2017-01-16 17:54:12 +01:00
Pierre Masereel 36f6f2647d [FIX] hr: do not show employee users to portal users
When you are connected as a portal user, you can connect to the
backend of Odoo and if you go to your discuss app through the '@' icon,
you can list the employees of the company by mention a employee

This is caused by a SQL request that store in cache the employee
list to minimize requests when mention. The problem
is that those requests don't take into account the rights of a user
to read employees information.

To fix this, we are taking the group 'base.group_user' and read the
information of its users, the 'read' is respecting, the access rights of
the users, and so the employees names, are ont shown anymore to portal
users.

opw-704127
2017-01-16 16:42:18 +01:00
Nicolas Martinelli 805f7ed8e7 [FIX] event_sale: traceback
- Go in Events > Events
- Create or modify an event
- Add a ticket to your event, and try to change the product -> traceback

The field `event_type_id` does not exist on model `product.product`. It
has been removed in commit 7f97a64091.

opw-704838
2017-01-16 15:54:00 +01:00
Nicolas Martinelli aa6c0ef907 [FIX] mail: missing translation 2017-01-16 15:49:05 +01:00
Nicolas Martinelli 1161951d96 [FIX] mail: notification authorization
When user user denies Odoo to display desktop notifications, the message
'Permission granted' is displayed.

opw-697985
2017-01-16 15:49:05 +01:00
Martin Geubelle c0e02f089b [FIX] report: edit report without website
Before this commit, website needed to be installed to edit
a HTML report because the context `inherit_branding` was not
correctly passed.

Credits to @sle-odoo
2017-01-16 15:02:33 +01:00
Martin Trigaux d126529d1b [FIX] base: avoid traceback when rendering traceback
If node is not installed (missing dependency), the user is not aware of the
source of the issue as it can not be displayed in the css_errors or logger.
The error is
/usr/bin/env: ‘node’: No such file or directory
which contains unicode quotes.

Does not fix #15057 but at least say the source of the problem.
2017-01-16 14:50:20 +01:00
Nicolas Martinelli c61e359fad [FIX] account: matching number
When a journal item duplicated, the matching number is duplicated as
well. This will create inconsistencies in the information displayed to
the user, and moreover it will not allow to reconcile the item anymore.

opw-704902
2017-01-16 14:46:40 +01:00
Nicolas Martinelli 9c774c370c [FIX] account_full_reconcile: matching number
When a journal item duplicated, the matching number is duplicated as
well. This will create inconsistencies in the information displayed to
the user, and moreover it will not allow to reconcile the item anymore.

opw-704902
2017-01-16 14:44:44 +01:00
jaredkipe 4b500aa298 [FIX] auth_oauth: remove redirect if there is only 1 provider
Forcing the redirection for 1 provider but not for 2 makes no sense.
Was done at 311f041f for the reset password, applied to signup too.

Closes #15032
2017-01-16 13:49:59 +01:00
qsm-odoo 655a9bcd51 [FIX] website: allow "contain" option for s_banner background
Since saas-10, you can customize the background size and position
of snippets. The "contain" option was not working for the s_banner
components as overridden to "cover" by the snippet specific style.
2017-01-16 13:09:34 +01:00
Christophe Simonis 4d619c221f [MERGE] forward port branch 8.0 up to 082495240f 2017-01-16 12:30:53 +01:00
Nicolas Martinelli 3d857e4ca0 [FIX] delivery: default UoM for weight
On a picking, the UoM of the weight is the default UoM for the weight
category. However, weights in Odoo are always considered to be
kilograms.

This might lead to inconsistencies between what is displayed on the
picking and what is printed on a shipper label.

opw-702564
2017-01-16 11:58:28 +01:00
norlinhenrik 47c60db4a0 [FIX] product: set the correct company in property
`set_multi` uses the company of the current user.
As the property is created in sudo, the company of the admin may be different
than the one of the current user.

Before this commit, setting a different pricelist on a partner when logged in a
different company than the admin, the change had no apparent effect (was
creating a property for the admin's company).

Set `force_company` in the context to always set the one on the current user.
set_multi ignores if the same as the global rule to avoid bloating the table.

Closes #14984
2017-01-16 11:55:07 +01:00
norlinhenrik b74e02b847 [CLA] signature for norlinhenrik
Done at #14984
2017-01-16 11:55:07 +01:00
Christophe Matthieu d0d1c93500 [FIX] web_editor: don't remove icon from mass mailing
The witdh and height auto has apply on image, when the mass_mailing
clean_for_save is called, the image is considered as invisible because
the with is temporary null.

opw-692805
2017-01-16 11:20:30 +01:00
Christophe Matthieu 72fbe860e8 [FIX] web_editor: debug mode is not apply in editor iframe 2017-01-16 11:11:04 +01:00
Vipul Bhatt 9ef3ebf858 [IMP] web_calendar: Display in user's language time format
- Y axis : according to 12 hour or 24 hour format
- Event title : following time format in preferenced language

NB: The conversion from 'A' to 'TT' to match fullcalendar v1 should be
removed when fullcalendar is updated to v2, as the syntax will change.
See : http://fullcalendar.io/wiki/Upgrading-to-v2/

Backport of commit c1d813ec1c

opw-704237
2017-01-16 10:17:29 +01:00
Odoo Translation Bot 6fc0d955d0 [I18N] Update translation terms from Transifex
To reflect changes 62bd57e285
opw-704728
2017-01-16 09:41:24 +01:00
Martin Trigaux 62bd57e285 [FIX] product: correct pricelist translation
The pricelist is renamed into USD in demo data of website_sale.
For most people, it should be Public priclist
2017-01-16 09:12:07 +01:00
Odoo Translation Bot 4d4e0484d1 [I18N] Update translation terms from Transifex 2017-01-15 04:31:44 +01:00
Odoo Translation Bot 082495240f [I18N] Update translation terms from Transifex 2017-01-15 02:55:40 +01:00
Odoo Translation Bot e26045a8e4 [I18N] Update translation terms from Transifex 2017-01-15 00:28:55 +01:00
Leandro Di Pasquale 0a60cd6dc6 [CLA] Business Analytics Consulting Group S.A. de C.V. 2017-01-13 16:09:12 +01:00
Denis Ledoux 623eeb688f [FIX] website_sale*: default company & warehouse for website orders
By default, the default warehouse of a sale order is the first warehouse
of the company of the user creating the sale order.

In the case of a sale order created from the website,
the user who is creating the sale order is the superuser,
a.k.a the administrator.

There was a big issue in the context of a multicompany database,
with an administrator changing of company:
the sale orders coming from the website would suddenly change
of company, which is wrong.

This was even more severe when the admin changed to a company
which had no warehouse defined:
It was then impossible to create the website cart, as no default warehouse
was found, while the warehouse is a required field on the order.

This revision ensures that the cart / sale order is always created
under the website company

opw-704557
2017-01-13 15:50:00 +01:00
Laurent Mignon 273a15ea7d [FIX] website: port of rev a98d60c
The forward-port of the above revision missed
the conversion to the new api

Closes #15064
2017-01-13 14:03:52 +01:00
Nicolas Martinelli 266ae2a26b [FIX] mail: trim '()' characters
In commit 07425d407f a trim of some special characters was introduced
to prevent a crash. This was necessary in v9, but it is not in v10.

opw-703465
2017-01-13 13:28:22 +01:00
Nicolas Martinelli 8fd6f85169 [FIX] product_extended: Compute from BoM
The price suggested thanks to the "Compute from BoM" button only takes
into account the price of the products listed in the BoM lines.

In v9, there was a "Recursive" option that provided the possibility to
compute the prices of all products implied in the BoM, recursively. This
option has been removed since it was leading to a "black box" behavior
that was unclear to the users.

However, limiting the price computation to the BoM lines only is too
restrictive since it doesn't even take into account the phantom BoMs.
By using the `explode` method, we have access to:
- all products not manufactured
- all products manufactured which are not kits (phantom BoM)

It means that the cost of manufactured products (not kits) should still
be computed before the product itself.

opw-697866
2017-01-13 13:25:00 +01:00
Nicolas Martinelli 11e99a0b53 [FIX] product_extended: compute from BoM
When a product template UoM is different from its BoM UoM, the price
suggested thanks to the "Compute from BoM" is incorrect, since it doesn't
apply the conversion rate between the product template UoM and the BoM UoM.

This is because we try to fetch the product UoM through the BoM. However,
if the BoM is not specific to a product.product, the field bom.product_id
is empty.
2017-01-13 13:25:00 +01:00
David Arnold 3609782481 [REF] account: improve inheritability of account.reconcile.model in chart template generation.
This commit adds a _prepare_reconcile_model_vals() method that localization can overwrite should they need it. Courtesy of David Arnold. Was PR #14981
2017-01-13 12:12:14 +01:00
Denis Ledoux 2ddd5590b2 [FIX] base: correct typo in _fields_find, res_ids -> res_id
The issue is introduced by revision
d465346f1e

Raphaël actually meant
`res_ids = data.mapped('res_id')`

Indeed, there is no `res_ids` field on `ir.model.data`,
but there is a `res_id`.

In addition, the same code is written correctly in the method
just above this one, `_object_find`

opw-704592
2017-01-13 11:54:22 +01:00
Nicolas Lempereur 9aaed65352 [FIX] setup: server UTC timezone on windows
In 07bf7bf4f3 a fix was introduced for windows server UTC timezone.

It is possible it would be helpful in some situation to also have it in
setup/odoo (for example if odoo was installed on windows in some other
way than the Installation bundle).

opw-693764
2017-01-13 10:37:24 +01:00
Denis Ledoux 94da369231 [FIX] mail: template, format date to customer language
Up to now, there was no possibility to format a date
within a specific language, such as the customer
language. The date was always displayed with the format
YYYY-mm-dd.
(There was for the datetime, thanks to format_tz, but
not for a simple date without time)

This revision adds this possibility, but doesn't change
the according email templates
(such as the invoice date on the invoice email template)
as it would require to update all translations, in
the .po files and on transifex.

If a user absolutely want this, he has to add
the call to `format_date` himself, manually.

opw-704260
2017-01-12 18:48:02 +01:00