Commit Graph
117156 Commits
Author SHA1 Message Date
Joren Van Onder 0a1aaba3c8 [IMP] mrp: suggest correct serial number in next work order
When producing multiple products tracked by serial number only the
serial number was only set for the first one in every work order. This
makes it so that when you create SN1, SN2 and SN3 in the first work
order they show up as default in the following work orders.
2017-08-30 14:25:18 +02:00
Joren Van Onder df343137cc [FIX] mrp: set product_uom_qty instead of product_qty
product_qty has been changed to be a computed field.
2017-08-30 14:25:18 +02:00
Christophe Simonis 792204ae9e [MERGE] forward port branch saas-11 up to dce35ca44b 2017-08-30 14:15:32 +02:00
Richard Mathot 6a5c1001d3 [FIX] mrp: stupid typo introduced at ccfc4e7026
Sorry about that.
2017-08-30 14:12:47 +02:00
Nicolas Martinelli cb21934e00 [FIX] stock: inventory adjustment
Backport of commit c00267bc34

opw-767538
2017-08-30 14:04:01 +02:00
qsm-odoo 23fb008051 [MERGE] web: prepare for new list view design 2017-08-30 13:48:19 +02:00
qsm-odoo c65200cb91 [REF] web: add list sorting icons on hover 2017-08-30 13:45:17 +02:00
qsm-odoo dedb01451a [REF] web: make sure entering list edition does not move elements
Tested with enterprise new design.
2017-08-30 13:45:17 +02:00
stefanorigano 30d3c5d64e [REF] web: toggle new classes on grouped list views
Minor changes to allow better design.
2017-08-30 13:45:17 +02:00
stefanorigano 2175e7c011 [REF] web: add LESS mixins to make hovering effects 2017-08-30 13:45:17 +02:00
Christophe Simonis dce35ca44b [FIX] l10n_*: limit tag migration to 9.0 series 2017-08-30 13:29:44 +02:00
Christophe Simonis f75fd6dcdb [MERGE] forward port branch 9.0 up to 24ca3793bf 2017-08-30 13:19:58 +02:00
Christophe Matthieu 67adc9d9a9 [FIX] account: update the reconciliation line on input instead of on blur
This change is used to view the residual amount when the amount used for
the write-off.
Create a new line on key press enter.
2017-08-30 12:59:46 +02:00
Christophe Simonis 24ca3793bf [FIX] website_forum: do not compare recordset against integer 2017-08-30 12:45:35 +02:00
qsm-odoo 9b58abdd5c [FIX] web: reset 'invisible' table cells to correct display
Make sure '.o_invisible_modifier' table-cells are forced back to
`display: table-cell` to keep correct alignement. Indeed using the
`initial` value forced them to `inline` instead (creating some
obvious visual bugs in some cases).
2017-08-30 12:40:53 +02:00
Aaron Bohy f1082f1552 [FIX] web: don't send virtual id on save
The problem occurred on form views with an x2many field with a
default value containing CREATE commands, i.e. when opening such
a form view in create mode, the x2many field is pre-filled with
some (non-existing yet) subrecords.

If the user then edited those subrecords, and then clicked on
'Save' to create the main record, an 'UPDATE' command was sent
alongside the 'CREATE' one for the x2many, and the id of the
'UPDATE' command was a virtual id (as the subrecord didn't exist
yet), and it crashed.

This could happen in MRP:
  - Enable lots in Iventory
  - Choose a product which is a component of another (through mrp bom)
  - Set this product as tracked by lot
  - Set this product inventory quantity to 0
  - Create a new manufacturing order for the product for which it is a
    component
  - Click on "Check Availability"
  - click on Produce: the many2many already contains a subrecord
  - edit the lot field of that subrecord
  - click on 'Record Production'
2017-08-30 12:29:47 +02:00
Lucas Perais (lpe) aee1456e89 [FIX] website_sale: correcting syntax typo in xml 2017-08-30 11:43:49 +02:00
amoyaux 4ec6069acc [FIX] mrp: update qty to produce does not remove the qty produced
When updating the quantity to produce on a MO, the quantity done
on finished/consumed moves that were not done was erased.

It happens due to write on stock move that always wanted to
unreserve the move and thus drop the move lines with qty_done.
This issue has been resolve in previous commit

This commit correct some mistakes in wizard methods in order
to correctly update open moves.
2017-08-30 11:34:20 +02:00
amoyaux de6a50e984 [IMP] stock: modify move initial demand should not always unsreserve
Write method on stock move always unreserve concerning move if
initial demand is modified. Unreserve will delete all move lines
linked to the move including those already modified.

Thus modify initial demand(unreserve) will destroy all the
job done by the user.

This commit will only unreserve move is the initial demand
is smaller than the quantity reserved (could be improved by dropping
only few move lines). If the initial demand is greater than the
reserved quantity it will not unreserve but only change the
state to partially avaialbe.
2017-08-30 11:34:20 +02:00
Aaron Bohy 96b1db4cd4 [FIX] web: prevent 'reload' event from being handled twice
When the external button of a many2one field is clicked, the
related record is opened in a dialog. When the user clicks on
'Save' in this dialog, a 'reload' event is triggered to reload the
parent view (the one in the background), as the display name might
have changed.

However, when there is another many2one field in the opened dialog,
and if its external button is clicked, there are 2 opened dialogs,
and thus 3 nested form views. If the user clicks on 'Save' in the
third one, only the direct parent view must be reloaded (the one
in the first dialog).

Before this rev., the 'reload' event wasn't stopPropagated, so it
was handled by the view in the dialog, and by the one in the
background, which produced a crash.

This could happen for instance in Sales Order, edit a sale order
line, click on the external button of the product, in the dialog,
click on the external button of the category, edit some field and
click on 'Save'.

Closes #19052
2017-08-30 11:23:29 +02:00
Aaron Bohy 551dc26940 [FIX] web: tab navigation in editable list with create="0"
Before this rev., when the user pressed 'TAB' in the last cell of
the last row of an editable list with attribute create="0", a new
line was added to the list, thus totally ignoring the attribute.
Now, it goes back to the first cell of the first row instead, as it
was before the new views.

Closes #19053
2017-08-30 11:23:28 +02:00
qsm-odoo a49fdd86b3 [FIX] web: properly show kanban tags' texts
Previous tag design was a colored block with a text on hover. This
text was explicitely html-escaped as put as the 'title' attribute
value.
Since https://github.com/odoo/odoo/commit/89cbbe3b0d6800a89b4385965151ed368659424f:
The text is now always shown and is thus naturally html-escaped by
the jQuery `text` method... and should thus not be explicitely escaped
before.
2017-08-30 11:15:43 +02:00
qsm-odoo 68e24396a3 [FIX] web, mail: kanban activity dropdown and button designs 2017-08-30 11:15:43 +02:00
Damien Bouvy 1fdb10f0ac [MERGE] payments: Add new payment form to e-commerce & online quote
- The generic form now support form & s2s payments.
- The generic form is now implemented to pay on e-commerce and online
quotation.
- Added icons of supported credit cards for each payment acquirers.
- Replaced e-commerce footer that was displaying payment acquirers by
supported credit cards icons.
- The payment form doesn't render s2s forms in python anymore.
- The payment form now display an error when credit cards credentials
are not filled.
- Fixed a bug where paying with a registered token on e-commerce would
crash.
- Fixed errors not displaying on the payment form.
2017-08-30 10:40:10 +02:00
Goffin Simon f39bc44948 [FIX] stock_account:Manager Cannot Change Configuration Settings
When the user is a stock manager and has the Settings rights, he can
modify the inventory settings.

opw:767233
2017-08-30 10:14:59 +02:00
Katherine Zaoral 72dcb2eb91 [FIX] l10n_mx: Fix rst error in module description 2017-08-30 10:12:35 +02:00
Lucas Perais (lpe) e88f91ba41 [FIX] web_editor, website_sale: load images of the shop when product has been updated
Before this commit, when the shop was in multi images, the main image was not refreshed when changed in the back end.
This was because of the ?unique parameter that was computed on the product variant image. Hence, when the product image changed, the variant image did not, the hash neither, and the image wasn't refreshed

This commit fixes this by adding an option to the qweb.field.image

OPW 765287

closes #19133
2017-08-30 10:00:50 +02:00
Luis Ernesto Torres Macías 6630ce7e76 [FIX] l10n_mx: changing nature of accounts
Was PR #19137
2017-08-30 09:40:24 +02:00
qdp-odoo b2f2006b7f [FIX] account: sequence_number_next fixes.
-changing the date_invoice field do not reset anymore the sequence_number_next (it now only affects the prefix)
-the date_invoice is now passed as ir_sequence_date AND ir_sequence_date_range in the context, for sequences that use the date_range feature in prefixes
2017-08-30 09:16:47 +02:00
Mehul Patel d8970d05b5 [IMP] account : allow zero amount in bank statement line
task: https://www.odoo.com/web#id=33304&view_type=form&model=project.task&menu_id=
PR: #17136
2017-08-30 09:11:32 +02:00
HIRAL BHAVSAR 52decc07fd [IMP] account, account_*: add cancelled state to payment
task: https://www.odoo.com/web#id=28001&view_type=form&model=project.task&menu_id=
PR: #14492
2017-08-30 09:05:22 +02:00
tbe-odoo 26eaac4ed1 [FIX] Conflicts while merging 2017-08-29 17:24:58 +02:00
tbe-odoo be650c5979 [IMP] Fixing the code to fit the reviews 2017-08-29 17:16:42 +02:00
tbe-odoo 2a2a1c7b28 [IMP] payment,website_sale/quote: Renaming a field and labels 2017-08-29 17:16:42 +02:00
tbe-odoo ad095e492f [IMP] payment,website_payment: Change payment.option model name to payment.icon 2017-08-29 17:16:42 +02:00
tbe-odoo bb96c73da0 [IMP] payment: Removed transfer button & fixed custom payment 2017-08-29 17:16:42 +02:00
tbe-odoo ea8b189029 [IMP] website_sale: Removing dead code 2017-08-29 17:16:42 +02:00
tbe-odoo 7ce35e99b7 [IMP] payment_stripe: Retrieve access token on website_quote 2017-08-29 17:16:42 +02:00
tbe-odoo 7419661247 [IMP] payment_stripe: Compatible with the new payment form
- Stripe checkout form is now compatible with the new payment form.
- Fixed a typo on a currency code.
2017-08-29 17:15:00 +02:00
tbe-odoo d01ab606bc [FIX] payment_transfer: Reintroduced the button template 2017-08-29 17:13:58 +02:00
tbe-odoo 83fdc63b68 [IMP] payment: Fix crash on install
- Fixed a crash when installing payment module.
- Set a more specific css selector to display error on payment form where required input are empty
2017-08-29 17:13:58 +02:00
tbe-odoo f74111f79f [IMP] payment: Display error when input are empty
- Required fields are now checked, if they are empty then we make their border red and display an error dialog.
2017-08-29 17:13:58 +02:00
tbe-odoo 6b38cd8b85 [IMP] payment: UI changes & Fix 500 errors
- Fixed 500 errors when trying to display payment form because of variables partner_id/acquirer_id missing.
- Accepted credit cards are now display next to the acquirer name on the payment form
2017-08-29 17:13:58 +02:00
tbe-odoo 1d6e848f10 [IMP] payment acquirers: Cleaning the code 2017-08-29 17:13:15 +02:00
tbe-odoo 726060c2dd [FIX] JS tours 2017-08-29 17:13:15 +02:00
tbe-odoo 5882cacb90 [FIX] payment: Some input were not set
- e-commerce and website_quote create a transaction with its reference when the user click on Pay.
So we need to render the inputs when the user click on pay and submit the form with the values
2017-08-29 17:13:15 +02:00
tbe-odoo e05953d31e [FIX] payment_authorize/paypal: Fix tests 2017-08-29 17:13:15 +02:00
tbe-odoo 11bc680ae9 [IMP] payment: Remove ugly render() hack
- Removed an ugly hack that renders s2s forms then display them using t-raw, we're now providing the xml_id of the s2s forms and uses t-call instead.
2017-08-29 17:11:23 +02:00
tbe-odoo 194d52e8fd [IMP] website_quote/sale,payment: Support of the new payment form
- Online quotation and e-commerce now use the new payment form.
- Added the ability to chose on an acquirer if it uses only form/s2s or both.
(Still need some code cleaning)
2017-08-29 17:11:23 +02:00
tbe-odoo 3c062d9345 [IMP] website_sale: Added S2S payment with new payment form
- Added the support of form payment.
- Fixed payment form's errors not being displayed.
- Fixed a crash when paying on e-commerce with a saved token.
(dev commit, need to clean the code)
2017-08-29 17:11:23 +02:00