Commit Graph
117975 Commits
Author SHA1 Message Date
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
Yannick Tivisse 54e99d2298 [FIX] transifex: Avoid traceback on transifex_url computation 2017-09-27 17:23:31 +02:00
Khoi Nguyen 982834714b [IMP] mrp: Groundwork for the new workorder tablet view
This commit ensures that the prerequisites for the new tablet view
(introduced in Enterprise) are met. Aside from a few additional fields
and simple view modifications which allow simpler changes via
inheritance, the main change it introduces is the capability to take
into account consumed quantities of untracked components.
2017-09-27 17:13:24 +02:00
Khoi Nguyen e73922855d [IMP] mrp: Allow page-setting fields for pdf widget
This revision allows the page number of a pdf file to be set via an
integer field. If the pdf widget is attached to the 'field' field, then
the page can be changed via the 'field_page' field.
2017-09-27 17:13:24 +02:00
Khoi Nguyen 0c7d4b6495 [IMP] web: Allow setting form_view_initial_mode in fullscreen
This commit lays the groundwork for the new work order tablet view,
which is a fullscreen form view that requires to be started in 'edit'
mode.
2017-09-27 17:13:24 +02:00
Khoi Nguyen 8d5f103b58 [REF] mrp: Change demodata
This revision changes the BOM and routing of what was previously a
"computer desk". The aim is to provide a complete example which can be
used to showcase what can be accomplished with the new tablet view.
2017-09-27 17:13:24 +02:00
Christophe Simonis af117236de [MERGE] forward port branch 10.0 up to 8165018058 2017-09-27 17:07:23 +02:00
Raphael Collet 36141931bf [FIX] mail: remove field res_model_id for performance reasons (#19744) 2017-09-27 16:58:19 +02:00
Christophe Simonis 8165018058 [MERGE] forward port branch 9.0 up to b7940c317b 2017-09-27 16:41:09 +02:00
Christophe Simonis b7940c317b [MERGE] forward port branch saas-6 up to 81605180bf 2017-09-27 16:30:36 +02:00
Hetashree Chauhan 379f949bad [IMP] mrp: Fix traceback when creating alert 2017-09-27 16:29:10 +02:00
Christophe Simonis 81605180bf [MERGE] forward port branch 8.0 up to cf8577b9d0 2017-09-27 16:01:47 +02:00
Christophe Simonis cf8577b9d0 [FIX] crm_partner_assign: safer geolocalization test
Backport & adapt commits afd4b68acc & 27787265dd

As google starts to refuse to answer to our geocode requests, we need
to mock results in tests.
2017-09-27 15:53:30 +02:00
Martin Trigaux dbf8304e3a [IMP] account: clarify help message
Was too technical
2017-09-27 15:30:50 +02:00
jpr-odoo 3f0291ee6d [FIX] account_payment: inclusion of transactions
Part of commit was missing in 6e4db0e6db .
2017-09-27 15:23:12 +02:00
jpr-odoo ebfadc29b9 [FIX] account_payment: keep arguments including token in payment form redirections 2017-09-27 14:33:33 +02:00
jpr-odoo 6951951c98 [FIX] sale_payment: keep arguments including token in payment form redirections 2017-09-27 14:33:33 +02:00
Dhaval Suthar 6e4db0e6db [FIX] account: fix and improve display of invoices in customer portal
* fix breadcrumb for invoices in portal, when going into an invoice
   the 'Invoices' part of the breadcrumb allowing to come back to the
   invoices list was not a link;
 * remove duplicate of invoice reference in page view;
2017-09-27 14:33:33 +02:00
Rohan Patel c3ee3f7e3f [FIX] sale_payment: do not propose to pay an order containing already payed transactions 2017-09-27 14:33:32 +02:00
Priyanka Kakadiya 16a55872e9 [FIX] purchase: Fix typo on stat button 2017-09-27 14:26:50 +02:00
stefanorigano eb96289678 [FIX] web: review and fix kanban design
- Folded column design
- Adapt progressbar header layout
- Remove custom opacity mixin (use default o-hover-opacity)
- Remove columns' border (increase padding-right)
- Decrease counter opacity if no records
- Refine counter animations
- ...
2017-09-27 14:22:39 +02:00
qsm-odoo 4c046a759c [FIX] web: fix translate icon position on chrome
On chrome only, the translate icon was over the <input/> element but
below the <input/> text... this commit fixes this by forcing
relative positioning on the icon so that it is always rendered after
the <input/> (which seems to solve the chrome bug).
2017-09-27 13:58:14 +02:00