Commit Graph
115322 Commits
Author SHA1 Message Date
Mykhailo Panarin ee8a772f99 [CLA] signature for mpanarin
Closes #23708
2018-03-16 15:41:28 +01:00
Nicolas Lempereur ceac5d686d [FIX] web: ok mobile kanban w/o o_kanban_small_column
On mobile, kanban view always have its custom "menu" bar to cycle
between grouping if the kanban view is grouped.

But if the kanban view did not have the class `o_kanban_small_column`
the mobile CSS on record was not applied:

- all columns were always displayed one over the other
- switching tab did not hides other columns and show current one
- the style was the same than desktop (but on mobile and with column
  after first "to be loaded)

opw-1827142
closes #23691
2018-03-16 15:23:01 +01:00
Ernesto García Medina 8e42056b1e [CLA] signature for ernesto-telematel
Closes #23707
2018-03-16 14:56:35 +01:00
Moises Lopez - https://www.vauxoo.com/ 354a1ee65e [FIX] doc: add missing text for calendar string field
Was missing the attribute

Closes #18278
2018-03-16 14:53:49 +01:00
Martin Trigaux 18e7f99981 [FIX] doc: correct commit guideline format
Github will automatically close the report is you use the format
Closes #number
No need to a leading #
cf https://help.github.com/articles/closing-issues-using-keywords/

Add the meaning of [I18N] tag

This commit is an example of a violation of the "one commit, one fix" principle
2018-03-16 14:45:04 +01:00
Martin Trigaux 8fd8019958 [IMP] doc: warn user about the need to update
Easy mistake for new developers

Courtesy of Pieczynski Marcin
Inspired by and closes #17959
2018-03-16 14:44:06 +01:00
Yannick Tivisse 509679c3b6 [FIX] l10n_be_hr_payroll: Compute car atn and costs correctly on new cars
If the contract is misconfigured (A car and a new car is set), then compute correctly the costs.
2018-03-16 13:47:40 +01:00
Martin Trigaux f7501b9fff [FIX] website_sale: data > demo data
Do not rename a translatable record in demo data.
Renaming a translatable record will breaks translations.
I am aware this renaming was done for demo purposes but it is not a good enough
reason to force people in another language (e.g. Chinese) to have the main
pricelist to be named 'USD'.

Exporting the translations only when the product module is installed is not an
option as many product descriptions are added in website_sale
(website_description field) and would then be missing from the translated
content.

It is the same problems as renaming menu based on module installation, it
will not work for non-English speakers.

Will also avoid manual corrections of pot file such as in #23686
2018-03-16 13:44:44 +01:00
Nicolas Martinelli 4e507faaaf [FIX] web_editor: type of res_id
- Set the demo user to have access to all quotations
- Connect as demo, create a quote and send the message
- In the message try to upload an image

An access error is raised, although the user can write on the record.

This is because the `res_id` received is a `string`, not an `int`.
Therefore, the access check fails.

Introduced with 6494f51171

opw-1824673
2018-03-16 13:30:25 +01:00
len-odoo 00057f8efd [FIX] stock, sale_stock, purchase: create quality checks for backorders
There was no Quality check entry for backorders
when the user did a partial shipment.
We move the logic of the backorder creation to the _create_backorder function.
This function was defined but not called anymore due to a refactoring.
We clean some of its unnecessary overrides which were not used anymore.

opw-1816845
2018-03-16 11:36:53 +01:00
Simon Lejeune 0a2999cdd9 [FIX] stock: delivery slip report
The delivery slip is a document targeted to the customer, it is
important that the quantities displayed there reflects what's actually
been delivered.

As for some reason the delivery slip tries do display some stuff on a
not yet done picking and as the ordered_qty field on the move line do
not reflect the ordered quantity but instead the first quantity reserved
on it, we apply the following changes to make the report consistent.

- In all cases, only display the quantity done.
- Get rid of the ordered / delivered quantities. If the move wasn't
  processed fully and a backorder will follow, a message is shown at
  the end of the picking.

There's an ongoing task to fix this report in a better way on master.

opw-1808126
2018-03-16 10:42:22 +01:00
Simon Lejeune ca64b299cc [FIX] stock: picking report
Display the reserved quantity of the move line. Before this patch, it
was only displayed if the product was tracked by lot or serial number.
Not showing it make the only visible quantity on the report the initial
demand of the move, leading users to think the move is fully available.

opw-1808126
2018-03-16 10:42:22 +01:00
Ryan Cole ca83d3c1ac [IMP] doc: add details of o2m and m2m limitations 2018-03-16 09:04:31 +01:00
Florent de Labarre dc1681b1f8 [FIX] stock: show complete name of product
In case of changing the quantity on hand of two variants of the same product,
the two inventory adjustment created will have the same name (the name of the
product.template).
Show the name of variant instead.

Closes #23696
2018-03-16 08:58:02 +01:00
Nicolas Lempereur 45607de944 [FIX] test_main_flows: set tax on product in test
Following odoo/odoo@87c09b8 if a chart of account template with falsy
complete_set_tax is installed, the default sale and purchase taxes are
not set.

This made a enterprise step fail in test_main_flow, so this commit set
the tax on product inside the test explicitely.
2018-03-16 08:49:59 +01:00
João Santos 6bafc30ed3 [FIX] hr_org_chart: add missing event on show more button
The event was lost during new view refactoring at e3d1abc75f
The "show more" button at the bottom of a too long employee list was not binded
to an event.
After this commit, clicking the button leads to the subordinates list.

CLA signature for agente2012

Closes #23665
2018-03-16 08:39:31 +01:00
Joren Van Onder e94912b9a9 [FIX] payment: do not refund transactions if they need 3DS validation
This was already the intended behavior, but in Python a return inside
of a try...finally does not behave this way. From the Python
documentation [1]:

When a return, break or continue statement is executed in the try
suite of a try...finally statement, the finally clause is also
executed ‘on the way out.’

This can cause issues because some payment acquirers will return an
error when refunding a pending transaction. This puts the transaction
in the 'error' state which means it won't be refunded anymore.

Additionally, putting s2s_do_transaction in a try...except like this
hides any traceback that occurs which makes troubleshooting harder.

[1] https://docs.python.org/3/reference/compound_stmts.html#finally
2018-03-15 14:56:34 -07:00
Goffin Simon 0717bb6c0d [FIX] event_sale: Expected attendees for event
When making a registration for event tickets from a SO, by clicking on apply
from registration.editor.form view, duplicated event registrations
were created(in function action_make_registration) because the registration_id
was not sent to the server.

opw:1824952
2018-03-15 17:30:22 +01:00
Nicolas Lempereur 7f216f62b6 [FIX] web_editor: modal fullscreen is fullscreen
Depending on CSS surrounding the editor, the fullscreen component could
fail to set the editor fullscreen.

eg. if the editor is in a modal in a modal (ie. when editing a mail
template when adding an activity and creating a marketing automation
campaign) the fullscreen function would set it to 184px height away 30px
to the screen top.

With this change, `transform` css property is unset on parent elements
of the editor, this was causing the absolute editor to have an offset
parent that was not the body tag.

opw-1824605
closes #23682
2018-03-15 17:12:57 +01:00
Aaron Bohy 3dd93ed129 [FIX] base: settings view: don't patch jQuery
especially to alter the behavior of a standard function to make it
behave like a function that is already available (defined in our
extension of jQuery).
2018-03-15 16:55:53 +01:00
Martin Trigaux dc7b2dff02 [FIX] crm: partial backport of 78b7996d
It appears there is more partners withotu a create_date than I expected on
legacy databases

opw-1827099
2018-03-15 16:37:02 +01:00
Yannick Tivisse 206209a461 [IMP] l10n_be_hr_payroll: Add name on views to allow inheritance 2018-03-15 16:03:01 +01:00
Martin Trigaux 850d0a79b7 [I18N] product: followup of 192dc39ef7
Was stating in 192dc39ef7 that 'Public Pricelist' was already present but it
was actually 'Public Price'
So term was missing.

Still related to #23686
2018-03-15 15:47:35 +01:00
Martin Trigaux 192dc39ef7 [FIX] product: remove wrong reference to pricelist
The pricelist `list0` is name 'Public Pricelist' and is already present in the
product.pot file.
USD is the renamed name after installing website_sale

Closes #23686
2018-03-15 15:16:42 +01:00
Lucas Perais (lpe) 61216f116a [FIX] web: add many records in m2m list
Have a model with a m2m (field A)
  this m2m has also a m2m (and displayed as m2m tags in the view) (field AA)
Have a domain on field A, to trigger the search view selection
Click on add an item
Select everything in the modal, making sure that there is more than 40 records

Click on Select

Before this commit:
There was a traceback indicating the local data did not contain records >= 40
This was because the internal data repository was constrained by a limit

After this commit:
We adapt the limit of the local data repository and there is not traceback

OPW 1823400
2018-03-15 15:11:08 +01:00
Raphael Collet f31516566e [FIX] base: validate domain of field used in view
When a field has a domain like `"[('foo', '=', bar)]"` and is in a view, check
that `bar` is in the view as well.  Note that the check should only occurs in
editable views (form or editable list) and when the field itself is editable.

OPW 1820269
2018-03-15 14:16:38 +01:00
Nicolas Martinelli 65214c01b5 [FIX] mrp: BOM count on product
- Create a Product A with attribute color and attribute values white and
  black.
- Create 3 products (Components 1, 2 and 3)
- Create a BOM for A like:
  Component 1, Variant column is empty
  Component 2, Variant white
  Component 3, Variant black
- Go to Inventory > Master Data > Product Variants, and open one of the
  2 variants of Product A

The BOM count is zero, while it should be 1.

The current implementation of `bom_count` doesn't take into account
attributes that can be set on the BOM line.

opw-1814973
2018-03-15 13:35:54 +01:00
Nicolas Martinelli 8f9770f076 [FIX] product_extended: "Compute from BOM"
Display the 'Compute from BOM' button on the simplified view of
`product.product`, alongside the 'Cost' price.

opw-1814973
2018-03-15 13:35:54 +01:00
Nicolas Martinelli 7e724f96c5 [FIX] product: display Cost price of product
The 'Cost' price should be displayed in the main form view of
`product.product`, not only the simplified view.

The reason is that the field `product_variant_count` has the same value
for the product and the template, therefore it cannot be used to make
the distinction between the two models.

To do so, we need to reintroduce the `is_product_variant` field to make
the distinction between `product.product` and `product.template`.

opw-1814973
2018-03-15 13:35:54 +01:00
Nicolas Martinelli 56749cf098 [FIX] product_extended: compute price
Remove the limitation introduced in 6feefe4d10, since the
`standard_price` field is now available on `product.product`.

opw-1814973
2018-03-15 13:35:54 +01:00
Jeremy Kersten 1cd63d8190 [FIX] website_sale: dont show variant option when not active
Before this commit, a user that ccick 'Customize' on th eproduct page
see the 'List View of Variants' aven if option 'Variants' in settings
was disabled.

Now we hide this view if the group for variants is not enabled in the settings.

This commit closes #23398

That means that a user that enable the view while the variants was enable,
need to disable the view before disable the variants.
2018-03-15 12:35:24 +01:00
Raphael Collet 07a73ce27f [FIX] stock_account: standard price on average
Avoid the division by zero when the available quantity becomes zero.

OPW 1826912
2018-03-15 12:15:20 +01:00
Yannick Tivisse 0eb58775c9 [IMP] hr: Add a specific marital status 'Legal Cohabitant'
Purpose
=======

Currently both 'Married' and 'Legal Cohabitant' are considered as the same thing.

We should separate these 2 marital status to have a more accurate information.
2018-03-15 11:18:19 +01:00
Nicolas Martinelli 642466fa20 [FIX] stock: picking in mobile view
- Switch to mobile view
- Go to Inventory > Delivery Orders > Create
- Add an item, save & close
- Save the picking

Error: impossible to save because a mandatory field is not set.

The kanban view used in mobile should not contain the `date` field,
which is not included in the view `view_move_picking_form`. Otherwise, a
`date: false` value is sent to the server.

opw-1816837
2018-03-15 11:15:30 +01:00
Jeremy Kersten 1227c8de28 [FIX] website_sale_comparison: fix comparison when 'list view variant' is enabled
Before this commit, when the user enable 'List View Variant' from the
customize menu, the add to compare failed.

This commit closes #23397
2018-03-15 11:13:11 +01:00
Jeremy Kersten 076b87134d [FIX] website_sale_wishlist: fix wishlist when 'List view of variants' is activated
When the view 'List view of variants' is enabled from the customize menu,
wishlist was broken and return traceback because product_id was null

This commit closes #23395
2018-03-15 11:13:11 +01:00
Jeremy Kersten 45c270ddd2 [FIX] website_sale_comparison: remove from compare queue when delete from list view
Before this commit, when you was comparing several products (/shop/compare?products=x,y,z)
when you had clicked on 'delete product y' from the top, that was comparing x and z; but
your compare queue continue to be x,y,z.

Now we delete from the compare queue the product y.

This commit closes #23532
2018-03-15 11:13:11 +01:00
Jeremy Kersten df13de780f [FIX] sale: fa coherence in portal
Done label was a copy/past from cancel tag (bad icon, bad color)

This commit closes #23594
2018-03-15 11:13:11 +01:00
Nicolas Lempereur 87c09b8ebc [FIX] account: false complete_tax_set tax default
When setting a chart of account on a company, we have default taxes from
the default chart of account different from chosen one.

But if a chart of account is chosen, it should override them in the
onchange_chart_template_id function. This works as expected for a
truthy complete_tax_set chart of account template, but not for a falsy
complete_tax_set chart of account template.

The complete_tax_set indicates that we don't want to set default taxes
and the user should do it or modify the given tax rates himself.

opw-1824751
closes #23655
2018-03-15 09:52:13 +01:00
Nicolas Martinelli 7d52d6e89b [FIX] crm: create opportunity from kanban
- Create a customer, set an address
- Create an opportunity from the kanban view

The address fields are not filled in in the opportunity.

We add all fields filled in by `_onchange_partner_id_values`

Complement of commit e2bbee6df5

opw-1816438
2018-03-15 09:14:52 +01:00
ougc27 935b6d6aab [FIX] base_address_city: add missing placeholder
for city and city_id fields
To be consistent with the other fields

Closes #23662
2018-03-15 08:59:06 +01:00
Géry Debongnie 7287c672f5 [FIX] web: x2m: properly reset limit/offset to initial value
When we discard an element, we want to make sure that the new state is
not corrupted by previous user operations.  In our case, we possibly had
a limit and an offset values modified by the user.

This could lead to unpleasant situations, with incorrect data displayed
on the form view.

Note that this actually fixes a new bug introduced by commit
https://github.com/odoo/odoo/commit/e7fab234201e357da52c3576ad2e8fc9ceee9359
(this is the commit that introduces the tempLimitIncrement attribute)
2018-03-14 17:03:23 +01:00
Géry Debongnie 4586b876f2 [FIX] web: unselect current row before changing page
The issue here is quite simple.  If we are editing a multipage one2many
field, then we click on the pager, we need to properly unselect the
current row.

If we do not do that, then we can enter invalid data.  For example,
assume that there is a readonly field. We click on add, it creates a
(virtual) record with no value for that field.  When we click on the
pager, we select the next page, and bypass all validation.
2018-03-14 17:03:18 +01:00
Géry Debongnie 4fd9db52a2 [FIX] web: prevent issues with pager and x2m and limit
When we are in the process of adding a record, we do not want to update
the pager count.  The reason is that if the user is at the limit (so,
1-40/40, no pager visible), then click on add, there will be a pager
shown with 1-40/41.  Now, imagine that the record currently being added
as a required field, and the user clicks on the pager. In that case, we
need to discard the newly added record (bringing the total back to 40),
then move to next page, which does not exist anymore.

So, to fix this issue, we simply consider that a record being added
does not count, from the point of view of the pager.
2018-03-14 17:03:11 +01:00
Goffin Simon 8df915da05 [FIX] payment: Payment integration with Authorized.net making double transactions
When making a payment with authorize.net by clicking on "Pay Now" in the shop, it was
possible to send several transactions for the same SO because the button "Pay Now"
was enabled before being redirected.

opw:1819588
2018-03-14 14:50:14 +01:00
Simone Orsi d9235a8f14 [FIX] base: update docstring
set_* methods are deprecated (cf warning in code below)
should use set_values instead

Closes #21171
2018-03-14 14:27:58 +01:00
Nicolas Martinelli 19255ee260 [FIX] website_sale: image in carousel
- Create a product with 3 variants
- Put a picture on the template, then on all variants but the first one
  (the one with computed for field `product_variant_id`)
- Check "Multi image" setting in website config

In the product page of the eCommerce, the carousel is not displayed.

This is because the template only checks if the first variant has an
image in order to display the carousel. It should check all variants.

opw-1823242
2018-03-14 13:17:12 +01:00
Florent de Labarre 54942f0921 [FIX] product: prevent modifying variant attributes
On the product_normal_form_view
to be consistent with the product_variant_easy_edit_view view.
product.attribute.value values should not be modified from the product view but
using the variant configuration from the product

Consistent with what was wanted at a4d88c9efd

Closes #23298
2018-03-14 10:47:37 +01:00
Jeremy Kersten e449055189 [FIX] website_sale: disable link from pivot view for sale.report
Before this commit, linking was enable for pivot view of model sale.report.
User that click on a cell will be redirected on a default view list/form
with all fields.

Now linking is disabled.

If you want to open the sale order on click, you need to start with the
pivot view from model sale.order.

This commit closes #23445
2018-03-13 18:16:12 +01:00
Goffin Simon e68ab50a77 [FIX] payment_authorize: test_10_Authorize_form_render
Introduced by 669c23d58d

opw:1817597
2018-03-13 17:48:16 +01:00