Commit Graph
119766 Commits
Author SHA1 Message Date
Adrien Dieudonne fb35180ee8 [FIX] web: test in graph_tests
previously added in 102a63b815
2018-08-20 12:53:40 +02:00
Cocographique 3babdebc5b [FIX] website: snippets usability improvements
- Suggest correct colors for <hr/> snippet
- Make alignment options more obvious for s_three_column
- Add alignment options for s_share snippet
- Review carousel design
2018-08-20 12:22:33 +02:00
Cocographique 5637dea114 [IMP] web_editor, website: review we options' style 2018-08-20 12:21:32 +02:00
Christophe Monniez 0da58f4133 [FIX] hr_holidays: fix _compute_leave_status
Click on the employee app causes a traceback when hr_holidays is
installed.

With this commit, leave_date_from and leave_date_to receive a date as
expected instead of a datetime when computing the leave status.
2018-08-20 11:16:19 +02:00
Kirti Choudhary acbd7beb1d [IMP] mrp: domain on Effectiveness Category
When users create new productivity losses of type productivity or performance,
they could not be used. Only one is selected randomly. So it makes no sense to allow
that configuration.

Related to task: 58625
2018-08-20 11:14:33 +02:00
Kirti Choudhary 5b0a84f702 [IMP] mrp: Productivity Losses usability improvements
Rename 'Reason' in 'Blocking Reasons'.
Rename 'Effectiveness Category' in 'Category'.
Remove 'Is a Blocking Reason'.
'manual' field become a technical field.
workorder: Change label Efficiency -> Productivity.

The purpose is to make it easier for the user and remove
blocking keywork since it's already in productivity losses views.

Related to task: 58625
PR #23341
2018-08-20 11:14:33 +02:00
Adrien Dieudonne 102a63b815 [FIX] web: graph_renderer: check graph data before rendering
Before this commit, a crash occured when you tried to load
a bar chart without any data.
Example in Purchase -> Reporting.

Since this commit 3d2ca810, we do some data processing without
checking if data exists.
To fix this, we have to always makes some checks before rendering
the graph by calling _render.
2018-08-20 11:11:59 +02:00
Hetashree Chauhan 984addefe6 [IMP] stock: Error message when trying to create lot
TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 9b523fc548 [IMP] mrp: set work center name field required in view.
TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi c94cf3d180 [IMP] mrp: set quantity 1 by default when creating unbuild order.
TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 1e5096a002 [IMP] stock_account: hide the create and edit button on product valuation.
TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 8a81c6d0a4 [IMP] stock: differentiate traceability and package settings
We put the settings for traceability and packages in different groups
view of operation type.

TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 3d94d82aff [IMP] stock: scrap only stockable and consumable
You can only scrap stockable products and consumable ones, so we've
added a domain on product_id.

TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Darshil Trivedi 6ffda36229 [IMP] stock: move operation type on picking view
Move the operation type field from the additional info tab because
it's mandatory field so user have to know before saving fill this field.

TASK-ID: 1838954
2018-08-20 11:02:53 +02:00
Priyanka Kakadiya 8889d00f4f [IMP] website_sale: filter website categories based on search.
task-34786
2018-08-20 10:59:50 +02:00
Martin Trigaux 7d234fe640 [FIX] fleet: don't convert a date to date
date is already a Date field
2018-08-20 10:36:43 +02:00
Martin Trigaux b4e00018d6 [IMP] sale_mrp: increase test delta
The test was comparing a scheduled date was correctly computed.
The runbot build 363053 failed because runbot12 is a bit slower and computed
the delay in 2 seconds instead of the 1 previously tolerated.

Increase the delta to 10 seconds.

The delay is a matter of days. Having a difference of 1, 10 or even 100 seconds
should be equivalent functionnaly.

Having a 100 seconds delay could indicate a serious performance issue though...
2018-08-20 10:28:33 +02:00
Antony Lesuisse c25b88bd4e [IMP] mail: odoo-mailgate.py script
This replace the antiquated openerp_mailgate script.

This version only supports mail.alias, direct model support is deprecated.

Error handling is based on exit status code which will cause a bounced mail
to be generated by the mail server, that bounced mail will containt a nicely
formatted traceback to help debugging.
2018-08-20 06:17:02 +02:00
Siddarth Gajjar c0629cd757 [FIX] web: BS4, restore statusbar "more" dropdown 2018-08-19 16:57:14 +02:00
qsm-odoo 6b84bdeaf9 [REF] website: BS4, smaller footer titles
Using <h5/> for those seems semantically more consistent and looks
better with default BS4 sizes.
2018-08-19 16:57:14 +02:00
qsm-odoo 2b18c1e114 [REF] website_sale(_*): review product item display
* comparison

There is a somewhat big difference between BS3 and BS4: <h5> titles
were the size as normal text and <h6> were smaller while, now, <h5>
titles are a lot bigger (1.25x) than normal text and <h6> are the
same size as normal text.

While both system may be consistent, we feel that standing for BS4 is
the best approach. That way, the smallest <hx> (<h6/>) should be used
for titles of items that are numerous in the page. This is the case
for our shop listing, each product as its own title and before, we used
<h5/> element. Using <h6/> for those feels semantically more consistent
and goes with default BS4 style.

Also review the product comparator popover.
2018-08-19 16:57:14 +02:00
qsm-odoo 7debf9deb0 [FIX] website: BS4, language selector should be smaller 2018-08-19 16:57:14 +02:00
qsm-odoo 7e73a4b1c9 [FIX] website: BS4, smaller btn-sm buttons
Before BS4 migration, Odoo was not very consistent and used mainly
btn-sm buttons and btn-xs buttons. We took advantage of the fact
BS4 removed the btn-xs class to convert our btn-sm to standard btn
and our btn-xs to standard btn-sm.

While this is perfect in theory, the new btn-sm class does not
generated small enough design for us. This commit changes the BS4
standard style for our website, making btn-sm smaller.
2018-08-19 16:57:14 +02:00
Priyanka Kakadiya 1c44e53741 [FIX] payment, *: BS4, adapt ui of shop/payment page in website.
* website_sale, payment_authorize, payment_ogone, payment_stripe,
  website_sale_delivery

(Many bugs were only revealed by BS4, not created)

- Align payment method (Ex.Stripe) form attributes in row.
- Fix align between radio button and payment method name.
- Removed header div from 'billing & shipping'.
- Set badges (Ex.free) and align between badges and delivery method
  name in choose delivery method.
- Border subtraction from delivery methods div as already card class
  has border.
2018-08-19 16:57:14 +02:00
Deep Patel 6434e9d37a [FIX] *: BS4, badge in list items on portal pages
* account, project, purchase, sale, website_crm_partner_assign

With BS3, badges inside list items were automatically right-aligned.
This is not the case anymore so we have to put an explicit class for
this. Also, badges have no default style anymore, so we have to choose
a color (secondary in this commit).
2018-08-19 16:57:14 +02:00
qsm-odoo ece1e3d93f [FIX] *: BS4, restore right-aligned columns
With BS3, if a column was supposed to be aligned on the right, using
the 'pull-right' class on it did the trick.

With BS4, this is not the case anymore as .row elements use flex.
This commit use one of those 3 solutions case per case:

- If the column was alone on its row, then adding the
  'justify-content-end' class on the row.

- If the column was not alone on its row, then adding the 'ml-auto'
  class on the column instead.

- If the column was already filling the row, there was no point in
  aligning it to the right

Note: this commit does not case about potential xpath which would add
new columns in one of those rows. If any, this can be handled as a fix
later.
2018-08-19 16:57:14 +02:00
Fabien Pinckaers aa0c4d702d [FIX] sale: tour can not be broken 2018-08-18 17:40:41 +02:00
Fabien Pinckaers 5d44df1c0a [IMP] *: tabindex on a[type='action'] for BS style fix 2018-08-18 16:17:50 +02:00
Fabien Pinckaers 26a5884706 [IMP] sale: tour copy as we have a config bar now 2018-08-18 14:19:24 +02:00
Fabien Pinckaers 6ee7c68efa [IMP] l10n_*: remove from CoA menu non CoA modules 2018-08-18 13:54:38 +02:00
Fabien Pinckaers 3dcc6d78bb [IMP] project: reducing tour to avoid asking for invitations
We already ask to create a user when creating the first task, going
to the Settings to invite more people is too much.
2018-08-18 13:53:06 +02:00
Fabien Pinckaers 2c61a3514c [IMP] project: show link of empty list 2018-08-18 11:42:24 +02:00
Fabien Pinckaers 686075e838 [IMP] mail: chat copy 2018-08-18 10:44:02 +02:00
Dharmraj JhalaandMohammed Shekha a105e5f208 [IMP] web,various: Add 'Remove' button to view dialogs opened from x2m fields
Currently, to remove link of x2m field from any record, sometimes there's no way.
For example, if we are on mobile and open any Quotation, it's linked quotation lines
are automatically converted in kanban, and there is no way to delete a line from
that quotation. However, in some of the manually designed kanban, there is special 'x'
for removing / unlinking x2m record, for example, Contacts of Partner.

This commit makes the behavior more consistent. During edition (mobile and desktop), if
a view dialog is opened on click of x2m field, it will have one 'Remove' button (based
on user rights) on right side of dialog footer, allowing users to delete / unlink the
record. Moreover, in mobile, the modal is opened fullscreen, with sticky header and
footer.

Related Task# : 31641
Closes PR #15857

Co-authored-by: Mohammed Shekha <msh@openerp.com>
2018-08-17 18:18:53 +02:00
qdp-odoo 858893494f [IMP] account: remove '/' in invoice's journal entries
Fixes #25938
2018-08-17 17:35:39 +02:00
Laurent Smet 380f1c09ce [ADD] account_facturx: add import/export invoice using the Factur-x standard
Factur-x is the e-invoicing standard in vigor in FR & DE and, by extension, it will probably become the standard in Europe. Thus this will be used as default e-invoicing standard by Odoo.

The idea is simple:
  * when printing your customer invoice report (not in draft ofc), a Factur-x xml file is generated and embedded inside the PDF.
  * when importing supplier bills in the form of PDF files, we detect if any Factur-x xml file is attached and complete the data of the draft vendor bill accordingly. This is done during the message_post() function.

/!\ To be compliant with the Factur-x standard, the PDF should be PDF/A-3b compliant. (See: http://fnfe-mpe.org/wp-content/uploads/2018/07/1.-FACTUR-X-V1.1-2018-07-24-FR.pdf chapter 6)
    However, wkhtmltopdf is not PDF/A compliant and then, the generated PDF report are not fully compliant with the Factur-x standard.

Was task: 1859277
Was PR #25508
2018-08-17 17:35:39 +02:00
Laurent Smet b0a29c9bad [IMP] account, bank statement reconciliation widget: improve suggestions
Suggestions made to reconcile bank statement lines are now more accurate (based on communication and amount)
There's no automatic mode anymore (button + <CTRL+ENTER> shortcut removed)
Partners are set automatically when selecting a line in the widget (that will help the creation of a res.partner.bank for him, for a better partner detection next time)

Was task: 1847703
Was PR #25438
2018-08-17 17:35:39 +02:00
Alexandre Kühn 6d53cd3201 [REF] mail,im_livechat,digest: rename 'chat_client_action' to 'Discuss'
Revision on https://github.com/odoo/odoo/commit/02ec09cb1c3e2d7bc7968f40c18f2208d7f3f498#diff-6d76770b1b7cf716d60a4d76a1555c1d

The commit above mostly renamed 'Client Action' to 'Discuss',
but there were some leftovers.
2018-08-17 16:28:39 +02:00
Fabien Pinckaers 11b24b42d3 [IMP] base: UX of partner creation with ro address 2018-08-17 16:25:32 +02:00
XavierDo 830f31e433 [FIX] mail: correct computation of date_deadline
The indentation of the computation of date_deadline was incorect
leading to a deadline only getting compute when the base date was
depending on a previous activity.
2018-08-17 16:22:48 +02:00
Alexandre Kühn ccd94a1588 [REV] "[FIX] web:tests: do not rely on testUtils.patch in tests"
This reverts commit f1a0a32e46.

This utility function has been fixed with commit 1edea9326c
2018-08-17 16:21:39 +02:00
Alexandre Kühn 1edea9326c [FIX] web: tests: correctly unpatch classes
Before this commit, `testUtils.unpatch` was incorrectly
unpatching a class' properties.

That is caused by restoring the properties on the class
function itself, instead of the prototype of the class
function.

This commit fixes this issue by restoring properties on the
prototype function of the class on `testUtils.unpatch`.
2018-08-17 16:20:06 +02:00
Luis González bb5a9a6ae6 [IMP] mail: Add some missing aria attributes
Some aria HTML attributes were missing, and are desirable to provide a
better experience for screen reader users.

The following attributes are included:
- `aria-pressed`: Used in buttons whose function is toggled when
  pressed. In this case, it is added on the button to follow/unfollow
  a record.
- `role`: used to improve given information about what elements are for.
  In this case, it is added in the following cases:
  1. Buttons to apply filters (e.g. to filter conversations) are set
     to  role="tab". These buttons have the class `o_filter_button`.
  2. Elements who are not buttons but have the class `dropdown-menu`
     are set to role="button".

Closes #25667
2018-08-17 16:12:04 +02:00
Martin Trigaux d2fd2f2083 [IMP] base: avoid creating new module
The field module_id is only informative

Fixes #25705

Courtesy of Swapnesh Shah and Pedro M. Baeza
2018-08-17 15:54:41 +02:00
Christophe Monniez c6fa1796af [FIX] tests: clean the browser even on failure
When a Chrome headless test fails the browser is not cleaned and could
lead to a mix with other tests when the same method is called.

Also, the multiline assertions gives an unreadable message when the
assertion fails.
Finally, it happens that a thread does not have an 'url' attribute and lead to a crash when the logger tries to show the thread url.

With this commit, the browser is cleaned, even on failure and the
assertions are now one line.

Closes:  #26432
2018-08-17 14:49:53 +02:00
Alexandre Kühn 0eab8f6e0b [FIX] mail: correct meaning for ASC/DESC thread ordering
Revision on https://github.com/odoo/odoo/commit/f2302dfb27dd7f6a0dee7c65ab75b62a01706264

The commit above improved the rendering of thread.
However, it wrongly defined ASC and DESC.

This commit fixes this issue by re-arranging so that their
definitions match the meaning of 'ascending' and
'descending'.

Orders are defined from top to bottom. Visually:

                _____________            _____________
               |             |          |             |
               |  message 1  |          |  message n  |
               |  message 2  |          |  ...        |
               |  ...        |          |  message 2  |
               |  message n  |          |  message 1  |
               |_____________|          |_____________|

    ORDER:           ASC                     DESC
2018-08-17 14:10:46 +02:00
Alexandre Kühn 1337465c51 [REF] mail: reorder Discuss handler function alphabetically 2018-08-17 14:10:32 +02:00
Yannick Tivisse b10841d615 [IMP] auth_signup: Set self created users as customers
Since https://github.com/odoo/odoo/commit/9aaa32b6f62a95f58d11c17aefb4da4027371223
newly created users are not customers anymore.

But users created from frontend (like in the ecommerce) should be customers.

Specification
=============

Portal users created from auth_signup should be customers.
2018-08-17 14:05:59 +02:00
Martin Trigaux d97e69ff02 [FIX] mail: schedule activity with user's today
The activity was incorrectly scheduled with a deadline as the now in UTC while
the state was computed using "today" in the user's timezone.
This made the nightly test fail (run at 23:30 UTC with the user in UTC+2).

Use context_today instead of today for all activity_schedule calls
To make it easier, use on the context_today default value instead of setting
context_today everywhere (which is more error prone in the future)

Never use datetime, only date objects
add a warning to detect potential errors when passing a datetime

Closes #26411
2018-08-17 13:46:39 +02:00
Martin Trigaux c51cfbc58b [FIX] purchase: use date everywhere in report
account_invoice.date is a date field
purchase_order.date_order is a datetime field
2018-08-17 13:14:51 +02:00