Commit Graph
112591 Commits
Author SHA1 Message Date
Joren Van Onder 46cfc2e41d [IMP] stock: limit user actions on planned stock.picking form views
Don't allow immediate edition of quantity_done, marking as todo and
immediate validation.
2017-09-20 15:08:36 +02:00
Joren Van Onder 2e837d6951 [IMP] stock: confirmed moves without an initial demand are assigned
To allow users to easily process immediate transfers.
2017-09-20 15:08:35 +02:00
Joren Van Onder 5ae754754f [IMP] stock: display check availability only when a move can be checked 2017-09-20 15:08:34 +02:00
Joren Van Onder a2a361f7e0 [IMP] stock: ask confirmation when validating overprocessed moves 2017-09-20 15:08:34 +02:00
Joren Van Onder 54ad8297af [IMP] stock: rename test_immediate_validate_ to something more sensible
Introduced by forward-port in c5f680200c.
2017-09-20 15:08:33 +02:00
Joren Van Onder 2f959e8769 [FIX] stock: add ensure_one to action_toggle_is_locked 2017-09-20 15:08:32 +02:00
Joren Van Onder 340a3e03d1 [IMP] stock: remove force_assign buttons 2017-09-20 15:08:31 +02:00
Joren Van Onder d58fb4d38c [IMP] stock: reduce steps required to process a stock.picking
When pickings are created or modified they will be automatically
'Marked as todo'. Draft pickings can still be created through the
'Planned transfer' link on the stock.picking.type kanban card.
2017-09-20 15:08:31 +02:00
Joren Van Onder 6e931e4e3c [IMP] stock: simplify stock.picking states
Remove 'partially_available'. This particular state is now also
represented by the 'assigned' state.
2017-09-20 15:08:30 +02:00
qsm-odoo bada5a7300 [FIX] web: statusbar margins in in-dialog form views
Form views with a chatter in a dialog on a large screen are styled by
the side chatter feature. This is not a problem as it is made to be
automatically adapted whether a chatter is displayed or hidden, but
in-dialog only rules had to be adapted.
2017-09-20 15:03:56 +02:00
qsm-odoo 63425459b6 [FIX] web: better project kanban_status inactive color
- Use a lighter color so that the red and green ones are more visible
- Use the same color for the column progressbar's inactive state
2017-09-20 15:03:56 +02:00
qsm-odoo 9e051adbf7 [FIX] mail: properly style suggested partner checkboxes in chatter 2017-09-20 15:03:56 +02:00
qsm-odoo 7b965a9673 [FIX] mail, web: chat window and emojis
- Fix several contexts where the emoji popover was hidden by a webclient
  element (control panel / ...). To solve this bug, the design has been
  improved to not use popover but instead use custom design (better
  integrated with new chatter design)

- Chat window is now still usable when a modal is opened

- Simplify chatter LESS
2017-09-20 15:03:56 +02:00
qsm-odoo 26e079f246 [FIX] mail: make clicking on chat window's emoji button properly work
Before this commit, clicking on the button opened the emoji popover
then closed it immediately. This was because of a handler which said
that clicking on any part of the composer should focus the input
element. This is indeed required when the UI is blocked (thanks to
the `blockUI` function). Solution is to not force this focus when
clicking on any composer's button element.

To prevent breaking those two behaviors (blockUI focus and emoji), two
tests were implemented.
2017-09-20 15:03:56 +02:00
Laurent Smet 85a0399d4f [FIX] web/report: fix header/footer css style in pdf reports (#19579)
After the refactoring of the wkhtmltopdf engine, the headers/footers are managed in a very different way to be able to call wkhtmltopdf only once. The subst JS function must select the right header/footer corresponding to the current page company. However, a <div> was suppressed during the process and then, some external customization might be ignored (see github issue for more details).

-issue: https://github.com/odoo/odoo/issues/19544
2017-09-20 14:38:35 +02:00
Raphael Collet 69161ed69c [FIX] mail: performance, replace filter() by condition in domain 2017-09-20 13:30:56 +02:00
Raphael Collet 8ffe241bee [FIX] *: incorrect many2many commands
Those cases worked by chance until the former commit.
2017-09-20 13:30:56 +02:00
Raphael Collet 49f6a1b544 [FIX] fields: improve performance of many2many fields
An update by a list of commands is now guaranteed to have at most three SQL
queries to update the relation, whatever the number of commands and records.
2017-09-20 13:30:56 +02:00
Raphael Collet 87970ea344 [FIX] mail: add cached method to retrieve message subtypes
This saves queries to retrieve message subtypes for a given model.
2017-09-20 13:30:56 +02:00
Raphael Collet 38193456d4 [FIX] test_performance: log when number of queries is less than expected 2017-09-20 13:30:56 +02:00
qsm-odoo 09c35696a3 [FIX] *: dashboards automatic colors
* account, hr, hr_recruitment, maintenance, mrp, sales_team, stock

Adaptation of https://github.com/odoo/odoo/commit/a79d83e436e5e965d59663d4a06a0f8a62d8f694 for saas-18 new colors.

Also change back all color defaults to 0 instead of 1 (see
mentioned commit: they were changed from 0 to 1 as in saas-16
the color was applied to kanban headers which had to be gray
(the old color 1) by default).

Also add default violet color for 'Customer Invoices' and 'Vendor Bills'
dashboards.
2017-09-20 12:32:48 +02:00
qsm-odoo d7bc8877bd [FIX] account: allow to click on dashboard header's "done" buttons
A design commit thought that "done" buttons should not be able to be
clicked anymore and forced this with LESS code.
(see https://github.com/odoo/odoo/commit/38a1a452cfd59ad8e7f7359f43ee779e8a3f8329)
2017-09-20 12:32:48 +02:00
qsm-odoo c798f0f744 [FIX] web: style only one kanban hovered link at a time
Hovering a link in a kanban record was adding an hover effect on all the
links which were in the same <div/> parent.
2017-09-20 12:32:48 +02:00
Martin Trigaux 27ca297e64 [FIX] tools: python3 compatibility for export terms
Avoid error in babel getting the wrong source file
TypeError: startswith first arg must be str or a tuple of str, not bytes
2017-09-20 11:15:20 +02:00
Martin Trigaux 3dad91aa19 [FIX] pad: avoid changing dictionnary size during iteration
In python3, items() and keys() returns iterators.
Modifying a dictionnary while iterating on it may trigger an error:
    dictionary changed size during iteration
2017-09-20 11:15:20 +02:00
Deep Patel 9b9fcfe628 [FIX] web,base: document template widget in settings
Go to General Settings, click on 'Change Document Template', and
in the opened dialog, click on a template.

Before this rev., it automatically closed the dialog, which was
not really convenient.

This rev. introduces a new field widget (image_selection) for
this use case, and ensures that the dialog doesn't close when
a template is selected.

Test written by @mba-odoo
2017-09-20 10:56:57 +02:00
Géry Debongnie 48b8be29fa [FIX] web: update x2manys when onchange add new line
In this commit, we make sure that if an onchange in a x2many modifies
another line, then the new data is properly shown.  This is quite
tricky, because the field x2many ignores the full extent of the changes.
Also, we obviously want to preserve the editing state (focused field,
...)

So, what we actually do is to rerender the full x2many (minus the new
line) to make sure that we preserve the correct row order.

Note: thanks to MGE for the test and some preliminary work.
2017-09-20 10:05:13 +02:00
Martin Geubelle 3136fc1643 [FIX] web: reuse datapoint with onchange one one2many
Since the rev. https://github.com/odoo/odoo/commit/2728fe1ec1ac7e99819d0f30f29a1814b00c82a4 the onchange create
command (0) send the virtual id as second argument. This argument is sent
back from the server and can then be used by the client.

As the client knows the virtual id, it can easily reuse the datapoint created
for this record and thus avoid creating a new one.

Creating a new datapoint can potentially lead to problems if the record has
for example specialData, that won't be kept.
2017-09-20 10:05:13 +02:00
Raphael Collet 3069734d4f [FIX] models: in method onchange, filter out pseudo-fields 2017-09-19 17:06:04 +02:00
amoyaux d547f63cb7 [REF] stock: merge quants
In a situation where one transaction is updating a quant via
`_update_available_quantity`and another concurrent one calls
this function with the same argument, we’ll create a new quant
in order for these transactions to not rollback.

This commit adds a method to deduplicate these quants.
2017-09-19 15:55:53 +02:00
Yannick Tivisse 8514df36e9 [IMP] sale_timesheet: Remove commented pdb 2017-09-19 15:48:20 +02:00
Yannick Tivisse a99a0c827a [FIX] sale: Compute correctly is a quote is expired in portal
Purpose
=======

We shouldn't compare the validity date with the begin date of the pager to determine whether a quoation is expired or not
Furthermore we shouldn't let the template compute these kind of things.

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

Add a computed field is_expired. Use it in the template.
2017-09-19 15:46:06 +02:00
Christophe Simonis d15a31ae6d [MERGE] forward port branch saas-17 up to 2a343d7c9c 2017-09-19 11:58:01 +02:00
Kirti Choudhary 63ebdd0869 [FIX] web: Display 'Favorites' filters list with a scrollbar when too long 2017-09-19 11:37:01 +02:00
Christophe Simonis 2a343d7c9c [MERGE] forward port branch saas-16 up to c3a48da767 2017-09-19 11:06:46 +02:00
Yannick Tivisse 70ea155a96 [FIX] stock: Define correctly the filter 2017-09-19 11:04:57 +02:00
Prakash Prajapati 4afdc57c88 [FIX] mail: Open simple partner form when email is requested on actions
Purpose
=======

When you want to send an email to a contact without an email address set, you get a wizard to enter the contact email.

In master, you get the full contact form

You should get the simplified form view (like in 10.0)
2017-09-19 10:50:51 +02:00
Hardik Patel c3a48da767 [FIX] web: FormView button box: position of More dropdown
Before this rev., the dropdown was positioned in the bottom left
corner of the form view.
2017-09-19 10:14:24 +02:00
Pratima Gupta de48daf53a [FIX] web: FieldDomain: don't open record from selection
The FieldDomain allows to open a list in a dialog to display the
records matching the current domain. In this dialog, clicking on
a record should do nothing (this was the behavior before the new
views).

Before this rev., it actually tried to open the record and it
produced a crash.
2017-09-19 10:14:24 +02:00
Hardik Patel 116aa22685 [FIX] web: reset offset to 0 when searching for records
Scenario: Go to any list or kanban view: go to next page and set a
filter that matches less that 'limit' record (e.g. less than 40),
but at least one. No record will be displayed, because the offset
is kept for the search_read.

This rev. ensures to reset the offset to 0 when a search is done
using the searchview.
2017-09-19 10:14:24 +02:00
Darshan Kalola 8ba10a3b9a [FIX] web: FormView: invisible='True' on x2many fields
Before this rev., it crashed if an x2many field had the
attr invisible set to 'True' in a form view.
2017-09-19 10:14:24 +02:00
fwi-odoo 43e412ccab [FIX] mail: fix due to the changes for the app switcher whitelist
The app switcher in the enterprise branch introduces a new way to whitelist the
element in the app switcher. This commit apply this mechanism to the mail windows.
2017-09-19 10:12:28 +02:00
Christophe Simonis a8d20e6804 [FIX] point_of_sale: correctly format date 2017-09-18 23:06:58 +02:00
Foram Katharotiya 2b3c8e6ca9 [IMP] l10n_in: GST introduced as new legal requirements.
aka 'Indian localization out of the box'.

Details:
     GST introduced, module refactored.
     Update GST chart of account, tags and SGST, CGST & IGST taxes.
     Replace vat label with GSTIN in reports & views.
     Added HSN Code field and display it on invoice form view & report.
     Added pin number field in res_country_state.
     Show the total amount in words based on Indian numbering system on form view of customer/supplier invoice/refund.
     Arrange address format of India country.
     l10n_in_schedule6: Introduce new GST taxes, chart of accounts & account tags.
     l10n_in_sale, l10n_in_purchase, l10n_in_stock: added modules to add hsn code and replace vat with gstin in sale, purchase & stock reports

Was task: 33241. Was PR #18952
2017-09-18 22:17:43 +02:00
qdp-odoo 194c38f09d [REF] account, sale: some minor refactoring
that would allow to easily overwrite the printed report name and invoice/sale reports
2017-09-18 22:00:37 +02:00
qdp-odoo ec96c0b3c2 [IMP] base: add vat_label on res.country
That allows to display the 'vat' field under the right label in reports.
2017-09-18 21:57:48 +02:00
Christophe Simonis b3d1a7f7cf [FIX] point_of_sale: format date correctly
Oversight of previous forward-port
2017-09-18 19:00:54 +02:00
Christophe Simonis 14145fe285 [MERGE] forward port branch saas-15 up to 50a440237a 2017-09-18 18:06:21 +02:00
Monish Soni 09e44c02f2 [FIX] mail: Fix typo in mail chatter 2017-09-18 17:57:07 +02:00
Christophe Simonis 50a440237a [MERGE] forward port branch saas-14 up to b407d84401 2017-09-18 17:39:16 +02:00