Commit Graph
103345 Commits
Author SHA1 Message Date
Denis Ledoux 9d48f4f346 [FIX] mrp: label & translation in production unlink Warning
opw-670059
2016-02-24 15:12:59 +01:00
qsm-odoo bf39884a5c [MERGE] *: new web_editor/website + assets improvements
Read sub-commits for more details.
2016-02-24 15:08:29 +01:00
qsm-odoo ed46965dbe [FIX] web*: tours
Selector changes + No need to open the snippet panel anymore.
2016-02-24 13:47:36 +01:00
qsm-odoo 6610d05549 [REF] web_editor,website,mass_mailing: JS/XML update
* Adapt DOM selectors
* Refactore dialog XMLs to have odoo styling
* New editor options (background-position, ...)
* Various improvements
2016-02-24 13:47:36 +01:00
qsm-odoo 58c5ff1d4f [REF] website*: frontend user navbar
* Remove use of bootstrap navbar
* Add navbar.less file for compatibility with enterprise
* Modify the location of the "new page/product/..." elements
2016-02-24 13:47:36 +01:00
qsm-odoo 88c2b6843a [REF] web,web_editor,website(_*),report,pos,mass_mailing: assets
* Remove recursive assets inclusions (i.e. assets_editor was including
assets_common, summernote, ...)
* Better construct the assets (link, then script + type attribute)
* Better include the assets (split js / css, always use t-call-assets)
* Simplifies the number of assets
* Move bootstrap js to assets common
* assets_frontend is now created by web module to allow using it on the
connexion page but also in the web_editor, where colors have to be
bootstrap/theme ones. Note: if a module depends on website, then keep
using the inherit_id="WEBSITE.assets_frontend"
2016-02-24 13:47:06 +01:00
qsm-odoo 5b65befcd8 [REF] web,web_editor,website,report,mass_mailing,mail: LESS
* Convert some CSS to LESS
* Split/Join LESS files
* Remove duplicates between website and web_editor
* UI improvements
* Allow simple customizations thanks to LESS var&mixins for website
2016-02-24 13:09:48 +01:00
qsm-odoo 40334b3342 [REF] web_editor,website,mass_mailing: editor UI unification
Before, the whole editor UI was redefined for web_editor, each
mass_mailing template, website builder, ... Now they all inherit
from the web_editor one.
2016-02-24 13:09:15 +01:00
qsm-odoo a64f64aba4 [REF] website: snippets
* Delete useless snippets
* Delete default mb,mt on snippets
* Delete useless options
* Reorganize snippets order
* Style improvements
2016-02-24 13:08:09 +01:00
Christophe Simonis 0718f807f0 [FIX] point_of_sale: bank statement opening balance
Only force computation of opening balance when cash control is enabled
2016-02-24 12:51:45 +01:00
Christophe Simonis 7e6a182e1e [FIX] point_of_sale: bank statement starting balance
When creating a new pos.session, the starting balance of created bank
statements where all the sames.

By creating bank statements with the same `journal_id` in context, they
all have the starting balance for this journal.

Create them manually to force having the starting balance for the
statement's journal.
2016-02-24 12:00:01 +01:00
Martin Trigaux be4c2ab29d [FIX] stock: duplicated term in .pot 2016-02-24 11:40:40 +01:00
Nicolas Lempereur d4e5019ec7 [FIX] web: csv export newline for text/html field
CSV export was added in f146e2a and since then newline were not
exported.

But new line should be allowed if the string is quoted by " characters
which is done in Odoo.

closes #11005
opw-667853
2016-02-24 11:26:16 +01:00
stefanorigano c4a896a8a0 [REF] website,web_editor: complete restyling 2016-02-24 11:15:55 +01:00
Goffin Simon 56241b3368 [FIX] account_budget: To print the summary of a budget
The theoritical amount is computed as:

theo amt = ellapsed time / total time period  * planned amount

where:

total time period is the difference between date_to and date_from defined
on the crossevered budget line.

ellapsed time is the difference between today and date_from.

The achievment(percentage) on a crossevered budget line is computed as:

percentage = practical amt / theo amt

where:

practical amt is the sum of all account analytic lines valid in the
crossevered budget line period.

When computing the report of a summary, the ellapsed time is equal
to the difference between date_to and date_from defined for the summary and
the practical amount only takes the account analytic lines in the summary
period.

opw:669545
2016-02-24 09:58:02 +01:00
Christophe Simonis 53742a4a70 [FIX] core: parent store compute on registry loading
When loading the registry, the parent store are defered at the end of
the registry initialisation. However, when modules should be removed, a
brand new registry is build without deleted modules, losing the list of
models on which parent store should be recomputed.
2016-02-23 18:10:53 +01:00
Stéphane Bidoul 4162b8f5fa [FIX] account: fiscal position in multi-company environments
Properties depends on with which companies the records
are browsed.

When retrieving the fiscal position as sudo,
the company must therefore be enforced within the context,
to make sure to get the properties from the right
company.

This method can totally be accessed as sudo,
within the crons for instance.

Before this revision, the recurring invoices cron
could retrieve properties from the wrong company,
and therefore retrieve the fiscal position of another
company.

Closes #11039
2016-02-23 17:25:42 +01:00
Denis Ledoux 3b36bca461 [FIX] purchase_requisition: fiscal position tax mapping
`map_tax` must be called using the fiscal position
browse record, not using its id.

Besides, `fpos` is not used further in the code.

opw-670170
2016-02-23 16:04:49 +01:00
Denis Ledoux c63be58eca [MERGE] forward port of branch saas-6 up to 8a098df 2016-02-23 15:33:08 +01:00
Jeremy Kersten 1d90e70244 [FIX] crm*: remove outdated stage_type from context
This key in context is useless since v7.0
2016-02-23 15:31:17 +01:00
Denis Ledoux 8a098df7e6 [FIX] account_asset: can't adapt browse record to id
During the conversion of the module
`account_asset` to the new API,
in revision 6120bab,
the variables `current_currency` & `company_currency`
have been changed from identifier integers to
browse records.

The currency passed in the `create` method
values must therefore be adapted according
to this change.

This prevented the correct use
of the assets when the currency of the assets
was not the same as the currency of the company.

opw-669571
2016-02-23 15:19:48 +01:00
Denis Ledoux 7c7ee5d0ec [FIX] account_asset: currency conversion inverted
During the conversion of the module
`account_asset` to the new API,
the currency conversion in `create_move` has been inverted.

```
amount = currency_obj.compute(cr, uid, current_currency, company_currency, line.amount, context=context)
```
has been converted to
```
amount = company_currency.compute(line.amount, current_currency)
```
while it should have been converted to
```
amount = current_currency.compute(line.amount, company_currency)
```
See:
https://github.com/odoo/odoo/commit/6120bab#diff-e35933343c229da0afceb2a3b9e3639bR356

opw-669568
2016-02-23 15:11:07 +01:00
Nicolas Martinelli 68f9f99ed3 [FIX] models: export of booleans
In the case of a `raw_data` export, a boolean which has the value
`False` will not be exported correctly.

The fix handles the `False` value as a valid value for a field.

opw-666142
2016-02-23 15:06:14 +01:00
Denis Ledoux 0cb3ed4e8f [FIX] product: add index on pricelist items for better perf
With a high number of pricelist items
(8.000.000 in the observed case),
the SQL request performed in `_price_rule_get_multi`
took a significant time (>3000ms)
to be executed without an index on the `pricelist_id`.

opw-670153
2016-02-23 14:46:41 +01:00
Nicolas Martinelli ee33593351 [FIX] point_of_sale: round price unit
The product price unit should be rounded before being used in any
operation. The PoS calls the method `read` in order to get the necessary
fields. However, the product price is a non-stored calculated float. In
old API, such a field is not rounded by the `read` method. It means that
a product price of 28.067 (for example thanks to the use of a pricelist)
will be rounded to 28.07 at the server level but not rounded in the PoS
JS layer.

To lower the impact of the fix, the rounding is done at the JS level,
and not in the `_product_price` method.

opw-669024
2016-02-23 14:38:09 +01:00
qsm-odoo 8f2be0d61b [IMP] web: update Dialog class
Update Dialog class with enterprise version.
2016-02-23 13:40:17 +01:00
qsm-odoo 380a1fd544 [FIX] web: Dialog closing
The Dialog class destroys the modal (and so removes it from the DOM)
when the dialog closes but leaves the modal-open class on the body
element if there are still other modal(s) in the DOM.

The problem is that (maily on the frontend side) there may be others
modal(s) in the DOM (not handled by the Dialog class) but which are
not shown to the user, and in that case the modal-open class should
be removed.
2016-02-23 13:34:55 +01:00
Denis Ledoux e7770ed9c7 [FIX] payment: Translatable thanks message
If the help message is translatable,
there is no reason why the thanks message
coudln't be as well.

This is a following of the revision
f37a40c4c0

opw-670228
2016-02-23 12:24:34 +01:00
Ravi Gohil 7eab8e26d3 [MIGR] base: migrate base/res to the new API
- `ir.property`, improve API of method `get_by_record`
- `res.bank`, `res.partner.bank`
- `res.company`
- `res.config`, `res.config.installer`, `res.config.settings`, fix usage of methods `get_default_`
- `res.country`, `res.country.group`, `res.country.state`
- `res.currency`, `res.currency.rate`
- `res.font`
- `res.lang`
- `res.partner`, `res.partner.category`, `res.partner.title`
- `res.request.link`
- `res.groups`, `res.users`, `res.users.log`, change password wizard
2016-02-23 12:06:25 +01:00
Denis Ledoux 2fe11b8a2a [FIX] account: bank statement currency
If there is no currency set on the journal,
the fallback currency must be the currency
of the journal company, not the currency
of the user company.

This would mean that when you change of company,
with another currency set,
the bank statement change of currency, this is non-sense.

opw-670187
2016-02-23 12:05:10 +01:00
Yannick Tivisse 1490e430e6 [IMP] base: rename duplicated menu
Rename the menu 'Apps' by 'Local Modules'

Fixes #9009
Closes #11017
2016-02-23 11:25:53 +01:00
Iryna Kanivets c43889b5b9 [FIX] base: wrong currencies
The currency of Georgia is GEL not EUR
The currency of French Guyanais EUR not GEL
The currency of Ukraine is UAH, not UAG

Closes #10106
2016-02-23 10:53:08 +01:00
Iryna Kanivets 06c4bb77b7 [CLA] signature for Luckygirlllll
Closes #10106
2016-02-23 10:53:08 +01:00
Goffin Simon 8de70d07ba [FIX] product_visible_discount: Show Discount not working with multi-currencies pricelist
The sale price set on the product is in the currency of the company.

opw:669918
2016-02-23 10:11:57 +01:00
Goffin Simon 0f7e6f4097 [FIX] account: Missing Partner in account move line
When creating account move lines from an account move, the partner
set on the account move lines has to be the same than the one on the
account move.

opw:668322
2016-02-23 09:52:10 +01:00
Nicolas Martinelli 2230bee0c5 [FIX] report_intrastat: month used for intrastat.report record
The month used for an intrastat.report record must be the same as
the invoice_date set on the invoice.

Backport of d1d896621f

opw-668827
2016-02-23 08:18:00 +01:00
Jeremy Kersten b4638a9153 [FIX] crm: overdue is only the next action in the past.
Don't show oppotunities where next action date is today.
We have already a filter Today for it.
2016-02-22 16:48:08 +01:00
Christophe Simonis 01f2046e23 [FIX] product: product price assumed currency
When a product has no company set, it assumed it use the main company
currency. Read the main company currency as SUPERUSER as current user
may not have access to it.

Followup of 3622c0d12a.
2016-02-22 16:45:33 +01:00
Olivier Dony f09edcddf9 [FIX] assets: empty compiled assets handling
tl;dr: accept both `None` and empty ('') results as
       cache hits, then double-check that the file_size
       is really 0

A. Valid empty files

When a LESS file compiles to an empty result
(e.g. `variables.less`), do not treat the empty file
as a cache miss. Those are valid because file_size == 0.
Note: empty files are not stored in the attachment
filestore and return a null (None) `datas` when read
from the database.

B. Invalid empty files

Under some circumstances (e.g. damaged filestore,
race conditions during deletion, etc.), cached
compiled assets may be deleted in the underlying
attachment filestore, while still present in the
table. The filestore implementation returns an
empty file ('') when they are later accessed.
Those can be considered **invalid**
because the expected file_size is > 0.
2016-02-22 16:38:05 +01:00
Nicolas Martinelli 30cf60a659 [FIX] l10n_be_intrastat: fix tracebacks
Surprisingly, people don't like tracebacks when they generate an
Intrastat report

opw-668827
2016-02-22 15:40:36 +01:00
Jeremy Kersten 87497b80e5 [FIX] sale_crm: manage case where quotation is in state 'sent'
Wihtout it, a quotation in state 'sent' was considered as sale_order.
2016-02-22 15:31:13 +01:00
Denis Ledoux 3bb4ca7fee [FIX] website_forum: avoid retag karma check if not change in tags
When a user attempted to edit his answer,
and had not enough karma to edit the tags
of the post, he was always restricted,
even if he made no changes within
the post tags.

opw-670090
2016-02-22 15:24:34 +01:00
Denis Ledoux a845cac599 [FIX] account: missing quote in analytic account domain
opw-670120
2016-02-22 15:09:43 +01:00
Odoo Translation Bot c127ee26ac [I18N] Update translation terms from Transifex 2016-02-22 15:01:40 +01:00
Martin Trigaux 03d5fa4b6e [I18N] account_extra_reports: translate the module 2016-02-22 14:14:40 +01:00
Nicolas Martinelli 1bf9e904c6 [FIX] stock: note field not displayed in picking
In the 'Initial Demand' tab, the `note` field is only displayed when the
picking is not in state 'draft', 'confirmed' or 'waiting'.

opw-669889
2016-02-22 11:35:27 +01:00
Nicolas Martinelli f89220a513 [FIX] stock: prevent transfer of picking
In a large warehouse, it can happen that two users try to transfer the
same picking at the same time.

opw-668725
2016-02-22 11:25:33 +01:00
Odoo Translation Bot f83c28eb72 [I18N] Update translation terms from Transifex 2016-02-22 11:06:52 +01:00
Goffin Simon 2a5be430ec [FIX] sales_team: member_ids with option not_delete
When a member is unlink from a sales team, the user
doesn't have to be deleted from "res.users".

opw:668776
2016-02-22 09:43:01 +01:00
Christophe Matthieu bf26f0f498 [IMP] web: add an option to avoid deleting a o2m records
issue opw-668776
2016-02-22 09:43:00 +01:00