odoo/odoo.git
9 years agoMerge pull request #40 from hbrunn/7.0-fix-category-order
Guewen Baconnier [Mon, 20 Oct 2014 15:04:25 +0000 (17:04 +0200)]
Merge pull request #40 from hbrunn/7.0-fix-category-order

[FIX] don't mess up search's id order

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 agoMerge pull request #22 from hbrunn/7.0-lp1303829
Pedro M. Baeza [Fri, 17 Oct 2014 18:57:04 +0000 (20:57 +0200)]
Merge pull request #22 from hbrunn/7.0-lp1303829

[FIX] don't mess with the dataset's ids

9 years ago[FIX] point_of_sale: fixed rounding issue for pos order when discount added(maintenan...
Ravi Gohil [Fri, 17 Oct 2014 13:30:49 +0000 (19:00 +0530)]
[FIX] point_of_sale: fixed rounding issue for pos order when discount added(maintenance: 615322).

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Thu, 16 Oct 2014 21:42:34 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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 agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Wed, 15 Oct 2014 21:42:28 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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 remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Tue, 14 Oct 2014 21:42:33 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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 agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Mon, 13 Oct 2014 21:42:32 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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 agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Fri, 10 Oct 2014 21:42:34 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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 agoMerge pull request #58 from vrenaville/patch_webkit_parser_instance
Leonardo Pistone [Fri, 10 Oct 2014 14:16:03 +0000 (16:16 +0200)]
Merge pull request #58 from vrenaville/patch_webkit_parser_instance

[FIX] it's parser_instance not self.parser_instance

9 years agoit's parser_instance not a self.parser_instance
vrenaville [Fri, 10 Oct 2014 13:20:59 +0000 (15:20 +0200)]
it's parser_instance not a self.parser_instance

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Thu, 9 Oct 2014 21:42:37 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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 agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Tue, 7 Oct 2014 21:42:34 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

9 years agoMerge pull request #56 from mdietrichc2c/fix-report-inactive-journals
Alexandre Fayolle [Tue, 7 Oct 2014 21:03:58 +0000 (23:03 +0200)]
Merge pull request #56 from mdietrichc2c/fix-report-inactive-journals

consider entries on inactive journals for the general ledger report

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 agoMerge pull request #54 from acsone/7.0-ocb-revert-reconcile-constraint-sbi
Pedro M. Baeza [Tue, 7 Oct 2014 10:52:52 +0000 (12:52 +0200)]
Merge pull request #54 from acsone/7.0-ocb-revert-reconcile-constraint-sbi

Revert "[fix] the added new constraint for account (via OPW)"

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Mon, 6 Oct 2014 21:42:46 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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 agoReformat for PEP8
Matthieu Dietrich [Mon, 6 Oct 2014 07:28:01 +0000 (09:28 +0200)]
Reformat for PEP8

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Fri, 3 Oct 2014 21:42:40 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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[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[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 agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Thu, 2 Oct 2014 21:42:36 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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 agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Wed, 1 Oct 2014 21:42:38 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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[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 agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Tue, 30 Sep 2014 21:42:34 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

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[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 agocorrect context on read as well
Matthieu Dietrich [Tue, 30 Sep 2014 13:01:11 +0000 (15:01 +0200)]
correct context on read as well

9 years agocorrect context + revert PEP8
Matthieu Dietrich [Tue, 30 Sep 2014 12:59:55 +0000 (14:59 +0200)]
correct context + revert PEP8

9 years agoalso consider entries on inactive journals for the general ledger report
Matthieu Dietrich [Tue, 30 Sep 2014 12:14:56 +0000 (14:14 +0200)]
also consider entries on inactive journals for the general ledger report

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Mon, 29 Sep 2014 21:42:38 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

9 years ago[FIX] tools: remove useless attributes
Olivier Dony [Mon, 29 Sep 2014 15:39:01 +0000 (17:39 +0200)]
[FIX] tools: remove useless attributes

9 years agoRevert "[fix] the added new constraint for account (via OPW)"
Stéphane Bidoul [Mon, 29 Sep 2014 12:35:54 +0000 (14:35 +0200)]
Revert "[fix] the added new constraint for account (via OPW)"

This reverts commit 8e83f2af9d41e68007fcd337b697138ba237d0b0.

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Fri, 26 Sep 2014 21:42:30 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

9 years agoRevert "[FIX] product,float_utils: perform ceiling via float_round with new rounding_...
Denis Ledoux [Fri, 26 Sep 2014 19:21:06 +0000 (21:21 +0200)]
Revert "[FIX] product,float_utils: perform ceiling via float_round with new rounding_method UP"

This reverts commit d4972ffdb6b9356a524eef1dbc11f455ff4473f2.

Seems to break some cases, at least in _product_reserve from stock/stock.py

Actual use case:

SELECT product_uom, sum(product_qty) AS product_qty FROM stock_move WHERE location_dest_id=%s AND location_id<>%s AND product_id=3645 AND state='done' GROUP BY product_uom;
returning 1 | 6

SELECT product_uom,-sum(product_qty) AS product_qty FROM stock_move WHERE location_id=%s AND location_dest_id<>%s AND product_id=%s AND state in ('done', 'assigned') GROUP BY product_uom;
returning 1 | -6

results += cr.dictfetchall()
    total = 0.0
    results2 = 0.0
    for r in results:
        amount = uom_obj._compute_qty(cr, uid, r['product_uom'], r['product_qty'], context.get('uom', False))
        results2 += amount
        total += amount
Total = 1, amount = -5

It should actually be
Total = 0, amount = -6

9 years ago[IMP] account: use float_compare for taxes
Martin Trigaux [Fri, 26 Sep 2014 14:55:41 +0000 (16:55 +0200)]
[IMP] account: use float_compare for taxes

Avoiding some python float representation errors

9 years ago[FIX] project_mrp: task description duplicated + product name translation
Denis Ledoux [Fri, 26 Sep 2014 14:05:16 +0000 (16:05 +0200)]
[FIX] project_mrp: task description duplicated + product name translation

9 years ago[FIX] cron: doall false by default
Denis Ledoux [Fri, 26 Sep 2014 08:17:50 +0000 (10:17 +0200)]
[FIX] cron: doall false by default

As in most cases, we do not want this doall

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Thu, 25 Sep 2014 21:42:30 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

9 years ago[FIX] res_users: do not copy login_date when duplicating users
Denis Ledoux [Thu, 25 Sep 2014 15:00:34 +0000 (17:00 +0200)]
[FIX] res_users: do not copy login_date when duplicating users

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Thu, 25 Sep 2014 12:09:50 +0000 (14:09 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

Conflicts:
addons/stock/__openerp__.py

9 years ago[FIX] crm: merge the phonecalls during an opportunities merge
Simon Lejeune [Thu, 25 Sep 2014 11:40:45 +0000 (13:40 +0200)]
[FIX] crm: merge the phonecalls during an opportunities merge

9 years ago[FIX] portal_sale: force empty context
Christophe Simonis [Thu, 25 Sep 2014 09:51:15 +0000 (11:51 +0200)]
[FIX] portal_sale: force empty context

The context was removed by 1933e926.

9 years agoMerge pull request #45 from hurrinico/7.0-fix-create_attendees
Guewen Baconnier [Thu, 25 Sep 2014 09:11:50 +0000 (11:11 +0200)]
Merge pull request #45 from hurrinico/7.0-fix-create_attendees

[FIX] wrong mail destination address

9 years ago[FIX] product: _compute_qty: first round before ceiling, to avoid pathological cases
Cedric Snauwaert [Wed, 24 Sep 2014 14:09:28 +0000 (16:09 +0200)]
[FIX] product: _compute_qty: first round before ceiling, to avoid pathological cases

Fixes problem when we try to sell 12 units of a product and change it to 1 dozen,
the algorithm was then trying to recompute the original amount and was getting
12,0000048 as a result which was then passed to the ceiling method, getting 13.0!

See also previous commit and issue #1125, PR #1126

9 years ago[FIX] product,float_utils: perform ceiling via float_round with new rounding_method UP
Cedric Snauwaert [Tue, 23 Sep 2014 15:39:14 +0000 (17:39 +0200)]
[FIX] product,float_utils: perform ceiling via float_round with new rounding_method UP

Modified product ceiling() to use float_round() with special mode
for rounding UP (away from zero), avoiding pathological cases where
float representations errors were ceiling to the superior unit.

Also added correspding tests for rounding_method=UP

Fixes issue #1125, and replaces PR #1126.

9 years ago[INP] portal_sale: remove buggy context
Martin Trigaux [Wed, 24 Sep 2014 15:00:24 +0000 (17:00 +0200)]
[INP] portal_sale: remove buggy context

Even if this should never be used in normal portal environment, if a user with enough access rights tries to create an invoice, this would crash. We don't need context here (opw 612591).

9 years ago[IMP] stock: Optimize stock_move.setlast_tracking()
Guewen Baconnier [Tue, 16 Sep 2014 13:21:07 +0000 (15:21 +0200)]
[IMP] stock: Optimize stock_move.setlast_tracking()

When setlast_tracking is called on a large number of moves in a picking
(e.g.  when splitting moves in a picking), the time to complete grows
exponentially.  The reason is that it loops over all the moves of
a picking, even if it keeps only the last tracking.

The method now uses a search() with a limit so it doesn't need to browse
all the moves.

Added test to check the behaviour of setlast_tracking
Fixes #2448

9 years ago[FIX] crm: correct open lead or opportunity view from calls
Ravi Gohil [Mon, 9 Jun 2014 09:28:30 +0000 (14:58 +0530)]
[FIX] crm: correct open lead or opportunity view from calls

When opening a lead/opportunity from the phonecalls view, we did not open the correct view (always the lead).
This will use the type of the crm.lead to determine which view should be used, opw 608493.

9 years ago[IMP] stock: do not generate empty backorders
Martin Trigaux [Wed, 24 Sep 2014 12:34:14 +0000 (14:34 +0200)]
[IMP] stock: do not generate empty backorders

If every line of a partial delivery is at zero, do not generate empty backorders (opw 608680)

9 years ago[FIX] web_calendar: reset dataset index if search result empty
Denis Ledoux [Wed, 24 Sep 2014 11:07:26 +0000 (13:07 +0200)]
[FIX] web_calendar: reset dataset index if search result empty

9 years ago[FIX] stock: error on stock.partial.move creation
Martin Trigaux [Wed, 24 Sep 2014 08:27:40 +0000 (10:27 +0200)]
[FIX] stock: error on stock.partial.move creation

The stock_partial_move wizard removes the required attribute for the field picking_id on a stock.partial.move. This means that we could get moves without picking_id and the previous line was failing ('NoneType' object has no attribute 'currency_id'). opw 614531

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Tue, 23 Sep 2014 21:42:38 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

9 years ago[FIX] widget html: rendering issue in mail composer on Firefox
Denis Ledoux [Tue, 23 Sep 2014 16:53:17 +0000 (18:53 +0200)]
[FIX] widget html: rendering issue in mail composer on Firefox
The cleditor width does not include the margins. Setting 100% will make the editable area too large (104%) on Firefox (opw 611700).
This issue was already fixed in newer releases, from commit 9247c37de7d67beb479905e218656665dc12391f
Nevertheless, it introduced a new issue: while editing the form, the content of widgets html which were located in hidden notebook pages weren't displayed when displaying the page content.
opw-614448

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Mon, 22 Sep 2014 22:01:29 +0000 (00:01 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

9 years ago[FIX] account_voucher: import invoices, sign according to transaction type
Denis Ledoux [Mon, 22 Sep 2014 13:58:24 +0000 (15:58 +0200)]
[FIX] account_voucher: import invoices, sign according to transaction type

9 years ago[FIX] auth_ldap: remove unused sql column
Denis Ledoux [Mon, 22 Sep 2014 13:00:53 +0000 (15:00 +0200)]
[FIX] auth_ldap: remove unused sql column

9 years ago[FIX] account_voucher: convertion rate of purchase receipt
Martin Trigaux [Mon, 22 Sep 2014 10:16:46 +0000 (12:16 +0200)]
[FIX] account_voucher: convertion rate of purchase receipt

The conversion of currencies in vouchers are made based on payment_rate_currency_id field (instead of usual currency_id).
This field was not present in the purchase view and not correctly set when we change the journal (and thus the currency) which was leading to rates of 1. With a rate of 1, the amount is equal to the currency amount (which is rarely correct). opw 611254

9 years agoMerge pull request #51 from OCA-git-bot/7.0
Stefan Rijnhart [Sat, 20 Sep 2014 14:01:18 +0000 (16:01 +0200)]
Merge pull request #51 from OCA-git-bot/7.0

Merge commit for initial 7.0 synchronization

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Fri, 19 Sep 2014 21:42:48 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

9 years ago[FIX] purchase: keep fallback behaviour that was removed at rev 8973217
Martin Trigaux [Fri, 19 Sep 2014 12:29:43 +0000 (14:29 +0200)]
[FIX] purchase: keep fallback behaviour that was removed at rev 8973217

If no valid invocie is found on the purchase order line, use the price and currency of the line (coherent with help message)

9 years ago[IMP] stock: display translated selection value in message
Martin Trigaux [Fri, 19 Sep 2014 09:34:41 +0000 (11:34 +0200)]
[IMP] stock: display translated selection value in message

When a user tried to delete a done or canceled picking, the error messages used to display the key of the selection field ('done' or 'cancel') which was surprising in other languages than English. This patch takes the string value of the selection field, keeping the context to get the translated value (opw 613068)

9 years ago[FIX] event: translate templates into user language
Martin Trigaux [Fri, 19 Sep 2014 09:06:17 +0000 (11:06 +0200)]
[FIX] event: translate templates into user language

When sending an email of the registration/confirmation, the context was lost and the tempate sticked in en_US.
With the patch, the template will use the current user's language.

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Thu, 18 Sep 2014 21:42:48 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

9 years ago[FIX] kanban: wrong condition to reset the dataset index
Denis Ledoux [Thu, 18 Sep 2014 13:50:59 +0000 (15:50 +0200)]
[FIX] kanban: wrong condition to reset the dataset index

The dataset index should be reset either if the dataset is empty or the index is greater than the records size

9 years agoMerge remote-tracking branch 'odoo/7.0' into 7.0
OCA git bot [Wed, 17 Sep 2014 21:42:42 +0000 (23:42 +0200)]
Merge remote-tracking branch 'odoo/7.0' into 7.0

9 years ago[FIX] hr_timesheet_sheet: avoid error when sort attendances
rmu-odoo [Wed, 10 Sep 2014 07:45:51 +0000 (13:15 +0530)]
[FIX] hr_timesheet_sheet: avoid error when sort attendances

When an attendance line is edited, the tuple has no key 'name' which lead to a traceback.
Fixes #546

9 years ago[FIX] stock/purchase: dates and currency rates
qdp-odoo [Wed, 17 Sep 2014 16:04:41 +0000 (18:04 +0200)]
[FIX] stock/purchase: dates and currency rates

Use the currency rate of the purchase date instead of the one of at the reception time (opw 610430)

9 years ago[FIX] account_anglo_saxon: correctly set the accounts for returns
Martin Trigaux [Tue, 16 Sep 2014 09:37:29 +0000 (11:37 +0200)]
[FIX] account_anglo_saxon: correctly set the accounts for returns

The generated moves on a return should be the reverse of the outgoing move.
Fixes #1817, opw 604417

9 years ago[FIX] loading: always process auto-installed modules for new databases
Olivier Dony [Wed, 17 Sep 2014 13:09:55 +0000 (15:09 +0200)]
[FIX] loading: always process auto-installed modules for new databases

If the server was started without -i or -u and
happened to initialize a fresh database,
auto-installed modules that depend
on `base` only would stay in status "to install"
without actually being installed (until the next
installation round was triggered).
This was of little consequence in 7.0, but causes
a crash in 8.0.

Fixes #953

9 years ago[FIX] orm write: do not try to store computed & stored fields for relational records...
Denis Ledoux [Wed, 17 Sep 2014 11:32:30 +0000 (13:32 +0200)]
[FIX] orm write: do not try to store computed & stored fields for relational records deleted by *2many fields

opw-613772