Commit Graph
91704 Commits
Author SHA1 Message Date
Géry Debongnie d87f760a2c [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.
2014-10-21 09:33:52 +02:00
Géry Debongnie d82ca918cd [IMP] various code improvements
mostly styling, and related micro-changes
2014-10-21 09:33:52 +02:00
Géry Debongnie ef636ed520 [FIX] various small UI tweaks 2014-10-21 09:33:52 +02:00
Géry Debongnie 307c687997 [FIX] avoid inserting invisible filters
and avoid inserting two separators because of that
2014-10-21 09:33:52 +02:00
Géry Debongnie 4151f0fd83 [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.
2014-10-21 09:33:52 +02:00
Géry Debongnie f563b2a119 [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.
2014-10-21 09:33:52 +02:00
Géry Debongnie f25608c6fc [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.
2014-10-21 09:33:51 +02:00
Géry Debongnie d9f95e855e [FIX] update tests in search view 2014-10-21 09:33:51 +02:00
Géry Debongnie 748de602ef [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.
2014-10-21 09:33:51 +02:00
Géry Debongnie 2e43d4be29 [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.
2014-10-21 09:33:51 +02:00
Géry Debongnie f4774f25ad [IMP] various code cleanups
remove some old cruft
2014-10-21 09:33:51 +02:00
Géry Debongnie a8bd1fa8ba [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.
2014-10-21 09:33:51 +02:00
Géry Debongnie 16aff1132b [FIX] make the view editor work
with the recent changes in view manager, it was kind of broken.
2014-10-21 09:33:51 +02:00
Géry Debongnie 8f08d74660 [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.
2014-10-21 09:33:50 +02:00
Géry Debongnie 21cb194440 [FIX] a few bugs in view_form/view_list
some small stuff...
2014-10-21 09:33:50 +02:00
Géry Debongnie 2015d87a55 [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)
2014-10-21 09:33:50 +02:00
Géry Debongnie 32c9cbde4d [FIX] readd the google spreadsheet functionality
It is now an item in the favorite submenu (search view)
2014-10-21 09:33:50 +02:00
Géry Debongnie 524543fa3b [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
2014-10-21 09:33:50 +02:00
Géry Debongnie d8d6311b50 [IMP] rewrite of search view/view manager
Second part of a large refactoring.  Lots of cleanup, simpler code organization, and it should be faster.
2014-10-21 09:33:50 +02:00
Géry Debongnie bafa09f7e4 [IMP] graph view integration into view manager header 2014-10-21 09:33:50 +02:00
Géry Debongnie 14d5860b35 [IMP] readd pager functionality to web client
The pager was removed in the refactoring of view manager. This commit
readd the pager, and improves its rendering to avoid flickering
2014-10-21 09:33:49 +02:00
Géry Debongnie ffb8bf31af [FIX] fixes many issues with the various views
the views don't always return a proper promise, or were
somewhat fragile and broke with the changes in the view
manager.
2014-10-21 09:33:49 +02:00
Géry Debongnie 582ccb5ab9 [IMP] web client refactoring: action and view manager
large rewrite of action manager, view manager and
viewmanageraction.  The goal is to lay the foundation
for the redesign of the advanced search view.

This commit includes:
* improvements to the display order (no/less flickering)
* large simplification of the breadcrumbs code
* much better html layout for the header (no table)
* bootstrapisation of the view manager
* lots of optimizations/simplification
* a base.css.map, courtesy of the last sass version
2014-10-21 09:33:49 +02:00
Richard Mathot e829047015 [FIX] (website_)hr_recruitment: correct version of
659db669aa
2014-10-20 17:35:33 +02:00
Mahendra barad ad48bf6d7d [IMP] [ADD] event: mail schedulign system.
This commit adds a way to configure scheduled emails on events. It replaces
existing automatic emails at confirmation and subscription. It proposes to
configure some schedulers, based on subscription or event, using a template
and a configurable timedelta.

A cron is added that regularly checks for event mailing schedulers to execute
and launch them. The granularity of send emails is therefore limited to the
granularity of the cron, aka 1 hour.

[TEST] Added tests for this feature.

Also cleaned a bit event, country_id is now a pure related instead
of a computed field trying to be a related. Also removed default templates
on event category. Configuration in the event itself should be easy
enough for most use cases.
2014-10-17 16:48:29 +02:00
Jay Patel fd54df5c7c [IMP] bank_statement_import: account invoice onboarding tip hightlight bank statement(import)(Replace to old tip). 2014-10-17 11:26:38 +02:00
Christophe Simonis 52fee2811d [MERGE] forward port of branch 8.0 up to 2b192be 2014-10-16 16:04:39 +02:00
Christophe Simonis 2b192bef22 [FIX] report: do not fail if PDF cannot be saved as attachment due to AccessError 2014-10-16 15:50:26 +02:00
Arthur Maniet acaab83756 Merge pull request #3121 from odoo-dev/8.0-bank-statement-reconcile-extract-domain-guewen
[REF] Extract the domain generation for get_move_lines_for_reconciliation and get_reconciliation_proposition in new methods
2014-10-16 14:13:42 +02:00
Guewen Baconnier 3af6bed743 [REF] Extract the domain generation for get_move_lines_for_reconciliation and get_reconciliation_proposition in new methods
This way, the query method can be used with a custom domain. Such a domain
could match on a 'transaction_ref' field as well as on 'ref' and 'name'.

Example of implementation:

    class account_bank_statement_line(orm.Model):
        _inherit = 'account.bank.statement.line'

        def _domain_reconciliation_proposition(self, cr, uid, st_line,
                                               excluded_ids=None, context=None):
            _super = super(account_bank_statement_line, self)
            _get_domain = _super._domain_reconciliation_proposition
            domain = _get_domain(cr, uid, st_line, excluded_ids=excluded_ids,
                                 context=context)
            new_domain = []
            for criterium in domain:
                if len(criterium) == 3:
                    field, op, value = criterium
                    if (field, op) == ('ref', '='):
                        new_domain += [
                            '|',
                            ('transaction_ref', '=', value),
                        ]
                new_domain.append(criterium)
            return new_domain

        def _domain_move_lines_for_reconciliation(self, cr, uid, st_line,
                                                  excluded_ids=None, str=False,
                                                  additional_domain=None,
                                                  context=None):
            _super = super(account_bank_statement_line, self)
            _domain_meth = _super._domain_move_lines_for_reconciliation
            domain = _domain_meth(cr, uid, st_line, excluded_ids=excluded_ids,
                                  str=str, additional_domain=additional_domain,
                                  context=context)
            if not str and str != '/':
                return domain
            domain = domain[:]
            domain.insert(-1, '|')
            domain.append(('transaction_ref', 'ilike', str))
            return domain
2014-10-16 14:12:06 +02:00
Raphael Collet 83b8e413ff [IMP] test_new_api, test_inherit: improve code of tests 2014-10-16 12:32:23 +02:00
Denis Ledoux 99c44334f1 [FIX] event: convert related country_id field to compute field
To avoid being able to change the country of the address (res.partner) from this field
2014-10-16 11:15:34 +02:00
Fabien Meghazi 75dfa9a356 [ADD] QWeb2: add support for operation='attributes' in a t-extend
Same syntax as server's position='attributes' on view inheritance
2014-10-16 10:25:57 +02:00
Raphael Collet e9587bf130 [IMP] expression.py: add a check to forbid records in domains
Records in domains cause a "maximum recursion depth exceeded" error when
converted to SQL. Simply add a test to show a better error message.
2014-10-16 10:22:23 +02:00
Denis Ledoux 342f7492c7 [FIX] product: price_rule_get_multi returns a dict with a dict with tuples 2014-10-15 18:52:38 +02:00
Christophe Simonis 0d69b6e472 [MERGE] forward port of branch saas-3 up to 6feb5f7 2014-10-15 18:00:15 +02:00
Jeremy Kersten 0f6146ff2f [FIX] website_crm: remove useless request from params, anyway it's a global var 2014-10-15 17:54:25 +02:00
Olivier Dony 2bdbe255a7 [FIX] config: fix parsing of geoip db paramater, rename command-line option for consistency 2014-10-15 17:26:54 +02:00
David Monjoie 2cde5596b9 [FIX] product_visible_discount: fix display of unit price according to rule base price like in 7.0 as requested by gab 2014-10-15 15:46:28 +02:00
Fabien Pinckaers 904adc8b51 [FIX] perview button visible 2014-10-15 15:24:32 +02:00
Cedric Snauwaert 32bbc34458 [FIX] purchase_requisition: change active_id to tender_id in widget context
this is due to commit 6ed774de61 and a37bad205b which removes the active_id from context if the target==curent which is the case of this widget, we therefore can not use active_id here.

fix #2385
2014-10-15 14:47:13 +02:00
Jeremy Kersten 5b1eee9a3a [FIX] crm_lead: don't rewrite user_id. Value has not been updated so it's useless. Some module check that user_id is in vals to trigger others actions for nothing. 2014-10-15 14:18:37 +02:00
Jeremy Kersten 1d0c30e010 [IMP] ir_qweb: remove the option 'only_date' introducted in cefc9ad8e3. Now we can use widget='date' to do the same thing. That keeps the same behaviour that in the backend.
<span t-field=model.datetime_field t-field-options="{'widget': 'date'}"/>
2014-10-15 13:56:01 +02:00
Raphael Collet 89031f5de6 [FIX] models: simplify partial setup of fields, let it crash silently
The setup of relational fields may be problematic, as they may refer to unknown
models via custom relational fields.  In a partial setup, do not try to skip
the field setup, but let it go and silently catch any exception if it crashes.
2014-10-15 11:39:12 +02:00
Denis Ledoux 6feb5f70e9 [MERGE] forward port of branch 7.0 up to 98c6e7c 2014-10-15 09:44:31 +02:00
Randhir Mayatra f34ea0bc54 [IMP] sale,warning: usability 2014-10-15 09:43:37 +02:00
Denis Ledoux 98c6e7c3d5 [FIX] web: cherry-pick of 893e426865 & 61207f3f4d 2014-10-15 09:43:26 +02:00
Josse Colpaert 1da0a0b3a5 Merge pull request #3081 from odoo-dev/8.0-wmsprocmoveloc-jco
[FIX] Currency_id on purchase requisition + move created from procuremen...
2014-10-14 23:22:48 +02:00
Josse Colpaert 26cb72d104 [FIX] Currency_id on purchase requisition + move created from procurement should go to location of procurement not of rule (procurement location can be child of rule location. In handy for customer locations)
[FIX] Other elements of purchase of purchase requisition

[IMP] Picking type on purchase requisition

[FIX] Location of purchase
2014-10-14 23:19:15 +02:00
Christophe Simonis 3110d97c3d [FIX] product: correct name_get for products with resellers.
Error introduced during forward-port commit 14f3085
2014-10-14 17:04:19 +02:00