Commit Graph
101084 Commits
Author SHA1 Message Date
Christophe Simonis eb9e5913c9 [MERGE] forward port of branch saas-7 up to 519dd27 2016-02-17 19:23:08 +01:00
Christophe Simonis 519dd27358 [MERGE] forward port of branch 9.0 up to d5f28f4 2016-02-17 19:22:45 +01:00
Christophe Simonis d5f28f4a64 [FIX] base: do not force image when creating delivery/invoice partner
Let the default values choose the correct image by setting correct
value in context
2016-02-17 19:20:28 +01:00
Christophe Simonis 87a01c75ef [MERGE] forward port of branch saas-7 up to 5be43b8 2016-02-17 18:01:11 +01:00
Christophe Simonis 5be43b8d9a [MERGE] forward port of branch 9.0 up to 27058c4 2016-02-17 17:48:03 +01:00
Christophe Simonis 27058c4763 [IMP] delivery: Add "Archive" button on carrier view
Also allow to search on archived carriers easily.
2016-02-17 17:44:54 +01:00
Christophe Simonis 32378529e1 [IMP] ir.attachment: do not prefetch content
For textual attachments (like assets), the indexed content is the
content itself. Avoid prefetching this potential huge field.

When deleting attachments, only delete files once.
2016-02-17 16:44:41 +01:00
Christophe Simonis 01d5ddd993 [FIX] ir_qweb: handle duplicated preprocessed assets
Previous implementation was expecting exactly the same number of
attachments than the number of assets in a bundle. However it's
possible that duplicated assets are created due to concurrent first
generation.

This duplication cannot be avoid, but is cleaned upon next bundle
regeneration.

Joint work with @sle-odoo and @odony
2016-02-17 16:44:41 +01:00
Christophe Simonis d1a79ec704 [MERGE] forward port of branch saas-6 up to 9363372 2016-02-17 16:28:56 +01:00
Christophe Simonis 9363372efe [MERGE] forward port of branch 8.0 up to 0f46e6a 2016-02-17 16:20:23 +01:00
Joren Van Onder 207f4df992 [FIX] point_of_sale: expose ClientListScreenWidget
Allow easy modification of ClientListScreenWidget by other modules. If
you get creative you can actually get to it without this, but it's not
clean and needlessly complicated.

opw-669686
2016-02-17 16:06:29 +01:00
Denis Ledoux afb8ae0b69 [FIX] product: pricelist item delete cascade on pricelist deletion
On deletion of a pricelist,
the pricelist items were not deleted.

Meaning, if you deleted a pricelist,
and this pricelist was used in the product pricing,
the line with the pricing remained, but without any
pricelist set. Besides, as the field is required
in the view, this prevented to edit anything without
correcting the pricing line first.

opw-669652
2016-02-17 16:00:38 +01:00
Xavier Morel a4ee8e5723 [IMP] base_import: use mimetype guessing
Rather than trust the user-controlled mimetype or extension of imported
files which may be incorrect (because the user is lying, because the
system is misconfigured, because software is not installed, because
software is registering non-standard mimetypes, etc...), start by trying
to guess the mimetype *then* fallback on trying the type/ext.

Of note: CSV is becoming less and less great as it's nigh impossible to
guess for it.
2016-02-17 15:45:11 +01:00
Xavier Morel 078da0badd [IMP] move guess_mimetype to tools and improve it
* move guess_mimetype from ir_attachment to a misc submodule so it can
  be used outside of attachments (in base_import in this case)
* fix the broken detection of zip and OpenDocument files (would all be
  detected as msword files)
* correctly implement detection of OOXML files (including returning the
  right MIME type)
* attempt to correctly detect OLECF Excel files (.xls)
* add PPT detection (untested)
* remove duplicate patterns in GIF detection
2016-02-17 15:45:11 +01:00
Xavier Morel 97d2b758fe [FIX] catch exception on incorrect mime type
If the user provides a known mimetype which doesn't actually match the
file as far as we're concerned, warn and fallback on extension rather
than blow up.

This comes up when a user installs Excel on Windows: it associates CSV
files with itself and sets their mime type to application/vnd.ms-excel,
which is not correct and leads to us trying to load a CSV with xlrd (an
excel-parsing library).

Fixes #9779
2016-02-17 15:45:11 +01:00
Nicolas Martinelli 6999a862fd [FIX] base: translation window
DO NOT FORWARD-PORT TO MASTER

When the user wants to edit the translation of a view, a JS traceback
appears. The reason is that the `WebClient.DebugManager.View` tries to
access `view.controller.fields_view.view_id` before the fields_view_get
is actually resolved.

The issue is that the DebugManager is loaded when the dialog is opened.
However, the dialog is opened before its content is actually loaded. The
proper fix would be to open the dialog only when the content is ready.
Since this might imply side effects, this fix will be done in master
branch, not in the stable saas-7.

The workaround is to open the translation window in the current window,
not in a dialog window.

opw-669140
2016-02-17 15:28:12 +01:00
Denis Ledoux b574616203 [FIX] mass_mailing: unsubscribe route without website
The unsubscribe URL is used within the `mass_mailing` module,
e.g. in `_get_unsubscribe_url` & `send_get_email_dict`.

Basically, there is the possibility to add the unsubscription
link in the mass mailings while having only
`mass_mailing` installed.

But, the unsubscription route is defined within
the module `website_mass_mailing`.

Therefore, if you added the unsubscription link
within your mailings while not having
`website_mass_mailing` installed, trying
to follow the unsubscription link leaded to
a `404 Not Found` page.

We therefore define the route within `mass_mailing`
directly, which does the basic stuff (the basic
unsubscribe and confirmation), and override this route
in `website_mass_mailing`, where the advanced stuff is done
(the mailing lists list unsubscription and the better
looking page).

opw-669425
2016-02-17 15:11:05 +01:00
Tanguy Charlier ec1e5c524b [FIX] hr_timesheet_sheet: missing labels in form view. 2016-02-17 14:46:16 +01:00
Géry Debongnie 12d5667830 [FIX] mail: use the domain to determine message to mark as read
The button 'mark all as read' used to mark all messages as read, which
is not usually what the user wants when there is an active filter in the
search view.  This commit make sure that the domain is send to the
server and used correctly.
2016-02-17 14:26:54 +01:00
Géry Debongnie be3f7ea433 [FIX] web: prevent focus issue with autoresize
The copied textarea used in autoresize was a valid target for focus when
using the tab key.  This is a major issue in editable list views,
because when the user leaves a textarea, the list view jumps up, with no
visible focused field.
2016-02-17 14:24:09 +01:00
Alejandro Santana 891ab5bc36 [CLA] Updating signature email for alejandrosantana
Updating the email that will be used now
Closes #10591
2016-02-17 14:19:59 +01:00
Martin Trigaux 1d15a2252a [FIX] doc: sesrver action example
Bad indentation, print is not available
2016-02-17 13:57:23 +01:00
Martin Trigaux d48f43ebff [IMP] doc: better workflow example
- Why is my workflow starting in b?
- It is not, it goes from a to b directly
- But I followed the example of the doc
- It's incomplete
2016-02-17 13:57:13 +01:00
Martin Trigaux d0556808de [FIX] doc: kanban values
The value formats is also available
2016-02-17 13:56:52 +01:00
Martin Trigaux 90fd24b2d3 [FIX] doc: gantt documentation
Tutorial was using gantt view from 8.0
Add documentation in reference section on new attributes
2016-02-17 13:56:04 +01:00
MORIN Fabien 0f46e6a04c [FIX] l10n_fr_hr_payroll: update plafond_secu to 2016 values
The previous amount was for 2011. New amount is 3218€
https://fr.wikipedia.org/wiki/Plafond_de_la_S%C3%A9curit%C3%A9_sociale#Historique_des_valeurs
2016-02-17 13:51:31 +01:00
MORIN Fabien fab7902924 [CLA] signature for fabienmorin
Closes #10878
2016-02-17 13:49:40 +01:00
Temur Vibliani aefa2cf2c3 [FIX] README with links to 9.0 instead of master
Fixes #10904
2016-02-17 13:43:11 +01:00
Denis Ledoux 876634b1da [FIX] crm: merge of partners twice in the action menu
The link to open the merging partners wizard was duplicated
in the action menu:
 - Once as "Deduplicate Contact",
 - Once as "Merge selected contacts".

This is due to the revision 30a7ef8,
converting the
`<record model="ir.actions.act_window"...`
to an
`<act_window`
which creates an action binding automatically.

No action binding must be created for this window
action, as there is already another one,
the link to this wizard is already in the
partners action menu, thanks to the `act_window`
`action_partner_merge`.

Besides, the `'default_state': 'option'` seems useless,
as this is the default value set in the model directly.
On the opposite, removing the `active_test` (as done in
the revision mentioned above) could be armful. We
therefore re-set it.

opw-669688
2016-02-17 13:00:59 +01:00
Kevin Chappell 9187dc15e5 [FIX] remove --auto-reload from Documentation
Option --auto-reload was removed (and the corresponding feature bound to
--dev), don't document an option which doesn't exist anymore.

closes #10697
2016-02-17 12:45:27 +01:00
Xavier Morel 26a8b438b6 [IMP] provide pg connection information as keywords
When the database_or_uri is not a URI, rather than generate a dsn string
just collect the various psycopg2.connect keyword arguments in a
dictionary, and return that. This way psycopg2/libpq is the one doing
any necessary processing on the various parameters.

Fixes #3865 and fixes #6958 in a more resilient manner than manually
escaping dsn-injected values so database names or passwords containing
spaces or non-ascii characters work correctly.

In case a URI is provided to the dsn() function, return it as the `dsn`
keyword to get the same behaviour as previously.

Since we're checking dsns by equality, a dict should work just as well
as a string.
2016-02-17 12:12:14 +01:00
Olivier Dony 1e729c7c5a [FIX] analytic: name_search with negative operators
The algorithm for matching analytic accounts based
on search term is only meant to be used for
simple, positive operators.
In other cases the results will not be what the user
expects. Falling back to the default name_search
behavior will be more useful.
2016-02-17 10:49:00 +01:00
Josse Colpaert eafebcb308 [FIX] mrp: for the consume move lines, the expected date should also be the planned date of the production order
It was like that for the date field, which is taken into account for the forecast quantity,
but in the view the scheduled date field is shown.  We put the scheduled date equal to the date.
That way it is clear to the user when the products are foreseen to be consumed.
2016-02-17 10:11:57 +01:00
Goffin Simon 598856e1e0 [FIX] account : tax details in invoice report
When a tax with an amount of 0 percent was linked to an invoice line,
this tax didn't appear in the tax details in the bottom of the invoice
report.

opw669162
2016-02-17 09:33:10 +01:00
Denis Ledoux c89e45358e [FIX] purchase: default order date
By calling directly the method `fields.Datetime.now`,
the default order date was the datetime at which
the server is started or the worker created,
while, it should be the current datetime, not
the datetime at which the registry has been
loaded.

opw-668278
2016-02-16 18:19:01 +01:00
qdp-odoo d081fa4931 [FIX] account: fixed display bug in the manual reconciliation widget where currency difference entries where displayed with no amount (since they had a currency_id but not amount_currency). In that case, we now fallback on the company currency 2016-02-16 17:38:20 +01:00
qdp-odoo f862467ff2 [FIX] account: when a currency difference is reversed, we need to match together the origin currency line on the partner account and its newly created reversal otherwise they don't cancel each other completly since they still both appear on reports, followups... 2016-02-16 17:38:19 +01:00
qdp-odoo 11cdd5b841 [FIX] account: put the partner_id on the currency difference line otherwise the receivable account of the partner won't be equal to 0 2016-02-16 17:38:19 +01:00
Adrien Peiffer (ACSONE) b21773456c [ADD] Add test with half hours to compute working hours. 2016-02-16 17:24:39 +01:00
Adrien Peiffer (ACSONE) 5e940643a5 [FIX] In some cases, the half hours are not considered in intervals computation 2016-02-16 17:24:21 +01:00
Denis Ledoux 1d7c12022d [FIX] stock_account: valuation history with moves having multiple quant prices
The revision 29bd622521
aimed to improve the performance by changing
the view index, to use a BIGINT instead of a text.

It was assumed that the index used
(`stock_move.id`) could not appear
multiple times with the JOINs and
group bys defined.

This was in fact possible, if a
stock move is associated to
several quants with different costs,
because of the JOIN on the many2many table
`stock_quant_move_rel`
linking quants to moves,
and the GROUP BY
`price_unit_on_quant`
that caused the different moves/quants association
not to be merged within one unique line
if the costs on the quants are different.

Instead of the group by, we now aggregate the quants
costs, using the weighted average, so the index
used can be unique, as expected.

From now, the inventory value per line in
this report view can therefore
be different than what can be found on the quants,
but this report view is based on the stock moves
rather than the stock quants, and this is therefore accepted.

In other words, the inventory value is computed for the stock move
rather than for the stock quant.

opw-658903
2016-02-16 16:37:32 +01:00
Christophe Simonis 19551aec2e [FIX] sale: missing oldname of team_id fields
These attributes have been forgotten during rewrite in new-api.
2016-02-16 16:29:54 +01:00
Goffin Simon 8e78f0e841 [FIX] purchase: PO without picking
When an order is created without any picking, the button
"RECEIVE PRODUCTS" can be hidden.

opw:669081
2016-02-16 14:24:08 +01:00
Damien Bouvy a5e8f22701 [FIX] payment_ogone: s2s response should generate payment method
Ogone responses comes from direct s2s calls or form feedback;
not necessarily in that order. The behaviour of the system should
be the same in both cases. This commit add payment_methode creation
when a s2s response contains the necessary information, juste like
the form feedback methods.

Ideally these methods should be merged to share the same code,
this will be done in master (v10).
2016-02-16 11:29:08 +01:00
Damien Bouvy 36e681cbe5 [FIX] website_quote: sales order do not use workflow any longer
+ old message_post call with wrong kwargs.
2016-02-16 11:29:08 +01:00
Aaron Bohy b87b6cc613 [FIX] mail: allow to extend make_message() and make_channel()
to load and display more fields of the corresponding model.
2016-02-16 11:27:11 +01:00
Goffin Simon 851992cdd6 [FIX] product_visible_discount: lst_price
In a SO line, the price unit is taken from function "_product_price"
set on the product(model: "product.product"), this is why the variable
new_list_price has to be taken on the product too. In this way, the right
discount can be computed. Before the fix, new_list_price was equal to
the price set on the product template(list_price) then if the product template had
several variants with several sale price, the discount was wrongly computed.

opw:668636
2016-02-16 10:37:54 +01:00
Yoshi Tashiro 7b445112bc [CLA] add contributor to roomsfor CLA
Adding @manamirfhk
Closes #10932
2016-02-16 08:36:08 +01:00
Martin Trigaux a7f5a89407 [FIX] typo or outdated info 2016-02-15 17:16:10 +01:00
Denis Ledoux 493705bb77 [MERGE] forward port of branch 9.0 up to c40070f 2016-02-15 17:00:11 +01:00