Commit Graph
110261 Commits
Author SHA1 Message Date
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
Jérome Maes 5b7735fd3f [IMP] rating: submitting rating should not redirect to odoo.com
It should redirect to the web.base.url of the
instance, and not www.odoo.com
2016-09-27 12:23:14 +02:00
Jérome Maes 655a44f557 [FIX] project: menus with children are not clickable
'Project > Reports' menu show 'Tasks Analysis'. But
if you install project_issue, or rating_project, some
children menus are added, making 'Tasks Analysis'
invisible.

Trying here to set the same order for issues, ratings,
forecast as in other menus, labels and kanban card.
2016-09-27 12:23:08 +02:00
Jérome Maes cb11af726e [FIX] project: set date_assign at quick create
Set date_assign if a user is assigned to task
even if it is created from the wonderfull quick
create on kanban view.
2016-09-27 12:23:01 +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
qdp-odoo 7e61cd7dd3 [FIX] account, usability: add domain on partner_id field of payments 2016-09-26 17:32:05 +02:00
tdi-odoo 0eb60a8b36 [FIX] account: fix unreconciling invoices, raising a wrong error.
That bug was introduced when removing the invoice workflow, where a call to action_invoice_cancel() has been used instead of action_invoice_reopen() which does slightly different things, as you can imagine.
2016-09-26 15:21:09 +02:00
Christophe Simonis 923af54e84 [FIX] base: explicitly decorate api method 2016-09-26 15:00:26 +02:00
tdi-odoo 8697fe7ad6 [FIX] account, invoice: fix typo
Add a space in auto-computed description of account_invoice_line when a product with a code is chosen.
2016-09-26 14:43:12 +02:00
tdi-odoo 87f188afc6 [FIX] account: remove reason in new draft invoice created from refund
This fix prevents from giving the reason of the refund to the draft invoice created if you select the 'modify' option when refunding an invoice, which now keeps the description of the original invoice.
2016-09-26 14:43:12 +02:00
qdp-odoo 212f539bec [IMP] account: add placeholder for reason field in tax adjustment wizard 2016-09-26 14:43:12 +02:00
tdi-odoo 1533661409 [FIX] account: open tax adjusments wizard as a new window
This fix corrects the inconsistency of the 'discard' and 'cancel' buttons of the tax adjuments wizard
2016-09-26 14:43:12 +02:00
tdi-odoo e6b6463513 [FIX] account, usabilty: add form mode to action open.
This fix allows users to view the form of the invoices they accessed through the payments (via the 'invoices' button)
2016-09-26 14:43:12 +02:00
tdi-odoo 53b55399a2 [FIX] account: fix copy() of account.account
This fix allows user to duplicate bank accounts in the accounting module
2016-09-26 14:43:12 +02:00
tdi-odoo dce316f006 [FIX] account: fix tax copy() 2016-09-26 14:43:12 +02:00
tdi-odoo 7f1b7877c6 [FIX] account, usability: hide 'Ask Refund' button when invoice type is already a refund 2016-09-26 14:43:12 +02:00