Commit Graph
112889 Commits
Author SHA1 Message Date
Thibault Delavallée a7b5d2819d [FIX] crm: fix dict access
Ensure key is present before taking its value in the defaults dict.
2017-09-29 10:59:59 +02:00
Lucas Perais (lpe) ea2650aa79 [FIX] website_sale_digital: fix download attachement Py3
Before this commit, an Error 500 was thrown to the user upon downloading an attachement
It was due to two things:
- wrong return on a function
- the filename that http.send_file takes shouldn't be a string, but bytes in Py3
2017-09-29 10:47:37 +02:00
dbh 0f3b2859a9 [FIX] mass_mailing: Merge 'Basic Template' and 'Blank template'
Purpose
=======

Feedback from fgi: mass mail, remove first plain text template and use preview image for the second one: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrdG4zNHd3a2hueWM/view?usp=drivesdk
+ all the editable text should be visible: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrZ0FWZWNjcjB2OFk/view?usp=drivesdk
2017-09-29 10:26:58 +02:00
Martin Trigaux 9afede846e [FIX] account: typo 2017-09-29 10:07:46 +02:00
qdp-odoo e832fbfd7a [FIX] account: due date set, even if readonly, in case we're using a payment terms 2017-09-29 09:18:45 +02:00
Axay Javiya 0ec31c8822 [FIX] web: fix kanban progressbar active filter
When the user clicks on a color in the progress bar, it is supposed
to highlight the column in this color and the records that correspond
to this color. This works perfectly. However, when all the records
are moved (or their color is changed), the filter was staying active,
while it should not be active anymore, since basically the user could
not have clicked on the color in the progressbar in the current state
of the kanban view since no records are in this state anymore.
2017-09-29 09:03:48 +02:00
Nicolas Lempereur 51db88a653 [FIX] l10n_ch: typo assets so no CSS in ISR
There was a typo when removing report module in e8023804 so the CSS was
present when displaying the report HTMLly but not PDFly.
2017-09-29 08:07:27 +02:00
Hetashree Chauhan 4d6a4803b7 [IMP] stock: always show operations types menu item 2017-09-28 15:01:37 -07:00
Hetashree Chauhan ba108dabd2 [IMP] stock: put owner field next to package_id in stock.quant tree view 2017-09-28 15:00:23 -07:00
Hetashree Chauhan 205155d1d4 [IMP] stock_account: multi-line strings start with 3 "s not 4 2017-09-28 14:51:13 -07:00
Hetashree Chauhan b4f610ffec [IMP] stock_account: move 'Update Cost' to the right of standard_price
Before this it was below it which was confusing.
2017-09-28 14:49:10 -07:00
Hetashree Chauhan 5282ffef19 [IMP] mrp_repair: make lot_id readonly on done repairs
Because changing it in this state doesn't impact traceability.
2017-09-28 14:48:17 -07:00
Hetashree Chauhan ae64a0cbe5 [IMP] stock: rename location columns in stock.move tree view 2017-09-28 14:48:17 -07:00
Hetashree Chauhan bc9c0da53c [IMP] mrp: hide availability field on mrp.production form 2017-09-28 14:48:16 -07:00
Hetashree Chauhan 908c15385a [IMP] mrp: improve mrp.production availability string 2017-09-28 14:48:16 -07:00
Hetashree Chauhan a1ad9ebb6c [IMP] stock: hide reserved quantity on done moves
The reserved quantity resets can reset back to 0 after the move is
done, which can cause confusion.
2017-09-28 14:46:20 -07:00
Hetashree Chauhan d0cc5a530c [IMP] mrp: simplify stock.picking.type form view for mrp_operation 2017-09-28 14:45:20 -07:00
Mehul Patel 1bce0a398d [FIX] sale : add pro-froma invoice report into print buttons.
Was PR#19684
2017-09-28 15:25:23 +02:00
Fabien Meghazi 9f9a7fdd0d [FIX] server: python3 compatibility for --dev=reload 2017-09-28 14:58:38 +02:00
Christophe Simonis a8ecfd03c6 [IMP] core: allow to connect to database server with a secure SSL TCP/IP connection 2017-09-28 14:47:59 +02:00
qsm-odoo c3048b1465 [FIX] web: kanban records' margins in mobile
There should not be any margin/padding in mobile mode.
Also remove useless rendering code of kanban view (this is the
renderer's job).
2017-09-28 13:29:56 +02:00
qsm-odoo 2506a9564b [FIX] web: review UI tag color system
- Kanban colors and tag colors are now the same
- Tag color 0 (default) is now back to be the invisible kanban one
- Same colorpicker for kanban and tags
- Define correct number of colors (12 not 13)
- Color 0 should be a neutral one (gray)
- ...
2017-09-28 13:29:56 +02:00
Christophe Simonis 99bf9e4563 [MERGE] forward port branch saas-16 up to 89df681b45 2017-09-28 13:24:14 +02:00
Christophe Simonis 89df681b45 [MERGE] forward port branch saas-15 up to da15615c45 2017-09-28 11:56:23 +02:00
Christophe Simonis da15615c45 [MERGE] forward port branch saas-14 up to aca401c500 2017-09-28 10:53:37 +02:00
Prakash Prajapati 6b410fc954 [FIX] website_sale_comparison: rename product comparator 2017-09-28 10:11:53 +02:00
Christophe Simonis aca401c500 [MERGE] forward port branch 10.0 up to 808c0e5dde 2017-09-28 09:54:16 +02:00
Darshan Kalola 5604151b6e [FIX] web_planner: fix layout of close button in planner dialog
remove double cross

close #19731
2017-09-28 09:51:38 +02:00
kap-odoo 230e88264a [FIX] website: removed padding in todo buttons of dashboard.
closes #19733
2017-09-28 09:49:44 +02:00
Vandan Shah fed46211ed [IMP] website: change link for google analytics tracking ID
closes #19730
2017-09-28 09:46:41 +02:00
Joren Van Onder 8cbd29f696 [FIX] mrp: display attachment image in mrp.document kanban view
Before this the mrp.document id was used to construct the /web/image/
link which lead to the wrong attachment being previewed and
downloaded. Introduced by the refactoring that happened in
d193350c6f.
2017-09-27 17:14:43 -07:00
Jeremy Kersten 95634c967f [FIX] website, website_slide: fix enumerate_page
Use rec_name in domain because some model like survey.survey don't have name field.
Check that query_string is setted to avoid traceback 'lower of None'
2017-09-27 23:32:40 +02:00
Denis Ledoux 808c0e5dde [FIX] test_assetsbundle: handle readonly files
If the Odoo server runs with its sources read-only
for itself, this is not possible for the server
to touch the files contained in the assets.

In such a case, instead of touching the file,
we alter the attachment checksum, to simulate
a change within the modified date.

However, in such a case, we can only test that the
bundle is well generated again.
We can no longer check the change of version and modified date,
since the modified date of the files have not changed,
and therefore the checksum (which is based on the files
modified date, among others) neither.
2017-09-27 22:11:36 +02:00
Denis Ledoux b5c55a9331 [FIX] base: tests, reflect unaccent behavior of 5e3de76f36
Since the revision
5e3de76f36

The `::text` is included within the `unaccent` call
The expession tests have never been changed according
to this change of behavior in the building of the unaccented
queries. This has never been detected by runbot because
you need to start the Odoo server with the option
`--unaccent`
and to create the database with the unaccent extension
`CREATE EXTENSION unaccent`
to be able to fail the former tests,
and this is not the case on runbot.
2017-09-27 22:10:30 +02:00
Jeremy Kersten 953a693df1 [FIX] website, http_routing: fix translate on website.page
Before this commit:
website.page won't be rendered as translated items since it is not going though
 a controller (route) enabling multilang. Website.page were not considered as
 multilang items and no lang prefix were applied on link.

Now:
website.page will correcly handling translation.

In case of one route doesn't match a controller, it is now by default a route of
type multilang.

Add a new field auto_redirect_lang on website model to allow to deactive the
autoredirect of the lang optionnaly. The code will arrive after more tests.
2017-09-27 21:33:50 +02:00
rde 257595011d [FIX] website: website.redirect was never called
Before this commit, the website.redirect records would never been called since
we switched call order from redirect>page to page>redirect.
It would always render a 404 and would never check redirect records.

Now, if there is no page found, it will check for redirects and if no redirect
found it will return 404.
2017-09-27 21:33:50 +02:00
rde fa23bb8586 [FIX] website: unpublished page present in menu throws an error if public user
Before this commit, an unpublished page present in menu would throw an error for
public user (group_portal & group_public) because of the security record rule
set on website.page model not allowing read access to unpublished pages:

<field name="domain_force">[('website_published', '=', True)]</field>

In this particular case, we try to retrieve the menu URL, but since the URL is
retrieved through its (m2o) website.page, it would cause an error.

Now, it the menu has a website.page unpublished, we will correctly retrieve its
URL (sudo) and it won't crash.
2017-09-27 21:33:49 +02:00
Jeremy Kersten 1b52b00d2a [IMP] website*: clean sitemap + add method to declare sitemap function.
Don't add useless routes or route that will return 404.
Improve generate function from ModelConverter to have a better management of
query_string.

Now we have an helper sitemap_qs2dom that will analyse the current route and
check if query string is plausible and if yes, generate a domain, when the
query_string don't seems to match the route, we return a Falsy domain.

Before this commit, if qs was /product/ipad, enumerate_page check for each
modelconverter of the route a name ilike '/product/ipad'.

Now we check all routes that contains product and one converter that match ipad
or routes that contains ipad and one converter that match product.

This commit a new way to declare the sitemap for a route.
    def sitemap_xx(env, rule, query_string):
        yield {'loc': '/my_url'}
    @http.route(..., sitemap=sitemap_xx)

    In this case, only the loc returned by this function will be in the sitemap
    for all rules.

    You can pass sitempa=False, if you don't want that route are into the sitemap
2017-09-27 21:33:49 +02:00
Josse Colpaert 3d0d8b89d1 [FIX] mrp: give error when no lot on produce in produce wizard 2017-09-27 18:10:20 +02:00
amoyaux ede5ea53ac [IMP] mrp: add a raw move in a done MO
The user could be able to add a move in an existing MO
as a correction (thus only in edit mode).

In order to do it we use the existing system of move
by overiding the default_get and set the state directly to
'done'.
2017-09-27 18:10:20 +02:00
Josse Colpaert fc680f5a6b [FIX] mrp: always add theoretical qty on produce
Before, in case of non-tracked components, when everything foreseen had
already been consumed, it would not add the theoretical quantity on
producing through the produce wizard.  This makes little sense as the
behaviour of the wizard is not the same anymore for all cases and this
can only confuse the user.
2017-09-27 18:10:20 +02:00
Josse Colpaert a11d4174a2 [IMP] mrp: add a line in the produce wizard
Make it possible to add an extra line in the produce wizard. This was
done for when we consume more than foreseen to be able to still add e.g.
the serial number.
2017-09-27 18:10:20 +02:00
Josse Colpaert 94b673dd29 [IMP] mrp: lock/unlock mode and show final lot
We apply a lock/unlock mode for the mo as was done for the picking.
In locked mode, the user can do all the regular things, but not change
the quantities done given by the work order or produce wizard.
In unlocked mode, only allowed by the mrp manager, the user can change
those quantities.

We opted to remove the 4 lines and just use a check box to indicate
there are lots behind a line.

For the finished products tab, we opted to show the move lines instead
of the moves as this way, you don't need to click further.  If nothing
has been produced yet, a message indicates to produce something first.
2017-09-27 18:10:20 +02:00
Josse Colpaert 4cb2e626a9 [IMP] mrp: Allow optional bom lines with 0 qty
When processing moves with 0 initial demand,
it will set the initial demand = qty_done.  Also, when updating the quantity of
an MO, don't take into account those with 0 quantity.
2017-09-27 18:10:20 +02:00
Goffin Simon 5c308d2bee [FIX] stock: Error when creating a stock.location
When creating and setting a parent location a stock.location,
a traceback was raised because a name was required in function name_get

opw:77441
2017-09-27 17:46:18 +02:00
Monish Soni 0a75db1db2 [IMP] res_config: Display 'Discard' in capital letters 2017-09-27 17:35:22 +02:00
Jérome Maes 3c7e8e79a4 [FIX] sale_timesheet: avoid crash when comparing UoM of different category
If not UoM set, timesheet UoM is hours by default
and product one is Units. We can consider 1 unit =
1 hour.
2017-09-27 17:32:59 +02:00
Jérome Maes 18861ff104 [FIX] sale_timesheet: add a domain on so line field for task
SO line partner should be the same as the
task cutomer. The so line field only appears
when customer is set, so it makes sense.
2017-09-27 17:32:59 +02:00
Jérome Maes 932c0d2301 [FIX] website_quote: allow to sign quotation even when customer portal is not configured 2017-09-27 17:32:59 +02:00
Jérome Maes 38018ecda7 [FIX] hr_expense: better implied access group
To confirm expense, you have to be expense manager,
which implied HR officer. This implied relation is
not required anymore.
For the HR apps to be independent, removing this
relation is better and does not impact normal
expense flow (submit - confirm - post).
2017-09-27 17:32:24 +02:00