Martin Trigaux [Tue, 28 Oct 2014 09:09:01 +0000 (10:09 +0100)]
[REM] l10n_fr_rib module
RIB format is no longer accepted by banks (replaced by SEPA) since 1st of August 2014, in regards of #3331
Christophe Simonis [Fri, 24 Oct 2014 16:23:46 +0000 (18:23 +0200)]
[MERGE] forward port of branch 8.0 up to 92183e5
Julien Legros [Fri, 24 Oct 2014 15:57:08 +0000 (17:57 +0200)]
[FIX] event_sale: event name carried over in invoice line
Julien Legros [Fri, 24 Oct 2014 15:55:42 +0000 (17:55 +0200)]
[FIX] event_sale: event tickets carried over on duplication
Julien Legros [Fri, 24 Oct 2014 14:40:25 +0000 (16:40 +0200)]
[FIX] mail: append messages at the right place
e6790ba introduced a bug where messages were always appended at the end
of the thread, potentially displaying them in the wrong order.
Christophe Simonis [Fri, 24 Oct 2014 15:25:19 +0000 (17:25 +0200)]
[MERGE] forward port of branch saas-3 up to 309ca4f
Jeremy Kersten [Fri, 24 Oct 2014 15:01:49 +0000 (17:01 +0200)]
[ADD] web: add a route '/web/dbredirect' to ensure the connection to the right database via the get param db.
Christophe Simonis [Fri, 24 Oct 2014 14:52:10 +0000 (16:52 +0200)]
[MERGE] forward port of branch 7.0 up to d2fd05e
Samus CTO [Wed, 22 Oct 2014 09:40:09 +0000 (11:40 +0200)]
[IMP] config: Test that the config file is readable
Fixes #3237
cherry-pick of 8e72049
Simon Lejeune [Thu, 23 Oct 2014 09:13:08 +0000 (11:13 +0200)]
[FIX] Report: use ir.config 'report.url' key as base url if it exists
Browse ir.config 'report.url' with superuser as
the user may want to restrict access of this key to the public
Christophe Simonis [Mon, 6 May 2013 10:30:54 +0000 (12:30 +0200)]
[FIX] When using "--stop-after-init", set the return code correctly. A non zero return code reflect the number of databases that fail to load/update
Backport of
2c4e370b766db6280d38a4d3535e07de604b1922 and
33ce0e73dba7c23d004a278f61943be8052e7f37
Martin Trigaux [Fri, 24 Oct 2014 13:36:58 +0000 (15:36 +0200)]
[FIX] web: avoid incoherent actual_mode after refresh
When accessing an existing record in form mode directly (enter the url or refresh a page), the daterecord has not been initialized yet. This means that the value of actual_mode will be set to 'edit' before loading the current record (method _actualize_mode() called from do_show()).
This was problematic for one2many fields that we loaded in edit mode, showing add/delete icons/buttons in readonly views. (opw 607910)
Jeremy Kersten [Fri, 24 Oct 2014 09:59:23 +0000 (11:59 +0200)]
[IMP] res_country: add relation from country to group_country. The purpose of this patch is to allow in domain (model.country_id.country_group_ids, '=', 'Europe')
Christophe Matthieu [Fri, 24 Oct 2014 12:16:16 +0000 (14:16 +0200)]
[FIX] website_event_sale: display the discounted price in website.
Add price_reduce compute method on ticket and sale order line
Samus CTO [Wed, 22 Oct 2014 09:40:09 +0000 (11:40 +0200)]
[IMP] config: Test that the config file is readable
Fixes #3237
Christophe Matthieu [Fri, 24 Oct 2014 09:33:15 +0000 (11:33 +0200)]
[FIX] website_mail: connected users can't follow a website document
Christophe Simonis [Thu, 23 Oct 2014 15:35:13 +0000 (17:35 +0200)]
[FIX] website_forum: correct view typo introduced during previous commit
Paulius Sladkevičius [Tue, 21 Oct 2014 15:50:28 +0000 (18:50 +0300)]
[FIX] Render of report shouldn't update context
With API 8 context is frozendict that don't support update
Christophe Simonis [Thu, 23 Oct 2014 15:14:35 +0000 (17:14 +0200)]
[MERGE] forward port of branch 8.0 up to ed92589
Christophe Simonis [Thu, 23 Oct 2014 14:52:37 +0000 (16:52 +0200)]
[MERGE] forward port of branch saas-3 up to 2c1bcfb
Denis Ledoux [Thu, 23 Oct 2014 14:40:53 +0000 (16:40 +0200)]
[FIX] calendar: avoid to pass ids as string to unlink and write methods
opw-616532: if the event is associated somehow to a workflow, an assert is done to check that element of the ids list are (int, long)
Paramjit Singh Sahota [Wed, 8 Oct 2014 09:38:34 +0000 (15:08 +0530)]
[FIX] website_forum: fixed inclusion of css / js, notably ckeditor.
Assets were badly configured, fixed it.
Simon Lejeune [Thu, 23 Oct 2014 13:41:48 +0000 (15:41 +0200)]
[FIX] account: tax report: translate account.tax.code according to context
As get_lines is called from the template, use a partial to embed the original context.
David Monjoie [Thu, 23 Oct 2014 12:40:29 +0000 (14:40 +0200)]
[FIX] website_sale: check the first product variant radio button in variants list by default to avoid users to click on Add to Cart without choosing any variant
Denis Ledoux [Thu, 23 Oct 2014 13:05:55 +0000 (15:05 +0200)]
[FIX] crm_partner_assign: colors only if there is a stage on the lead
Cedric Snauwaert [Thu, 23 Oct 2014 09:49:07 +0000 (11:49 +0200)]
[FIX] web: remove enforceFocus method from bootstrap modal since it is conflicting with other non bootstrap element
This method trigger the focus event when clicking inside the modal, causing a blur event on other widgets resulting in unwanted problem. Typical case is for the jquery datetimepicker where we try to open a select element which will close right after.
Julien Legros [Thu, 23 Oct 2014 12:31:06 +0000 (14:31 +0200)]
[MERGE] forward port of branch 7.0 up to 8e76938
Denis Ledoux [Thu, 23 Oct 2014 12:12:39 +0000 (14:12 +0200)]
[FIX] website_sale: right number of products in the page
The goal is to fill the page with at least 20 products and to fill all grid lines
Thus, the page should be filled with products until there are 20 products and all lines of the grid are full.
Julien Legros [Thu, 23 Oct 2014 11:45:11 +0000 (13:45 +0200)]
[FIX] web: correct display of dropdown arrows in ie11
Christophe Simonis [Thu, 23 Oct 2014 11:08:44 +0000 (13:08 +0200)]
[MERGE] forward port of branch saas-3 up to c89d1a0
Thibault Delavallée [Thu, 23 Oct 2014 10:49:29 +0000 (12:49 +0200)]
[IMP] payment: add the auto_confirm field on form view + transfer does not confirm by default
Martin Trigaux [Thu, 23 Oct 2014 10:38:31 +0000 (12:38 +0200)]
[IMP] website: google maps url
Use the protocol as the current page to avoid warning with mixed content (loading map in http inside an https page)
Géry Debongnie [Thu, 23 Oct 2014 09:42:54 +0000 (11:42 +0200)]
[FIX] remove wrong filter (account)
For some reason, a filter was made on the non-existing field 'categ_id'.
Result: crash crash boom.
ssh-odoo [Fri, 19 Sep 2014 07:25:19 +0000 (12:55 +0530)]
[IMP] [TEST] website_forum: security fixes + tests
- fixed voting, karma check could be avoided
- fixed posting comments, now correctly checking karma (not for
notifications)
- fixed bootstraping of users, now not allowed to ask questions by default;
added validation email that gives the first karma points required to
participate
- added tests
David Monjoie [Wed, 22 Oct 2014 13:38:11 +0000 (15:38 +0200)]
[IMP] website_mail: actually render the html body of the template instead of escaping it
Raphael Collet [Thu, 23 Oct 2014 08:35:27 +0000 (10:35 +0200)]
[IMP] fields: remove unused imports
Raphael Collet [Thu, 23 Oct 2014 07:46:04 +0000 (09:46 +0200)]
[IMP] fields: infer required=True on related fields
One can infer related=True on a non-stored related field if all fields on the
path are related. This cannot be done if the related field is stored: when you
create a record, the database row is created first, and the related field is
computed and stored afterwards. Making the field required in that case would
trigger a non-null constraint violation.
Raphael Collet [Wed, 22 Oct 2014 15:00:23 +0000 (17:00 +0200)]
[IMP] fields: initialized computed fields to a null value instead of a failed one
This should ease compute methods that assign a list to "update" a
one2many/many2many field. With a failed value, the update crashes.
Martin Trigaux [Tue, 21 Oct 2014 13:15:50 +0000 (15:15 +0200)]
[FIX] project: use utc timezone in report
Denis Ledoux [Wed, 22 Oct 2014 17:29:18 +0000 (19:29 +0200)]
[MERGE] forward port of branch 7.0 up to b4d3701
Denis Ledoux [Wed, 22 Oct 2014 17:27:00 +0000 (19:27 +0200)]
Denis Ledoux [Wed, 22 Oct 2014 17:26:27 +0000 (19:26 +0200)]
[MERGE] forward port of branch 7.0 up to 3a0af6a
Denis Ledoux [Wed, 22 Oct 2014 17:25:23 +0000 (19:25 +0200)]
[FIX] account_followup: use %s string formatting to avoid concat None values
Raphael Collet [Wed, 22 Oct 2014 10:49:12 +0000 (12:49 +0200)]
[IMP] fields: reuse column objects when possible, instead of recreating them
This is a memory optimization: it reduces the memory footprint of each
registry. We have observed a reduction of 10Mb on a database with modules crm,
sale, purchase, stock.
Jeremy Kersten [Wed, 22 Oct 2014 14:20:05 +0000 (16:20 +0200)]
[FIX] ir_action: update context to get the real binary, else we have a traceback when we edit/view an ir_action_client where param is a binary field. Because we do safe_eval from the length and not from the binary
Yannick Tivisse [Thu, 16 Oct 2014 07:17:17 +0000 (09:17 +0200)]
[IMP] Quotation form view fields moved
Yannick Tivisse [Thu, 16 Oct 2014 09:06:03 +0000 (11:06 +0200)]
[IMP] Accounting typos fixes in tips
Yannick Tivisse [Thu, 9 Oct 2014 11:32:55 +0000 (13:32 +0200)]
[FIX] website_quote: onboarding tip
Christophe Matthieu [Wed, 22 Oct 2014 14:14:30 +0000 (16:14 +0200)]
Merge pull request #3235 from odoo-dev/8.0-doc-website-template-optional-chm
[FIX] doc website: application field does not exists on ir.ui.view.
Martin Trigaux [Thu, 9 Oct 2014 11:37:06 +0000 (13:37 +0200)]
[FIX] product.uom: safer handling of factor/factor_inv in UI
Add readonly attribute to avoid sending both factor and factor_inv value to the backend when saving.
This was possible if the user switched between uom_type to fill the two fields.
Cedric Snauwaert [Thu, 16 Oct 2014 15:23:51 +0000 (17:23 +0200)]
[FIX] product: remove digits_precision from uom factor fields
Remove the hardcoded precision of 12 on factor and factor_inv,
to use the complete natural precision of NUMERIC types,
preserving all significant digits.
e.g. a UoM with a factor_inv of 6.0 used to be computed as:
factor_inv: 6.0 -> factor: 0.
166666666667 (1.0/6.0, rounded to 12 digits) -> factor_inv: 5.
999999999988 (1.0/factor)
which could lead to errors such 12*0.
166666666667 = 2.
000000000004 instead of 2.0
Slightly changed the way the ORM handles float fields to allow setting `digits=0`
as a way to explicitly require a NUMERIC value but without enforcing/rounding
the values at the ORM level, i.e. a truly full-precision field.
NUMERIC type has unlimited precision but is less efficient so should not be
used as the default behaviour, which is why we keep float8 as an alternative.
Modified the view to display the product UOM factor with a 5 digits value by default.
This value is for usability purpose only, the field still accepts bigger precision, by
setting the `digits` option on the field in the form view.
This change is safe in a stable series, the `digits=0` alternative is
treated the same as the default `digits=None` everywhere in the framework,
except when creating the database field.
Martin Trigaux [Wed, 8 Oct 2014 14:10:52 +0000 (16:10 +0200)]
[FIX] base: support float rounding with rounding_method=UP (ceiling)
Add rounding_method parameter on float_round method to offer
HALF-UP (default, usual round) or UP (ceiling) rounding method.
Use the second method instead of math.ceil() for product
reservations.
For UP, the python math.ceil() method uses "torwards infinity"
rounding method while we want "away from zero".
Therefore we use the absolute value of normalized_value to make
sure than -1.8 is rounded to -2.0 and not -1.
Fixes #1125 #2793
This is a cherry-pick of d4972ff which was reverted at 333852e due
to remaining issue with negative values.
Olivier Dony [Wed, 22 Oct 2014 11:48:19 +0000 (13:48 +0200)]
[FIX] website_forum: safer conditions in UI for blockng post buttons
Julien Legros [Wed, 22 Oct 2014 10:47:32 +0000 (12:47 +0200)]
[FIX] mail: mail_alias conditionally made unique on write
Don't try to make the alias unique if writing on the same id (this is
necessary in res_config views)
Denis Ledoux [Wed, 22 Oct 2014 09:41:33 +0000 (11:41 +0200)]
[FIX] fields: selection, do not try to translate label if label is empty
- translate with no source returns first translation for this field, whatever the source
- performance
Denis Ledoux [Wed, 22 Oct 2014 09:51:30 +0000 (11:51 +0200)]
[FIX] product: remove empty from state field selection
In order to avoid having twice "empty" in the web client. There is always an empty option in selection field in the web client. When the selection field is required, you have to select it, and it is not required, you can set False as selection value
Richard Mathot [Tue, 21 Oct 2014 08:51:31 +0000 (10:51 +0200)]
[FIX] mail: limit messages in chatters
Christophe Matthieu [Wed, 22 Oct 2014 08:46:38 +0000 (10:46 +0200)]
[FIX] doc website: application field does not exists on ir.ui.view. The optional inherit used customize_show and active fields
Fabien Meghazi [Tue, 21 Oct 2014 13:37:40 +0000 (15:37 +0200)]
[ADD] CDN support for website
Denis Ledoux [Tue, 21 Oct 2014 16:31:30 +0000 (18:31 +0200)]
[FIX] sale: force condtion True for workflow activity trans_ship_ship_except
This is related to fix 43b0a63
ssh-odoo [Fri, 17 Oct 2014 09:24:35 +0000 (14:54 +0530)]
[FIX] stock: group dependency
When installing stock without account, the group group_account_invoice is not present.
Fixes #3117
kevin [Tue, 21 Oct 2014 15:19:40 +0000 (17:19 +0200)]
[FIX] stock: inverse function field should write the given value and not current
Fabien Meghazi [Tue, 21 Oct 2014 15:14:23 +0000 (17:14 +0200)]
[FIX] move google analytics js snippet at the bottom (Fixes #3222)
Martin Trigaux [Tue, 21 Oct 2014 14:56:08 +0000 (16:56 +0200)]
[FIX] project: read access for project user
Backport of 79bed94 (project user access to resource.calendar) and adding the access to resource.calendar.attendance.
It is needed to compute function fields such as day_open (present in form view of project.issue)
Fixes #3201
Martin Trigaux [Tue, 21 Oct 2014 14:54:56 +0000 (16:54 +0200)]
[IMP] project: convert file CRLF to Unix end of line
Denis Ledoux [Tue, 21 Oct 2014 14:27:30 +0000 (16:27 +0200)]
[FIX] website_certification: no need to set a group to acl if the data is public
Martin Trigaux [Tue, 21 Oct 2014 08:54:23 +0000 (10:54 +0200)]
[FIX] report: page numbering rml reports
Save the NumberedCanvas state before doing a page reset.
The order of execution when rendering an rml report is the following:
1. init canevas (_pageNumber = 1)
2. render the page element
3. if still pages to render, afterPage method
4. if still pages to render, showPage method (_pageNumber += 1)
5. back to step 2 for each page
6. draw the ResetPage element (setting flag _doPageReset=True)
7. end the document build with afterPage & showPage method
The PageReset element should be executed at the end of the rendering of a story (subdocument) to reinitialize the page numbers to 0 (for new story) and insert the pageCount element for that story with the total number of pages (needed if want to use tag <pageCount/> in rml).
In case of NumberedCanvas (e.g. used in Trial Balance report), the numbering is generated at the end of the build using the _saved_page_states dict in the canevas.
To have an accurate _saved_page_states content, it needs to be saved before the pageReset.
Fixes #2225
Christophe Simonis [Tue, 21 Oct 2014 12:59:56 +0000 (14:59 +0200)]
[MERGE] forward port of branch 8.0 up to 262eb66
David Monjoie [Tue, 21 Oct 2014 12:57:52 +0000 (14:57 +0200)]
[IMP] web_graph: renamed Quantity field into Count to avoid ambiguities
Christophe Simonis [Tue, 21 Oct 2014 12:33:36 +0000 (14:33 +0200)]
[MERGE] forward port of branch 8.0 up to d80376a
Christophe Simonis [Tue, 21 Oct 2014 11:06:27 +0000 (13:06 +0200)]
[MERGE] forward port of branch 7.0 up to 78a29b3
Géry Debongnie [Tue, 21 Oct 2014 10:05:27 +0000 (12:05 +0200)]
[MERGE] Improved search view UI
This branch is the result of a UI rethink of the search views.
In order to do that, many other parts had to be moved/reworked.
Main changes affect action manager, view manager and search view
(they have been almost completely rewritten)
Some highlights:
* search view has 3 submenus (filters, groupbys, favorites) and all inputs are included in these submenus
* view manager header is now responsive, and bootstrapized
* icons are now using fontawesome
* transitions between views should have much less flicker (because of work in action and view managers)
* debug mode has a pretty icon (because why not)
* we can now add custom groupbys (every groupable fields from the model are exposed (make sure you have good descriptive strings))
Denis Ledoux [Tue, 21 Oct 2014 08:13:44 +0000 (10:13 +0200)]
[FIX] point_of_sale: no need to specify numeric digits
In the report pos order, average_price was set as a numeric(16,2), therefore, if the amount was too big, it led to a psql crash:
A field with precision 16, scale 2 must round to an absolute value less than 10^14.
Richard Mathot [Mon, 20 Oct 2014 07:41:06 +0000 (09:41 +0200)]
[DOC] cmdline: database-related parameters
Géry Debongnie [Tue, 21 Oct 2014 06:44:45 +0000 (08:44 +0200)]
[IMP] move some functions in a better position (web client)
the prepare_search_inputs is an initialization function, and was at
the end of the Searchview class. It is more intuitive to put it closer
to the top
Géry Debongnie [Mon, 20 Oct 2014 15:03:08 +0000 (17:03 +0200)]
[IMP] better variable/function names in action manager
Géry Debongnie [Mon, 20 Oct 2014 10:42:58 +0000 (12:42 +0200)]
[FIX] css and layout fix in advanced search view
* make sure the searchbar allows text selection
* revert back to col-md (from col-lg) classes => looks better
Géry Debongnie [Mon, 20 Oct 2014 08:27:29 +0000 (10:27 +0200)]
[FIX] hide groupby menu in inbox (addon mail)
the groupby menu does not do anything in the client actions. Hiding the
group by menu prevent possible confusion about its use.
Géry Debongnie [Fri, 17 Oct 2014 13:36:18 +0000 (15:36 +0200)]
[IMP] xml, css and js tweaks in advanced search view
Géry Debongnie [Fri, 17 Oct 2014 13:05:07 +0000 (15:05 +0200)]
[REM] remove instance.web.ViewManagerAction
ViewManager takes over all duties of ViewManagerAction, it can now be
safely removed.
Géry Debongnie [Wed, 15 Oct 2014 13:01:12 +0000 (15:01 +0200)]
[FIX] correctly check default/shared filters
in searchview. They were swapped in the UI, and not in the code. It
also shows that using position as reference is fragile.
Géry Debongnie [Tue, 14 Oct 2014 12:48:31 +0000 (14:48 +0200)]
[IMP] various code improvements
mostly styling, and related micro-changes
Géry Debongnie [Tue, 14 Oct 2014 09:02:11 +0000 (11:02 +0200)]
[FIX] various small UI tweaks
Géry Debongnie [Wed, 8 Oct 2014 14:09:15 +0000 (16:09 +0200)]
[FIX] avoid inserting invisible filters
and avoid inserting two separators because of that
Géry Debongnie [Wed, 8 Oct 2014 13:35:31 +0000 (15:35 +0200)]
[FIX] fix a crash in sub kanban views
sub kanban views is sometimes initialized without a $buttons attribute in options. In that case, it should just ignore it.
Géry Debongnie [Wed, 8 Oct 2014 13:34:19 +0000 (15:34 +0200)]
[FIX] put the scrollbar back in web/tests
for some reason, the web tests interface loads base.css, in which the .openerp is overflow:hidden, which is not fun in the tests.
The correct fix is actually to remove base.css from the tests, but the way I did it had some problems. So, this is a simple workaround that can be safely removed if base.css is removed from the view.
Géry Debongnie [Wed, 8 Oct 2014 13:31:22 +0000 (15:31 +0200)]
[FIX] remove search.invisible tests
The search view architecture allowed an 'invisible' attribute in fields. These fields were ignored for the autocompletion and did not appear in the interface. The goal was to allow default parameters to create facets, without displaying the field in the interface. Since that functionality is not used and the new search view does not support it right now, the tests can be removed.
Géry Debongnie [Wed, 8 Oct 2014 13:23:45 +0000 (15:23 +0200)]
[FIX] update tests in search view
Géry Debongnie [Wed, 8 Oct 2014 08:16:36 +0000 (10:16 +0200)]
[FIX] catch possible exception in search.js
The search view tries to evaluate the category of a filter in order
to put it in the filters or in the group by sub menu. The pyeval.eval
function could throw an exception, which is not cool if it crashes the
client. This fix make sure that the exception is caught.
Géry Debongnie [Tue, 7 Oct 2014 14:43:25 +0000 (16:43 +0200)]
[FIX] update the search tests
The search tests are totally outdated since the search view rewrite. This commit update them to the new search view.
Géry Debongnie [Tue, 7 Oct 2014 14:42:32 +0000 (16:42 +0200)]
[IMP] various code cleanups
remove some old cruft
Géry Debongnie [Tue, 7 Oct 2014 14:41:39 +0000 (16:41 +0200)]
[IMP] some cleanups in graph/kanban views
notable: disable the group by integration in graph view, because of crash (the search view was rewritten and too much search logic was in the graph view. This is a temporary measure, the graph view will be split into pivot/graph views, and the search integration will be done correctly in the near future.
Géry Debongnie [Tue, 7 Oct 2014 14:38:25 +0000 (16:38 +0200)]
[FIX] make the view editor work
with the recent changes in view manager, it was kind of broken.
Géry Debongnie [Tue, 7 Oct 2014 14:36:35 +0000 (16:36 +0200)]
[IMP] add basic pivot support
The goal is to split the graph view into two views: pivot table view (short: 'pivot') and graph view (with charts). This patch lays the foundation for that work.
Géry Debongnie [Tue, 7 Oct 2014 14:35:10 +0000 (16:35 +0200)]
[FIX] a few bugs in view_form/view_list
some small stuff...
Géry Debongnie [Tue, 7 Oct 2014 14:32:22 +0000 (16:32 +0200)]
[IMP] integrate mail client actions with search view
The mail client actions did not integrate with the search view. (it is actually an ugly hack to fake a view manager and instantiate a search view. of course it was broken when the search view was refactored)
Géry Debongnie [Tue, 7 Oct 2014 14:30:31 +0000 (16:30 +0200)]
[FIX] readd the google spreadsheet functionality
It is now an item in the favorite submenu (search view)
Géry Debongnie [Tue, 7 Oct 2014 14:29:28 +0000 (16:29 +0200)]
[FIX] make add to dashboard work
With the search view refactoring, the add to dashboard functionality was unavailable. Weep no longer, it is fixed. The dashboard button is now an action in the favorites submenu instead of a search input
Géry Debongnie [Tue, 7 Oct 2014 14:27:43 +0000 (16:27 +0200)]
[IMP] rewrite of search view/view manager
Second part of a large refactoring. Lots of cleanup, simpler code organization, and it should be faster.
Géry Debongnie [Thu, 4 Sep 2014 13:39:14 +0000 (15:39 +0200)]
[IMP] graph view integration into view manager header