Commit Graph
100525 Commits
Author SHA1 Message Date
qsm-odoo 1982ef993e [FIX] web: listview editable, non editable elements
When editing a line, leave the buttons visible.
Also remove the 3px gap between fields so that readonly field texts
does not move when entering the edition mode.
2016-01-28 17:18:24 +01:00
Nicolas Martinelli 1b04b1d71a [IMP] purchase: default account journal
When the user clicks on the stat button "Invoices", then creates a new
invoice, the default currency of the new invoice will be based on the
default account journal. If the default account journal is not in the
currency of the PO, this will lead to an invoice which is not in the
same currency than the PO. This is not a bug in itself, but most of the
time, the user will want to create an invoice in the same currency than
the PO.

If no invoice is linked to the PO, the fix sets a default account
journal in the currency of the PO, as long as one can be found. If an
invoice is already linked to the PO, it uses the same account journal.

opw-667743
2016-01-28 17:14:42 +01:00
qsm-odoo 31e8cd0949 [FIX/IMP] project,web: kanban cover image dialog
* Fix the grid display of images (use the column property)
* Use Dialog class
* Allow removing a cover image
* Add image selection before choosing it (or double click to choose)

+ add less mixins in web for columns property
2016-01-28 17:11:39 +01:00
Nicolas Martinelli 79c20415b2 [FIX] purchase: source document of invoice
When a vendor bill is created, no source document is added
automatically. Moreover, since the field is hidden when empty, there is
no way for the user to fill it.

The fix fills in automatically the source document field from the list
of PO.

opw-667055
2016-01-28 15:59:04 +01:00
Nicolas Lempereur 657b2213b1 [FIX] website_theme_install: search view cause oddness
Sometimes, the custom search view of website_theme_install would get
called instead of the true default view.

opw-667778
opw-667779
2016-01-28 15:34:01 +01:00
Christophe Matthieu d958cf541a [FIX] web_editor: enter keydown create new td only if the caret is on the last char of the last line of the td 2016-01-28 14:57:21 +01:00
Christophe Matthieu d1abc952cc [FIX] tools: XMLTranslator doen't use self.parser arguments to create new instance of XMLTranslator
issue: When a translation contain valid hmtl but invalid xml the content is escape (translate.py: line 218).
2016-01-28 14:57:21 +01:00
Christophe Matthieu 2b4fb7e195 [FIX] web_editor: remove style attribute if empty 2016-01-28 14:57:21 +01:00
Jeremy Kersten 28e2dcf043 [FIX] website_payment, website_mail: fix route declaration typo
Missing s of method for allowed methods.
2016-01-28 14:00:26 +01:00
Goffin Simon ca343f7b04 [FIX] purchase: currency_id in purchase report
The field currency_id must be in the view to group by currency_id.

opw:667869
2016-01-28 13:40:57 +01:00
Nicolas Martinelli 9052bdc9cb [FIX] account: calculation of amount residual
When an account move line is reconciled with debits and credits, both are
subtracted from the original amount. This is not logical, since if the
line is a credit (debit) we should subtract (add) the debits and add
(subtract) the credits.

opw-667137
2016-01-28 13:33:43 +01:00
Martin Trigaux c5923774a0 [FIX] web_settings_dashboard: missing terms in .pot
Get more features with the Enterprise Edition!
opw 666709
2016-01-28 17:44:28 +05:30
Martin Trigaux 261380250d [IMP] base: do not warn about new application installation
This warning is linked to SaaS pricing and should not be present in base
has been moved to internal code.
2016-01-28 17:19:08 +05:30
Denis Ledoux 5ff25215c7 [FIX] product_visible_discount: trigger property on overriden product_uom_change
This revision is related to feb2ede0d6

When overriding an onchange method, the `@api.change` property,
that decides on which fields the onchange method must be triggered,
should be the same on the overriding and the overriden method.

Otherwise, the base onchange won't be triggered on the fields
it expected to.

opw-668049
2016-01-28 11:08:49 +01:00
qdp-odoo d35e75f7eb [FIX] account: fixed computation of reconciled fields on account.move.line and account.invoice which were wrong due to bad usage of float_is_zero() 2016-01-28 10:58:38 +01:00
Goffin Simon 3fab3a1347 [FIX] purchase: width in tree view
In enterprise/web/static/src/xml/base.xml, the javascript template
ListView uses on each column (field) column.width() where width is
a javascript function. Then argument width cannot be use in tree view.

opw:667465
2016-01-28 09:56:00 +01:00
Christophe Matthieu 51a1926353 [FIX] computed html field should not have "note-editable" class
opw-660810
2016-01-28 09:28:33 +01:00
Denis Ledoux a2d3d4d449 [FIX] ir_sequence: range_ actually uses the range start date
In a sequence, `range_year` is supposed to be the year
of the range beginning date:

```
When subsequences per date range are used,
you can prefix variables with 'range_' to use
the beginning of the range instead of the current date,
e.g. %(range_year)s instead of %(year)s.
```

Therefore, for a sequence with ranges configured as:
 - 20150701 to 20160630
 - 20160701 to 20170630

An invoice confirmed on 20160101 must have `2015`
as year when using `range_year`, and not `2016`.

If you would like the invoice effective date,
you must then use `year`, instead.

We add the `current_%` keys as well,
in case some users absolutely want the
`now` date instead of the effective date,
but it doesn't make much sense in the context
of accounting.

Besides, outside the context of the accounting,
`year`, `month`, `date` etc is the `now` date.

opw-649487
2016-01-27 19:10:09 +01:00
qdp-odoo 3fcb70e314 [FIX] account_extra_reports: sale/purchase journal fixed (tax summary was completly wrong and crashing) 2016-01-27 16:32:52 +01:00
qdp-odoo fb187b034b [FIX] account: aged partner balance was crashing because of access rights errors in multi company environment + error fixed in history building 2016-01-27 16:31:09 +01:00
Martin Geubelle f19210ee08 [FIX] web: properly remove nvd3 tooltips
We fixed it for the graph view in 6bdf72bac5f6e8 but this
needs to be fixed for every views.
2016-01-27 16:31:16 +01:00
Géry Debongnie 36994a6616 [FIX] web: load async js modules as soon as possible
The module system allow modules to return a deferred.  When that
deferred resolves, the module is considered to have succesfully loaded,
and the result value is its value.  Then, the boot.js code used a
setTimeout (via _.defer) to load all its dependencies.

This is not wrong per se, but it empties the call stack, which give
other code the opportunity to interfere.  In particular, it is an issue
in phantomjs tests, because it causes a window between the
domcontentloaded event (which is a key event in website) and the actual
loading of all dependent modules.  This execution window can be used to
start some tours, but the code of those tours is waiting the next tick
to load, so horrible crashes happens.

This commit calls immediately process_jobs to avoid those issues.
2016-01-27 16:07:19 +01:00
Christophe Simonis d2f8485323 [FIX] account: correct migration of tags and taxes 2016-01-27 15:56:56 +01:00
Denis Ledoux 3622c0d12a [FIX] product: product price assumed currency
Before this revision, with a configuration setup
like this:
 - Company A - Currency EUR
 - Company B - Currency USD
 - Public Pricelist- Currency EUR
 - Product A - Company A - Price 100 (EUR)
 - Product B - No company - Price 100

When a user set in Company B browses the `/shop`,
the pricelist applied is the public pricelist,
and, therefore, the prices are shown in EUR
(nothing wrong so far),
but the currency of the price set on the products
were assumed in USD, the user company currency, and,
therefore, the rate conversion from USD to EUR
was applied.

The product A, configured with a sale price of 100€
in the company A, was therefore displayed to 92€
(100€ * the USD-EUR rate).

The product B, without any company set, as well.

Meaning, two users from two different companies using the same
pricelist see two different prices in the same currency,
because their companies do not use the same currency.
This doesn't make any sense.

With this revision,
when setuping a sale price on a product, the currency
of this price is assumed in the currency of the company
set on the product.

If there is no company set on the product (the company
is not required), the currency assumed is then the currency
of the main company.

opw-666059
2016-01-27 14:10:50 +01:00
Christophe Simonis 4bbddc7476 [MERGE] forward port of branch saas-6 up to 48639d4 2016-01-27 12:10:29 +01:00
Nicolas Lempereur b55e29ea86 [FIX] web: improve focus/blur one2many dataset
The dataset of an x2m could be set as changed on a focus event, but if
the form is currently not in editing, it could stay blocked in this
state.

This commit add a check so blur and focus on x2m are better coupled.

opw-665401
2016-01-27 12:05:54 +01:00
Christophe Simonis 33844226aa [FIX] website_slides: handle invalid youtube URL.
Also update demo data to point to an available youtube video.
2016-01-27 11:55:09 +01:00
Denis Ledoux 2547b4233a [FIX] website_forum: a partner can have multiple users.
A partner can be associated to multiple users.

The condition checking the partner
user has enough karma should therefore
handle it. The previous condition expected
a singleton (only one user for the partner).

With the condition before this revision,
a partner with multiple users could
simply not post new questions on the forum.

opw-667894
2016-01-27 10:57:11 +01:00
Géry Debongnie f91ff84e97 [FIX] mail: tag some rpcs with 'shadow' to improve experience
The default behavior of session.rpc is to block the ui if it is not
completed in some short delay.  This is not really good for various
types of rpcs.  The discuss application is actually doing quite a lot
under the hood, and blocking the ui for some of those use cases does not
make sense (exemple: marking a channel as seen)
2016-01-27 10:57:56 +01:00
Nicolas Lempereur 48639d486f [IMP] website_slides: update demo url and revert e522a11 2016-01-27 10:23:11 +01:00
Nicolas Lempereur e522a112f8 [FIX] website_slides: demo video is dead 2016-01-27 10:14:04 +01:00
Nicolas Lempereur b783d2d1c4 [FIX] web: allow view with arabic date saving
When editing a form with the arabic language, the date is formatted in
arabic. But the version of the Moment.js library we use for this had
inconsistencies and parsing the arabic date could not work.

Hence, saving would not work since date field values would be invalid.

This commit cherry-pick http://momentjs.com/ commits which solves that:

  from version 1.8.4: https://github.com/moment/moment/commit/c9023b5
  from version 1.9.0: https://github.com/moment/moment/commit/bd328d5

closes #10634
opw-660453
2016-01-27 08:42:41 +01:00
qdp-odoo 33bfc32111 [FIX] account: aged partner balance fixed. Work at a given date, in case of partial reconciliation, fixed totals too 2016-01-27 01:51:32 +01:00
qdp-odoo 2f969182c3 [ADD] account_extra_reports: 2 reports from saas6 rehabilitated (sale/purchase journal printing and partner ledger) 2016-01-27 01:51:32 +01:00
Christophe Simonis 2ebdb5f36e [FIX] fields: correct related_sudo computation.
Correctly merge commit 748a719fd9 in 9.0
2016-01-26 19:46:55 +01:00
Christophe Simonis 2ce9311cfe [MERGE] forward port of branch saas-6 up to a576f2b 2016-01-26 19:13:41 +01:00
Christophe Simonis a576f2baf3 [MERGE] forward port of branch 8.0 up to 43a4ffe 2016-01-26 18:20:11 +01:00
Christophe Simonis 43a4ffe6b6 [MERGE] forward port of branch 7.0 up to 098c084 2016-01-26 18:09:05 +01:00
Nicolas Lempereur e95b01db3e [IMP] web_graph: XLS export fail if more than 256 columns
When creating a XLS file with more than 256 columns, the library used
(xlwt) fail since it is targetted to support MS Excel 97 up to
Excel 2003.

But Odoo doesn't has no check and in this given instance (an error
happening in a controller generating a binary filte) the real error
message is lost.

This commit check if the to-be exported data has more than 256 columns,
and if this is the case display an error message without even trying
the export.

closes #10630

opw-660474
2016-01-26 17:38:52 +01:00
Yuriy A. Apollov 098c084eae [FIX] orm: iteration on browse_null object lasts forever 2016-01-26 17:34:39 +01:00
Stefan Rijnhart 014a1294b2 [FIX] Context argument may be immutable 2016-01-26 17:18:35 +01:00
Raphael Collet 7d80cb8790 Merge pull request #9919 from andreparames/patch-2
[FIX] Wizard is preventing the user deletion
2016-01-26 16:48:12 +01:00
andreparames 1cd9c01b42 [FIX] Wizard is preventing the user deletion
When deleting users which have recently had their password changed, the reference from the password change wizard throws a validation error.
2016-01-26 15:01:01 +00:00
Raphael Collet d0c18d7a85 Merge pull request #10228 from hbrunn/8.0-search_computed_in_path_odoo
[FIX] search with computed fields in path
2016-01-26 15:59:01 +01:00
Martin Geubelle fe10ceebdc [ADD] doc: from community to enterprise 2016-01-26 15:11:41 +01:00
Géry Debongnie 06e583e1fd [FIX] web: change qweb to work around phantomjs bug
This commit does not actually fix qweb2.js, but it works around a
phantomjs bug.  The problem with phantomjs is that in some situations,
the xmlhttprequests are dropped with a status 0.  It is most likely
related to the issue:

    https://github.com/ariya/phantomjs/issues/11195

In our testing framework, it seems to appear when requests sent before
the 'load' event of phantomjs are received after, and also when those
requests are listened with the onreadystatechange handler.

The bug does not appear if we use addEventListener with the 'load' event (at
least, not for a few builds)

This commit does not worsen qweb, and it is also a small improvement in
style (in my opinion).
2016-01-26 14:22:56 +01:00
Géry Debongnie 31efb0c198 [FIX] web_kanban: only move columns with the header
and not the whole column.  this will prevent unwanted drag and drop
operations.
2016-01-26 14:19:03 +01:00
Holger Brunn 6fd57c2188 [FIX] allow searching for new style function
fields in a search path
2016-01-26 14:15:22 +01:00
Christophe Simonis 50b0b075a9 [MERGE] forward port of branch 8.0 up to ab245fc 2016-01-26 14:04:55 +01:00
Nicolas Lempereur c23be8917c [IMP] point_of_sale: limit categories height to 60%
When categories on the point of sale take too much height, the product
and overflown categories are not visible.

In those instance Odoo wizards would usually:

- use an option to have small categories without pictures,

- have a category "all" with all the product,

- do a custom change to reduce the size of categories or add a scrollbar

This commit add the last customization in stable.

If the category block is bigger than 60% of the page height, the
categories are cropped and a scrollbar is added.

closes #10588

opw-660383
2016-01-26 13:26:53 +01:00