Merge lp:~openerp-dev/openobject-addons/7.0-opw-602425-msh into lp:openobject-addons/7.0

Proposed by Mohammed Shekha(Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-602425-msh
Merge into: lp:openobject-addons/7.0
Diff against target: 37 lines (+12/-4)
1 file modified
hr_timesheet_sheet/hr_timesheet_sheet.py (+12/-4)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-602425-msh
Reviewer Review Type Date Requested Status
Mohammed Shekha(Open ERP) (community) Needs Resubmitting
Martin Trigaux (OpenERP) (community) Needs Fixing
Vinay Rana (OpenERP) Pending
Naresh(OpenERP) Pending
Review via email: mp+200111@code.launchpad.net

Description of the change

Hello,

Fixed the issue of weeknumber retrived wrong in other locales, web-client date/datetime widget renders widget according to locale setting like start week day, so if week start day something other than the 0 then it is obvious that week number may differ but while fetching week number using python in name_get python returns week number according to standar without considering any locale, used babel to fetch week number according to locale settings.

Demo: Load Language Dutch/Netherland -> Go to Human Resources -> My Timesheet -> Create timehseet with date 16th December to 22nd, note that in Dutch week started with Monday, if you open date/datetime widget you will see week is started with Monday, for 16th to 22nd December in date/datetime widget and in title after saving the record differs(result of name_get).

Used babel to get week number, as babel also retrieves weeknumber based on week start day by considering language settings same as datejs does using globalization.

Thanks.

To post a comment you must log in.
9723. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9724. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9725. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9726. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9727. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9728. By Denis Ledoux (OpenERP)

[FIX] mail: mails with attachments containing special chars (such as é) were not delivered properly

get_filename method from email lib returns sometimes decoded value, sometimes still encoded.
for instance, get_filename cannot decode iso encoded filename

Recently, decode method has been applied on filename string, to handle iso encoded file.
Sadly, one cannot decode already decoded values.
Therefore, decoding already decoded windows or utf-8 encoded filename with special chars failed.

9729. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9730. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9731. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9732. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9733. By Martin Trigaux (OpenERP)

[FIX] mail: check access rules of related documents when subscribing to it
Fix tests to execute actions with user that are allowed to

9734. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9735. By Martin Trigaux (OpenERP)

[IMP] analytic: rename the field 'date' from 'End Date' to 'Expiration Date'. The date field is considered as not included by the system but the name of the field was not explicit enough (opw 602619)

9736. By Martin Trigaux (OpenERP)

[FIX] _auto_init: return a value to _auto_init calls. Backport of trunk revision 8679

9737. By Martin Trigaux (OpenERP)

[MERGE] [FIX] crm: post message for logged/scheduled call in use timezone instead of utc (opw #600751).
Use <time> html element containing UTC time.
Updated POT to contains new translation value

9738. By Olivier Dony (Odoo)

[FIX] crm.pot: duplicate msgid in previous commit

9739. By Martin Trigaux (OpenERP)

[IMP] crm: use %s pattern for variables in translations instead of {}, updated pot file

9740. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9741. By Martin Trigaux (OpenERP)

[FIX] mrp: move _prepare_order_line_procurement to model sale.order instead of procurement.oder. This will add the lost property_ids that was removed at rev 9622.

9742. By Quentin (OpenERP) <email address hidden>

[FIX] account: amount in secondary currency shouldn't be recomputed if 0 is given as value

9743. By Quentin (OpenERP) <email address hidden>

[FIX] account_voucher: default value for float field is 0.0, not False. (That doesn't change the behavior but makes things more clear)

9744. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9745. By Thibault Delavallée (OpenERP)

[FIX] mail: Chatter widget: keep void list of ids when fetching messages;
only specific false ids should be replaced by a domain.

9746. By Thibault Delavallée (OpenERP)

[FIX] mail: Chatter widget: the RecordThread widget, that is
used to display the Chatter on documents, should use the
domain defined on the field. Indeed this domain is used when
computing the 'read more' expandable domains.
Before this fix it was not taken into account, leading to
messages being fetched without respecting the domain
defined on the field.

9747. By Martin Trigaux (OpenERP)

[MERGE] [FIX] base_calendar: allow ordering on calendar.event objects.
The ordering is done during the generation of recurrent ids. If no ordering is done, fallback on self._order.
Based on code from Erik Heeren.

9748. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9749. By Martin Trigaux (OpenERP)

[FIX] stock: when receiving an incoming shipment, the default quantity should be prefilled.
This fixes the issue when the picking was first confirmed and received later, stock.move have the state as confirmed (Waiting Availibility)

9750. By Martin Trigaux (OpenERP)

[FIX] account_voucher: in fields_view_get overwrite, also add the 'default_supplier/customer' properity in context.
With this the 'create and edit' menu will initiate the partner as a supplier.

9751. By Martin Trigaux (OpenERP)

[FIX] mrp: move _prepare_order_line_procurement to module sale_mrp as mrp module does not depends from sale

9752. By Denis Ledoux (OpenERP)

[FIX] decimal_precision: signal workers to restart their registry when decimal precision change.

9753. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9754. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9755. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9756. By Martin Trigaux (OpenERP)

[MERGE] [FIX] account: fixed amount in foreign currency for opening entries

When generating fiscal year opening entries, if the account uses a different currency, the amount_currency should contains only the entries of the current year and not the previous one. Courtesy of Matthieu Dietrich (camptocamp)

9757. By Denis Ledoux (OpenERP)

[FIX] hr_timesheet_invoice: on_change_partner_id, do nothing if partner_id is False

9758. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9759. By Olivier Dony (Odoo)

[FIX] account: restore cross-account reconciliation check, disabled by mistake in v6.1

Both the FY closing change and the removal of the
check occurred in v6.1 at revision 6529
revid:<email address hidden>.

Also removed code specific to fiscal year closing
in the regular reconciliation operation, as the
FY closing is now using a dedication reconciliation
algorithm.

This is a forward-port of the corresponding patch in v6.1,
at revno 7295 rev-id: <email address hidden>.

9760. By Olivier Dony (Odoo)

[FIX] email_template: fix invalid uses of tools.email_split

This is necessary to have the tests pass after
the corresponding server patch in server 7.0
at revision 5198 revision-id: <email address hidden>

9761. By Denis Ledoux (OpenERP)

[FIX] purchase: fix workflow for orders based on incoming shipments

Purchase orders Based on incoming shipments never ended in done stage

9762. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9763. By Martin Trigaux (OpenERP)

[FIX] base_calendar: when sorting on a many2one field (format (id, name)), sort on the name value instead of full tuple

9764. By Olivier Dony (Odoo)

[FIX] portal: use email_split method to avoid blocking valid emails, rather than obsolete email_re

9765. By Thibault Delavallée (OpenERP)

[FIX] mail: mail_thread: fixed a bug in subscription, new followers
could overwrite the subscription of previous followers.

This has already been fixed in saas-2 branch at revision 9079 (revid
<email address hidden>). But the fix is also
valid for the 7.0 stable branch.

9766. By Martin Trigaux (OpenERP)

[IMP] sale,purchase order: order the field based on date_order instead of name (opw 602879)
This avoids getting irrelevent order based on sequences without padding (eg: SO10 between SO1 and SO2)

9767. By Denis Ledoux (OpenERP)

[FIX] hr_timesheet_sheet: save correctly if focus is in a timesheet input

on_change_unit_amount was called manually in the timesheet widget. Normally, save waits for all on_change to be applied, but in this case, as the on_change its called manually in the js, it was not the case.
The fix is to put all deferreds for which we must wait for in an array, and to wait all deferreds to be done before saving.

9768. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9769. By Martin Trigaux (OpenERP)

[FIX] base_calendar: when searching on events, avoid getting an error if virtual_id=False and count=True

9770. By Christophe Simonis (OpenERP)

[FIX] decimal_precision: clearing the cache is suffcient when decimal precision change.
[IMP] decimal_precision: call digits_change() on any field that support it, not only on float and function fields

9771. By Denis Ledoux (OpenERP)

[MERGE] mrp: in work orders duration is displayed in decimal numbers instead of time

9772. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9773. By Denis Ledoux (OpenERP)

[FIX] account_asset: accounts should be regular type only

Asset Account, Depreciation Account and Depr. Expense Account must be of type regular, only.

Thus, we add a domain on each, so we can choose only regular accounts.

9774. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9775. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9776. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9777. By Denis Ledoux (OpenERP)

[FIX] purchase: on unlink purchase order line, cancel procurements associated to the move of the purchase order line

9778. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9779. By Denis Ledoux (OpenERP)

[FIX] stock: updating cost price for products with cost method set to average price and inventory valuation periodic (manual) does not write move lines.

As the move line should be written manually by the accountant

9780. By Martin Trigaux (OpenERP)

[MERGE] [FIX] document_ftp: allow to use '..' command when traveling in ftp directories
This command is triggered when trying to go one level up in some FTP softwares (eg: FileZilla)

9781. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9782. By Martin Trigaux (OpenERP)

[FIX] email_template: error message instead of traceback when sending an email from a user without user

9783. By Martin Trigaux (OpenERP)

[MERGE] [FIX] project_long_term: do not schedule_phases if no project is found (avoid traceback)

9784. By Denis Ledoux (OpenERP)

[FIX] mrp, stock: avoid float rounding errors using float_compare

9785. By Martin Trigaux (OpenERP)

[MERGE] [FIX] plugin: fixing issues with push_message method (opw 593592)
retrieve 'message_id' key from dict produced by message_parse instead of 'message-id'
add author_id, message_from and message_id info
set message with content as html, do not add body_html field which is inexistant in mail.message model

9786. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9787. By Denis Ledoux (OpenERP)

[FIX] sale, purchase, sale_stock: on orders lines, on product changed, change the uom (even if the uom is in the same category)

9788. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9789. By Denis Ledoux (OpenERP)

[REVERT] 9401 <email address hidden>

This had as side-effect to not allow splitting BOMs
(a manufacturing order for 1 unit of a BOM producing 10 units consumed the lines like it was 10 units, not 1)

This fix was to avoid having a fraction of a unit (for instance, 0.5 unit).

But, finally, it is preferable to allow splitting units:
1. Most users do not use several uoms, and in this case, the unit is the default uom (hidden).
2. At the moment, it is allowed to ask a manufacturing order splitting up the unit uom
(It is allowed to ask the production of 0.5 USB Adapter, for instance)
Thus, we should allow the splitting up of the unit uom in the lines too.

9790. By Christophe Simonis (OpenERP)

[FIX] plugin: correct condition to match partners from emails.

correct copy/paste bug introduced in revid 9785 <email address hidden>

9791. By Antony Lesuisse (OpenERP)

[FIX] contract search view typo

9792. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9793. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9794. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9795. By Martin Trigaux (OpenERP)

[MERGE] [FIX] users_ldap: forward port of rev 7301 from 6.1, get rid of results without DN for searchResultReference

9796. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9797. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9798. By Denis Ledoux (OpenERP)

[FIX] purchase: on po confirm, avoid to write location_id on the chained stock move if the move is done

On purchase order confirmation, if the order_line comes from a procurement order created by a sale order,
it tried to write on the location_id, whatever the move state was, even done.

Or, sometimes, the stock move associated to the procurement order (from the so) was already done, for example because we forced the availability of the stock move.
It makes sense to not write the location_id if the move is already done, because the location_id is already good.

9799. By Martin Trigaux (OpenERP)

[MERGE] [FIX] account_voucher: forward port of fixes from 6.1 (rev 6966)
When importing invoices to a bank statement the bank statement lines are created with statement date instead of today
Set the date on the created voucher in the same wizard to the statement date instead of invoice date (problematic if different period)
When creating the account moves (at bank statement confirmation), make sur the date and period of the vouncher are synchronised

9800. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9801. By Martin Trigaux (OpenERP)

[FIX] stock: when creating manufacturing order from procurement workflow, do not write location on state (already set previously). (opw 603600)

This avoids having an access rights error when trying to write on a move in done state (eg: in case of force availibility)

9802. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9803. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9804. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9805. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9806. By Denis Ledoux (OpenERP)

[FIX] purchase: hide receive invoice if invoice based on purchase order line.

It has to be done manually.

opw-603620

9807. By Martin Trigaux (OpenERP)

[FIX] qweb templates: t-raw to t-esc

t-raw usage is discourage if not to displayed html content (after escaping) as it may contain unsafe data

9808. By Martin Trigaux (OpenERP)

[MERGE] [FIX] audittrail: various bugs (opw 603072)

- tracking unlink does not fail anymore
- do not track virtual fields on res.users model (would for .column call)
- make sure read calls with one id works (launchpad bug lp:1214149)
- select the correct model when tracking x2m fields values

9809. By Denis Ledoux (OpenERP)

[FIX] account: residual amount computation with refund invoices

On invoice residual amount computing, we ignore reconcile entries line if their invoice are not of the same type of the current invoice
The above revision(s) will be removed

9810. By Martin Trigaux (OpenERP)

[MERGE] [FIX] account: action 'Journal Items' on a journal entries should restrict by account.move and not journal (src_model) (opw 585153)

9811. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9812. By Martin Trigaux (OpenERP)

[MERGE] [FIX] mail: mail: backport of saas-2 revision 9065 and 9081 and security improvements.

Add followers before super call in mail_thread creation.
This allows to have a value for the _set_followers call and be able to have record rules based on followers at creation.

Set the priority of message_follower_ids fields to -10 (default is 0) to be sure it will be executed before other function fields using these followers (eg: _set_stage_per_user from note.note does a browse which would trigger record rules to read the note)

Context hack to avoid checking read access at creation of the record (check create rules instead)

9813. By Martin Trigaux (OpenERP)

[ADD] stock: update pot file to latest version of translations

9814. By Denis Ledoux (OpenERP)

[FIX] point_of_sale: validate and closing pos sessoin handle multi company

When the user who validated and closed the pos session was not the same user who created the session, and if this user was not in the same company, it wasnt possible to validate and close the pos session.

This explanation if also valid if the user who created the pos session changed of company in his preferences between the creation and the validation.

9815. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9816. By Olivier Dony (Odoo)

[FIX] project.task: simplify delegated tasks remapping after task copy + avoid write() call if not necessary

This avoids recomputing function fields if not
necessary.

9817. By Olivier Dony (Odoo)

[FIX] project.copy(): avoid preparing useless children data to copy, as they are discared in analytic.copy. Duplicating children is handled by duplicate_template().

9818. By Olivier Dony (Odoo)

[FIX] mail.thread: avoid tracking multiple temporary changes during copy

9819. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9820. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9821. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9822. By Martin Trigaux (OpenERP)

[FIX] mail: priority -10 on message_follower_ids to make sure executed before other function field that may use the followers (eg: note.note for access rights)

9823. By Thibault Delavallée (OpenERP)

[IMP] mail: subscription: if no-one to (un)subscribe, already return. This is not
necessary for computation, but saves some browse / access right checking.

9824. By Denis Ledoux (OpenERP)

[FIX] sale, sale_stock: send by email button visible when sent, progress or manual

+ remove 'invoiced' from statusbar_visible, as there is no such state
+ proper inherit in sale_stock form view

9825. By Denis Ledoux (OpenERP)

[FIX] point_of_sale: distraction error from revision 9814 revid:<email address hidden>, missing .id in order to compare company for taxes

9826. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9827. By Martin Trigaux (OpenERP)

[MERGE] [FIX] pricelist: correctly take into account uom when computing pricelists based on supplier price on product form (opw 595881)

The previous behaviour used the uom of the product while it is not necessary the one selected (eg: by default the purchase unit of measure for purchase orders).
This was an issue especially when having a different uom with supplier info lines setting degressive prices. The price should be computed based on selected uom and not the product uom.

9828. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9829. By Denis Ledoux (OpenERP)

[FIX]point_of_sale: Mode of payment displayed browse_record object instead of the name of the method payment

9830. By Olivier Dony (Odoo)

[FIX] base_action_rule: attempt to reuse creator language when evaluating action filters

Some filters needs to be evaluated with the same
language as their author, e.g. when searching on
translatable field values. When a time-based
action is processed by the scheduled task,
we should thus attempt to reuse the same
language as the author of the corresponding
filter.

9831. By Denis Ledoux (OpenERP)

[FIX] point_of_sale: sales summary report displays actual amount of taxes, instead of displaying the amount where the taxe is applied

9832. By Christophe Simonis (OpenERP)

[FIX] pad: hide chatter in fullscreen mode

9833. By Denis Ledoux (OpenERP)

[FIX] account_voucher: account_id always visible on sales & purchase receipts

account_id is mandatory, and is set thanks to an onchange of partner_id. But partner_id is not required, therefore, if you do not set a customer/supplier, there is no
     account_id set by default.

On the purchase, the account_id was always invisible. Therefore, it was impossible to set the account_id if you did not set any supplier
On the sale, the account_id was invisible if you set the pay_now to pay later. Therefore, it was impossible to set an account_id if you did not set any customer and set pay later.

Anyway, now, account_id is always displayed, so the user can change the value of account_id if the default value provided is not was he wants, whatever the value of the other fields

9834. By Denis Ledoux (OpenERP)

[FIX]account_voucher: do not set account_id to False during onchanges

9835. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9836. By Thibault Delavallée (OpenERP)

[MERGE] [FIX] fetchmail: more coherent and robust behavior of fetchmail. Notably, do not discard the whole email stack or stop after first crashed email processing.

Featuring:
- [FORWARD] [FIX] Forward port of revision 6920 of 6.1 addons branch, revid:<email address hidden>. Purpose: some fixes and more robuts handling of incoming emails
- [IMP] mail: mail_thread: message routing: raise exceptions instead of using asserts. Indeed assert are statements meant to be used when developping, for debug purpose. In a production environment it is safer to use real exceptions that can be managed accordingly.
- [FIX] mail: fixed tests, no more AssertionError, but ValueError
- [IMP] fetchmail: try / except each email processing. This allows to print an exception in the logs for every failed email processing, without crashing the whole stack. Any failed or succeeded email is set as seen, to avoid crashing every time the scheduler runs.

9837. By Denis Ledoux (OpenERP)

[FIX] base_import: auto_install True

Import feature should now be regarded as an opt-out feature:
Available by default, but you can disable it if you do not want it.

9838. By Olivier Dony (Odoo)

[FIX] base_vat: support Irish Tax numbers introduced in 2013

This is a temporary fix until upstream is fixed.
References:
- http://en.wikipedia.org/wiki/Personal_Public_Service_Number
- https://www.welfare.ie/en/Pages/Extension-of-the-Personal-Public-Service-Number-Range.aspx

9839. By Denis Ledoux (OpenERP)

[FIX] account: move_line_quick_add js, set the domain in the dataset (for instance, for export tool) + performance improvement (no need to re-compute journal list and period list each time a search is done)

9840. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9841. By Denis Ledoux (OpenERP)

[FIX] event: on_change methods must return a dict, always.

9842. By Denis Ledoux (OpenERP)

[FIX] mail: word wrapping in pre tags (for mails without html in chatter)

9843. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9844. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9845. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9846. By Denis Ledoux (OpenERP)

[FIX] crm: on_change_partner did not set the zip code in lead/opp

9847. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9848. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9849. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9850. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9851. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9852. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9853. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9854. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9855. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9856. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9857. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9858. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9859. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9860. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9861. By Denis Ledoux (OpenERP)

[FIX]stock: in fill inventory wizard, set raise-exception to False in context to avoid having error saying that the product uom category is different: this button is just a tool to help filling the inventory. Anyway, If it should pop the error, it should be on the validation, not in the button to auto-fill the inventory.

9862. By Denis Ledoux (OpenERP)

[REVERT] partial revert <email address hidden>, distraction error, left pudb

9863. By Martin Trigaux (OpenERP)

[FIX] hr_payroll_account: compare debit and credit values with float_compare, this avoids float rounding issues

9864. By Olivier Dony (Odoo)

[FIX] product: avoid reading image_small field which is bandwidth intensive and un-necessary

9865. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9866. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9867. By Martin Trigaux (OpenERP)

[FIX] base_import: update the select2 library up to version 3.4.5

This fixes rendering issue in firefox (mouseover bar chart in dashbord view)
Replace the new localisation of select2 by our translation system

9868. By Martin Trigaux (OpenERP)

[FIX] product: when converting unit of mesures, use ceiling instead of rounding method

This avoids flows to be stucked when a convertion would move/reserve/buy less pieces than the number required (eg: MTO product where supplier has a UoM bigger than the one on the sale order)

9869. By Martin Trigaux (OpenERP)

[FIX] use float rounding for pricelist instead of ceiling

9870. By Olivier Dony (Odoo)

[FIX] product: typo in previous commit

"The only man who makes no mistakes is the man who never does anything. ~T.R." ;-)

9871. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9872. By Martin Trigaux (OpenERP)

[MERGE] [FIX] mail: make subject of invitation wizard translatable

9873. By Martin Trigaux (OpenERP)

[MERGE] [IMP] account: don't display misleading percent symbol while expecting fraction (as suggest the tooltip) (opw #602613)

9874. By Martin Trigaux (OpenERP)

[FIX] phonecall: in 'Logged Call' menu display (by default) only the one in done state (opw 601725)

9875. By Juan Rial (OpenERP)

[MERGE] [FIX] errors on translations generated from localisation template in multilang (opw-589913)

Don't sort the tax template id's or the wrong translation gets loaded

9876. By Juan Rial (OpenERP)

[MERGE] [FIX] division by zero in product margins with 0 sale price and 0 qty (#591893)

9877. By Martin Trigaux (OpenERP)

[MERGE] [FIX] write a value to date_closed when mark an opportunity as won or lost.

This is required to compute correct value for the day_close function field

9878. By Juan Rial (OpenERP)

[MERGE] [FIX] Skip Draft on Journals didn't take effect (#603952)

Fix: call the validate method to advance the entries to posted state

9879. By Juan Rial (OpenERP)

[MERGE] [FIX] Demo data had wrong end date for yearly membership (#602129)

9880. By Martin Trigaux (OpenERP)

[MERGE] [FIX] base_calendar: when computing the reccurency of an event, skip if no recurrency period is set (opw 598737)

Fix the calendar view so that the recurrency period is editable when checking the 'recurrency' checkbox

9881. By Martin Trigaux (OpenERP)

[MERGE] [FIX] mrp_repair: add missing invalidation functions for stored field amount_total, courtesy of Alexandre Fayolle (camptocamp)

9882. By Juan Rial (OpenERP)

[FIX] [MERGE] [SALE] Filter invoice and ship address on sales order to contacts of the selected customer (#592166)

9883. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9884. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9885. By Denis Ledoux (OpenERP)

[FIX] event: event report registration, replace char by varchar in the view, so it can handle more events (basically, it wasnt working when there was more than 10 events)

Courtesy of Muschang Anthony (Acsone)

9886. By Denis Ledoux (OpenERP)

[REVERT]9882 revid:<email address hidden>

While it seems right to only show the partner addresses in invoice and shipping addresses, this fix will prevent to use sibling addresses (the address of another contact in the same company), which is a requirement for several users. Therefore, this fix causes more problems than it resolves.

Moreover, these addresses are displayed on the invoice form as following: Company Name / Partner Name / Address Name. Therefore, if you want to change the address while seeing only the partner addresses, you just have to remove the "Address Name", leaving "Company Name / Partner Name".

9887. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9888. By Martin Trigaux (OpenERP)

[FIX] crm: write a value to date_closed field as well if change directly the stage instead of using buttons (opw 603537)

9889. By Olivier Dony (Odoo)

[FIX] portal: expensive copy/paste typo

9890. By Denis Ledoux (OpenERP)

[FIX] portal: expensive copy/paste typo

9891. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9892. By Martin Trigaux (OpenERP)

[MERGE] [FIX] auditrail: when removing tracked object in a write call (eg: remove a line in o2m field) use the old name value, if present, as the name_get would fail for deleted value (opw 593569)

9893. By Denis Ledoux (OpenERP)

[FIX] account_check_writing: set the amount_in_word even if the check is not created through the voucher form (for example, for checks created through pay wizard of invoices)

9894. By Denis Ledoux (OpenERP)

[FIX] account: using float_round instead of native python round method, to apply half-up tie-breaking rule (1.655 with precision 2 is now 1.66 instead of 1.65).

9895. By nel

[FIX] account: change decimal precision to avoid erasing tax and base values when updating a tax with coefficients on more than 2 decimals

9896. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9897. By Martin Trigaux (OpenERP)

[FIX] base_import: avoid name clash when importing ir.translation records. Call the orm method directly.

This hack is needed in 7.0 to avoid changes in the API.
Renaming the load method of ir.translation is the proper solution for trunk (done in server revision 5018)

9898. By Christophe Simonis (OpenERP)

[FIX] stock: use fully qualified xmlid in *_view_ref context keys

9899. By Christophe Simonis (OpenERP)

[FIX] pad: use server to get pad content

9900. By Martin Trigaux (OpenERP)

[MERGE] [FIX] base_calendar: correct the set method for rrule (opw 605088)

- create hook method to fix the invalid call while keeping the signature of the old methdo
- remove undeclared variable
- force the 'byday' field (type selection) to be a string value instead of an integer

9901. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9902. By Christophe Simonis (OpenERP)

[FIX] calendar: correct recurrency end date computation

9903. By Olivier Dony (Odoo)

[FIX] mail.thread: avoid error if `message_unread_count` has been popped 1 line earlier

9904. By Christophe Simonis (OpenERP)

[FIX] share wizard: delete wizard lines in cascade

9905. By Olivier Dony (Odoo)

[FIX] pad: improve pad bootstrap, prevent creating useless empty pads, avoid edition warning in read-only mode for new pads, translate messages

Added a small method to detect the proper server configuration,
and make it degrade gracefully if the method is not present.
This avoids having to force a pad URL generation in order to
test the config (possibly creating useless pads).
Add a user-friendly message when the pad has not yet been
initialized for a given record, in read-only mode.

9906. By Martin Trigaux (OpenERP)

[MERGE] [FIX] stock: add some missing context, courtesy of Lionel Sausin (Numérigraphe)

9907. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9908. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9909. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9910. By Denis Ledoux (OpenERP)

[FIX] point_of_sale: prevent duplicated order posting

9911. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9912. By Denis Ledoux (OpenERP)

[FIX] purchase: for drop shipping po, the supplier of the picking was the customer address, which is obviously wrong, it should be the supplier of the po

9913. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9914. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9915. By Olivier Dony (Odoo)

[FIX] subscription: missing required dependency on `base`

9916. By Denis Ledoux (OpenERP)

[FIX] stock: force form_view_ref to False in context of actions track_line and scrap_move to avoid context propagation of stock picking views

9917. By Denis Ledoux (OpenERP)

[FIX] point_of_sale: add multi-companies rules on pos.config

9918. By Denis Ledoux (OpenERP)

[FIX] survey: report not stored on filesystem

9919. By jke-openerp

[FIX] Move default value in the _defaults of model and not in default_get.
Don't override the location_id if the super get_default don't retrun a value.

Else it is impossible to set a default value, because the ir_values is always overrided with stock_location_stock as location_id

9920. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9921. By Denis Ledoux (OpenERP)

[FIX] survey: avoid duplicate partners on new users creation

9922. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9923. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9924. By sle-openerp

[FIX] last version of wkhtmltopdf expects all file to have a doctype, inject one if not present

9925. By Denis Ledoux (OpenERP)

[FIX] sale: trigger signal manual invoice for make invoices wizard (not advance)

9926. By Denis Ledoux (OpenERP)

[FIX] sale: make invoice for SO grouped by partner based on partner_invoice_id instead of just partner_id

For two sale order, if the partner_id were different but the partner_invoice_id were identical, the make invoice grouped by partner created two different invoices

9927. By Olivier Dony (Odoo)

[MERGE] l10n_fr: remove obsolete French taxes, following 2014 rate update, courtesy of Alexis de Lattre (Akretion)

9928. By Martin Trigaux (OpenERP)

[MERGE] [FIX] purchase_requisition: when getting the price based on the pricelist for a supplier, pass the missing supplier id (useful for pricelist based on supplier price) (opw 601890)

9929. By Denis Ledoux (OpenERP)

[FIX] project: on project template duplication, keep original tasks stages

9930. By Martin Trigaux (OpenERP)

[MERGE] [FIX] base_calendar: do not add offset symbol to end_date when computing rrule

Fix issue when recurrent event (repeat until specified date) with reminder, would fail comparing naive and offset-aware datetimes

9931. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9932. By Martin Trigaux (OpenERP)

[MERGE] [FIX] point_of_sale: replace search_read call by search + read (search_read not present in 7.0)

9933. By Martin Trigaux (OpenERP)

[MERGE] [FIX] mrp_repair: create invoice button does not update the view

partial backport of trunk revision 8862
courtesy of Leonardo Pistone (camptocamp)

9934. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9935. By Denis Ledoux (OpenERP)

[MERGE][IMP] account: Set the order of the sequence by date while posting journal entries from wizard Periodical Processing> Draft Entries> Post Journal Entries

9936. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9937. By Denis Ledoux (OpenERP)

[FIX] account_voucher: bank statement reconciliation for refund invoice

9938. By Martin Trigaux (OpenERP)

[MERGE] [FIX] project: function field 'doc_count' is of type integer, not int, courtesy of Yanina Aular (Vauxoo)

9939. By Martin Trigaux (OpenERP)

[MERGE] [FIX] procurement: cancelling purchase order should trigger action_assign on the stock move to correctly handle linked picking

9940. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9941. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9942. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9943. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9944. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9945. By Martin Trigaux (OpenERP)

[FIX] sale: remove unnecessary write call changing state when creating invoice in 'Order Lines to Invoice' menu (opw 600073).

If sale order was with invoice based on delivery order mode, a done sale order would be put back to progress state.

9946. By Denis Ledoux (OpenERP)

[FIX] account_voucher: it is authorized to enter invoice with negative amount, therefore the check amount constraint must take that into account

9947. By Martin Trigaux (OpenERP)

[FIX] hr_payroll: when computing pyslip lines, avoid previous rules to corrupt result_rate info in localdict and other contracts

9948. By Olivier Dony (Odoo)

[FIX] account_report_company: missing index on `display_name`

9949. By Martin Trigaux (OpenERP)

[MERGE] [IMP] project: avoid showing closed projects when creating a new task (opw #605218)

9950. By Olivier Dony (Odoo)

[FIX] project,project_issue: missing indexes on stage/state/project_id/user_id

9951. By Olivier Dony (Odoo)

[FIX] crm.lead: missing index on stage_id/type/state

9952. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9953. By Christophe Simonis (OpenERP)

[FIX] share: at module init force re-generation of the user groups view without the shared groups

9954. By Christophe Simonis (OpenERP)

[FIX] share: move inheritance from res.user before the one from res.groups because res.groups need the change on res.users in its init() function.
[FIX] share: call parent init() if present in res.groups

9955. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9956. By Olivier Dony (Odoo)

[MERGE] stock,mrp: restore deactivated tests (backport from trunk), courtesy of Lionel Sausin (Numerigraphe)

9957. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9958. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9959. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9960. By Denis Ledoux (OpenERP)

[FIX] l10n_be: tax VAT-IN-V82-CAR-EXC-C1 should have as invoice and refund tax account the 'TVA non deductible' account

9961. By jke-openerp

[FIX] Purchase - Make type 'order' as default invoice method in 'Purchase Settings'. Purchase by default use 'order', once an user update a parameter in 'Purchase Setting' without changing the default type (which by default was set to manual and not to order) the behavior is changed

9962. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9963. By Denis Ledoux (OpenERP)

[FIX] account_invoice: print invoice report, pto missplaced around the whole report instead of just the invoice lines

9964. By Denis Ledoux (OpenERP)

[MERGE][FIX] sale: sale order report, pto in invoice template should not cover the whole document

Courtesy of Stefan Rijnhart (Therp)

9965. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9966. By Martin Trigaux (OpenERP)

[FIX] account_asset: copy should not keep history and move lines of previous asset

9967. By Martin Trigaux (OpenERP)

[FIX] analytic_user_function: add missing _rec_name

9968. By Denis Ledoux (OpenERP)

[FIX] pad: render_value binded on change effective_readonly event, so render value calls wait for each others

9969. By Denis Ledoux (OpenERP)

[FIX] pad: render_value binded on change effective_readonly event, so render value calls wait for each others

Proper fix than 9968 revid:<email address hidden>

9970. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9971. By Christophe Simonis (OpenERP)

[FIX] account: Chart Installer: new way to get apps server

9972. By Martin Trigaux (OpenERP)

[MERGE] [FIX] account_budget: fix the computation of theorical amount field (opw 606232)

The amount should use number of days +1
eg: budget from 2014-04-01 to 2014-04-11, today is 2014-04-10, should be 10/11*amount instead of 9/10*amount

9973. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9974. By Olivier Dony (Odoo)

[FIX] mail.thread: avoid wrongly matching model,id from a foreign OpenERP system

When emails transit from an OpenERP system to another
there is a chance of wrongly considering the foreign
model,id pair as local, possibly attaching a reply
to a wrong parent message.
This naive heuristic ignore the foreign identifiers
unless the hostname of the message-id mentioned in
the In-Reply-To header matches the local one.
This may fail after a change of local hostname but
is still better than the alternative.
In OpenERP v8 we should stop including the model,res_id
in outgoing Message-Id headers and only rely on the
stored, opaque, unique Message-Ids, preventing
any future mismatch.

9975. By Denis Ledoux (OpenERP)

[FIX] 500 error on connection when using PyWebDAV 0.9.4
(and maybe others)

Courtesy of Holger Brunn (Therp)

9976. By Olivier Dony (Odoo)

[FIX] mail.thread: avoid overwriting thread_id/model with foreign values when reply-to hostname does not match + fix tests

This improve previous commit by making sure we
never consider the thread_id/model values in the
In-Reply-To/References header if the host name
did not match.
Also fixes the tests that were using the
6.1 compatibility mode to post in a mail group
thread instead of specifying the right
message-id.

9977. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9978. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9979. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9980. By Denis Ledoux (OpenERP)

[FIX] account: name_search methods used '=' or 'ilike' to search, instead of the actual operator

Therefore, for example, searching invoices for journals doesnt containing 'sales' actually returned invoices with journal containing 'sales'.

9981. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9982. By Denis Ledoux (OpenERP)

[FIX] purchase: invoiced based on invoiced bool of purchase order line, instead of rate

invoiced bool of purchase order line is set to true on invoice validation, not on invoice creation

9983. By Denis Ledoux (OpenERP)

[MERGE][FIX] account: while refuding the invoice with payment term journal items are created wrongly with write-off account

9984. By Denis Ledoux (OpenERP)

[FIX] stock: before creating chained pickings, regroup moves by chained auto packing

Before, all moves issued from a same purchase order were put in the same chained picking, and, therefore, the moves were all treated with the same behavior (manually, automaticaly, ...)

9985. By Martin Trigaux (OpenERP)

[FIX] mail: mail: convert attachments to binary as it is the expected format of message_post opw 604205

The double convertion (render_message and send_mail) is done to keep the API but should be changed in next version.

9986. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9987. By Martin Trigaux (OpenERP)

[FIX] account_anglo_saxon: avoid incorrect conversion while creating invoice in different currency than the one of the company (opw 606408).

Without this patch the generated entries would use incorrect currencies. The expected result from move_line_get are prices in the currency of the invoice.

9988. By Thibault Delavallée (OpenERP)

[FIX] crm_todo: usability fix: the lead was not present
in the task form view, but in the tree view, it is now present in both view when coming from 'my tasks' in crm menu.

9989. By Thibault Delavallée (OpenERP)

[FIX] crm_helpdesk: when creating a new helpdesk category
it was not possible to re-use the category due to a missing object_id.

9990. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9991. By Denis Ledoux (OpenERP)

[FIX] note: folded by default was not considered

9992. By Denis Ledoux (OpenERP)

[FIX] account_analytics_plan: for bank statement move, the analytic distribution must not be written on the counterpart move line

9993. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9994. By Martin Trigaux (OpenERP)

[FIX] mail: correct missing comma in domain on mail.mail

9995. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9996. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9997. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

Hello,

Thanks for the proposal but it needs some fixes
- if context is None, it would crash
- why using read ? try to stick to usual browse (browse has caching)
- do not convert the date yourself, use a date object methods (parsed with DEFAULT_SERVER_DATE_FORMAT)

Thanks

review: Needs Fixing
9998. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9999. By Denis Ledoux (OpenERP)

[MERGE][FIX] stock: typos in inventory analysis wizard - opw 606933

10000. By Martin Trigaux (OpenERP)

[MERGE] [FIX] account unreconciliation and voucher cancelation (opw 605498)

When canceling a voucher or unreconciling move lines, make sure the linked invoice is still correct and has valid payment lines (if cancel one of two payments, should have the other one left).
Forward-port from 6.0 addons revision:5094

Oh, by the way, revision 10000 !

10001. By Martin Trigaux (OpenERP)

[FIX] sale: move demo data from sale to sale_stock

A better fix would be to create a sale_procurement module (sale_stock has sale, procurement and stock as dependecies) but a bit overkill for simple demo data

10002. By Denis Ledoux (OpenERP)

[FIX] note: typo in manifest

10003. By Martin Trigaux (OpenERP)

[FIX] account: avoid tax on name search to execute request with empty journal (if context == {'journal_id': False}) (opw 606875)

10004. By Martin Trigaux (OpenERP)

[MERGE] [FIX] stock: when duplicating a stock.move, remove serial number and tracking information in every cases instead of specific to duplication of invocies, courtesy of Guewen Baconnier

10005. By Denis Ledoux (OpenERP)

[FIX] *: in search views, use operator=child_of instead of filter_domain with a child_of domain

operator child_of has the advantage to do exact ID matching for many2one, and not just matching on the name

10006. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10007. By Martin Trigaux (OpenERP)

[MERGE] [FIX] procurement: default_get in orderpoint make a search instead of hardcoding a warehouse as it's possible te user do not have access to it (e.g. multicompany), courtesy of Romain Deheele(Camptocamp)

10008. By Martin Trigaux (OpenERP)

[MERGE] [FIX] account_voucher: in recompute_voucher_lines, ensure the price value is not modified when computing the writeoff_amount.

Using the remaining amount for writeoff does not make sense as the amount is already in credit or debit lines.
This issue could be observed in the payment wizard where the execution of _compute_writeoff_amount (through onchange) would be a negative value at the first execution.

10009. By Denis Ledoux (OpenERP)

[FIX] hr_timesheet_sheet: allow writing attendance line not according to the date order, and check that the attendances satisfy the alternance constraint, even for delete operations

10010. By Martin Trigaux (OpenERP)

[MERGE] [FIX] stock: fix error when executing a read_group on stock.picking.in and out, courtesy of Yannick Vaucher (Camptocamp)

10011. By Martin Trigaux (OpenERP)

[FIX] stock: pass the geven limit attribute in read_group call, courtesy of Guewen Baconnier

10012. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10013. By Martin Trigaux (OpenERP)

[MERGE] [FIX] stock: add product_lot group on Traceability group as some parts of this group are restricted to this group and you can have production_lot without tracking_lot, courtesy of Mohammad Alhashash

10014. By Denis Ledoux (OpenERP)

[FIX] sale_stock: recreate delivery order generates only the remaining products to deliver

Like it should do, the feature was broken
Moreover, it resolves a performance issue (do with 100 lines took up to 10 minutes)

10015. By Martin Trigaux (OpenERP)

[FIX] hr_timesheet_sheet: forbid to record an attendance in a submitted timesheet (opw 592632)

10016. By Denis Ledoux (OpenERP)

[FIX] product: price computation failed when for pricelists based on Cost price for non-employee users

10017. By Denis Ledoux (OpenERP)

[FIX] multi_company: set currency of OpenERP US to USD in the demo data

10018. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10019. By Martin Trigaux (OpenERP)

[MERGE] [FIX] hr_timesheet_sheet: make it timezone tolerant and avoid errors when comparing datetime and dates, courtesy of Yannick Vaucher (Camptocamp)

The attendance date recieved by the server is in UTC while the user sees it in his timezone. This means that an attendance could be in a timesheet (bounded by dates) for a user but not for the server which would not accept a valid attendance.
The fix will make the check in the user's timezone.

Only the date part of the attendance is kept for comparison as the boundaries are dates objects.

10020. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10021. By Anaël Closson (openerp)

[FIX] stock: destination location should not be limited to internal as this wizard is also used for incoming and outgoing pickings (opw 606213)

10022. By Martin Trigaux (OpenERP)

[MERGE] [FIX] mail: make the detection of Content-Type based on filename instead of only offering 'application/octet-stream'. This allows to have a better detection of the software to use by the browser. opw 606233

10023. By Martin Trigaux (OpenERP)

[FIX] stock: recompute the qty_available based on the location instead of using the one in the result of the browse (opw 606423)

The qty_available field is a function field that uses the information of the context (eg: location) to compute the value. Using the global browse record would return the same qty_available value for each location (and then produce way too many account.move)

10024. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10025. By Olivier Dony (Odoo)

[FIX] mail: avoid catching (transient) MemoryErrors when sending outgoing mail

This would permanently mark the mail as failed while
there is a good chance it will be sent properly next
time it is retried (provided the memory situation
improves or the server/worker has restarted).

10026. By Martin Trigaux (OpenERP)

[FIX] stock: when delivering a product in average cost, make sure the price_unit on the stock.move is up to date (opw 607272)

The price mentioned on the stock move from the delivery order is the one at the time of the sale order confirmation. On average price, the price can be different when the delivery is actually done. The price will then be refreshed with the one specified on the product.

10027. By Martin Trigaux (OpenERP)

[MERGE] [FIX] hr_timesheet_sheet: set default date to now when computing date in user's timezone, courtesy of Yannick Vaucher (Camptocamp)

eg: the sign-in/sign-out button on the employee do not provide date yet (value defined in _defaults) and it would broke the computation

10028. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10029. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10030. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10031. By Olivier Dony (Odoo)

[MERGE] mail: avoid resetting purposefully empty catchall domain setting, courtesy of Stefan Rijnhart (Therp)

10032. By Jacques-Etienne Baudoux

[FIX] mail: change copy call to copy_data to avoid resending email during duplication (opw 607295)

10033. By Martin Trigaux (OpenERP)

[MERGE] [FIX] hr: when duplicating an employee or user, do not duplicate the reference to other employees (opw 607313)

10034. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10035. By Denis Ledoux (OpenERP)

[FIX] auth_oauth: missing field body in formview

The body is the field used to actually display the 'log in with ...'
As not shown in the view, when adding a new provider, this field was empty and therefore wasnt visible on the login form...

10036. By Martin Trigaux (OpenERP)

[FIX] warning: make blocking warning actually doing something (opw 607380)

Instead of raising an exception (which only interupt the call of the onchange methods), return a dictionnary to set the forbidden partner or product to an empty value.
The call is not blocking in a way to forbid creating a record that uses this partner/product but it is not possible to select it through the web interface.

10037. By Martin Trigaux (OpenERP)

[FIX] account: when creating partial reconcilation after unreconciliating one invoice, make sure we create this partial reconcilation only if we have at least two lines

10038. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10039. By Martin Trigaux (OpenERP)

[MERGE] [FIX] document_page: allow other users than administrator to create menu to a static page

Due to a global rule on ir.values (which is created when creating a ir.ui.menu), we need to execute the action as super user.

10040. By Martin Trigaux (OpenERP)

[FIX] hr_holidays: better display of leave counter (opw 605016)

The number of leave requests left is based on the employee_id key in the context, when displaying the status of an hr.holidays we don't have the information in the name_get of the hr.holidays.status.
The fallback on the number of employees is done with the uid but we can not rely on it as well as the name_get on m2o field is done with superuser_id.

10041. By Martin Trigaux (OpenERP)

[FIX] product: when duplicating a product, keep the language in the context

At the time of the context_wo_lang patch (7.0 revision 6577), the orm did not keep the language in copy_data, this patch intended to be more consistent.
Since server revision 5146 7.0, the new behaviour is to use the translated version in copy_data. Removign this change will be more consistent with the orm.

The expected behaviour is now the following:
In user lang: translated product name + translated '(copy)'
In other lang: same as original product

10042. By Martin Trigaux (OpenERP)

[FIX] analytic: should not set mutable objects in method declaration (python gotcha)

10043. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

10044. By Mohammed Shekha(Open ERP)

[FIX]Refixed the issue of weeknumber retrived wrong in other locales, web-client date/datetime widget renders widget according to locale setting like start week day, so if week start day something other than the 0 then it is obvious that week number may differ but while fetching week number using python in name_get python returns week number according to standar without considering any locale, used babel to fetch week number according to locale settings.

Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote :

Hello Martin,

Thanks for the review.

I have refixed the issue as per suggestions.

Thanks.

review: Needs Resubmitting

Unmerged revisions

10044. By Mohammed Shekha(Open ERP)

[FIX]Refixed the issue of weeknumber retrived wrong in other locales, web-client date/datetime widget renders widget according to locale setting like start week day, so if week start day something other than the 0 then it is obvious that week number may differ but while fetching week number using python in name_get python returns week number according to standar without considering any locale, used babel to fetch week number according to locale settings.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hr_timesheet_sheet/hr_timesheet_sheet.py'
2--- hr_timesheet_sheet/hr_timesheet_sheet.py 2014-04-30 11:37:30 +0000
3+++ hr_timesheet_sheet/hr_timesheet_sheet.py 2014-05-12 05:10:10 +0000
4@@ -20,11 +20,13 @@
5 ##############################################################################
6
7 import time
8-from datetime import datetime
9+import babel
10+from datetime import datetime, timedelta
11 from dateutil.relativedelta import relativedelta
12 from pytz import timezone
13 import pytz
14
15+from openerp import tools
16 from openerp.osv import fields, osv
17 from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT
18 from openerp.tools.translate import _
19@@ -233,9 +235,15 @@
20 return []
21 if isinstance(ids, (long, int)):
22 ids = [ids]
23- return [(r['id'], _('Week ')+datetime.strptime(r['date_from'], '%Y-%m-%d').strftime('%U')) \
24- for r in self.read(cr, uid, ids, ['date_from'],
25- context=context, load='_classic_write')]
26+ if context is None:
27+ context = {}
28+ res = []
29+ for r in self.browse(cr, uid, ids, context=context):
30+ from_date = datetime.strptime(r.date_from, tools.DEFAULT_SERVER_DATE_FORMAT).date()
31+ week_number = babel.dates.format_date(
32+ from_date, format='w', locale=context.get('lang', 'en_US'))
33+ res.append((r.id, _('Week ')+str(week_number)))
34+ return res
35
36 def unlink(self, cr, uid, ids, context=None):
37 sheets = self.read(cr, uid, ids, ['state','total_attendance'], context=context)