Commit Graph
103231 Commits
Author SHA1 Message Date
Simon Lejeune f992c8ee19 [FIX] web: fix layout issue in Chrome 50
A 100% height is not distributed anymore to the children of a table-row
if they are not themselves table-cell in Chrome 50. This breaks the
indenpendent scrolling of the menu and the view manager.

However, setting the `table-cell` display breaks the layout in Internet
Explorer.

When the webclient is loaded by Chrome 50, we load a stylesheet
forcing a `table-cell` for display.

Seems to be related to https://bugs.chromium.org/p/chromium/issues/detail?id=353580
and https://chromium.googlesource.com/chromium/src.git/+/8876584335b48c99cf8df552ef4d8efebb131041

Related to e1a99192bd
Fixes #11629
2016-04-18 14:43:50 +02:00
Martin Trigaux 60ce1bf915 [FIX] website_quote: missing terms in .pot 2016-04-18 14:37:54 +02:00
Christophe Simonis 9ad6a9df6e [FIX] account_asset: correct view inheritance
Since ece0163, `partner_id` is not show in account.move form header.
2016-04-18 12:20:20 +02:00
Martin Geubelle 5a3f23e07d [IMP] website_sale: use website product categories 2016-04-18 11:56:13 +02:00
Martin Trigaux 34040e733b [IMP] doc: use _name format, not external ID in example
Not clear which format act_windows expects.
2016-04-18 11:47:44 +02:00
Martin Trigaux 171f884bdc [FIX] doc: deprecated statusbar_color
Can still be mentionned in documentation but should not be used in example.
2016-04-18 11:47:43 +02:00
Martin Trigaux fe7d5263a5 [IMP] doc: link to bootstrap alerts
Only muted class is missing
2016-04-18 11:47:43 +02:00
Martin Trigaux 9146c07900 [IMP] doc: deprecated is for reference, not tutorial 2016-04-18 11:47:42 +02:00
Martin Trigaux 451483cb61 [FIX] doc: missing closing tag
Some people love copy-paste
2016-04-18 11:47:42 +02:00
Martin Trigaux 199cd2b614 [FIX] doc: no session model so far
Implemented in the next excercice, no need to mention it here.
2016-04-18 11:47:41 +02:00
qsm-odoo 1f15ffe4b0 [FIX] web_editor: assets_frontend inheritance
The assets_frontend inheritance made by the web_editor module should be
the first to be done as the website.assets_frontend rules have to come
after (LESS variables overridden).
2016-04-18 10:36:52 +02:00
Nicolas Martinelli 6bf4dea058 [FIX] account: show due date
The "Due Date" is invisible in the tree view because in most cases, the
`journal_type` is not in the context. Since it was shown all the time in
v8, we show as well.

opw-674815
2016-04-18 10:36:33 +02:00
qdp-odoo ece01633cd [FIX] account: account.move.form view improved for a better user experience.
(partner_id as second field in line_ids, and thus not in header anymore + reorganization of header fields)
2016-04-18 10:06:52 +02:00
Nicolas Martinelli db0def38cc [FIX] account: delete attachment
When an invoice is cancelled, the attachments (including the printed
invoice) are not deleted. If the users resets the invoice to draft,
modify it, then print it again, the previously generated document will
be used instead.

opw-674678
2016-04-18 10:01:26 +02:00
qdp-odoo 9aa8a212d3 [FIX] account: pdf report of general ledger was including the first day of range in the initial balance. PR #11316 2016-04-18 09:51:25 +02:00
Odoo Translation Bot f4d79a2b8e [I18N] Update translation terms from Transifex 2016-04-17 00:31:25 +02:00
qdp-odoo b154e219f6 [FIX] account: display only the user's current company journals in the dashboard 2016-04-15 17:38:00 +02:00
Jeremy Kersten 8aee655825 [FIX] web: don't display view metadata for new record
Close #11584
2016-04-15 17:07:29 +02:00
Denis Ledoux 37edd22b4c [FIX] account_voucher: Purchase receipt bill date twice in the view
The `account.voucher` field `date` was twice in the view
`view_purchase_receipt_form`

Besides the fact the field was twice in the view,
this prevented to set a date in the past
for the resulting journal entries,
as the second field `date` input of the view
contained the date of today, while
only the first one was visible and editable
by the user, and it was the second field
value which was took into account when
passing the form values to the server,
most-likely because this second field was set
further in the view.

opw-674712
2016-04-15 16:19:15 +02:00
Denis Ledoux cbc0dace38 [FIX] account: currency round amounts for exchange rate difference
The method `create_exchange_rate_entry` is called
either if one of the two parameter
`amount_diff` or `diff_in_currency` is not equal to 0.0
(or, near to zero, `float_is_zero`):

```
if currency and aml_to_balance \
and (float_is_zero(total_amount_currency, precision_rounding=currency.rounding) \
or float_compare(total_debit, total_credit, precision_rounding=currency.rounding) == 0):
```

Nevertheless, the method is called with the amounts not rounded,
and, therefore, one could be considered to 0.0 (if
closed to 0.0) but not be exactly equal to 0.00,
and it should therefore be rounded before the entries
creation.

opw-673854
2016-04-15 15:47:10 +02:00
Nicolas Martinelli 41759e8e40 [FIX] purchase: store date_planned
This field should be stored, since `minimum_planned_date` was stored as
well.

opw-674567
2016-04-15 15:16:20 +02:00
Nicolas Martinelli ac265d0ef1 [FIX] stock: remove automatic option
The option is simply not implemented, and won't be implemented.

opw-674572 (and others...)
2016-04-15 15:16:20 +02:00
qdp-odoo 0fc1ed21c2 [IMP] account: improved usability of account.move.form view by moving the partner_id field in second position 2016-04-15 14:52:15 +02:00
qdp-odoo c538bedd53 [FIX] account: don't show amount_currency and currency_id fields in bank statement lines as it is confusing some people 2016-04-15 14:47:56 +02:00
Simon Lejeune e1a99192bd Revert "[FIX] web: fix layout issue in Chrome 50"
or how to break every internet explorer releases while
attempting to fix chrome 50
2016-04-15 12:12:26 +02:00
Olivier Dony 9a0124591b [MERGE] Forward-port 7.0 up to 605b94e64c 2016-04-15 11:54:38 +02:00
Géry Debongnie 9b54b042a0 [FIX] web_kanban: correct count for dataset size
In non grouped mode, a recent fix (fixing race condition in do_search)
introduced a new bug, the dataset size is not correctly set.

This is a quick and dirty fix, I believe that changing the dataset
internals like this commit (and other) do is really not correct.
However, the correct fix (working on the dataset API) is more dangerous
in a stable release.
2016-04-15 11:47:49 +02:00
Nicolas Martinelli 6de78a3159 [FIX] base: find_or_create
If two partners have the same email address, the call to
`find_or_create` will send a traceback.

opw-674681
2016-04-15 10:41:40 +02:00
Olivier Dony 605b94e64c [FIX] point_of_sale: do not hide transactional errors
Catching and hiding database transactional errors can
sometimes cause a POS order to be entirely lost.

When it occurs, the transaction won't be committed
into the database, and if there is only one order
in the batch, the server won't return any error to
the frontend POS which will consider the order saved.
2016-04-15 10:03:55 +02:00
Olivier Dony 1d25fe1e05 [FIX] qweb: escape alt-field properly in image widget
This is very unlikely to be exploitable because the
alt-field usually comes from master data (e.g. product
names) that can't be injected.

Courtesy of Naglis Jonaitis
2016-04-15 09:51:19 +02:00
Goffin Simon dc3f1e2211 [FIX] account_analytic_analysis: comment field in account.invoice
When creating an invoice from a contract with button "create invoices",
the description linked to the contract has to written in the comment field
of the invoice.

opw:671660
2016-04-14 16:32:24 +02:00
Thibault Delavallée f3c9720d42 [FIX] tools: mail: email address escaping
This commit protects tags having an alt attribute containing an @. Like
cite on blockquote, alt on image for example could contain an @. Do not
escape it as it could break images.
2016-04-14 14:39:45 +02:00
Simon Lejeune 00ead29c7c [FIX] web: fix layout issue in Chrome 50
The height was not distributed anymore to the children of a `table-row`
element if they are not themselves `table-cell` elements.

Fixes #11629
2016-04-14 14:31:12 +02:00
Raphael Collet 053a4ab444 [FIX] doc: fix rst indentation 2016-04-14 14:20:19 +02:00
Thibault Delavallée f5772c5e8d [FIX] mail: fix issue when processing several CIDs having the same file name 2016-04-14 14:03:55 +02:00
Nicolas Martinelli 7ab2d0e647 [FIX] sale_stock: unit price rounding
Rounding the unit price at that moment is a bad idea. Here is the use
case:
- Set the product 'Costing Method' to 'Real Price'
- Set the product 'Inventory Valuation' to 'Perpetual'
- Receive through a PO 9 products for a unit price of 115.80
- Receive through a PO 35 products for a unit price of 116.80
- Sell these 44 products thanks to a SO, generate and validate the
  invoice

On the Stock Output Account, the following entries will be generated:
- First PO --> 1042.20  = 9  * 115.80
- Second PO --> 4088.00 = 35 * 116.80
- Invoice --> 5130.22   = 44 * 116.596

116.596 is the average price of the two POs, but rounded. The issue is
that there are 2 cents of difference... Nice ;-)

The fix is to avoid the rounding of the unit price, since we don't even
store it on the account move line anyway.

opw-673976
2016-04-14 13:37:15 +02:00
Jérome Maes 4c0d5990d3 [REM] fetchmail : remove auto magic field to configure fetchmail server
This code was used to automatically configure a fetchmail server, according to
a model. This followed a name convention, like 'module_', 'group_', ...

This mechanism was replaced by mail.alias system, and it not used anymore
by odoo modules.

It is time to remove this old hacky stuffs : fetchmail.config.settings
model is removed.
2016-04-14 13:35:40 +02:00
Keyur Gajjar 20a7ba1b14 [MIGR] fetchmail : migrate to new api 2016-04-14 13:23:17 +02:00
Keyur Gajjar 17b7a2045f [MOV] fetchmail: splitted models and views through spearated files
- splitted the models/mail_mail.py from models/fetchmail.py.
- splitted the views/mail_mail_views.xml from views/fetchmail_views.xml
2016-04-14 13:23:16 +02:00
Keyur Gajjar 8abe6cac4c [MOV] fetchmail: directory reorganization
- mode files in correct directory
- remove fetchmail_installer_view empty file, ...
2016-04-14 13:23:16 +02:00
Deep Bundela 8a4ba5d21a [MIG] website_event_track : migrate the module to new api 2016-04-14 11:56:45 +02:00
Deep Bundela a2426e420d [MOV] website_event_track : split files per models 2016-04-14 11:56:45 +02:00
Deep Bundela 07c84d08f8 [MOV] website_event_track: reorganise module directory 2016-04-14 11:56:45 +02:00
Deep Bundela 6e28d2071d [MIG] website_event_sale : migrate to new api 2016-04-14 11:56:45 +02:00
Deep Bundela 324793ca10 [MOV] website_event_sale: reorganise module structure 2016-04-14 11:56:45 +02:00
Dharmraj Jhala 616f294786 [MIG] website_event: migrated into new API 2016-04-14 11:56:45 +02:00
Jérome Maes ca8a47c352 [IMP] website_event, website_event_track, website_event_sale : prepare migration
- change method decorator (api.one -> api.multi) for `_set_show_menu`
and `_set_show_menu`
- rename controller class
2016-04-14 11:56:44 +02:00
Deep Bundela 6aee28e685 [MOV] website_event: reorganise module files
- group models and views
- remove useless 'doc/' directory
- adapt module manifest
2016-04-14 11:56:44 +02:00
Joren Van Onder 967629f8ac [IMP] point_of_sale: release POSBox image v14
Marks official support for the Raspberry Pi 3.
2016-04-14 11:24:48 +02:00
Joren Van Onder f5a527fb0a [IMP] point_of_sale: move POSBox AP to a less used subnet
When the POSBox boots without a network cable attached it will
automatically launch a wireless AP that people can connect to. This
allows them to configure what wireless network the POSBox should connect
to.

This wireless AP was configured to use the 10.10.0.0/24 subnet. The AP
itself was on 10.10.0.1. Although this is fine if used as intended it is
a quick way to take down an existing network if you where to plug in an
ethernet cable after the wireless AP has started. 10.10.0.1 is commonly
used by routers all over the world and plugging in a booted POSBox into
their networks will cause serious issues because the POSBox will share
the same IP as the router.

This moves the POSBox AP to the 10.11.12.0/24 subnet, with the AP on
10.11.12.1.

This also makes the DHCP server listen only on wlan0 because otherwise
you can end up with two DHCP servers on the same network which would
still break stuff.
2016-04-14 11:24:48 +02:00