odoo/odoo.git
9 years ago[MERGE] forward port of branch 8.0 up to 262eb66
Christophe Simonis [Tue, 21 Oct 2014 12:59:56 +0000 (14:59 +0200)]
[MERGE] forward port of branch 8.0 up to 262eb66

9 years ago[MERGE] forward port of branch 8.0 up to d80376a
Christophe Simonis [Tue, 21 Oct 2014 12:33:36 +0000 (14:33 +0200)]
[MERGE] forward port of branch 8.0 up to d80376a

9 years ago[MERGE] forward port of branch 7.0 up to 78a29b3
Christophe Simonis [Tue, 21 Oct 2014 11:06:27 +0000 (13:06 +0200)]
[MERGE] forward port of branch 7.0 up to 78a29b3

9 years ago[MERGE] Improved search view UI
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))

9 years ago[FIX] point_of_sale: no need to specify numeric digits
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.

9 years ago[DOC] cmdline: database-related parameters
Richard Mathot [Mon, 20 Oct 2014 07:41:06 +0000 (09:41 +0200)]
[DOC] cmdline: database-related parameters

9 years ago[IMP] move some functions in a better position (web client)
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

9 years ago[IMP] better variable/function names in action manager
Géry Debongnie [Mon, 20 Oct 2014 15:03:08 +0000 (17:03 +0200)]
[IMP] better variable/function names in action manager

9 years ago[FIX] css and layout fix in advanced search view
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

9 years ago[FIX] hide groupby menu in inbox (addon mail)
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.

9 years ago[IMP] xml, css and js tweaks in advanced search view
Géry Debongnie [Fri, 17 Oct 2014 13:36:18 +0000 (15:36 +0200)]
[IMP] xml, css and js tweaks in advanced search view

9 years ago[REM] remove instance.web.ViewManagerAction
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.

9 years ago[FIX] correctly check default/shared filters
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.

9 years ago[IMP] various code improvements
Géry Debongnie [Tue, 14 Oct 2014 12:48:31 +0000 (14:48 +0200)]
[IMP] various code improvements

mostly styling, and related micro-changes

9 years ago[FIX] various small UI tweaks
Géry Debongnie [Tue, 14 Oct 2014 09:02:11 +0000 (11:02 +0200)]
[FIX] various small UI tweaks

9 years ago[FIX] avoid inserting invisible filters
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

9 years ago[FIX] fix a crash in sub kanban views
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.

9 years ago[FIX] put the scrollbar back in web/tests
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.

9 years ago[FIX] remove search.invisible tests
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.

9 years ago[FIX] update tests in search view
Géry Debongnie [Wed, 8 Oct 2014 13:23:45 +0000 (15:23 +0200)]
[FIX] update tests in search view

9 years ago[FIX] catch possible exception in search.js
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.

9 years ago[FIX] update the search tests
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.

9 years ago[IMP] various code cleanups
Géry Debongnie [Tue, 7 Oct 2014 14:42:32 +0000 (16:42 +0200)]
[IMP] various code cleanups

remove some old cruft

9 years ago[IMP] some cleanups in graph/kanban views
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.

9 years ago[FIX] make the view editor work
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.

9 years ago[IMP] add basic pivot support
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.

9 years ago[FIX] a few bugs in view_form/view_list
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...

9 years ago[IMP] integrate mail client actions with search view
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)

9 years ago[FIX] readd the google spreadsheet functionality
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)

9 years ago[FIX] make add to dashboard work
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

9 years ago[IMP] rewrite of search view/view manager
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.

9 years ago[IMP] graph view integration into view manager header
Géry Debongnie [Thu, 4 Sep 2014 13:39:14 +0000 (15:39 +0200)]
[IMP] graph view integration into view manager header

9 years ago[IMP] readd pager functionality to web client
Géry Debongnie [Thu, 4 Sep 2014 11:45:52 +0000 (13:45 +0200)]
[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

9 years ago[FIX] fixes many issues with the various views
Géry Debongnie [Thu, 4 Sep 2014 08:12:52 +0000 (10:12 +0200)]
[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.

9 years ago[IMP] web client refactoring: action and view manager
Géry Debongnie [Wed, 20 Aug 2014 15:02:16 +0000 (17:02 +0200)]
[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

9 years ago[FIX] website_forum: respect karma when posting questions/answers/comments + more...
Olivier Dony [Mon, 20 Oct 2014 23:19:05 +0000 (01:19 +0200)]
[FIX] website_forum: respect karma when posting questions/answers/comments + more user-friendly errors

While posting new questions and answers the check
for karma limit was bypassed because it was using
super-user mode: use regular user instead.
Also improve the user feedback when karma level is
too low to perform some actions: post comment,
post question, post answer.
The usability in these cases still needs to be
improved.

9 years ago[FIX] {web,point_of_sale}: allow cross-origin access to company logo
Christophe Simonis [Mon, 20 Oct 2014 18:14:36 +0000 (20:14 +0200)]
[FIX] {web,point_of_sale}: allow cross-origin access to company logo

9 years ago[FIX] website_sale: image doesn't change when the user select a product (for product...
Denis Ledoux [Mon, 20 Oct 2014 16:40:06 +0000 (18:40 +0200)]
[FIX] website_sale: image doesn't change when the user select a product (for product variant list). website_sale_options: image dones't change in modal with the selection

9 years ago[FIX] account: default product taxes on product.template
Denis Ledoux [Mon, 20 Oct 2014 15:50:22 +0000 (17:50 +0200)]
[FIX] account: default product taxes on product.template

As product.template is now most commonly used than product.product

This is related to fix 96dd8bf

9 years ago[FIX] (website_)hr_recruitment: correct version of
Richard Mathot [Mon, 20 Oct 2014 15:35:33 +0000 (17:35 +0200)]
[FIX] (website_)hr_recruitment: correct version of
659db669aae1ae58f2b416e3681b66269ed7521d

9 years ago[FIX] auth_signup: refresh is no longer needed with the new api
Denis Ledoux [Mon, 20 Oct 2014 15:06:30 +0000 (17:06 +0200)]
[FIX] auth_signup: refresh is no longer needed with the new api

Besides, it leads to a invalidation of the cache, which is not needed here.

9 years ago[FIX] res_partner: add parent_name related field
Julien Legros [Mon, 20 Oct 2014 13:41:52 +0000 (15:41 +0200)]
[FIX] res_partner: add parent_name related field

In some cases (e.g. with record rules), the name_get might not have access
to the parent name. Therefore a parent_name related field solves the
issue (as it read with as superuser).

9 years ago[FIX] account: the partner of a bank account can only be a company or an individual...
Arthur Maniet [Tue, 23 Sep 2014 09:47:34 +0000 (11:47 +0200)]
[FIX] account: the partner of a bank account can only be a company or an individual not related to a company

9 years ago[IMP] account: reconciliation widget: load list of move lines in a single RPC call...
Arthur Maniet [Fri, 19 Sep 2014 14:25:18 +0000 (16:25 +0200)]
[IMP] account: reconciliation widget: load list of move lines in a single RPC call with limit set. It drastically improves performances on big databases.
[FIX] account: reconciliation widget: for reconciliations with no partner, allow to select move lines from any partner and apply global move lines exclusion.

9 years ago[FIX] account: bank statement reconciliation incorrect rounding
Arthur Maniet [Fri, 3 Oct 2014 13:25:53 +0000 (15:25 +0200)]
[FIX] account: bank statement reconciliation incorrect rounding

9 years ago[FIX] l10n_fr_hr_payroll: bad copy-paste in 69c1333
Martin Trigaux [Mon, 20 Oct 2014 08:48:19 +0000 (10:48 +0200)]
[FIX] l10n_fr_hr_payroll: bad copy-paste in 69c1333

9 years ago[FIX] l10n_fr_hr_payroll: report "Fiche de paye"
rmu-odoo [Wed, 15 Oct 2014 18:53:03 +0000 (00:23 +0530)]
[FIX] l10n_fr_hr_payroll: report "Fiche de paye"

Avoids getting False for the field end_date (Sortie) in case of no end date specified on the contract. opw 614624

9 years ago[FIX] website_sale: trigger the change event on the right node
Simon Lejeune [Fri, 17 Oct 2014 15:04:09 +0000 (17:04 +0200)]
[FIX] website_sale: trigger the change event on the right node

9 years ago[ADD] doc: basic index page instead of something completely blank
Xavier Morel [Mon, 20 Oct 2014 08:00:20 +0000 (10:00 +0200)]
[ADD] doc: basic index page instead of something completely blank

9 years ago[FIX] account_followup: do no duplicate partner's account.move.line
dhr-odoo [Tue, 14 Oct 2014 07:02:34 +0000 (12:32 +0530)]
[FIX] account_followup: do no duplicate partner's account.move.line

Duplicating a partner should not duplicate the content of the unreconciled_aml_ids field.

9 years agoMerge pull request #3160 from odoo-dev/8.0-wmspricecorr-jco
Josse Colpaert [Fri, 17 Oct 2014 15:40:43 +0000 (17:40 +0200)]
Merge pull request #3160 from odoo-dev/8.0-wmspricecorr-jco

[FIX] Correct price correction courtesy of richard_willowit #2983 #2985

9 years ago[FIX] Correct price correction courtesy of richard_willowit #2983 #2985
Josse Colpaert [Fri, 17 Oct 2014 12:10:06 +0000 (14:10 +0200)]
[FIX] Correct price correction courtesy of richard_willowit #2983 #2985

9 years ago[FIX] project: Overpassed Deadline computation
Martin Trigaux [Fri, 17 Oct 2014 14:31:30 +0000 (16:31 +0200)]
[FIX] project: Overpassed Deadline computation

The field delay_endings_days represents the number of days since the deadline.
This field was using the write_date instead of now to compute it and was using the absolute value (so project in advance would also get overdue days

9 years ago[FIX] mrp: traceability of production
kevin wang [Fri, 17 Oct 2014 14:16:28 +0000 (16:16 +0200)]
[FIX] mrp: traceability of production

When consuming product, the main_production_move is set as the source of production (used for consumed_for parameter)
However the method action_consume now (since 661a204) returns the new moves (when spliting) instead of the original one. This means that the tracebility would fail.

9 years ago[IMP] point_of_sale: add constraint on company
Martin Trigaux [Fri, 17 Oct 2014 12:22:13 +0000 (14:22 +0200)]
[IMP] point_of_sale: add constraint on company

Using a payment method belonging to another company will raise errors when closing the session.
To avoid being stuck at session closing, forbid to create a POS using a journal of another company.

9 years ago[FIX] Do not lose session.db on authentication error
Fabien Meghazi [Fri, 17 Oct 2014 15:09:01 +0000 (17:09 +0200)]
[FIX] Do not lose session.db on authentication error

9 years ago[IMP] [ADD] event: mail schedulign system.
Mahendra barad [Mon, 11 Aug 2014 13:38:37 +0000 (19:08 +0530)]
[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.

9 years ago[FIX] website: use dom element instead of jquery class to click input file
Denis Ledoux [Fri, 17 Oct 2014 13:29:00 +0000 (15:29 +0200)]
[FIX] website: use dom element instead of jquery class to click input file

For some reasons, the browser will prevent to open the system file browser when clicking the input file with javascript using the jquery class element, but it works when using the standard js dom element.

9 years ago[FIX] website_sale: no need to specific to a selection field that it is of type char
Denis Ledoux [Fri, 17 Oct 2014 12:47:26 +0000 (14:47 +0200)]
[FIX] website_sale: no need to specific to a selection field that it is of type char

Besides, if set, the field will appear as a simple char field in the form view & editable lists
+ADD the type in the editable view

9 years agoMerge pull request #3148 from odoo-dev/8.0-wmsmrporderpoint-jco
Josse Colpaert [Fri, 17 Oct 2014 11:21:58 +0000 (13:21 +0200)]
Merge pull request #3148 from odoo-dev/8.0-wmsmrporderpoint-jco

8.0 wmsmrporderpoint jco

9 years ago[FIX] Byproducts should not start in waiting state
Josse Colpaert [Fri, 17 Oct 2014 08:40:58 +0000 (10:40 +0200)]
[FIX] Byproducts should not start in waiting state

9 years ago[FIX] Produce line should be connected to its procurement
Josse Colpaert [Thu, 16 Oct 2014 08:21:07 +0000 (10:21 +0200)]
[FIX] Produce line should be connected to its procurement

[FIX] Better to work through the production_id of the procurement

9 years ago[IMP] bank_statement_import: account invoice onboarding tip hightlight bank statement...
Jay Patel [Tue, 9 Sep 2014 12:46:53 +0000 (18:16 +0530)]
[IMP] bank_statement_import: account invoice onboarding tip hightlight bank statement(import)(Replace to old tip).

9 years ago[FIX] account: use float_compare instead of just <>
Denis Ledoux [Fri, 17 Oct 2014 08:58:06 +0000 (10:58 +0200)]
[FIX] account: use float_compare instead of just <>

9 years ago[FIX] website: fix snippet banner, else when a video is dropped (using a div), the...
Jeremy Kersten [Thu, 16 Oct 2014 20:15:35 +0000 (22:15 +0200)]
[FIX] website: fix snippet banner, else when a video is dropped (using a div), the video is moved outside of the span col-md-6 by the editor and so become invisble

9 years ago[FIX] website: prevent editing contact address with qweb contact widget
Denis Ledoux [Thu, 16 Oct 2014 16:38:20 +0000 (18:38 +0200)]
[FIX] website: prevent editing contact address with qweb contact widget

Because, currently, it copy the whole address in the contact name. The address is therefore duplicated

9 years ago[MERGE] forward port of branch 8.0 up to 2b192be
Christophe Simonis [Thu, 16 Oct 2014 14:04:39 +0000 (16:04 +0200)]
[MERGE] forward port of branch 8.0 up to 2b192be

9 years ago[FIX] report: do not fail if PDF cannot be saved as attachment due to AccessError
Christophe Simonis [Thu, 16 Oct 2014 13:50:26 +0000 (15:50 +0200)]
[FIX] report: do not fail if PDF cannot be saved as attachment due to AccessError

9 years agoMerge pull request #3121 from odoo-dev/8.0-bank-statement-reconcile-extract-domain...
Arthur Maniet [Thu, 16 Oct 2014 12:13:42 +0000 (14:13 +0200)]
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

9 years ago[REF] Extract the domain generation for get_move_lines_for_reconciliation and get_rec...
Guewen Baconnier [Fri, 10 Oct 2014 12:16:12 +0000 (14:16 +0200)]
[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

9 years ago[FIX] mail: set the parent_id to the first message of type email
Denis Ledoux [Thu, 16 Oct 2014 12:07:38 +0000 (14:07 +0200)]
[FIX] mail: set the parent_id to the first message of type email

And fallback of any type if there is none of type email

This fix allow the communication between two mail thread from two different Odoo servers having message creation subtypes, like project issue or crm lead

9 years ago[IMP] test_new_api, test_inherit: improve code of tests
Raphael Collet [Thu, 16 Oct 2014 10:32:23 +0000 (12:32 +0200)]
[IMP] test_new_api, test_inherit: improve code of tests

9 years ago[FIX] event: convert related country_id field to compute field
Denis Ledoux [Thu, 16 Oct 2014 09:14:39 +0000 (11:14 +0200)]
[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

9 years ago[FIX] sale: translate advance message on advance invoice
Simon Lejeune [Mon, 13 Oct 2014 15:07:13 +0000 (17:07 +0200)]
[FIX] sale: translate advance message on advance invoice

9 years ago[ADD] QWeb2: add support for operation='attributes' in a t-extend
Fabien Meghazi [Wed, 15 Oct 2014 15:45:37 +0000 (17:45 +0200)]
[ADD] QWeb2: add support for operation='attributes' in a t-extend

Same syntax as server's position='attributes' on view inheritance

9 years ago[IMP] expression.py: add a check to forbid records in domains
Raphael Collet [Wed, 15 Oct 2014 10:29:33 +0000 (12:29 +0200)]
[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.

9 years ago[FIX] product: price_rule_get_multi returns a dict with a dict with tuples
Denis Ledoux [Wed, 15 Oct 2014 16:52:38 +0000 (18:52 +0200)]
[FIX] product: price_rule_get_multi returns a dict with a dict with tuples

9 years ago[MERGE] forward port of branch saas-3 up to 6feb5f7
Christophe Simonis [Wed, 15 Oct 2014 16:00:15 +0000 (18:00 +0200)]
[MERGE] forward port of branch saas-3 up to 6feb5f7

9 years ago[FIX] website_crm: remove useless request from params, anyway it's a global var
Jeremy Kersten [Wed, 15 Oct 2014 15:54:25 +0000 (17:54 +0200)]
[FIX] website_crm: remove useless request from params, anyway it's a global var

9 years ago[FIX] config: fix parsing of geoip db paramater, rename command-line option for consi...
Olivier Dony [Wed, 15 Oct 2014 15:26:54 +0000 (17:26 +0200)]
[FIX] config: fix parsing of geoip db paramater, rename command-line option for consistency

9 years ago[FIX] product_visible_discount: fix display of unit price according to rule base...
David Monjoie [Wed, 15 Oct 2014 12:51:22 +0000 (14:51 +0200)]
[FIX] product_visible_discount: fix display of unit price according to rule base price like in 7.0 as requested by gab

9 years ago[FIX] perview button visible
Fabien Pinckaers [Wed, 15 Oct 2014 13:24:32 +0000 (15:24 +0200)]
[FIX] perview button visible

9 years ago[FIX] purchase_requisition: change active_id to tender_id in widget context
Cedric Snauwaert [Wed, 15 Oct 2014 12:47:09 +0000 (14:47 +0200)]
[FIX] purchase_requisition: change active_id to tender_id in widget context

this is due to commit 6ed774de614a2977a8d186a14ef2cd45a76e7a2e and a37bad205b13cec4f19f8e84e28801278e3e36ca 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

9 years ago[FIX] crm_lead: don't rewrite user_id. Value has not been updated so it's useless...
Jeremy Kersten [Wed, 15 Oct 2014 12:18:37 +0000 (14:18 +0200)]
[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.

9 years ago[IMP] ir_qweb: remove the option 'only_date' introducted in cefc9ad8e3e3b0a14804da6c4...
Jeremy Kersten [Fri, 10 Oct 2014 14:20:10 +0000 (16:20 +0200)]
[IMP] ir_qweb: remove the option 'only_date' introducted in cefc9ad8e3e3b0a14804da6c40bfd71e16d4175a. 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'}"/>

9 years ago[FIX] models: simplify partial setup of fields, let it crash silently
Raphael Collet [Tue, 14 Oct 2014 15:34:30 +0000 (17:34 +0200)]
[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.

9 years ago[MERGE] forward port of branch 7.0 up to 98c6e7c
Denis Ledoux [Wed, 15 Oct 2014 07:44:31 +0000 (09:44 +0200)]
[MERGE] forward port of branch 7.0 up to 98c6e7c

9 years ago[IMP] sale,warning: usability
Randhir Mayatra [Tue, 14 Oct 2014 14:03:03 +0000 (16:03 +0200)]
[IMP] sale,warning: usability

9 years ago[FIX] web: cherry-pick of 893e4268650ddd517e3044f41c582fd92de6edfe & 61207f3f4d9206d4...
Denis Ledoux [Wed, 15 Oct 2014 07:42:59 +0000 (09:42 +0200)]
[FIX] web: cherry-pick of 893e4268650ddd517e3044f41c582fd92de6edfe & 61207f3f4d9206d4c1a3e484eb89f09d2258977a

9 years agoMerge pull request #3081 from odoo-dev/8.0-wmsprocmoveloc-jco
Josse Colpaert [Tue, 14 Oct 2014 21:22:48 +0000 (23:22 +0200)]
Merge pull request #3081 from odoo-dev/8.0-wmsprocmoveloc-jco

[FIX] Currency_id on purchase requisition + move created from procuremen...

9 years ago[FIX] Currency_id on purchase requisition + move created from procurement should...
Josse Colpaert [Tue, 14 Oct 2014 19:18:06 +0000 (21:18 +0200)]
[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

9 years ago[FIX] product: correct name_get for products with resellers.
Christophe Simonis [Tue, 14 Oct 2014 15:04:19 +0000 (17:04 +0200)]
[FIX] product: correct name_get for products with resellers.

Error introduced during forward-port commit 14f3085

9 years ago[FIX] web: even if there is no view, the field has to be rendered
Denis Ledoux [Tue, 14 Oct 2014 14:58:25 +0000 (16:58 +0200)]
[FIX] web: even if there is no view, the field has to be rendered

This is related to ÿ07f3f4d9206d4c1a3e484eb89f09d2258977a

9 years ago[FIX] mail_thread: allow to pass mail_track_log_only in the context to remove the...
Jeremy Kersten [Tue, 14 Oct 2014 14:32:09 +0000 (16:32 +0200)]
[FIX] mail_thread: allow to pass mail_track_log_only in the context to remove the subtype of the notification. By this way, no mails will be sent because partners_to_notify will be empty.

9 years ago[FIX] web: push render value deferred only if the field is in a form view
Denis Ledoux [Tue, 14 Oct 2014 14:28:15 +0000 (16:28 +0200)]
[FIX] web: push render value deferred only if the field is in a form view

9 years ago[FIX] website: editor: preserve label and color for link buttons targeting a page
Olivier Dony [Tue, 14 Oct 2014 14:27:43 +0000 (16:27 +0200)]
[FIX] website: editor: preserve label and color for link buttons targeting a page

When selecting a page target rather than a static
URL the style and label information were ignored/lost.

9 years ago[FIX] implementation of t-call's 0-index in qweb-js
Xavier Morel [Tue, 14 Oct 2014 14:17:04 +0000 (16:17 +0200)]
[FIX] implementation of t-call's 0-index in qweb-js

Had expected regularity, had not noticed the Python version is really an
ignoble hack where the string "0" (exactly) is interpreted in a specific
manner when used in t-raw and format strings, *and nowhere else*.

Had special-cased the expression everywhere which broke e.g.
<t-set="xxx" t-value="0"/>. Reproduce Python behavior more closely,
and strongly consider swapping out both for something different e.g.
[[content]] or something like that, which doesn't cause problems in
Python but doesn't have to be so specially cased either.

9 years ago[FIX] models: do not look up the registry class when building cls._fields
Raphael Collet [Tue, 14 Oct 2014 13:47:13 +0000 (15:47 +0200)]
[FIX] models: do not look up the registry class when building cls._fields

9 years agoMerge pull request #3001 from Bubbles-IT/8.0-fix-pos-tax-label
Frédéric Van der Essen [Tue, 14 Oct 2014 13:52:46 +0000 (15:52 +0200)]
Merge pull request #3001 from Bubbles-IT/8.0-fix-pos-tax-label

[FIX] point_of_sale: printing of tax name on hardware was missing name

9 years ago[MERGE] forward port of branch saas-3 up to db75994
Christophe Simonis [Tue, 14 Oct 2014 13:13:14 +0000 (15:13 +0200)]
[MERGE] forward port of branch saas-3 up to db75994