Commit Graph
105731 Commits
Author SHA1 Message Date
Christophe Simonis a7ba6cde9c [MERGE] forward port branch saas-12 up to 7134aff 2016-09-28 16:28:31 +02:00
qsm-odoo d04a42022b [REF] website, *: review website access rights
* event, website_event, website_forum,
* website_hr_recruitment, website_sale

Website access rights were buggy. The editor assets and website editor
assets have to be loaded together to work so the previous behavior
which only loaded one with the restricted access right was not right.
Also, people which had the "Manager" access right for model like event
or job only got access to creation and edition of those objects if they
had the full access to website access rights.

Now the website module creates the two same groups :
* group_website_publisher: load all editor assets, give access to
page creation for model the user has access (event, job, ...) and
edition of those pages
* group_website_designer: implies the first one and give access in
creation and edition of all pages + access of all website menus

The manager access rights for event, product, jobs, etc now implies
the group_website_publisher group for the user (so that the manager
have the editor assets and editor ui).
Note: some python codes use the group_website_publisher for no right
reason, this has to be adapted.
2016-09-28 15:56:04 +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
qsm-odoo 7cbb2e6ed3 [FIX] website_blog: set public visibility for default cover images 2016-09-28 14:49:56 +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
Richard Mathot 2bb37b5d1e [FIX] calendar: don't crash on missing optional dependency
For historical reasons, `vobject`* Python library is not mandatory in
Odoo.

Since refactoring 6af6148a24,
get_ics_file() returns now a dictionary whose keys are calendar.event
ids and values are the corresponding ics file.
If `vobject` is not available, it returns an empty dictionary that
could cause calendar.py to crash because it always expects to find the
event's key.

Before this refactoring, this method was called and architectured in a
different manner, so no crash was happening.

This commit prevents the crash if `vobject` is not installed and logs a
warning.

*vobject allows to generate iCalendar files
2016-09-28 13:43:20 +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
qsm-odoo 4dd31f645e [IMP] website_blog: add consistent behaviors for cover options
There was no bug but now the behaviors are more consistent :

- Demo data now declare a black invisible filter instead of nothing.
This allows user to see the effect of filter intensity option
(otherwise it had no visible effect since there was no filter color).

- If the filter intensity is set to "None" (invisible filter) and that
a filter color option is highlighted or chosen, a "Low" filter
intensity is automatically highlighted or chosen so that the user see
the filter color he is chosing (instead of having to choose the filter
intensity first).

- Hide the "Size" option on the blog list page since it has not visible
effect there.

- Some code "performance" improvements in option selection.
2016-09-28 13:05:39 +02:00
Christophe Simonis e8b8784d5c [MERGE] forward port branch 9.0 up to 9ba5698 2016-09-28 12:59:25 +02:00
Haresh Shyara ae7cb1483c [IMP] mrp: create graph and pivot of duration_expected of workorders related to a workcenter and add stat button with load to come
This replaces the old workcenter load report
2016-09-28 12:45:03 +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 3597942721 [REM] mrp: Remove unnecessary stock_move_consume wizard and stock value variation and workcenter load report 2016-09-28 12:42:59 +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
Christophe Simonis 1dedb95c41 [FIX] calendar: correct field type
`display_start` was wrongly change to `Date` type during convertion to
new-api.
2016-09-27 18:10:37 +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
Jérome Maes bd7543f4f7 [FIX] website: migration typo and default method for website.menu 2016-09-27 17:05:34 +02:00
Denis Vermylen (dve) 789e9aa919 [IMP] product: add sql constraint to uom rounding
rounding field of product_uom now has sql constraint > 0. If set at 0 it rounds
any quantity to 0, which is never a desired result.

Allowing 0 made it so that some users that did not understand the rounding, set
it to 0 and complained that their quantities were messed up.

Also added translations to the error message.
2016-09-27 16:37:30 +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
tdi-odoo ecbf6126f5 [IMP] purchase: add supplier's pricelist search view filters and groupbys
This improvement adds two default filters and group bys to the supplier
pricelist search view: filters(active,archived) groupby:(product,vendor).
2016-09-27 15:13:02 +02:00
tdi-odoo 879f269951 [FIX] purchase: rename Invoiced and Not Invoiced filters
This fix renames filters in purchase from Invoiced (resp. Not Invoiced)
to Received Bills (resp. Waiting Bills) to be consistent with the states
of the Purchase Orders (i.e. 'Waiting Bills'). The erroneous tooltip of
the Bills Received was also corrected.
2016-09-27 15:12:53 +02:00
tdi-odoo dabbc2cb7e [IMP] purchase: add Purchases statbutton in procurement form view
In procurement form view display a Purchases stat button that redirects to
the purchase order. It opens the PO form view. Note that Purchase Order field
in Extra Information is left untouched. It is just a shortcut to ease
usability.
2016-09-27 15:12:53 +02:00
Thibault Delavallée e839a6e274 [IMP] purchase: rename Invoices button to Vendor Bills
As this button redirects to the Vendor Bills page, let us rename this
button so that names match.
2016-09-27 15:12:53 +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
Christophe Simonis 37ea415c99 [FIX] website: remove duplicated field 2016-09-27 13:21:41 +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
qdp-odoo 4e0053fe86 [FIX] payment: clear the mess about electronical payment.
It is already defined as a payment method (subtype=inbound) and that's what we want. No need of adding 'electronic' in 'payment_type' selection (that crashes if we select that, btw) and 'payment_method_id_code' is a duplicate of 'payment_method_code'.
2016-09-27 12:52:50 +02:00
Jérome Maes 108d809358 [FIX] rating: do not display False in email if no value 2016-09-27 12:23:19 +02:00