Martin Trigaux [Fri, 13 Jun 2014 12:24:14 +0000 (14:24 +0200)]
Merge pull request #137 from odoo-dev/saas-3-bug_1312046-ptr
[FIX] event: avoid superposition of date and text in grouped kanban view
Olivier Dony [Thu, 12 Jun 2014 11:49:32 +0000 (13:49 +0200)]
[MERGE] Forward-port of 7.0 bugfixes up to 4d3a5df
Jeremy Kersten [Thu, 12 Jun 2014 11:25:08 +0000 (13:25 +0200)]
[FIX] Account, l10nbe - Respect name_search operator for account.account, so = really work as expected.
Also fix data file in l10nbe which was relying on the old implementation.
Jeremy Kersten [Thu, 12 Jun 2014 08:44:34 +0000 (10:44 +0200)]
[FIX] l10n-be data - Be more accurate in the belgium data. All accounts have by default a right padding of 0 to be on 6 char, so the csv need to have the accounts on 6 char since with have removed the default replacement of "=" by "=like" to allow the manual import
Jeremy Kersten [Wed, 11 Jun 2014 15:18:30 +0000 (17:18 +0200)]
[FIX] Import - Use the right comparator to allow import with accounts_ids
Denis Ledoux [Thu, 12 Jun 2014 10:37:11 +0000 (12:37 +0200)]
[FIX] sale_order: set state field track_visibility
sale_order module override state field of sale.oder (sale.sale.py) and forgot to reset the track_visibility, therefore sale orders state changes are no longer tracked once this module installed.
Olivier Dony [Wed, 11 Jun 2014 09:52:29 +0000 (11:52 +0200)]
[FIX] base_action_rule: automatic commit during background processing of rules
This will make sure already processed rules are persisted
in case a timeout occurs while processing the next ones,
ensuring that *some* progress can be made in most cases.
Olivier Dony [Wed, 11 Jun 2014 09:50:38 +0000 (11:50 +0200)]
[FIX] base_action_rule: prevent recursive rule trigger also when processing time-based rules
A safety guard already in place prevents the recursive
trigger of rules while another rule is being executed,
as a simple measure to prevent endless loops.
This guard was missing when processing time-based rules.
Olivier Dony [Wed, 11 Jun 2014 09:46:00 +0000 (11:46 +0200)]
[FIX] base_action_rule: do not repeatedly trigger already-executed rules based on time condition
A programming error introduced at rco@openerp.com-
20121220142445-emzzvhlw400q37c9
fails to properly check when a rule has already been executed in the past.
Time-based rules should only be executed if the trigger date is in the past and:
- either they never executed before
- or the last execution date is older than the trigger date
Olivier Dony [Wed, 11 Jun 2014 09:41:48 +0000 (11:41 +0200)]
[FIX] base_action_rule: do not force registry reload when writing on a rule unless really needed
Executing a rule always updates the `last_run` value, which would
always force a useless registry reload to occur. Only signal the
change if the rule applies to a model that was not previoulsy
monitored for base action rules.
odony [Wed, 11 Jun 2014 14:41:29 +0000 (16:41 +0200)]
Merge pull request #417 from gurneyalex/7.0-fix_1311004_account_move_line_index-afe
[IMP] account.move.line: extra index on (date, id) corresponding to the default _order, courtesy of @gurneyalex.
Fixes https://bugs.launchpad.net/openobject-addons/+bug/1311004
Martin Trigaux [Wed, 11 Jun 2014 13:22:47 +0000 (15:22 +0200)]
Merge pull request #413 from gurneyalex/7.0-fix_lp1025703-afe
[FIX] delivery: add missing information in chained pickings
Martin Trigaux [Wed, 11 Jun 2014 13:13:06 +0000 (15:13 +0200)]
Merge pull request #411 from acsone/lp-1200611_lga
[FIX] hr_timesheet_sheet: correctly set the employee on the attendance
Martin Trigaux [Wed, 11 Jun 2014 12:53:59 +0000 (14:53 +0200)]
[FIX] account: move translatable tag
The field note on account.fiscal.position and account.fiscal.position.template should not be translatable in classic modules.
The l10n_multilang module is intendend to make chart of accounts multilang and is the place to set translate=True
Christophe Simonis [Wed, 11 Jun 2014 08:58:43 +0000 (10:58 +0200)]
[MERGE] forward port of branch 7.0 up to 100eba8
Jeremy Kersten [Wed, 11 Jun 2014 08:30:00 +0000 (10:30 +0200)]
[FIX] fields.py - avoid dict comprehension inside a dict comprehension
Martin Trigaux [Tue, 10 Jun 2014 14:02:10 +0000 (16:02 +0200)]
Merge pull request #415 from gurneyalex/7.0-fix_lp1192115-595240-opw-skh
[FIX] delivery: do not remove the delivery method on the sale.order when adding it as an order line (useful information)
Martin Trigaux [Tue, 10 Jun 2014 10:26:46 +0000 (12:26 +0200)]
[FIX] account_voucher: better pay invoice wizard
If the writeoff_amount is above 0, the fields writeoff_acc_id can be displayed and is required depending of the payment option. If the writeoff_amount is reset to 0, this field should no longer be required.
Martin Trigaux [Tue, 10 Jun 2014 08:59:59 +0000 (10:59 +0200)]
gamification: when changing the domain on a goal definition give a simple check to avoid getting a traceback when the challenge is reloaded
Christophe Simonis [Tue, 10 Jun 2014 09:49:14 +0000 (11:49 +0200)]
[MERGE] forward port of branch 7.0 up to 6fdb783
Martin Trigaux [Tue, 10 Jun 2014 07:38:48 +0000 (09:38 +0200)]
Merge pull request #56 from yvaucher/7.0-fix-1319109
[FIX] report_webkit: avoid sharing parser instance globally and make it thread safe
Alexandre Fayolle [Fri, 6 Jun 2014 12:47:33 +0000 (14:47 +0200)]
[IMP] add an index on account_move_line(date, id)
fixes https://launchpad.net/bugs/1311004
Somesh Khare(OpenERP) [Wed, 24 Jul 2013 09:07:27 +0000 (14:37 +0530)]
[FIX]Delivery: carrier information not propagated from sale order to pickings (Case: ref 595240)
closes lp:1192115
Alexandre Fayolle [Fri, 6 Jun 2014 12:18:37 +0000 (14:18 +0200)]
[FIX] delivery: propagate additional fields in chained pickings
closes #367
Martin Trigaux [Fri, 6 Jun 2014 11:55:59 +0000 (13:55 +0200)]
Merge pull request #404 from odoo-dev/7.0-norecomputestoredm2ofuncfields-chs
[FIX] orm: do not recompute m2o stored function field at read.
Laetitia Gangloff [Fri, 6 Jun 2014 10:55:22 +0000 (12:55 +0200)]
hr_timesheet_sheet: for attendance, set default value for employee_id in the context
Christophe Simonis [Fri, 6 Jun 2014 08:53:42 +0000 (10:53 +0200)]
[FIX] orm: do not recompute m2o stored function field at read.
The get() method of m2o function fields is used for 2 different things:
- call the function defining the m2o
- get the name_get representation of the value
Until this pathc, only the first case was handled, resulting to a useless
recomputation of the field when reading it.
Oliver Laurent [Thu, 5 Jun 2014 17:00:14 +0000 (19:00 +0200)]
[FIX] orm: do not resize unlimited char fields
Laurent Mignon [Thu, 5 Jun 2014 16:59:03 +0000 (18:59 +0200)]
[FIX] ir_cron: use the same search criteria as when listing job to excecyte when acquiring the ock on the job before its execution to prevent running already executed job
Backport of fix made in trunk
Denis Ledoux [Thu, 5 Jun 2014 16:58:01 +0000 (18:58 +0200)]
[FIX] website: on adding a slide to slider, new slide is last on save
Before, the new slide was set as first slide
Moreover, the indicators were not correct neither
Martin Trigaux [Thu, 5 Jun 2014 16:38:19 +0000 (18:38 +0200)]
[IMP] stock: when checking the state of the product, do not recompute the quantity on every move but only the one currently browsing (optiomisation)
Denis Ledoux [Thu, 5 Jun 2014 15:50:15 +0000 (17:50 +0200)]
[FIX] website_event_track: remove trailing comma in speakers name in event tracks
Denis Ledoux [Thu, 5 Jun 2014 13:53:28 +0000 (15:53 +0200)]
[FIX] document_page: allow other users than administrator to create menu to a static page
User should be at least have Configuration settings group to be allowed to create actions. Basic document page users do not have this rights, therefore we temporary give superuser_id to create the action
This is related to rev
133c5033a092845e462b894c0d7739191480c709
Holger Brunn [Thu, 5 Jun 2014 13:44:18 +0000 (15:44 +0200)]
[FIX] project_timesheet: don't trigger write if there is nothing to write
Triggering an empty write could break constraint (can not update past timesheet) (opw 606963)
Christophe Simonis [Thu, 5 Jun 2014 11:46:53 +0000 (13:46 +0200)]
[FIX] web: many2many field handle "no_create" option
Martin Trigaux [Thu, 5 Jun 2014 10:52:11 +0000 (12:52 +0200)]
uninstall: avoid errors during uninstall
When uninstalling a module, remove the ir.model.constraint after removing the non-model records and before fields and model definition.
Without this fix, some constraint would be removed too early allowing to have broken relations and data left from removed module.
Denis Ledoux [Thu, 5 Jun 2014 08:45:14 +0000 (10:45 +0200)]
[FIX] account_analytic_analysis: Only allow to select sale pricelist for contracts
Denis Ledoux [Thu, 5 Jun 2014 08:42:02 +0000 (10:42 +0200)]
[FIX] account_analytic_analysis: Recurring invoice lines price if pricelist does not match
If the price according to price list is False, use default sale price in the recurring invoice lines
Denis Ledoux [Wed, 4 Jun 2014 14:15:16 +0000 (16:15 +0200)]
[FIX] website: prevent to split google analytics script
Martin Trigaux [Wed, 4 Jun 2014 13:19:57 +0000 (15:19 +0200)]
[FIX] point_of_sale: correct call to default value
The default value should be called with a lambda otherwise the payment_date is set to the date the server was started (opw 606715)
Martin Trigaux [Wed, 4 Jun 2014 13:06:53 +0000 (15:06 +0200)]
[FIX] kanban: avoid wrong placement of button on ie9
On ie9, the 'read more' button in kanban view was placed in the middle of the window instead of the bottom
Martin Trigaux [Wed, 4 Jun 2014 08:42:43 +0000 (10:42 +0200)]
[FIX] stock: use correct vals in grouped invoice (opw 606535)
When creating a grouped invoice, the invoice_vals value is used to create the invoice line.
The value was not reset for grouped invoice and we reused the values of previous line.
Christophe Simonis [Tue, 3 Jun 2014 17:11:44 +0000 (19:11 +0200)]
[MERGE] forward port of branch 7.0 up to 0c4bc1c
Martin Trigaux [Tue, 3 Jun 2014 14:56:07 +0000 (16:56 +0200)]
[FIX] sale: keep customer reference in grouped invoice (opw 606523)
Denis Ledoux [Tue, 3 Jun 2014 15:12:07 +0000 (17:12 +0200)]
[FIX] delivery: allow to add delivery method in quotation if quotation in quotation sent stage
opw-607920
Denis Ledoux [Tue, 3 Jun 2014 10:21:34 +0000 (12:21 +0200)]
[FIX] event_sale: stored seats_max field
seats_max is a stored field in event, and should remain stored when overrided in event_sale
Martin Trigaux [Mon, 2 Jun 2014 16:00:25 +0000 (18:00 +0200)]
[FIX] calendar: avoid double popup, opw 606297
Some browsers (e.g. chrome) trigger onEmptyClick as well as
onBeforeLightbox during drag&drop which calls two slow_create
calls (and two popups). Workaround to kill the second one.
Martin Trigaux [Mon, 2 Jun 2014 16:10:36 +0000 (18:10 +0200)]
Merge pull request #286 from jbq/bugfix
[FIX] mail: detection of MIME type
When parsing the mail headers, the content-type may has a 'type' attribute for Multipart/Related objects (rfc2387).
Previous check would match on attached files of type text instead of real `content-type: text/`.
Denis Ledoux [Mon, 2 Jun 2014 11:00:36 +0000 (13:00 +0200)]
[FIX] base: security, do not override basic ir_config_paramter ACL
Denis Ledoux [Mon, 2 Jun 2014 10:57:57 +0000 (12:57 +0200)]
[FIX] base: security, group settings is authorized to alter ir.config_parameter
Jean-Baptiste Quenot [Wed, 28 May 2014 13:45:29 +0000 (15:45 +0200)]
Fix detection of MIME type in message_parse()
Be careful, content-type may contain tricky content like in the
following example so test the MIME type with startswith()
Content-Type: multipart/related;
boundary="_004_3f1e4da175f349248b8d43cdeb9866f1AMSPR06MB343eurprd06pro_";
type="text/html"
Christophe Simonis [Sun, 1 Jun 2014 08:52:02 +0000 (10:52 +0200)]
[FIX] email_template: partners ids are integers, not strings
Denis Ledoux [Wed, 28 May 2014 16:17:33 +0000 (18:17 +0200)]
[FIX] replace .bzrignore by .gitignore, as we are now working with git
Denis Ledoux [Wed, 28 May 2014 16:00:11 +0000 (18:00 +0200)]
[FIX] purchase: Do not allow to delete a purchase order line which is validated
This restriction behavior copied from the sale.order model
Moreover, the purchase.order lines state were not set to cancel when the purchase order was cancelled.
This is now the case, this behavior is also coped from the sale.order model
When the purchase order is reset to draft, we also reset the order lines state to draft
Denis Ledoux [Wed, 28 May 2014 12:02:56 +0000 (14:02 +0200)]
[FIX] payment_paypal: wrong handling fees computation formula
Denis Ledoux [Wed, 28 May 2014 10:04:41 +0000 (12:04 +0200)]
[FIX] website_sale: force changing pricelist on different account signin
opw-607517
Richard Mathot [Wed, 28 May 2014 08:06:42 +0000 (10:06 +0200)]
[TYPO] in crm_partner_assign
Denis Ledoux [Tue, 27 May 2014 16:39:00 +0000 (18:39 +0200)]
[FIX] event_sale, website_event_sale: ACLs for event.event.ticket
event.event.ticket were set in website_event_sale, while this model is set in event_sale module
Manager acl moved from website_event_sale to event_sale
Created a new acl for event user in event_sale
Left the acl for everyone in website_event_sale, meaning that when this module is installed, everyone can read tickets, event those who aren't event user
Martin Trigaux [Tue, 27 May 2014 15:56:30 +0000 (17:56 +0200)]
[FIX] stock: clean previous commit
Martin Trigaux [Tue, 27 May 2014 15:47:28 +0000 (17:47 +0200)]
[FIX] stock: auto_validate move not set to done when multiple parent move set to done at the same time (opw 607970)
Olivier Dony [Tue, 27 May 2014 14:50:02 +0000 (16:50 +0200)]
[MERGE] Forward-port of latest 7.0 bugfixes, up to aeaa826
Martin Trigaux [Tue, 27 May 2014 14:37:10 +0000 (16:37 +0200)]
Merge pull request #221 from odoo-dev/7.0-o2m-duplication-issue-msh
[FIX] Fix o2m record duplication when clicking on a button
The button action will execute a write call, creating the new line.
The reload is necessary to avoid recreating the line when using the save button.
Denis Ledoux [Tue, 27 May 2014 14:11:27 +0000 (16:11 +0200)]
[FIX] website_sale: in the product grid, a product must have min size 1 and max size 4
Mohammed Shekha [Tue, 27 May 2014 14:05:09 +0000 (19:35 +0530)]
[FIX]Refixed the issue of o2m record duplication
Martin Trigaux [Tue, 27 May 2014 08:32:53 +0000 (10:32 +0200)]
Merge pull request #223 from odoo-dev/7.0-ail-form-context-parent-mat
account: safer access to parent in invoice line form
Denis Ledoux [Tue, 27 May 2014 08:29:12 +0000 (10:29 +0200)]
[FIX] account_followup: account_followup_print report, sxw according to rml
Martin Trigaux [Tue, 27 May 2014 08:16:44 +0000 (10:16 +0200)]
[FIX] account: safer access to parent in invoice line form
In the account.invoice.line form, do not assume the parent is defined when
evaluating the context to invoice_line_tax_id as we could come from another
view (e.g.: purchase order line form).
Fixes #206
Mohammed Shekha [Tue, 27 May 2014 04:40:06 +0000 (10:10 +0530)]
[FIX]Fixe the issue o2m record duplication.
Martin Trigaux [Mon, 26 May 2014 15:07:14 +0000 (17:07 +0200)]
Merge pull request #203 from buke/7.0
[FIX] delivery: when computing the weight and volume, use the quantity converted to the product uom instead of the uom of the purchase order.
Martin Trigaux [Mon, 26 May 2014 12:35:04 +0000 (14:35 +0200)]
Merge pull request #207 from joshuajan/7.0
'invoiced' fields help message is wrong
the purchase order is set as invoiced when every line has a validated invoiced.
JoshuaJan [Mon, 26 May 2014 09:55:26 +0000 (17:55 +0800)]
'invoiced' fields help message is wrong
Denis Ledoux [Mon, 26 May 2014 09:20:40 +0000 (11:20 +0200)]
[FIX] hr_recruitment: default company set according to department company
buke [Mon, 26 May 2014 09:12:38 +0000 (17:12 +0800)]
Fixed delivery grid get_price
It's wrong for cal weight in delivery gird . It's use product.weight * qty.
Denis Ledoux [Fri, 23 May 2014 15:58:00 +0000 (17:58 +0200)]
[FIX] account_analytic_analysis: set false to price_unit in product_id_change in form view, so the price unit is reset when the product id is changed
Denis Ledoux [Fri, 23 May 2014 15:13:42 +0000 (17:13 +0200)]
[FIX] purchase: po email template, the currency could be different than the pricelist currency
Denis Ledoux [Fri, 23 May 2014 13:54:43 +0000 (15:54 +0200)]
[FIX] mail: push to breadcrumb on subject, author or notified partners links click
opw-608251: When coming from website > My account, and clicking on a lead link from a message in the inbox, and then deleting the lead, the history_back is triggered and we come back in the website, while we should have come back in the inbox. This is because the action performed was not pushed in the breadcrumb
Denis Ledoux [Fri, 23 May 2014 11:15:52 +0000 (13:15 +0200)]
[FIX] request.handle_exception: cleanup override logic, fixed chain broken by commit a096ae0
handle_exception() is supposed to try handling an exception and if it cannot,
re-raise it. Overridden methods must therefore call super() within a try/except
block, and only attempt to handle the exception if super() raised.
Denis Ledoux [Fri, 23 May 2014 09:16:46 +0000 (11:16 +0200)]
[FIX] account_analytic_analysis: recurring invoice line description and yearly interval
the product_id_change name is reset if name is not passed to method args
the product_id_change call in account_analytic_view set name as false so it is reset each time the product is change
the yearly interval add a year to the next recurring date instead of one month
Martin Trigaux [Fri, 23 May 2014 08:11:25 +0000 (10:11 +0200)]
Restore missed images during bzr to git transition
Olivier Dony [Thu, 22 May 2014 14:44:33 +0000 (16:44 +0200)]
[MERGE] Forward-port latest 7.0 bugfixes, up to f8671cb
Denis Ledoux [Thu, 22 May 2014 14:10:56 +0000 (16:10 +0200)]
[REVERT]
b6a7402fdbddfe817fa36292e6f89e8659f9bdea, pagereset seems to be useful in some cases. Need to check deeper
Olivier Dony [Thu, 22 May 2014 12:07:15 +0000 (14:07 +0200)]
[RESTORE] Restore *.sxw files, skipped during bzr-to-git conversion to discard older binary blobs
Martin Trigaux [Thu, 22 May 2014 10:15:45 +0000 (12:15 +0200)]
[FIX] website_sale: add the parameter _mail_post_access on product.template
This parameter gives the possibility to post messages en product.template to
people having a read access. The website_sale giving the possibility to post
comments, people not belonging to the 'Sale Manager' group were not able to
post messages.
Martin Trigaux [Thu, 22 May 2014 10:05:05 +0000 (12:05 +0200)]
Merge pull request #55 from yvaucher/7.0-fix-1319095
report_webkit: use safer and non-deprecated methods to handle temporary files
Anaël Closson [Thu, 22 May 2014 07:26:40 +0000 (09:26 +0200)]
[FIX] stock: auto_validate move not set to done when multiple parent move set to done at the same time - opw 607970
Pariket Trivedi [Thu, 22 May 2014 06:19:09 +0000 (11:49 +0530)]
[FIX]: Bad display in kanban view with a group by in Event.
Martin Trigaux [Wed, 21 May 2014 17:12:37 +0000 (19:12 +0200)]
[FIX] http: force rolleback for failed http request
1st issue:
When an exception was raised, it was badly handled by the website in case of
website_enabled key. The response page was generated without calling super.
The WebRequest object being responsible to rollback the transaction in case
of errors.
2sd issue:
The _failed attribute is required to rollback the transaction in an WebRequest
object. Previously it was only set in the JsonRequest object (which inherit
from WebRequest), replace by call to super. The attribute _failed is now set
in the WebRequest object.
Martin Trigaux [Wed, 21 May 2014 14:51:34 +0000 (16:51 +0200)]
Merge pull request #14 from savoirfairelinux/7.0-crossovered_unicode_1292245
[FIX] Fix account_budget name unicode error (7.0 lp:1292245)
Martin Trigaux [Wed, 21 May 2014 14:16:19 +0000 (16:16 +0200)]
Merge pull request #124 from odoo-dev/7.0-aged-partner-partial-mat
[IMP] account: support for partial reconciliation in aged partner balance
When computing the aged partner balance, the partial reconciliation was not handled correctly. The reconciled amount should be removed from the original remaining amount instead of displaying two entries in the journal.
eg: if invocie of 1000 in period 1 and payment of 300 in period 2, should only display +700 in period 1 instead of two entries
Martin Trigaux [Wed, 21 May 2014 13:44:46 +0000 (15:44 +0200)]
[IMP] account: support for partial reconciliation in aged partner balance
When computing the aged partner balance, the partial reconciliation was not
handled correctly. The reconciled amount should be removed from the original
remaining amount instead of displaying two entries in the journal.
eg: if invocie of 1000 in period 1 and payment of 300 in period 2, should only
display +700 in period 1 instead of two entries
Denis Ledoux [Wed, 21 May 2014 11:46:10 +0000 (13:46 +0200)]
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev.
b6a7402fdbddfe817fa36292e6f89e8659f9bdea
Denis Ledoux [Wed, 21 May 2014 10:57:28 +0000 (12:57 +0200)]
[FIX] account_analytic_analysis: recurring invoices prepare and product_id_change
product_id_change set the description with the same behavior as sale orders
product_id_change set the price unit according to the pricelist
_prepare_invoice is split into two sub methods, _prepare_invoice_data and _prepare_invoice_line
_prepare_invoice actually prepare the invoice values instead of directly creating the invoice
Denis Ledoux [Wed, 21 May 2014 09:20:37 +0000 (11:20 +0200)]
[FIX] report: correct page numbering
Christophe Simonis [Tue, 20 May 2014 16:57:04 +0000 (18:57 +0200)]
[MERGE] forward port of branch 7.0 up to revid b09b6a0
Christophe Simonis [Tue, 20 May 2014 14:46:58 +0000 (16:46 +0200)]
[MERGE] merge bzr saas-3 addons branch
Christophe Simonis [Tue, 20 May 2014 14:41:04 +0000 (16:41 +0200)]
[MERGE] merge bzr saas-3 server branch
Christophe Simonis [Tue, 20 May 2014 14:31:43 +0000 (16:31 +0200)]
[MERGE] merge bzr addons branch
Christophe Simonis [Tue, 20 May 2014 14:28:48 +0000 (16:28 +0200)]
[MERGE] merge bzr server branch
Martin Trigaux [Tue, 20 May 2014 08:16:17 +0000 (10:16 +0200)]
[FIX] sale: in paypal, the encoding of the url should be done with werkzeug instead of urllib for better handeling of unicode (opw 607866)
Fabien Pinckaers [Tue, 20 May 2014 07:56:55 +0000 (09:56 +0200)]
Merge pull request #40 from kirca/mk_lang
[ADD] Macedonian language