odoo/odoo.git
9 years ago[MERGE] forward port of branch saas-3 up to 309ca4f
Christophe Simonis [Fri, 24 Oct 2014 15:25:19 +0000 (17:25 +0200)]
[MERGE] forward port of branch saas-3 up to 309ca4f

9 years ago[ADD] web: add a route '/web/dbredirect' to ensure the connection to the right databa...
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.

9 years ago[MERGE] forward port of branch 7.0 up to d2fd05e
Christophe Simonis [Fri, 24 Oct 2014 14:52:10 +0000 (16:52 +0200)]
[MERGE] forward port of branch 7.0 up to d2fd05e

9 years ago[IMP] config: Test that the config file is readable
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

9 years ago[FIX] Report: use ir.config 'report.url' key as base url if it exists
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

9 years ago[FIX] When using "--stop-after-init", set the return code correctly. A non zero retur...
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

9 years ago[FIX] web: avoid incoherent actual_mode after refresh
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)

9 years ago[IMP] res_country: add relation from country to group_country. The purpose of this...
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')

9 years ago[FIX] website_event_sale: display the discounted price in website.
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

9 years ago[FIX] website_mail: connected users can't follow a website document
Christophe Matthieu [Fri, 24 Oct 2014 09:33:15 +0000 (11:33 +0200)]
[FIX] website_mail: connected users can't follow a website document

9 years ago[FIX] Render of report shouldn't update context
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

9 years ago[MERGE] forward port of branch saas-3 up to 2c1bcfb
Christophe Simonis [Thu, 23 Oct 2014 14:52:37 +0000 (16:52 +0200)]
[MERGE] forward port of branch saas-3 up to 2c1bcfb

9 years ago[FIX] calendar: avoid to pass ids as string to unlink and write methods
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)

9 years ago[FIX] account: tax report: translate account.tax.code according to context
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.

9 years ago[FIX] website_sale: check the first product variant radio button in variants list...
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

9 years ago[FIX] crm_partner_assign: colors only if there is a stage on the lead
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

9 years ago[FIX] web: remove enforceFocus method from bootstrap modal since it is conflicting...
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.

9 years ago[MERGE] forward port of branch 7.0 up to 8e76938
Julien Legros [Thu, 23 Oct 2014 12:31:06 +0000 (14:31 +0200)]
[MERGE] forward port of branch 7.0 up to 8e76938

9 years ago[FIX] website_sale: right number of products in the page
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.

9 years ago[FIX] web: correct display of dropdown arrows in ie11
Julien Legros [Thu, 23 Oct 2014 11:45:11 +0000 (13:45 +0200)]
[FIX] web: correct display of dropdown arrows in ie11

9 years ago[MERGE] forward port of branch saas-3 up to c89d1a0
Christophe Simonis [Thu, 23 Oct 2014 11:08:44 +0000 (13:08 +0200)]
[MERGE] forward port of branch saas-3 up to c89d1a0

9 years ago[IMP] website: google maps url
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)

9 years ago[FIX] remove wrong filter (account)
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.

9 years ago[IMP] [TEST] website_forum: security fixes + tests
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

9 years ago[IMP] website_mail: actually render the html body of the template instead of escaping it
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

9 years ago[IMP] fields: remove unused imports
Raphael Collet [Thu, 23 Oct 2014 08:35:27 +0000 (10:35 +0200)]
[IMP] fields: remove unused imports

9 years ago[IMP] fields: infer required=True on related fields
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.

9 years ago[IMP] fields: initialized computed fields to a null value instead of a failed one
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.

9 years ago[FIX] project: use utc timezone in report
Martin Trigaux [Tue, 21 Oct 2014 13:15:50 +0000 (15:15 +0200)]
[FIX] project: use utc timezone in report

9 years ago[MERGE] forward port of branch 7.0 up to b4d3701
Denis Ledoux [Wed, 22 Oct 2014 17:29:18 +0000 (19:29 +0200)]
[MERGE] forward port of branch 7.0 up to b4d3701

9 years ago[FIX] base: typo during forward port 0e4216361bf13cc0feb6f8d8200af80f343d066d
Denis Ledoux [Wed, 22 Oct 2014 17:27:00 +0000 (19:27 +0200)]
[FIX] base: typo during forward port 0e4216361bf13cc0feb6f8d8200af80f343d066d

9 years ago[MERGE] forward port of branch 7.0 up to 3a0af6a
Denis Ledoux [Wed, 22 Oct 2014 17:26:27 +0000 (19:26 +0200)]
[MERGE] forward port of branch 7.0 up to 3a0af6a

9 years ago[FIX] account_followup: use %s string formatting to avoid concat None values
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

9 years ago[IMP] fields: reuse column objects when possible, instead of recreating them
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.

9 years ago[FIX] ir_action: update context to get the real binary, else we have a traceback...
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

9 years agoMerge pull request #3235 from odoo-dev/8.0-doc-website-template-optional-chm
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.

9 years ago[FIX] product.uom: safer handling of factor/factor_inv in UI
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.

9 years ago[FIX] product: remove digits_precision from uom factor 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.

9 years ago[FIX] base: support float rounding with rounding_method=UP (ceiling)
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.

9 years ago[FIX] website_forum: safer conditions in UI for blockng post buttons
Olivier Dony [Wed, 22 Oct 2014 11:48:19 +0000 (13:48 +0200)]
[FIX] website_forum: safer conditions in UI for blockng post buttons

9 years ago[FIX] mail: mail_alias conditionally made unique on write
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)

9 years ago[FIX] fields: selection, do not try to translate label if label is empty
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

9 years ago[FIX] mail: limit messages in chatters
Richard Mathot [Tue, 21 Oct 2014 08:51:31 +0000 (10:51 +0200)]
[FIX] mail: limit messages in chatters

9 years ago[FIX] doc website: application field does not exists on ir.ui.view. The optional...
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

9 years ago[FIX] sale: force condtion True for workflow activity trans_ship_ship_except
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

9 years ago[FIX] stock: inverse function field should write the given value and not current
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

9 years ago[FIX] move google analytics js snippet at the bottom (Fixes #3222)
Fabien Meghazi [Tue, 21 Oct 2014 15:14:23 +0000 (17:14 +0200)]
[FIX] move google analytics js snippet at the bottom (Fixes #3222)

9 years ago[FIX] project: read access for project user
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

9 years ago[IMP] project: convert file CRLF to Unix end of line
Martin Trigaux [Tue, 21 Oct 2014 14:54:56 +0000 (16:54 +0200)]
[IMP] project: convert file CRLF to Unix end of line

9 years ago[FIX] website_certification: no need to set a group to acl if the data is public
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

9 years ago[FIX] report: page numbering rml reports
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

9 years ago[IMP] web_graph: renamed Quantity field into Count to avoid ambiguities
David Monjoie [Tue, 21 Oct 2014 12:57:52 +0000 (14:57 +0200)]
[IMP] web_graph: renamed Quantity field into Count to avoid ambiguities

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[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[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] 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[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[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[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] 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.