Commit Graph
99742 Commits
Author SHA1 Message Date
Denis Ledoux eaed775ee2 [FIX] point_of_sale: session summary report
In 9.0, the currency field on the statement is
no longer `currency`, but `currency_id`.

This is an oversight during the forward port
6a306a03be

opw-658101
2015-12-01 18:06:44 +01:00
Denis Ledoux c99122cdb9 [FIX] anonymization: xmlid_to_res_id doesn't have a context argument
This is related to the revision 2e66c489e3

`xmlid_to_res_id` doesn't have a `context` argument,
trying to do a call with this `context` failed.

A simple attempt to anonymize the database raised the error.

opw-657858
2015-12-01 17:39:27 +01:00
Martin Geubelle 53dab127e1 [FIX] web_kanban: position of kanban_no_content
In sales dashboard, when there is no sales team, the no content message is displayed next to the dashboard.
The class o_kanban_ungrouped adds style to avoid this problem.

Credits to @qsm-odoo.
2015-12-01 16:37:25 +01:00
Ray Carnes f9453a1e1a [FIX] crm: grammar/spelling in demo
Closes #9803
2015-12-01 16:02:00 +01:00
Goffin Simon fc2295d8eb [FIX] website_sale: "Add to Cart" button with inactive variants
When clicking on "Add to Cart" button(a link in fact) with an
inactive variant in the Shop, the button must be disabled.
As "Add to Cart" is a link, the attribute "disabled" had no effect
on.

opw:657967
2015-12-01 15:46:28 +01:00
Yannick Tivisse dd92bd2a06 [IMP] project_issue: Display 'Issues' before 'Documents' on Dashboard
When the tasks are disabled on a project, we have this block order
Documents -> Issues

It's annoying because the documents view opens when we click on the
card if only the issues are enabled and documents have been posted
2015-12-01 15:37:59 +01:00
Denis Ledoux 0016bbd6d1 [FIX] portal_sale: invoice form for portal users.
Some fields were available in the invoice form view for portal
users, that they are either not supposed to see, or they do
not have the access rights to see them.

opw-657900
2015-12-01 15:17:06 +01:00
Nicolas Martinelli 3ebc2f4722 [FIX] product_visible_discount: forward port of bb90e55fb5 2015-12-01 14:50:25 +01:00
Nicolas Martinelli ed19f13843 [FIX] sale_stock: add category routes
The product category routes should also be added in the list of routes
checked since they are also used in _search_suitable_rule.

opw-653991
2015-12-01 14:50:24 +01:00
qdp-odoo 5eecd2a21a [FIX] l10n_fr: generate the chart of accounts after all templates have been created. Fiscal positions were missing 2015-12-01 14:17:51 +01:00
Goffin Simon e4ba2d43c9 [FIX] sale_crm: invoiced button in dashboard
The invoiced amount in the Sales dashbord must be compute with
the customer invoices.

opw:657538
2015-12-01 14:01:18 +01:00
Jeremy Kersten f814dd9908 [FIX] web, openerp: debug mode now works without referer
In some cases the Referer HTTP header may be missing or
stripped by a proxy, browser extension or anti-virus.
This breaks debug mode because it was solely relying
on the Referer header.

Introducing an explicit X-Debug-Mode header for RPC
calls allows for an alternative method that works
even when the Referer is missing.

This won't work in all cases, e.g. for direct $.ajax
calls, for example.

Closes #9824
2015-12-01 13:47:30 +01:00
Joren Van Onder d37c8ef632 [FIX] point_of_sale: use mapped taxes when creating account moves
We have a tax_ids_after_fiscal_position field on pos.order.line that
contains the mapped taxes. We should use that to create the account
moves. Otherwise the Point of Sale will create unbalanced journal
entries.

Fixes #9815
2015-12-01 12:20:36 +01:00
Olivier Dony 68196b1b6a [FIX] setup: missing cacert.pem data file for requests in win32 packaging
This data file is required when making HTTPS requests
with Python's `requests` package. Without it, modules
such as account_yodlee/account_plaid won't be able
to call their secure API.

+ minor refactoring (3 strikes and the code is out)
2015-12-01 12:03:25 +01:00
Jeremy Kersten c258702faf [FIX] website_sale_stock: fix xpath
Xpath expr has been changed between saas-6 and 9.0... Forward-port doesn't update it.
2015-12-01 11:50:50 +01:00
Cedric Snauwaert ee97028fa0 [FIX] account: account that has been deprecated should not be choosen on a new invoice 2015-12-01 11:47:02 +01:00
Denis Ledoux 390aa7a78d [FIX] hr_timesheet_sheet: menu to check past timesheets
For a simple employee (meaning, not a HR officer),
it wasn't possible to view past timesheets.

Indeed, the "Weekly" menu opens the current timesheet,
and the menu "Timesheets to approve" is available only
for HR officers.

opw-657860
2015-12-01 11:00:47 +01:00
Martin Trigaux 00ee6e7ba4 [FIX] base: wrong term in .pot
As the name of the module has changed
2015-12-01 10:25:13 +01:00
Martin Trigaux 253437f81f [FIX] base: set module when creating translation
Port revision 70287d4 to 9.0

When creating missing translations on an object (e.g. using blue flag icon on a
field), the value of the module was not set.
This was problematic as could create a duplicated translation when the module
was updated or the translation reloaded (as the module is used in find_expr).

opw 654036
2015-12-01 10:19:25 +01:00
Nicolas Lempereur 516c8de3e9 [FIX] web_settings_dashboard: set undefined installed_apps
opw-657865
2015-12-01 10:14:56 +01:00
Damien Bouvy 8469a4dea0 [FIX] sale: make the field visible when needed, instead of always invisible
The group group_analytic_accounting is actually part of analytic, not sale.
2015-12-01 10:07:11 +01:00
Yenthe 1bb62470e4 [IMP] l10n_be: accounting translations
Extra accounting translations
Closes #9821
2015-12-01 09:57:21 +01:00
Martin Trigaux a9ec2894de [MERGE] forward port of branch saas-6 up to 19fe77b 2015-12-01 08:41:52 +01:00
Martin Trigaux 0ee11f23f1 [FIX] project: undecember is not yet supported by python
But this should probably move to demo
2015-12-01 08:30:40 +01:00
Fabien Pinckaers fb2a549798 [IMP] improved module name 2015-12-01 03:50:43 +01:00
Denis Ledoux 53ae4a3169 [FIX] project: avoid to remove the default partner_id
The onchange of the project field
removed the default partner loaded of the task
if there was no project set on the task, or if the
project was not associated to a specific partner.

There is no obvious reasons to do so,
and the revision 3fe06da634
introducing the regression doesn't explain why
it has been done. At first sight, there is no reason.

opw-657876
2015-11-30 17:46:31 +01:00
Martin Trigaux 19fe77b7d7 [MERGE] forward port of branch 8.0 up to 1f07b942 2015-11-30 16:57:14 +01:00
Martin Trigaux 35f3dea5d2 [FIX] stock_dropshipping: do not raise a warning for dropshipping product
When selling a product with a dropshipping route, the available stock was
checked and a warning got raise if it was the case.
The _check_routing was not working properly as is called in a context of an
onchange and 'self' was the record in the database, not in the browser.

Just use check there is a dropshipping route on the product instead of checking
it on the routes of the sale order line (not reliable info anyway).

Add a todo for master to improve it to change the signature of the method.

opw 657760
2015-11-30 16:55:45 +01:00
Martin Trigaux 1f07b9429c [FIX] base: update translations should not duplicate the terms
When a translated term is modified (e.g. content of an email.template),
reloading the translations of the module (e.g. when updating the module) used to
recreate a new, duplicare translation for the modified term (instead of ignoring
the existing one).

This was due to the fact the matching expression (find_expr), when loading
translations, used the field 'src' (source term) as criteria for (almost) all
ir.translation records.

While this is true for type 'code' or 'selection', this is not true for 'model'
where the source content may have been changed.
In case of translation of type 'model', matching on the name and res_id should be
enough for the matching expression and then, avoid creating duplicated
translations.

Note: this patch must NOT be present in 9.0 due to the xml_translate
attribute that splits an xml content into small parts.

opw 654031
2015-11-30 16:41:56 +01:00
Martin Trigaux a70287d42c [FIX] base: set module when creating translation
When creating missing translations on an object (e.g. using blue flag icon on a
field), the value of the module was not set.
This was problematic as could create a duplicated translation when the module
was updated or the translation reloaded (as the module is used in find_expr).

opw 654036
2015-11-30 16:41:56 +01:00
Xavier Morel e3a2448ebe [ADD] form builder whitelisting: ACL check
Only users who can edit the website's structure should be allowed to
whitelist fields.
2015-11-30 16:39:13 +01:00
Xavier Morel 2afb5b43ef [IMP] form builder fields blacklisting
* blacklist all fields by default
* don't use blacklist in get_authorized_fields which is called to see if
  a field can be added to a form, instead only use it afterwards to see
  if the field can be written to by the formbuilder. That way
  formbuilder can whitelist fields which are actually added to forms
  on-demand resulting in a more secure interaction
2015-11-30 16:39:13 +01:00
Xavier Morel 2769029eef [IMP] make form builder opt-in update
In noupdate, the opt-in setting is ignored by migrations and breaks the
corresponding feature. If the feature is undesirable, don't install the
module.
2015-11-30 16:39:13 +01:00
Denis Ledoux 37c95517c7 [MERGE] forward port of branch 8.0 up to eb5d95b 2015-11-30 15:06:41 +01:00
Denis Ledoux eb5d95b135 [FIX] product: _get_image_variant is used for the field image
This revision is related to 93d4db9d1e.

Usually, for models with an image, the original `image` is stored
in the field `image`, and then the resized value are in the fields
`image_medium` & `image_small`.

In the specific case of the product variant, this is not the case,
the original image is stored in the field `image_variant`,
and the `image` field uses as well the method `_get_image_variant`.

The `image_get_resized_images` must therefore return the "big image"
as well, which is returned with the key `image`, by default.
This is done using the method argument `return_big`.
2015-11-30 13:51:25 +01:00
Denis Ledoux 6175a1b8cf [FIX] website_sale_stock: access rights to print the delivery order
A portal could not print the delivery order report
if the products of the picking were not published.

opw-657743
2015-11-30 13:40:14 +01:00
Martin Trigaux 44248a07a5 [FIX] base,share: error in_group_xx on user form
res.users form contains virtual fields in_group_ID to be added in res.groups.
Groups with boolean share=True (added by share module) must not be displayed in
the form and should not be modifiable through the user interface.
However, if a module adding/modifying a res.group is earlier in the dependency
graph than 'share' (e.g. only depends from 'base'), the update of the user view
is done before share is loaded and the overrride of 'get_application_groups' is
never executed.

As we can not guarantee that the module is share loaded, put the logic of
hidding the module in base instead of share.

This workaround is quite hacky but is necessary in stable version.
Better fix in 9.0 at cf63d4d

Fixes #6324
Fixes #5820
2015-11-30 13:11:02 +01:00
Nicolas Martinelli f2aea91b4a [IMP] stock: add picking partner_id
Add a related field to the partner_id of the picking. Note that
partner_id on stock.move is different from partner_id on stock.picking
in case of dropshipping, therefore we need to show both fields.

opw-656298
2015-11-30 13:07:27 +01:00
Denis Ledoux 93d4db9d1e [FIX] product: resized variant images
This is possible to set an image for a specific variant
When this was the case, the image displayed was always the
image within its original size, it wasn't resized
to small and medium sizes.

opw-657055
2015-11-30 13:06:16 +01:00
Denis Ledoux 6b772af15c [FIX] crm: on leads/opp, keep team if user is member of it
If a user was in multiple team,
and the salesman of a lead was changed to this user,
the team assigned to the lead might change even
if the user was part of the team already set.

opw-657814
2015-11-30 11:31:58 +01:00
qdp-odoo 901a3e030c [FIX] hr_expense: generation of accounting entries now work when selecting several expenses 2015-11-30 11:28:58 +01:00
Nicolas Lempereur 919678bed3 [FIX] web_editor: fallback to plain text when pasting
Depending of the location where the "Copying" happened, only text/plain
content could be available from the clipboard component.

So if no text/html was retrieved, we should fall back to plain text
pasting.

closes #9787
opw-657137
2015-11-30 10:35:35 +01:00
Goffin Simon 28463d0310 [FIX] delivery, stock_account: invoice on delivery with fiscal position
When creating an invoice on delivery, the right 'account_id' was not
set on the invoice line according to the fiscal position.

opw:657542
2015-11-30 09:46:38 +01:00
Nicolas Lempereur f77e44f2dd [FIX] website_mass_mailing: edit snippet newsletter
The "edit" action is on the "website.TopBar", which will create a new
instance of the "editor" (web_editor.editor) widget.

So if we want to do something when the "editing" start, we have to
either override "edit" of the TopBar, or override "start" or "init" of
the editor.

opw-657662
2015-11-30 09:04:16 +01:00
Odoo Translation Bot b8dfa91613 [I18N] Update translation terms from Transifex 2015-11-29 02:58:05 +01:00
Alexandre Fayolle 49ed380e72 [FIX] sale: customer_portal settings
website_sale_digital and website_portal are in community edition, so use normal boolean
widget instead of upgrade widget.
2015-11-28 23:26:59 +01:00
Nicolas Lempereur da2e4c86a4 [IMP] account: replace selection key in reconciliation
opw-653468

ff note: no need after saas-6
2015-11-27 17:49:21 +01:00
Denis Ledoux 261ccf7c56 [FIX] point_of_sale: quantity uses decimal separator of lang
This revision is related to 5a10903e9b.

The above revision makes so the decimal separator from the language
is used to display the prices.

This revision makes so this decimal separator is used as well
for quantities, to be coherent.

opw-657591
2015-11-27 17:26:31 +01:00
Denis Ledoux 4b003afd0a [FIX] point_of_sale: quantity decimals for new lines
In the pos interface,
when adding a product to the order,
the quantity was set to `1`,
but, when adding the same product again,
the quantity was set to `2.000`.

We use `set_quantity` to not
copy/paste what is already done
in this method to display
correctly the quantity within
the product unit of measure rounding.
2015-11-27 16:55:00 +01:00
qsm-odoo bba2e39fb8 [FIX] calendar: redirection after invitation email
When accepting/declining a calendar event invitation received by mail,
we landed on an empty gray webclient. The confirmation page had been
dropped with passage to new JS API / new calendar / new webclient.

Previous mechanism had been reimplemented: custom web client with event
information/confirmation if the user is not connected or redirection to
the event form view if the user is connected.

+ FIX manyattendeetag : the status circle did not turn red when an
user declined the invitation.
2015-11-27 16:20:32 +01:00