Commit Graph
117156 Commits
Author SHA1 Message Date
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
Pratima Gupta 9877989e06 [FIX] mail: only set module icon if possible
Posting a message on a custom model (i.e. created with Studio) crashed.

If it's a custom model, its `_original_module` attribute is not correctly set so
trying to retrieve the icon based on this attribute does not work.
2017-09-27 13:51:28 +02:00
Aaron Bohy f49d758665 [FIX] web: BasicModel: recursively compute onchange specs
Before this rev., onchange specs where only computed up to level
2 (i.e. for fields inside x2many fields). So basically, if there
were a one2many list inside a one2many (e.g. which opens in a
form view), the fields of that inner one2many list weren't added
to the specs, and it could lead to unexpected responses from the
server (like erasing the changes made on the inner one2many
records).

Closes #19600
2017-09-27 13:50:07 +02:00
Thibault Delavallée b53ce01b16 [MOV] website_sale: move models in their right file 2017-09-27 13:21:53 +02:00
Yannick Tivisse 2b30a585cf [IMP] sale: do not display 'Create Invoice' button without sale_management 2017-09-27 13:21:44 +02:00
Yannick Tivisse e2f58616d4 [IMP] payment: display journal_id on top of payment acquirer form
Otherwise Paypal layout is a bit messy as fees appears before accounting
configuration which should be the first thing to be displayed.
2017-09-27 13:21:35 +02:00
Christophe Simonis 6836828a3e [MERGE] forward port branch 9.0 up to 1970761554 2017-09-27 13:20:29 +02:00
Joren Van Onder a6114ac371 [IMP] sale: remove unused variable 2017-09-27 13:20:00 +02:00
Vandan Shah 0c8e18eba6 [IMP] stock: logged the note when edit the initial demand on a picking and when edit the received(done) quantity on a picking done(validated) as well as backorder message is deleted for better usability 2017-09-27 13:20:00 +02:00
Vandan Shah b509427e7a [IMP] mrp: when quantity, location, lot changed log note should be logged 2017-09-27 13:20:00 +02:00
Vandan Shah 41a3c884c0 [IMP] purchase: when product qty is change in confirmed PO display log note 2017-09-27 13:20:00 +02:00
Vandan Shah 513c1474a3 [IMP] sale: improved logged note on confirmed sale order 2017-09-27 13:20:00 +02:00
Lucas Perais (lpe) 9dead7e3d3 [FIX] web: fix less on toggle boolean 2017-09-27 13:18:53 +02:00