Commit Graph
120514 Commits
Author SHA1 Message Date
XavierDo 71663b7f57 [IMP] web: log user_error as info instead of error
Since a console.error will mark a tests as failed, logging user error
as info will allow to test a flow with user error without
marking the runbot red
2018-09-14 13:56:32 +02:00
Rémi Rahir b0cc678f17 [FIX] snailmail_account: bad inheritance of views
The xpath on the res config settings view was attached to a div added in the
account module but the record was inheriting from base and not account.
As snailmail account inherits from account, it was somehow working.
2018-09-14 13:53:49 +02:00
qsm-odoo 737d272997 [FIX] portal, *: use responsive BS text utilities instead of our own
* website, website_sale, website_sale_delivery

While we used BS3, we used our own responsive classes for text
alignment (text-right-sm, text-center-not-lg, ...). Now BS4 classes can
be used to achieve the same behavior so there is no point in declaring
our own ones anymore.

Also, as the breakpoint names changed (lg -> xl, md -> lg, ...), the
current code was not working as intended anymore anyway.
2018-09-14 13:41:35 +02:00
qsm-odoo da55072a69 [FIX] portal, *: introduce responsive BS sizing classes
* website_sale

Bootstrap chose not to implement this feature, probably relying on their
grid system (see https://github.com/twbs/bootstrap/issues/21943).

We have a case where a responsive size of 0px is needed though: applied
on a table, this forces the table to its contents' natural width. So
this commit implements the behavior and adds the size of 0 to replace
the non-responsive class 'o_table_column_fit'.
2018-09-14 12:11:22 +02:00
Odoo Translation Bot 0b2349ee41 [I18N] Update translation terms from Transifex 2018-09-14 11:30:58 +02:00
Denis Ledoux 4fb5c57dc5 [FIX] tests: web tests, chromium fallback
On Ubuntu, the chromium executable is `chromium-browser`,
On other distributions, such as debian, it's `chromium`.

We therefore add another fallback
2018-09-14 11:28:56 +02:00
Christophe Monniez 058b1993ab [FIX] l10n_eu_service: remove duplicate service tax rate
Since d5b687a an error is logged when trying to insert duplicates in
ir_model_data. An error appears when installing this module because of
the duplicate.

As this module is not yet tested, this error flew under the radar.

Note: a new test that installs l10n* is developped
2018-09-14 11:17:01 +02:00
Yannick Tivisse 4f9cc90c73 [FIX] rating: Send rating if no override of rating_get_parent
Purpose
=======

Currently if the method rating_get_parent is not overriden, then
sending a rating on a record of the model leads to a traceback.
2018-09-14 11:09:08 +02:00
Denis Ledoux 6e3e195324 [FIX] tests: chromium executable is chromium-browser
When installing chromium using apt
e.g apt install chromium-browser
the executable is `chromium-browser`,
not just `chromium`
2018-09-14 10:43:28 +02:00
qdp-odoo c52d809032 [IMP] account: add setting to hide the products in bills
Was part of PR #26876
Was part of task #1882329
2018-09-14 10:21:02 +02:00
qdp-odoo c5393118c6 [IMP] account: set default taxes on default sale/expense accounts
This will allow default tax to be proposed when no product are entered in vendor bill encoding

Was part of PR #26876
Was part of task #1882329
2018-09-14 10:19:33 +02:00
Olivier Colson 82e1aed2e6 [REF] account: refactors the onchange product_id on invoices
get the product_name thanks to a function, so that we can reuse it somewhere else (account_predictive_account)

Part of PR #26876.
Part of task #1882329
2018-09-14 10:19:33 +02:00
Sébastien Theys a670f092b9 [IMP] website: improve Optimize SEO and Page Manager
Modal generic:
- Fix footer overflowing buttons by pushing them to a new line.

Page manager:
- Add an SEO column to easily see which pages have incomplete SEO.
- Add an edit SEO column to navigate to the SEO modal on said page.
- Hide "edit in backend" column as debug.
- Generally improve the whole view by adding appropriate titles on icons, etc.

SEO modal:
- Improve general style.
- Add description length alert.
- Restructure the keyword table/suggestions.
- Reset page meta to their initial value on Discard.
- Various small usability improvements.

PR: #26897
task-1850579
2018-09-13 18:18:02 +02:00
Jeremy Kersten 7a298f89d9 [FIX] website_sale_wishlist: try to fix unreproductible bug
Rumor say that that 1x/100... the variant is not selected and that the tour crash.
So we are not sure that it will avoid that, but it will be not worse.

I will keep my fingers crossed for that.
2018-09-13 18:16:28 +02:00
Hiral Bhavsar 7f1c1b84ef [FIX] website: no overlap of text when opening burger menu
Issue: https://drive.google.com/open?id=1aXlkgpM7fWEWL18XMEAN5lI1uWgeZHqy

Closes #26434
2018-09-13 17:49:57 +02:00
Hiral Bhavsar 5373db1487 [FIX] mail, web: open systray menu dropdown in mobile.
Before this commit, it was not possible to open systray menus in mobile.
This is due to popper.js that is wrongly dynamically positioning the
dropdown menu.

This commit fixes the issue by disabling dynamic positioning by popper.js
for the systray menus, so that it uses ou custom styles for dropdown menu.

Closes #26434
2018-09-13 17:49:52 +02:00
Hiral Bhavsar 3ee4390bff [FIX] web: correct mobile screen size.
Revision on https://github.com/odoo/odoo/commit/d91ec258e6a31153beb9eb16cfe8f916546b7688

The commit above reverts a commit when we were using bootstrap 3.
The equivalent of XS in bootstrap 3 is SM in bootstrap 4.
So the correct revert with bootstrap 4 is to use SM.

Also removing useless style on 'o_mobile_menu_opened'.

Closes #26434
2018-09-13 17:49:36 +02:00
Jeremy Kersten 618c89fd87 [IMP] website_sale: allow to hide company/vat fields in checkout
task-1866941
2018-09-13 17:45:23 +02:00
qsm-odoo 0452d332af [FIX] website: remove hamburger menu option
Standard option is sadly not good enough to be kept. We will let themes
handle that one their own way.
2018-09-13 17:36:29 +02:00
jem-odoo d0022ef2a7 [FIX] sale_timesheet: generated project must be active
When choosing a project template on a service (product
config), and then archive it, the generated project
on sale line confirmation will be inactive too.
This commit forces the generated project to be active.

Task #1884328
2018-09-13 15:40:43 +02:00
Olivier Colson 7da25a9239 [IMP] account: remove invoice communication automatic sanitization option 2018-09-13 15:17:08 +02:00
jem-odoo d32d2394c2 [FIX] sale: sale line form view usability 2018-09-13 14:44:50 +02:00
jem-odoo f701ea75fe [FIX] mail: clickable kanban card
Task #1878152
2018-09-13 14:44:45 +02:00
jem-odoo 64adff43d8 [REF] sale_timesheet: make project billable wizard
When introducing the 'employee rate' mode to timesheet
on project, we break the wizard: its goal was to link the
existing timesheets to the SO line in order to invoice them.
(Employee rate commit: b4af54f9c2)

This commit makes the wizard compatible with the employee rate
feature, without breaking invoicing at task rate flow.

Two possible flows, starting with a non billable project:
  * project rate: the wizard will create a SO with one SOL,
  	and will link the task without SOL set to the new one.
  	The project will also be linked to that SOL.
  * employee rate: the user has to fill a map to associate
  	product and employee. If the same product is set 2 times
  	with the same price (and so, 2 different employees), only
  	one SOL will be created on the SO. When submitting, the
  	project map will be filled and the project will be linked
  	to the SO. No fallback SOL will be set on project or on
  	the tasks.

Both use cases will be stopped if a timesheet of the project's
tasks is already linked to a sale line. If not, the timesheets
will be associated to the correct SOL (dependning of the billable
type), and the delivered quantity will be incremented, making
the SO invoicable. The tasks'customer will also be set.

Future work: setting a product per task (which will be a real
'task rate' feature).

Task #1883640
2018-09-13 14:44:35 +02:00
Arnold Moyaux ecc8ff8260 [FIX] mrp: fix bom structure report link
complete commit e31048f6a4
scss cursor is not needed since it is already set on btn element that
are activate.
2018-09-13 14:16:22 +02:00
Arnold Moyaux f641113605 [FIX] mrp: rename label for report bom structure 2018-09-13 14:16:22 +02:00
Arnold Moyaux a84dded067 [FIX] mrp: bom structure text align 2018-09-13 14:16:22 +02:00
Jeremy Kersten 4a57d2619b [FIX] website[_theme_install]: fix website form view
Before this commit, you had 'choose a theme' into the form view.
It should be only visible in modal

task-1878245
2018-09-13 13:58:23 +02:00
Jeremy Kersten 96638bfcb0 [FIX] website: only show 'Follow tooltip' when possible
Before this commit, the message was always displayed.
Now we only show into the default homepage the message "Follow all the tooltip"
when there at least 1 tooltip in the current page.

task-1878245
2018-09-13 13:58:23 +02:00
Jeremy Kersten 54b70dd6fa [FIX] website: typo align, color
right align 'I have a promo code'
make close button white in Customize modal

task-1878245
2018-09-13 13:58:23 +02:00
Jeremy Kersten f620039527 [FIX] website: multi website and company switcher
Remove domain based
Use domain if set

That will imply that you need to reconnect on your new website too.

task-1878245
2018-09-13 13:55:51 +02:00
Jeremy Kersten 4cc4663c26 [IMP] website(_theme_install): keep breadcrumb when you choose theme
Before this commit, we return an act_url, in this case the breadcrumb is not
build and the user cannot retruen to the settings in one click.

task-1878245
2018-09-13 13:55:51 +02:00
Jeremy Kersten 9747ff249f [FIX] website: remove share page info option from page manager
Advanced user can do it from the backend by the way and it is not
obvious to understand the impact to set/unset this option.

Seems like I was the only guy to think that this feature was needed

task-1878245
2018-09-13 13:55:51 +02:00
RomainLibert 8e40fed773 [FIX] pos,product,sale_management: make pricelist available in pos
Before this commit pricelist was never available on the product form if
you only had pos installed.
2018-09-13 13:48:58 +02:00
Joren Van Onder 5756b00922 [IMP] l10n_co: additional data
add some additional taxes
add an additional document type (Used in electronic invoicing)

Was PR #26751
Was task #1874136
2018-09-13 12:54:35 +02:00
Thibault Delavallée 6f2122a79c [ADD] hr: add employee-related tests
Purpose is to test user - employee synchronization, especially about
timezones that are often broken.
2018-09-13 12:20:14 +02:00
Thibault Delavallée bfea44bfda [REF] hr: clean tests code
Purpose is to remove unnecessary code and prepare some future tests addition.
2018-09-13 12:20:02 +02:00
Thibault Delavallée d74fe36654 [IMP] hr: do not reset employee timezone if user has no timezone
Purpose of this code is to synchronize user and employee timezones. However
if the employee has one and the user none it is better to keep the one
set on the employee to avoid issues.
2018-09-13 12:19:29 +02:00
William Henrotin 8fad1e51ca [FIX] mrp: workcenter resource are materials
mrp.workcenters are resources instances. Their resource_type is human by 
default while workcenters should be considered as material. This commit 
set the resource_type as material by default in case of workcenter
2018-09-13 11:59:55 +02:00
William Henrotin e3e354529a [FIX] mrp: menu config
This commit reworks the resources related menu in MRP
2018-09-13 11:59:55 +02:00
William Henrotin 6329c44aeb [FIX] mrp: working hours required
Mrp workcenters have a resource_calendar_id to specifie its working
hours. On the form view, this field is optionnal but is mandatory in the
form view.

This commit set it as required in the view to avoid the classical 'object
with reference * - *' error.

Task : 1876847
2018-09-13 11:59:55 +02:00
ThanhDodeurOdoo d12b883155 [IMP] mail, web: attachments & messages in debug actions.
- added two new actions to the form view debug action list,
  both opens list (+ form) views of messages and attachments respectively
  for which the domain is restricted to the current record.

task: 1860031
2018-09-13 11:50:26 +02:00
ThanhDodeurOdoo 7f97c9fc05 [IMP] mail: new attachment button in the chatter
- Added a new button to the chatter that displays the amount of
 attachments on the current record and when clicked, all the attachments
 attached to the current record

      - added mail.FormView (includes), used by the chatter attachment
       button to fetch the field value of attachment_count.

      - added a computed field "attachment_count" to mail.thread that
       contains the amount of attachment attached to the record.

      - changed the followers div, it is now sharing a "right side"
       area with the attachment button.

 task: 1860031
2018-09-13 11:50:26 +02:00
jem-odoo 6a2b4827d4 [FIX] sale_timesheet: duplicate project remove tasks SOL
When duplicating a task, we want the copy to have
the same sale order line then the original.
However, we duplicating a project, the tasks are
copied too. But, in that case, we don't want them
to be linked to any sale line, as the copy project
will not be.

This commit fixes that use case, and provides a test.

Task #1883640
2018-09-13 11:44:13 +02:00
jem-odoo 0c28a6387f [FIX] sale_timesheet: too long sql name
The generated SQL constraints name is too long, and so, when raising, it
does not show the defined error message, since Postgresql truncated the
name. thus Odoo can not match the error with the error message.

Task #1883640
2018-09-13 11:43:45 +02:00
jem-odoo 708492b0a1 [FIX] sale_timesheet: add action name
Task #1883640
2018-09-13 11:43:31 +02:00
jem-odoo 11474ac3de [IMP] sale: add form view for sale line
Since in sale_timesheet (and elsewhere), the sale line is link to
some document, the user might click on this field to get more
information.
Unfortunately, he will get an odoo-generated form view, as no one
exists for this model.
This commit provides a basics and beautiful view for SOL, available
for all modules.

Task #1882245
2018-09-13 11:43:24 +02:00
qsm-odoo fd8d6cb393 [FIX] website: make theme customization modal multi-faster
Since the recent fixes on multi website, the customization modal
is restored but is a lot slower the first time we use it (around 20sec
to save an option on my machine). This was because when we change an
option, all the others options are sent to the server to be (re-)saved
and, on the first time, the multi-website system has to duplicate them
all to make them website-specific.

Now, we only enable/disable views which are modified by the user.
2018-09-13 10:35:42 +02:00
qsm-odoo 6113a20fa7 [FIX] website: multi-solve multi-website's multi-write
The write method did not work properly for views anymore as soon as it
was called on a multi-records recordset which contains at least one
view which is not website specific. In that case, it used the cow
system for that view (and thus created a specific copy)... but forgot
to continue the write method for the other views, leading to strange
results.
2018-09-13 10:35:42 +02:00
qsm-odoo c8a37b4678 [FIX] website: adapt customize modal to multi-website
The code used the xml_id field instead of the key field at some point,
so the modal was not fetching the proper views.

This commit also removes the useless code in there.
2018-09-13 10:35:42 +02:00