odoo/odoo.git
9 years ago[FIX] payment_paypal: add company name in paypal item name
Denis Ledoux [Mon, 3 Nov 2014 14:13:38 +0000 (15:13 +0100)]
[FIX] payment_paypal: add company name in paypal item name

So the company name is displayed in the paypal payment form

9 years ago[MERGE] forward port of branch 7.0 up to 43db726
Christophe Simonis [Wed, 29 Oct 2014 18:05:43 +0000 (19:05 +0100)]
[MERGE] forward port of branch 7.0 up to 43db726

9 years ago[FIX] web_calendar: cast the id into int. When you open a form view in a popup via...
Jeremy Kersten [Wed, 29 Oct 2014 16:43:44 +0000 (17:43 +0100)]
[FIX] web_calendar: cast the id into int. When you open a form view in a popup via the attr 'event_open_popup', in some cases the id is a string and so the popup is empty... FIX #545  PR #551

9 years ago[FIX] stock: UoS quantity in stock.picking
Mohammad Alhashash [Tue, 21 Oct 2014 19:12:58 +0000 (21:12 +0200)]
[FIX] stock: UoS quantity in stock.picking

Implements the UoS TODO items on stock.picking.do_partial() to fix #1432.
Add a new method _compute_uos_qty() on product.product to computes
product's invoicing quantity in UoS from quantity in UoM.

The created invoice will use the product_uos of the stock.move, meaning keeping
the quantity specified on the partial picking and the unit of measure of the
original stock.move (e.g. recieving 1 dozen from a 12 unit picking should either
get uos=dozen, uos_qty=1 or uos=unit, uos_qty=12, not a mix of both)

Fixes #1432, opw 611479

9 years ago[MERGE] forward port of branch 7.0 up to f4870f8
Denis Ledoux [Tue, 28 Oct 2014 16:58:50 +0000 (17:58 +0100)]
[MERGE] forward port of branch 7.0 up to f4870f8

9 years ago[FIX] sale: when invoicing on lines, set order in progress when all lines invoiced
Denis Ledoux [Tue, 28 Oct 2014 16:57:08 +0000 (17:57 +0100)]
[FIX] sale: when invoicing on lines, set order in progress when all lines invoiced

This fix is related to rev. b1df5aab6e529e9667bb97c96c9196e1a4e5e0ce

9 years ago[MERGE] forward port of branch 7.0 up to b1df5aa
Denis Ledoux [Tue, 28 Oct 2014 14:37:11 +0000 (15:37 +0100)]
[MERGE] forward port of branch 7.0 up to b1df5aa

9 years ago[FIX] sale: trigger all_lines signal when all lines are invoiced
Julien Legros [Tue, 28 Oct 2014 14:12:53 +0000 (15:12 +0100)]
[FIX] sale: trigger all_lines signal when all lines are invoiced

9 years agoRevert "[FIX] mail: read more show original message"
Denis Ledoux [Tue, 28 Oct 2014 12:43:25 +0000 (13:43 +0100)]
Revert "[FIX] mail: read more show original message"

This reverts commit 0790682296e43989e4e232189009c3ba380e32ba.

This fix is not yet ready. See PR #3295

9 years ago[MERGE] forward port of branch 7.0 up to 00ec786
Denis Ledoux [Tue, 28 Oct 2014 12:40:17 +0000 (13:40 +0100)]
[MERGE] forward port of branch 7.0 up to 00ec786

9 years ago[FIX] account: partner balance general totals
Denis Ledoux [Tue, 28 Oct 2014 12:18:22 +0000 (13:18 +0100)]
[FIX] account: partner balance general totals

General totals were not computed at all, due to the condition "if not self.ids" which was always true as self.ids wasn't set.

Besides, a parameter allows to display only partner with balance greater than 0, which was completely ignored by the totals computation methods: The totals always included all partners, even those having balance equals to 0

9 years ago[FIX] hr_timesheet_invoice: warning in report generation
Antonio Esposito [Mon, 27 Oct 2014 12:00:18 +0000 (13:00 +0100)]
[FIX] hr_timesheet_invoice: warning in report generation

When generating the report 'Timesheet Profit', got a warning "The domain term '('user_id', '=', [...])' should use the 'in' or 'not in' operator."
This warning is due to the use of the '=' operator to compare the field 'user_id' while the reports sends a list of ids.
Fallback to still accept a single id in case of customised reports.

9 years ago[FIX] sale_margin: cost price uom
Martin Trigaux [Mon, 27 Oct 2014 17:02:59 +0000 (18:02 +0100)]
[FIX] sale_margin: cost price uom

When computing the cost price to display, take the uom into account. The cost of 1 Unit or 1 dozen should not be the same. opw 599727

9 years ago[FIX] stock: forbid adding new lines when processing picking
Ravi Gohil [Thu, 9 Oct 2014 11:21:29 +0000 (16:51 +0530)]
[FIX] stock: forbid adding new lines when processing picking

Source and destination locations are required and not displayed in the form view.
Adding new items when recieving a picking can not be easily guessed as we can put different locations for each line, using default locations may not be the expected result.
Instead should modify the original picking or create new one.
Fixes #2074, opw 612768

9 years ago[FIX] product_visible_discount: use on_change result for product value
Martin Trigaux [Mon, 27 Oct 2014 12:45:53 +0000 (13:45 +0100)]
[FIX] product_visible_discount: use on_change result for product value

At the end of the onchange call product_id_change, the uom may have changed (e.g. if product in different category).
To compute the quantity, we need to use the new uom and not the first one (that may be Unit, default value)

9 years ago[FIX] account: limit search for fields_view_get to one result
Denis Ledoux [Mon, 27 Oct 2014 12:23:16 +0000 (13:23 +0100)]
[FIX] account: limit search for fields_view_get to one result

+ use ir.model.data get_object_reference method for better performance (cached result)

opw-616616

9 years ago[FIX] mail: read more show original message
Denis Ledoux [Sat, 25 Oct 2014 12:26:52 +0000 (14:26 +0200)]
[FIX] mail: read more show original message

Instead of html cleaned html, to allow display blockquotes

opw-614729

9 years ago[FIX] web: cors rpc calls were missing the session cookie, resulting in new sessions...
Frederic van der Essen [Mon, 27 Oct 2014 11:28:47 +0000 (12:28 +0100)]
[FIX] web: cors rpc calls were missing the session cookie, resulting in new sessions being created for every call

9 years agoForward port of branch 7.0 up to rev 8abd003
Martin Trigaux [Mon, 27 Oct 2014 11:03:01 +0000 (12:03 +0100)]
Forward port of branch 7.0 up to rev 8abd003

9 years ago[FIX] product: reference in test
Martin Trigaux [Mon, 27 Oct 2014 10:41:23 +0000 (11:41 +0100)]
[FIX] product: reference in test

9 years agoForward port of branch 7.0 up to 42bf0a5
Martin Trigaux [Mon, 27 Oct 2014 10:21:41 +0000 (11:21 +0100)]
Forward port of branch 7.0 up to 42bf0a5

9 years ago[FIX] product_visible_discount: discount with different unit of measures
Martin Trigaux [Fri, 24 Oct 2014 14:07:55 +0000 (16:07 +0200)]
[FIX] product_visible_discount: discount with different unit of measures

The computation of the price without pricelist should take care of the unit of measure.
e.g. if computing discount for objects in dozen (on a product with price in unit), returned unit price should be (price*12) where 12 is the factor to go from dozen to unit.
Otherwise the compared prices (with and without pricelist) would not use the same unit of measure and the comparaison would be inconsistent. (opw 599727)

9 years ago[FIX] product: pricelist, uom and price_surcharge
Martin Trigaux [Thu, 23 Oct 2014 15:14:19 +0000 (17:14 +0200)]
[FIX] product: pricelist, uom and price_surcharge

The price_surcharge attribute must be computed based on the reference unit of measure (divided by the factor).
This is to make sure than 12 units and 1 dozen have the same price after pricelist computation (opw 599727).

Added test checking the correctness of pricelist computation based on unit of measures.

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] 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] 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] 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[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] 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 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[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 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] 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] 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 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[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] 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] 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] 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 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[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[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[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 ago[FIX] website_quote: compare untaxed amounts in case of discount
Julien Legros [Tue, 14 Oct 2014 12:43:54 +0000 (14:43 +0200)]
[FIX] website_quote: compare untaxed amounts in case of discount

9 years ago[MERGE] forward port of branch 7.0 up to 75d3ea6
Christophe Simonis [Tue, 14 Oct 2014 12:36:45 +0000 (14:36 +0200)]
[MERGE] forward port of branch 7.0 up to 75d3ea6

9 years ago[FIX] point_of_sale: fixed display of untaxed amount in sales lines report
David Monjoie [Mon, 13 Oct 2014 14:42:53 +0000 (16:42 +0200)]
[FIX] point_of_sale: fixed display of untaxed amount in sales lines report

9 years ago[FIX] email_template: do not try to add user signature if none set
Denis Ledoux [Tue, 14 Oct 2014 11:41:52 +0000 (13:41 +0200)]
[FIX] email_template: do not try to add user signature if none set

append_content_to_html expects two strings. If the user has no signature, it returns user.signature returns False

9 years ago[FIX] web: wait for deferreds when actualizing mode
Denis Ledoux [Mon, 13 Oct 2014 16:24:57 +0000 (18:24 +0200)]
[FIX] web: wait for deferreds when actualizing mode

In edit mode, in a *2many with many2many_tags, when adding a new tag when none was set, discarding the form let the new tags displayed while it shouldn't (only a display issue, the tag wasn't added in database)

Fixes #2926

9 years ago[FIX] website_membership: crash when member has no country
Denis Ledoux [Mon, 13 Oct 2014 11:08:36 +0000 (13:08 +0200)]
[FIX] website_membership: crash when member has no country

in memberships countries list

9 years ago[MERGE] Forward-port 7.0 up to 1b49a87
Olivier Dony [Fri, 10 Oct 2014 17:21:18 +0000 (19:21 +0200)]
[MERGE] Forward-port 7.0 up to 1b49a87

9 years ago[FIX] ir.mail.server: restore parsing of multiple RFC2822 addresses including non...
Olivier Dony [Fri, 10 Oct 2014 15:04:03 +0000 (17:04 +0200)]
[FIX] ir.mail.server: restore parsing of multiple RFC2822 addresses including non-ASCII chars

Rev f2cf6ced1 modified RFC2822 parsing in order to better support
unicode characters inside the Name part of an address header.
However the patch broke handling of multiple addresses (comma
separated) - silently discarding all recipients except the
first one, as soon as any non-ASCII character was present.

This patch restores the functionality while preserving the
fix from f2cf6ced1, and simplifies the code using email.utils
utility functions.

Fixes (again) lp:1272610, OPW 607683

9 years ago[FIX] account_invoice: using has_group to determine if user has group group_supplier_...
Denis Ledoux [Thu, 9 Oct 2014 16:56:21 +0000 (18:56 +0200)]
[FIX] account_invoice: using has_group to determine if user has group group_supplier_inv_check_total

has_group do not care about the fact res.groups is access restricted

9 years ago[FIX] res.users: exactly match login when operator in ilike, equal
Denis Ledoux [Thu, 9 Oct 2014 16:50:45 +0000 (18:50 +0200)]
[FIX] res.users: exactly match login when operator in ilike, equal

9 years ago[IMP] mail: parsing emails with several html parts
Martin Trigaux [Thu, 9 Oct 2014 07:14:22 +0000 (09:14 +0200)]
[IMP] mail: parsing emails with several html parts

If an email contains several text/html parts inside a multipart email, the previous code was only keeping the last content part.
The Content-Type: multipart/mixed allows several independent part (RFC1341 7.2.2), so two html is technically valid.
With this patch, the two parts are concatenated. (opw 614755)

Modify append_content_to_html regex to make sure the regex keeps the content of the html instead of removing it.
e.g.: "123 <html> 456 </html> 789" used to be stripped to "123  789" while we expect "123 456 789"

9 years ago[MERGE] forward port of branch 7.0 up to 03df412f
Denis Ledoux [Tue, 7 Oct 2014 15:34:42 +0000 (17:34 +0200)]
[MERGE] forward port of branch 7.0 up to 03df412f

9 years ago[FIX] account: precision_get returns a number of digits
Denis Ledoux [Tue, 7 Oct 2014 15:25:56 +0000 (17:25 +0200)]
[FIX] account: precision_get returns a number of digits

In other words, it returnes a precision digits, not a precision rounding

9 years ago[FIX] ir.ui.view: creating custom views in backend did not compute view type
Olivier Dony [Tue, 7 Oct 2014 11:11:20 +0000 (13:11 +0200)]
[FIX] ir.ui.view: creating custom views in backend did not compute view type

When creating new records in backend all field values are
sent to the server, including empty fields.

9 years ago[FIX] gamification: on delete badge user, cascade
Denis Ledoux [Tue, 7 Oct 2014 08:24:57 +0000 (10:24 +0200)]
[FIX] gamification: on delete badge user, cascade

Otherwise, this is no more possible to delete users having badges

9 years ago[FIX] gamification: on delete goal user, cascade
Denis Ledoux [Tue, 7 Oct 2014 07:57:01 +0000 (09:57 +0200)]
[FIX] gamification: on delete goal user, cascade

Otherwise, this is no more possible to delete users with gamification goals

9 years ago[FIX] account: self typo
Ferdinand Gassauer [Mon, 6 Oct 2014 15:10:50 +0000 (17:10 +0200)]
[FIX] account: self typo

9 years ago[ADD] l10n_lu: abbreviated financial reports
Laetitia Gangloff [Thu, 19 Jun 2014 19:03:38 +0000 (21:03 +0200)]
[ADD] l10n_lu: abbreviated financial reports

Abbreviated version of the p&l and balance sheet reports

9 years ago[FIX] stock: groups mixup in views
Lionel Sausin (Numérigraphe) [Wed, 30 Jul 2014 08:46:59 +0000 (10:46 +0200)]
[FIX] stock: groups mixup in views

Use group_production_lot for serial options, group_stock_packaging for packaging, use group_tracking_lot for pallet/parcel
Groups are removed completly from the view for stock.tracking as they render the view useless.

Always display weights on the product form
They really have nothing to do with the logistic units and we don't have another group to restrict them to.

Fixes #1443

9 years ago[FIX] common.py: missing import
Martin Zlámal [Wed, 27 Aug 2014 14:58:55 +0000 (16:58 +0200)]
[FIX] common.py: missing import

It was not possible to call "about" function via remote control
(XML-RPC), because it contains string translation without import.

9 years ago[FIX] project: typo in protect.task create
Young Joy [Mon, 6 Oct 2014 03:27:55 +0000 (11:27 +0800)]
[FIX] project: typo in protect.task create

that typo will cause project task create error when set date_end before the time right now

9 years agoForward port of branch 7.0 up to b3485fb
Martin Trigaux [Fri, 3 Oct 2014 13:17:36 +0000 (15:17 +0200)]
Forward port of branch 7.0 up to b3485fb

9 years ago[FIX] event: double context
Martin Trigaux [Fri, 3 Oct 2014 13:15:12 +0000 (15:15 +0200)]
[FIX] event: double context

9 years ago[FIX] event: missing context
Martin Trigaux [Fri, 3 Oct 2014 13:12:04 +0000 (15:12 +0200)]
[FIX] event: missing context

This fixes some translation issues (templates not translated at event confirmation)

9 years ago[FIX] account_anglo_saxon: price difference, discount and taxes
Martin Trigaux [Mon, 29 Sep 2014 12:48:11 +0000 (14:48 +0200)]
[FIX] account_anglo_saxon: price difference, discount and taxes

When computing the price difference amount do not integrate the eventual discount and taxes included in the price.
Otherwise the total of the generated accounting enty would be higher than the total of the invoice. opw 611350

9 years ago[MERGE] forward port of branch 7.0 up to 9066da3
Denis Ledoux [Fri, 3 Oct 2014 10:13:07 +0000 (12:13 +0200)]
[MERGE] forward port of branch 7.0 up to 9066da3

9 years ago[FIX] point_of_sale: do not display False as currency if symbol is not set
Denis Ledoux [Fri, 3 Oct 2014 10:09:48 +0000 (12:09 +0200)]
[FIX] point_of_sale: do not display False as currency if symbol is not set

9 years ago[FIX] ir_translation: apply tools.ustr on the trad itself
Denis Ledoux [Fri, 3 Oct 2014 10:08:49 +0000 (12:08 +0200)]
[FIX] ir_translation: apply tools.ustr on the trad itself

tools.ustr(None) returns u'None', res[0] can be None.

9 years ago[MERGE] forward port of branch 7.0 up to 6d4e1cc
Denis Ledoux [Fri, 3 Oct 2014 09:22:47 +0000 (11:22 +0200)]
[MERGE] forward port of branch 7.0 up to 6d4e1cc

9 years ago[FIX] ir_translation: remove control characters from translations
Denis Ledoux [Fri, 3 Oct 2014 09:20:19 +0000 (11:20 +0200)]
[FIX] ir_translation: remove control characters from translations

This is possible that control characters (such as line returns) are inserted wrongly in translations
These should not influence on the web interface

9 years ago[FIX] account: return format of function field
dhr-odoo [Fri, 19 Sep 2014 09:38:46 +0000 (15:08 +0530)]
[FIX] account: return format of function field

When no result is found on the function field 'invoice' (account.move.line), instead of returning {move_id: (False, '')}, return {move_id: False} (expected for m2o fields)
Fixes #2138, opw 613096

9 years ago[FIX] mail: keep breadcrumb on click on chatter follower
Denis Ledoux [Thu, 2 Oct 2014 15:34:59 +0000 (17:34 +0200)]
[FIX] mail: keep breadcrumb on click on chatter follower

9 years ago[MERGE] forward port of branch 7.0 up to eb9113c
Denis Ledoux [Thu, 2 Oct 2014 13:34:02 +0000 (15:34 +0200)]
[MERGE] forward port of branch 7.0 up to eb9113c

9 years ago[FIX] ir_attachment: restrict access to orphan attachments to employees
Denis Ledoux [Thu, 2 Oct 2014 13:17:48 +0000 (15:17 +0200)]
[FIX] ir_attachment: restrict access to orphan attachments to employees

9 years ago[FIX] auth_oauth: fb and google oauth providers reset on general settings apply
Denis Ledoux [Thu, 2 Oct 2014 10:32:02 +0000 (12:32 +0200)]
[FIX] auth_oauth: fb and google oauth providers reset on general settings apply

 - The res_config.xml file was missing in the manifest (so couldn't check the use of FB and Google OAuth from the general settings)
 - The default value for these oauth configuration were not set

9 years ago[FIX] account_analytic_analysis: invoiced field takes customer invoices only
Denis Ledoux [Thu, 2 Oct 2014 09:52:06 +0000 (11:52 +0200)]
[FIX] account_analytic_analysis: invoiced field takes customer invoices only

Besides, it subtracts customer invoices with customer refund invoices

9 years ago[IMP] product: name_get matching on commercial_partner_id for suppliers
Martin Trigaux [Thu, 2 Oct 2014 08:12:51 +0000 (10:12 +0200)]
[IMP] product: name_get matching on commercial_partner_id for suppliers

The name_get of a product will use some information (e.g. default_code) based on the supplier.
The matching of the supplier should use the commercial_partner_id in case the supplier info are on the company and the partner_id in the context belongs to the company (e.g. creates quotation with a contact of the company).
Fixes #1219

9 years ago[FIX] account: avoid closing fiscalyear with unpost entries
Ravi Gohil [Thu, 31 Jul 2014 10:10:27 +0000 (15:40 +0530)]
[FIX] account: avoid closing fiscalyear with unpost entries

As when closing fiscal periods, forbid to close a fiscal year with unposted entries.
Fixes #1194, opw 610784

9 years ago[FIX] account: remove orphan analytic lines
Humberto Arocha [Thu, 17 Jul 2014 16:44:58 +0000 (12:14 -0430)]
[FIX] account: remove orphan analytic lines

If the analytic account is not present on an entry, still removes the Analytic Journal Items linked to it.
Fixes #1194, opw 610784

9 years ago[MERGE] forward port of branch 7.0 up to 9cc54dc
Denis Ledoux [Wed, 1 Oct 2014 10:41:42 +0000 (12:41 +0200)]
[MERGE] forward port of branch 7.0 up to 9cc54dc

9 years ago[FIX] product: name_search handles negative operators
Denis Ledoux [Wed, 1 Oct 2014 10:39:32 +0000 (12:39 +0200)]
[FIX] product: name_search handles negative operators

9 years ago[FIX] purchase: minmum purchase quantity and float precision (opw 610557)
dhr-odoo [Wed, 16 Jul 2014 13:45:56 +0000 (19:15 +0530)]
[FIX] purchase: minmum purchase quantity and float precision (opw 610557)

9 years ago[FIX] hr_payroll_account: do not create entries with amount at 0
Martin Trigaux [Tue, 30 Sep 2014 14:17:57 +0000 (16:17 +0200)]
[FIX] hr_payroll_account: do not create entries with amount at 0

If the salary compuation gives a salary of zero, skip the creation of the account.move.line (not good to have lines at 0).
Fixes lp:1298116, opw 605816

9 years ago[FIX] hr_expense: computation of tax/base amount
Martin Trigaux [Tue, 30 Sep 2014 13:31:52 +0000 (15:31 +0200)]
[FIX] hr_expense: computation of tax/base amount

When computing the amount for a tax (included) with children, accumulate the included taxes to avoid taking only the last one (opw 614867).

9 years ago[MERGE] forward port of branch 7.0 up to 419c439
Denis Ledoux [Tue, 30 Sep 2014 13:46:11 +0000 (15:46 +0200)]
[MERGE] forward port of branch 7.0 up to 419c439

9 years ago[FIX] account: sort partner ledger report by partner ref, name
Denis Ledoux [Tue, 30 Sep 2014 13:44:53 +0000 (15:44 +0200)]
[FIX] account: sort partner ledger report by partner ref, name

9 years ago[FIX] im_livechat: ir.config_parameter must be read as superuser
Denis Ledoux [Tue, 30 Sep 2014 12:05:02 +0000 (14:05 +0200)]
[FIX] im_livechat: ir.config_parameter must be read as superuser

As ir.config_parameter is restricted to employees in ACL, for security reasons