Commit Graph
104610 Commits
Author SHA1 Message Date
Denis Vermylen (dve) 88977a90e7 [FIX] portal: fix new api forward-port migration
_create_user was called on self instead of wizard_user
(for wizard_user in self...)

This created an ensure_one crash later on if more than one record in self.
2016-09-30 11:49:10 +02:00
qsm-odoo 0d65c27dea [FIX] mass_mailing: restore py import (prevented to unsubscribe)
For unknown reasons, commit bbca135410 removed the
import of "_" which was still used. This commit restores it, allowing
users to unsubscribe from mailing without crash.
2016-09-29 13:17:03 +02:00
Haresh Shyara 2eef1aa839 [IMP] mrp: timer duration improvement 2016-09-28 20:54:14 +02:00
Josse Colpaert 178e7439ea [FIX] maintenance: certain data in xml should be demo data
We need only one maintenance team in data and no categories, so
we moved those to the demo data xml.
2016-09-28 18:19:02 +02:00
Jeremy Kersten 7134affc89 [FIX] website_slide: add image deleted by commit 2e9644d
This picture is used in python code and not in description.
2016-09-28 14:56:17 +02:00
Christophe Simonis 2c6d32ca7d [MERGE] forward port branch saas-11 up to 34186fd 2016-09-28 14:46:29 +02:00
Christophe Simonis 34186fdfc0 [MERGE] forward port branch 9.0 up to f82aeb0 2016-09-28 14:41:05 +02:00
David Monjoie f82aeb05d0 [FIX] event: fix registration confirmation delay
The previous line was O(n^2). With n=1200 like we just have now,
things didn't look good for this loop and confirming an attendee
registration to such event took approx. 13 seconds.

Since the list comprehension is in no mean linked to the value
of "item" in the filter, I simply moved it out so it is only
computed once.
2016-09-28 13:44:16 +02:00
Julien Legros f757af38e2 [FIX] rating_project: queue emails sent by the scheduler 2016-09-28 13:23:53 +02:00
Christophe Simonis 12548d3e73 [MERGE] forward port branch saas-10 up to e8b8784 2016-09-28 13:17:37 +02:00
Christophe Simonis e8b8784d5c [MERGE] forward port branch 9.0 up to 9ba5698 2016-09-28 12:59:25 +02:00
Denis Ledoux 9ba569874c [FIX] calendar: fix attendees list in invitation email
Upon the creation of an event,
the list of attendees displayed in the invitation emails
were not complete because the emails were sent as the attendees
were being added to the event, in the loop.

e.g.:
 - Create an event with Joseph and Michel
 - Joseph received the invitation email with only him as attendee
 - Michel received the invitaiton email with Joseph and him.

The invitation email of Joseph now contains all the attendees.

opw-681242
2016-09-28 12:43:51 +02:00
Josse Colpaert bf8ac7c9d3 [FIX] mrp: default product when creating lots in produce wizard 2016-09-28 12:38:13 +02:00
Josse Colpaert 153a6d0814 [FIX] mrp: correct interpretation of explode's quantity parameter
In previous versions, the quantity passed to the bom_explode was the number
of times you needed to count the BoM.  If the BoM was for 2 dozens and you pass
48 units, 2 was passed to the bom_explode method.  We are now doing the same
for the explode method and we check it is called this way everywhere.
2016-09-28 12:38:13 +02:00
Josse Colpaert fbab021a9b [FIX] mrp: extra move should split move lots also and take into account procurement
When you produce or consume more than foreseen in a production order,
the system creates extra moves.  Before, in case of tracking, it did this without
transferring the stock.move.lots resulting in a wrong stock.  That is why now,
when we split moves, we also split the stock.move.lots

For the finished move, it is also important to split between the quantities
of the original procurement and what is extra as the extra might use a push rule e.g.
2016-09-28 12:38:13 +02:00
Josse Colpaert 24a16f5db5 [FIX] mrp, mrp_byproduct: updating the quantity of production orders fixes
When updating quantity, it should take use a similar
method as for generating the moves, but with
the quantity already produced (and posted) deduced.
The parameters for these method needed to be changed.

When all the moves are posted,
we should create the necessary extra moves.
If the quantity is put back to the quantity posted, it
might also need to delete moves.
In byproduct, it should take into account the subproduct factor.

When the quantity produced  on the work orders has reached the quantity to do,
it should not allow anymore to use the "Done" button on work orders, but
rather use the Finish button instead.  With the Update button on the manufacturing order
it is possible to do more.
2016-09-28 12:38:13 +02:00
Josse Colpaert 3e95e4e58e [IMP] mrp: help message for the explaining the Next Operation field on the routing 2016-09-28 12:38:13 +02:00
Josse Colpaert 219809a5a8 [FIX] stock: do not propagate changing of quantities of moves to the next move anymore
In v7, it could be in handy that when altering the quantities of a move, it would automatically
update the next chained move as you could change quantities on the fly without any relation
to the original documents.
From v8, this is all being handled by extra moves which might e.g. follow
a different route, so you still know what is related to the original procurement.
But the functionality stayed in the code for who would still need it.
In v10 and in previous versions, manufacturing orders however still use these moves.

When we update the quantity on a halfproduct (which we can do now all the time in v10,
it could change the consumption where it is used in the finished product (in MTO)
That is why it is better to remove this functionality.
(it might also speed up the split method on stock_move)

The propagation of quantities was something from v7, that now causes trouble in mrp for nothing
2016-09-28 12:38:13 +02:00
Josse Colpaert 631ae042fb [IMP] mrp: inventory moves stat button should also be visible when you cancelled a manufacturing order 2016-09-28 12:38:13 +02:00
Josse Colpaert 0239202be4 [FIX] mrp: problem with blocking times starting at server start time
The default of the date_start on the time records was a
result of the function fields.Datetime.now instead of the function itself
resulting in the start of each blocking time as the start of the server
2016-09-28 12:38:13 +02:00
Josse Colpaert ca7b15b58c [FIX] mrp: typo Produced Qty -> Quantity To Produce 2016-09-28 12:38:13 +02:00
Josse Colpaert 0efc835fa9 [FIX] mrp: correct workorder qty_producing onchange
When changing the quantity being produced on a work order and
serial numbers are consumed, we need to delete or add lines
for every serial number in function of the quantity through the onchange.

We changed the quantity_done to be set to quantity by default (automatically)
as otherwise we forgot to set it.  But for the onchange, it means
we need to take it into account otherwise the number of records
would not be diminished.
2016-09-28 12:38:13 +02:00
Josse Colpaert 777ea73f23 [FIX] mrp: make sure we see in mo from stat button when only one (was taking 2 domains) 2016-09-28 12:38:13 +02:00
Josse Colpaert d5284266d9 [IMP] mrp: no quick create on operation_id 2016-09-28 12:38:13 +02:00
Josse Colpaert 4475610b4d [FIX] mrp: only show produce button when not done, product readonly in produce wizard and move_id necessary to make onchanges work 2016-09-28 12:38:13 +02:00
Haresh Shyara 841c1c3adb [FIX] mrp:workcenter: blocked and productive time correction
The labels of the fields say that they store hours, but actually they store minutes. Correct the code to store hours.
Add digits to fload field for a better display in the webclient
2016-09-28 12:38:13 +02:00
Josse Colpaert 5043d77128 [IMP] mrp: mo view: date_planned_start, user_id and origin fields should be editable
date_planned_start should also be Start Deadline instead of Expected Start Date.
We don't want the Expected dates to function as a planning tool, but as
a priority for the planning of the workorders.
2016-09-28 12:38:13 +02:00
Josse Colpaert 8f44f38b84 [IMP] mrp: "produce" wizard should set MO to "in progress" state 2016-09-28 12:38:13 +02:00
Josse Colpaert 31b3073d4b [IMP] stock,mrp: origin of scrap move
If the user has not filled in the origin in the scrap object,
we set it to be its associated picking or production order if any.
2016-09-28 12:38:13 +02:00
Denis Vermylen (dve) 88e379cd27 [FIX] project_issue: correct onchange_project_id (2)
amend to d78256e76c

We wish to keep the email address if no partner is assigned.
2016-09-28 10:44:34 +02:00
Nicolas Martinelli 8469fe2eac [FIX] account: exchange rate date
The fields `amount_total_company_signed` and `amount_untaxed_signed` are
always converted using the exchange rate of today.

opw-688838
2016-09-28 09:55:00 +02:00
Olivier Dony 40bce50ddb Revert "[FIX] mail: onchange_template_id"
This reverts commit dc02f773ce.

This commit caused a side-effect that is worse than the issue
it tried to fix, which was purely cosmetic.
Now in mass-mail mode the template is only rendered once
and all recipients receive the same PDF, which completely
defeats the goal of a dynamic report. We have static
attachments for that.

Original fix related to opw-657152
Reverts PR #10568
2016-09-27 19:39:30 +02:00
Denis Vermylen (dve) d78256e76c [FIX] project_issue: correct _onchange_project_id
the onchange changed the partners of the ticket when the ticket changed project
to the project's partner, but if the ticket already has a partner it shouldn't
change.
2016-09-27 17:28:40 +02:00
qsm-odoo 1df161db6b [FIX] website_blog: keep consistent cover classes when changing cover image
! Note forward port: this is a partial backport, ignore when conflict

For some strange reason, the cover_full class was added when the cover
image was changed, without checking if the cover_narrow class was
already there. The cover was then a hybrid cover_narrow cover_full.

The problem was reinforced by the graphene theme which does some
animation on cover_full covers.
2016-09-27 17:28:31 +02:00
qsm-odoo 5f98040430 [FIX] website, *: properly process saving from editor dialogs
* web_editor, website_blog

Since recent refactoring, web editor dialogs automatically trigger
an event when closed (saved or cancel). The problem is that there
still was manual trigger of those events or variants ("save" instead
of "saved").

To prevent multi-saving and be consistent, all save events are now
automatically triggered on save/close (no more manual) and the event
name is "save".
2016-09-27 15:42:31 +02:00
qsm-odoo c952e1fc55 [FIX] website_sale: fix shop list view publish buttons
Publish buttons appeared in list view item in /shop with commit
5a5dd1e100.

They however never worked for some reasons:
* The publish buttons were unclickable as the around style was badly
implemented: the section title was over the publish button
* Even if it was clickable, the publish button handler had no prevent
default, thus it submitted the form it is in -> crash when no cart
button or added to cart on click on publish button if there was a cart
button...

Note: the style should be reviewed in next versions, this commit, as
a 9.0 fix, fixes the style with the minimum code and so that it does
not break any theme.
2016-09-27 13:47:07 +02:00
Yannick Tivisse a04522ac57 Revert "[IMP] stock: Remove domain on source/destination on Operation Details"
This reverts commit 7e6ad941cf.

The domain makes clear that the location to be chosen in is among the children of the location zones chosen in the picking.  That way, if the stock would be calculated in the past (e.g. also for the stock valuation report), the system is going to think it is maybe still internal, while it went out, ..., so those domains are crucial.
2016-09-27 13:09:12 +02:00
Denis Vermylen (dve) 6490bdc263 [IMP] hr_holiday: remove leave onchange date check
When you create a leave, you first set the start date. The date widget triggers
and automatically sets you at today, which triggers the onchange and puts the
end date at today + 8 hours. You then set your start date in the future
-> invalid dates because start date > end date.

This commit removes the onchange verification of the dates, because almost
everyone gets the above problem and because it is redundant with the sql
constraint that triggers anyway when you try to save with invalid dates.
2016-09-27 10:51:37 +02:00
tdi-odoo ccd6fc621b [FIX] expense: fixes #13446 mutliple taxes on expenses 2016-09-27 10:45:38 +02:00
Michael Brown 1bb162c913 [CLA] Michael Brown
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>

Closes #13070
2016-09-27 08:57:57 +02:00
Fabrice Henrion 6fb7680ef8 [IMP] policy clarification 2016-09-27 08:33:37 +02:00
qsm-odoo f275038201 [FIX] website_blog: update deprecated message when no blog post 2016-09-26 17:44:47 +02:00
Denis Vermylen (dve) 52ba0552a4 [FIX] portal: remove ensure_one()
a random ensure_one() was added during the migration causing an error when
modifying portal access management for partners with more than one contact.

Removing it.
2016-09-26 17:32:16 +02:00
Christophe Simonis 923af54e84 [FIX] base: explicitly decorate api method 2016-09-26 15:00:26 +02:00
Thibault Delavallée fcd6813dc9 [FIX][IMP] various: unsudo mail/view controller and get_access_action
This is a backport of saas-13 commit a9bd9ab160.

mail/view controller is a generic controller that redirects the user to a
given view, depending on the record and the user. Users may be redirected
to the backend form view, or to a website view. This is done notably by
calling get_access_action method that gives the action to perform (act_window
or url).

Previously this method was called using SUPERUSER. However it was therefore
impossible to know who the user was. This method is now called using the
current user. Various overrides of get_access_action have been updated to
add some logic and access rights check directly in the method allowing
more fine-grain behavior of the access action.
2016-09-26 14:42:25 +02:00
Christophe Simonis a22d206ac4 [MERGE] forward port branch saas-10 up to faaacab 2016-09-26 14:24:50 +02:00
Christophe Simonis faaacab737 [MERGE] forward port branch 9.0 up to e318a96 2016-09-26 14:17:49 +02:00
Christophe Simonis e318a96490 [MERGE] forward port branch saas-6 up to 858a8b9 2016-09-26 13:49:49 +02:00
Christophe Simonis 858a8b9ef1 [MERGE] forward port branch 8.0 up to 4ab34d4 2016-09-26 13:32:09 +02:00
Martin Trigaux d59d95107e [I18N] Update master translation terms from Transifex 2016-09-26 11:44:55 +02:00