Merge lp:~alhashash/openobject-addons/7.0-bug-1219204 into lp:openobject-addons/7.0

Proposed by Mohammad Alhashash
Status: Needs review
Proposed branch: lp:~alhashash/openobject-addons/7.0-bug-1219204
Merge into: lp:openobject-addons/7.0
Diff against target: 28 lines (+3/-4)
2 files modified
account/account.py (+1/-1)
account/account_move_line.py (+2/-3)
To merge this branch: bzr merge lp:~alhashash/openobject-addons/7.0-bug-1219204
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+188430@code.launchpad.net
To post a comment you must log in.
9488. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9489. By Denis Ledoux (OpenERP)

[FIX]portal: add share flag to portaltemplate user and portal demo user

9490. By Denis Ledoux (OpenERP)

[FIX]portal: previous commit was wrong. I was distracted. auth_signup do not depends on share, portal is, so moving the values['share'] = true to portal module

9491. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9492. By Martin Trigaux (OpenERP)

[FIX] point_of_sale: remove useless or condition in tax computation

9493. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9494. By Denis Ledoux (OpenERP)

[FIX]mail: backport of fix 8787 from saas-1 branch, rev-id: <email address hidden>

9495. By Olivier Dony (Odoo)

[MERGE] auth_signup: invitation mail - fallback to user email when company has no email

This avoids a confusing error message. The email
sender does not matter much in this case anyway.

9496. By Olivier Dony (Odoo)

[MERGE] hr_timesheet_invoice: make YML tests more robust wrt extra demo data, courtesy of Moisés López (Vauxoo)

9497. By Olivier Dony (Odoo)

[MERGE] l10n_br: addition of some IPI taxes, courtesy of Renato Lima (Akretion)

9498. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9499. By Olivier Dony (Odoo)

[MERGE] account: CoA installer: include parent charts when determining default taxes, otherwise they cannot be set during install

See comments on this MP for some background:
  https://code.launchpad.net/~pedro.baeza/openobject-addons/7.0-updated_l10n_es/+merge/161654

9500. By Olivier Dony (Odoo)

[MERGE] account_voucher, product, stock: use selection widgets for magic context fields, to pass IDs in the context instead of strings

Many2one fields resolve to strings when used
as `self` within the @context or @filter_domain
attributes of a search field, because they
must be able to support partial matches,
e.g. search for "Sto" to match "Stock".
In many case the code was not prepared to accept
string for the magic context values, so the
magic fields now caused crashes.

The widget="selection" attribute was dropped
during the search view cleanup for 7.0,
without noticing this unfortunate side-effect,
at revision:
  addons 7.0 revno 7142 revid:<email address hidden>

9501. By Olivier Dony (Odoo)

[MERGE] l10n_it: fix taxes, add new 22% IVA introduced on 2013-10-01, courtesy of Leonardo Pistone (Agile BG)

9502. By Martin Trigaux (OpenERP)

[MERGE] [FIX] purchase: avoid being spammed with workflow exceptions when don't have the required suppliers info

9503. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9504. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9505. By Martin Trigaux (OpenERP)

[MERGE] [FIX] purchase: block workflow when supplier check fails, even if already has set an error message

9506. By Martin Trigaux (OpenERP)

[FIX] sale: don't set mrp_properties by default for root user (adding sale order lines in a popup instead of editable mode)

9507. By Denis Ledoux (OpenERP)

[FIX]mail: update.py, using message_post instead of mail.message create, in order to notify users and the administrator

9508. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9509. By Denis Ledoux (OpenERP)

[FIX]mail: mail_thread, trying to send a message in the chatter while the emails where all mal-formed raised an error.

9510. By Martin Trigaux (OpenERP)

[FIX] account: revert commit 9265, show every invoice line in the list view and do not force domain on it to remove 0 debit/credit lines

9511. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9512. By Martin Trigaux (OpenERP)

[IMP] purchase: put back sql request to set exception message and avoid context hack

9513. By Christophe Simonis (OpenERP)

[FIX] note: copy default stages as SUPERUSER_ID to avoid access error. Only do it for employees

9514. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9515. By Olivier Dony (Odoo)

[MERGE] l10n_fr: update tax templates for 2014 taxes, courtesy of Frederic Clementi (Camptocamp)

summary of VAT rates changes for the 01/01/2014:
Taux normal : 20% replace 19.6%
Taux intermédaire : 10% replace 7%
Taux spécial DOM-TOM : no change (8.5%)
Taux réduit : 5% replace 5.5%
Taux super réduit : no change (2.1%)

see also: http://www.service-public.fr/professionnels-entreprises/actualites/00891.html

9516. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9517. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9518. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9519. By Martin Trigaux (OpenERP)

[FIX] pos: check constraint on session instead of uid (eg: runbot import demo data with uid=1 but other user_id

9520. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9521. By Martin Trigaux (OpenERP)

[FIX] stock: correctly handle case when we have no child location

9522. By Christophe Matthieu (OpenERP)

[FIX] product: wrong product and supplierinfo demo data. Because product_id of product.supplierinfo is a product.template field and not a product.product field

9523. By Martin Trigaux (OpenERP)

[FIX] account: include reconciled move lines generated at the opening of a new fiscal year (and indirectly take into account moves from previous fiscal years)

9524. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9525. By Thibault Delavallée (OpenERP)

[FIX] hr: fixed priorities of kanban views. Employees see the
kanban view defined for portal users because of priorities all equal to 16.
Now employees see the correct kanban view defined in HR, portal users see
the portal kanban view defined in portal_hr_employees.

9526. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9527. By Martin Trigaux (OpenERP)

[FIX] procurement: avoid getting loop of state change when a procurement is stuck in an exception and retried by the scheduler (opw 598606)

9528. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9529. By Martin Trigaux (OpenERP)

[FIX] mrp_repair: use action_done to validate a operation componenents when ending a repair
This allows to generate journal entries in case of real time stock evaluation (opw 599170)

9530. By Martin Trigaux (OpenERP)

[FIX] account: correct test on closing fiscal year to fail with error message and set the test to the previous year instead of next year (makes more sense)

9531. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9532. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9533. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9534. By Martin Trigaux (OpenERP)

[FIX] procurement: change SQL query to be compatible with both postgres 8.4 and 9.3

9535. By Olivier Dony (Odoo)

[FIX] l10n_fr: 2014 tax update patch has removed obsolete templates, causing an error at module update

Due to the relationship between fiscal position
templates and tax templates, the removal of
obsolete tax templates may crash if the corresponding
fiscal positions are not deleted before.
In a recent l10n_fr patch [1] a number of
templates disappeared, which causes an error during
subsequent updates on databases where the obsolete
templates are still present.

As a workaround, we can force a deletion of
all fiscal position templates before loading
them. This is relatively safe because the templates
are not connected to live data, and will be
re-created during the update (except for the
obsolete ones which will be gone forever).

[1] addons 7.0 rev 9515 rev-id: <email address hidden>

9536. By Martin Trigaux (OpenERP)

[FIX] hr_timesheet: cost and revenues of parent analytic accounts aggregate from child analytic accounts

9537. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9538. By Martin Trigaux (OpenERP)

[FIX] account: computation of debit/credit on partner is based on past year moves instead of reported entries, courtesy of Nhomar Hernandez (vauxoo)
This change allows to have consistency in values instead of depending on when the fiscal year is closed and when the entries are generated

9539. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9540. By Martin Trigaux (OpenERP)

[FIX] stock_invoice_directly: if picking is not done while doing partial picking, create invoice on this backorder instead of the current picking

9541. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9542. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9543. By Olivier Dony (Odoo)

[FIX] stock: move analysis report incorrectly merges multiple lines with same picking, product and qty

This error probably stems from the useless complexity of
the SQL view declaration and the double GROUP BY levels.

The patch rewrites the view query with a single GROUP BY
level and proper aggregation levels, but the core part
of the patch is to replace the outer `group by product_qty`
with a `sum(product_qty)`.

Some columns were also mentioned twice in the same GROUP
BY clause, for some reason.

9544. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9545. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9546. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9547. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9548. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9549. By Christophe Simonis (OpenERP)

[FIX] board: filter available dashboards

9550. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9551. By Denis Ledoux (OpenERP)

[FIX]base_import: context was not considered while importing. Thus, default value (for instance) was not set, and that leaded to inconsistencies (Like importing supplier invoices was actually creating customer invoices

9552. By Denis Ledoux (OpenERP)

[FIX]crm_partner_assign: assign_geo_localize function was assigning the latitude/longitude of the first lead to all other leads passed

9553. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9554. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9555. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9556. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9557. By Martin Trigaux (OpenERP)

[FIX] stock: include enventual serial number in product reservation procedure
done using context for stability reason
wont be needed in new wms
opw 600078

9558. By Thibault Delavallée (OpenERP)

[FIX] hr_recruitment: avoid overriding email_from and email_cc in
message_update. This behavior makes sens only in message_new when
setting initial parameter of the applicant, not when somebody sends
an email on the record.
Removed priority change when there is a 'priority' key in msg; but
this key is not likely to be present in a parsed email.
Removed updated values change due to a mapping of values present in
the email. This code was a copy-and-paste from crm and did not have
any meaning in hr_recruitment.

Also removed unnecessary code in project, project_issue, crm_helpdesk
and crm_claim for the same reasons as for hr_recruitment.

9559. By Martin Trigaux (OpenERP)

[FIX] l10n_multilang: remove force_write attribute in process_translations
When processing a translation, the module used to replace the original term by the translated value for accounts (only object with force_write=True). Now getting real multilang feature.
Generates the accounts with no language to get the untranslated value

9560. By Christophe Simonis (OpenERP)

[FIX] document: correct numbering of attachments with the same name

9561. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9562. By Olivier Dony (Odoo)

[FIX] purchase: Purchase Analysis view was using incorrect JOIN order

The starting table for Purchase Analysis is purchase_order_line
not purchase_order. The previous code was using a wrong JOIN
combination starting from purchase_order, which resulted in
a crash if an empty PO was created.
In order to prevent this an extra WHERE clause on product_id
being NOT NULL was added, but this was incorrect too as it
prevented PO lines with no product_id value from appearing
in the Purchase Analysis results, while being perfectly valid.

9563. By Olivier Dony (Odoo)

[FIX] stock: `product cost` field in partial picking wizard must respect decimal precision

Without the right precision the default rounding is
applied and causes a possible loss of precision when
the `Product Price` precision is increased.
This can in turn lead to incorrect average price
computations.

9564. By Olivier Dony (Odoo)

[FIX] stock: programming error in average price computation for multiple lines of the same product

While processing a picking we must keep track of
previously processed lines as they modify the
stock on hand but are not yet included in the
`qty_available` function.
Negative stock on hand is handled as if
the stock was zero as far as the average
price computation is concerned.

9565. By Olivier Dony (Odoo)

[FIX] stock: no early currency rounding when computing average price

It is a common need to set a higher decimal precision
for `Product Price` (i.e. the product cost field) for
high volume / low value items. This may typically
require up to 4-6 decimals for e.g. EUR/USD-based
companies where the currency has 2 decimals.
In that case the product cost should be stored with
full precision without applying the currency rounding.
The appropriate currency rounding will be applied
anyway as soon as a transaction actually uses that
product cost (typically in a SO/PO)

9566. By Olivier Dony (Odoo)

[FIX] purchase: analysis view must not group by quantity, otherwise identical PO lines are counted only once

The product quantity is one of the columns that must be
aggregated, not used to fold PO lines into the same
result row.
This, combined with missing aggregation operators
was causing multiple identical PO lines from the
same PO to be merged together and only counted once
in some aggregations.

9567. By Olivier Dony (Odoo)

[FIX] sale,sale_stock: sales analysis view using incorrect JOIN and group by clause

Similarly to the recent fixes in Purchase Analysis,
the Sales Analysis view must not group on the quantity
field. It is one of the columns that must be aggregated,
not used to fold PO lines into the same
result row.
The line count was also incorrect because of this, and
had to be corrected to actually count() the underlying
SO lines.

In addition, the JOINs were done in the wrong order,
which could cause problems (e.g. if an empty SO ever
landed in the database, all the SO line columns
would be empty in the JOIN, and cause errors)

9568. By Nicolas Vanhoren (OpenERP)

[FIX] problem with pads, the demo configuration doesn't work if the server is using https. I simply changed the url for the demo version.

9569. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9570. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9571. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9572. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9573. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9574. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9575. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9576. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9577. By Denis Ledoux (OpenERP)

[FIX]crm: several calls to _get_id for external id 'categ_phone2' which were not surrounded by try except ValueError

9578. By Denis Ledoux (OpenERP)

[FIX]portal_claim: change of record rule for portal group for object portal.claim, to change behaviour: portal users can now create claims in the portal, read their claims, but cant edit or delete them. They can post messages in the chatter if they want to add something

9579. By Thibault Delavallée (OpenERP)

[FIX] portal: mail_message override: do not check access rules for SUPERUSER_ID

9580. By Martin Trigaux (OpenERP)

[FIX] product_visible_discount: for consistency reason with other modules don't use pricelist into account when creating invoice (only on SO/PO), don't display negative discounts as well (does not make sense) (opw #598290)

9581. By Martin Trigaux (OpenERP)

[FIX] procurement: add condition check_move for transition confirm_mto->ready in procurement workflow

When no other module is installed, no change of behaviour (check_move returns None, always True)
When stock_location is installed, depending of the order of evaluation of the conditions, could go to ready without passing by move activity, avoid this
Courtesy of Mohammad Alhashash

9582. By Denis Ledoux (OpenERP)

[FIX]resource: interval_get_multi crashed when the interval of hours was greater than 24, because it was using datetime parameters instead of using timedelta to create a datetime in the future/past

9583. By Denis Ledoux (OpenERP)

[FIX]base_stage: while duplicating (copy), do not set default values date_open and date_close to false if default values are already there

9584. By Denis Ledoux (OpenERP)

[FIX]crm: duplicating lead/opp duplicated the stage and put to false date_open if it was an opp. Now put stage to 'new' stage and set date_open to today if it is an opp

9585. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9586. By Martin Trigaux (OpenERP)

[FIX] sale_stock: take into account the value of the customer reference on grouped invoice (opw #599716)

9587. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9588. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9589. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9590. By Martin Trigaux (OpenERP)

[FIX] account: set customer reference for the invoice name (customer refrence) while refunding instead of reason of refund (opw 591713)

9591. By Martin Trigaux (OpenERP)

[IMP] crm: match on contact name while searching for customer for leads (opw 591923)

9592. By Martin Trigaux (OpenERP)

[FIX] mrp_byproduct: add context arg to method action_confirm to match the one from mrp (opw 592270)

9593. By Martin Trigaux (OpenERP)

[MERGE] [FIX] purchase: set pricelist action in pricelist submenu instead of top (opw 592320)

9594. By Martin Trigaux (OpenERP)

[MERGE] [FIX] l10n_be: force 2 digits for vat declaration to be accepted by official website (opw 592464), courtesy of Wim Audenaert

9595. By Martin Trigaux (OpenERP)

[MERGE] [IMP] pad: catch urllib error, instead of showing traceback display helpful error message (opw 593069)

9596. By cto

[MERGE] [FIX] account: unlink method on account.move accepts one argument (opw 592795)

9597. By Martin Trigaux (OpenERP)

[MERGE] [IMP] sale_order_dates: don't require technical feature to display additional fields (opw 594184)

9598. By Martin Trigaux (OpenERP)

[MERGE] [IMP] stock: don't display origin (source) field if linked to no picking (opw 595645)

9599. By Martin Trigaux (OpenERP)

[IMP] account: revert wrong commit 9590 and set default value with customer refrence

9600. By Martin Trigaux (OpenERP)

[IMP] account: cleanup

9601. By Martin Trigaux (OpenERP)

[FIX] auth_signup: avoid getting login screen instead of signup when has correct invitation token due to concurrent calls (opw #598453)

9602. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9603. By Denis Ledoux (OpenERP)

[FIX] [IMP] mail: refactored code of message_auto_subscribe.

This new code allows faster computation, because it avoids
- searching in a many2many relationship that is very costly in production
databases, because it is replaced by an 'id in [ids]' equivalent leaf
that can be huge.
- browsing in a create/write (should also lessen the number of issues
about read access rights in create)

A new optionnal parameter is given to the method, that are the
modified values. If this is not given (compatibility-mode) the
records are browsed to fetch the value.

9604. By Martin Trigaux (OpenERP)

[MERGE] [FIX] stock: display reception numbers on kanban view with sigular form in case of only one

9605. By Martin Trigaux (OpenERP)

[MERGE] [FIX] mrp: correctly handle internal type for stock.picking on manufacturing order

9606. By Martin Trigaux (OpenERP)

[MERGE] [FIX] stock: add missing context in account move creation during valuation, courtesy of Lorenzo Battistini (Agile BG)

9607. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9608. By Olivier Dony (Odoo)

[FIX] portal: mail access right test is not totally accurate

The access right test expect an exception
to be raised when accessing any of the
followers, but this is not 100% correct,
as the test user (Chell) should be able to
read her own record.
This worked by chance because the ORM
prefetching was triggering an access error
whenever any follower was accessed, but
this was a bug, now fixed in server at
rev-id <email address hidden>
revno 5136

9609. By Olivier Dony (Odoo)

[FIX] point_of_sale: POS delivery orders were incorrectly using the internal picking sequence

9610. By Olivier Dony (Odoo)

[FIX] stock: chained location type `Customers` was not working at all for pickings without partner

This can create inconsistencies in the warehouse inventory
in case delivery orders are not customer-specific, e.g.
when using the POS.
When there is no destination customer we can still use
the default Customers locations.

9611. By Olivier Dony (Odoo)

[FIX] point_of_sale: `update` button in POS order form was calling a non-existing method

This dummy button is only meant to save the
order and refresh the view, which is easily
accomplished by sending an non-existing
workflow signal. Setting the button type
to the default `workflow` type (or simply
removing the wrong type) fixes the problem.

9612. By Olivier Dony (Odoo)

[FIX] procurement: order points must procure goods in the specifiedt warehouse

The default warehouse picked by procurements only works
for companies that only have on warehouse

9613. By Olivier Dony (Odoo)

[FIX] procurement: magic bypass transition was incomplete and preventing pulled flows from working

The procurement workflow has a magic `bypass` transition
that acts as a fallback for MTO procurements in case the
necessary modules are not (yet) installed. For example
it will consider a MTO+Buy procurement directly satisfied
if the Purchase module is not yet installed.
However this bypass transition did not properly take
"internal pulled flows" into account, which are added
by the `stock_location` module as a third kind of procurement
type. In this case the bypass would match and never
give stock_location the chance to run.
In order to be consistent with the other procurement
methods, the bypass transition needs to be adapted.

Also updated the check_move() method to make it more
explicit rather than a side-effect.

9614. By Olivier Dony (Odoo)

[REVERT] stock: commit 9557/OPW 600078 assumes that production lot are guaranteed to be set on each relevant move

This assumption is incorrect in OpenERP v7. The WMS
design in OpenERP 7 and previous versions only permits
tracking production lots (aka serial numbers) on
incoming moves, outgoing moves and production moves.
You can specify production lots on internal moves too,
but the system will also generate internal moves for
many reasons, and nothing guarantees that they will
have the right lots assigned.
This is a design decision, and this means that we
must never enforce the availability of specific
production lots.

This features will be available in OpenERP 8 through
the use of an extra concept called "Quants", that
will make this kind of tracking possible.

9615. By Olivier Dony (Odoo)

[FIX] stock: stock.picking.in/out (technical models used to separate several picking types) should also apply _defaults from stock.picking

9616. By Olivier Dony (Odoo)

[FIX] delivery: the stock.picking.{in,out} workaround was only partial

Due to a framework limitation the virtual stock.picking.in
and stock.picking.out models need to duplicate the extra
columns added to the stock.picking master model.
This was only partially done, leading to errors in
some cases when stock.picking.{in,out} were directly
used by business methods.

9617. By Christophe Simonis (OpenERP)

[FIX] l10n_in_hr_payroll: use xmlid instead of name searching salary rule categories (they may have been renamed, forbidding upgrade)

9618. By Denis Ledoux (OpenERP)

[FIX]account: fix _balance func field on account.move.line to always return a result for the request ids

9619. By Martin Trigaux (OpenERP)

[MERGE] [FIX] hr_expense: add expenses in state 'Waiting payment' in the search filter 'To Pay' (opw 597054)

9620. By Martin Trigaux (OpenERP)

[MERGE] [FIX] project: add noupdate on data to avoid erasing changes on stages, exclude mail.message.subtypes (want overwrite), courtesy of Alex Comba (Agile BG)

9621. By Martin Trigaux (OpenERP)

[MERGE] [FIX] l10n_fr: Restore the appropriate accounts on tax ACH-19.6, courtesy of Alexis de Lattre (akretion)

9622. By Christophe Simonis (OpenERP)

[MERGE] remove warnings

9623. By Antony Lesuisse (OpenERP)

[FIX] fleet,project allow demo user to create cars and projects

9624. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9625. By Thibault Delavallée (OpenERP)

[FIX] mail: auto_subscribe: fix subscription, could have subtypes linked to another model than the current model

9626. By Martin Trigaux (OpenERP)

[MERGE] [FIX] stock: correctly recount quantity when split on multiple locations for product reservations (opw 600277)

9627. By Martin Trigaux (OpenERP)

[MERGE] [FIX] sale: sale.order.line, remove duplicated state field that made the statusbar in the header to be incorrectly rendered (opw 598572)

9628. By Martin Trigaux (OpenERP)

[FIX] email.template: add safe filter over email address to allow emails to be sent in the format 'Name <email address hidden>' and avoid escaping

9629. By Olivier Dony (Odoo)

[FIX] stock.picking.in: typo in default_get implementation

9630. By Martin Trigaux (OpenERP)

[FIX] stock: don't display the evaluated boolean in delivery slip report

9631. By Martin Trigaux (OpenERP)

[MERGE] [FIX] warning: modify onchange behaviour for purchase.order.line to match the one of original purchase.order.line: when removing product, keeps other information instead of setting it to blank. Had the side effet to make impossible to select a unit of measure (required field) without a product (not mandatory)

9632. By Martin Trigaux (OpenERP)

[MERGE] [IMP] survey: hide readonly field if empty on request form

9633. By Martin Trigaux (OpenERP)

[MERGE] [FIX] mail: exclude document name from the string to translate (avoid having one translation per file name...)

9634. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9635. By Martin Trigaux (OpenERP)

[FIX] email.template: add missing parenthesis to filter all data on email and not the last one

9636. By Martin Trigaux (OpenERP)

[FIX] project: convert int to list for iteration write of account.analytic.account

9637. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9638. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9639. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9640. By Martin Trigaux (OpenERP)

[FIX] sale_crm: return id only for default method of type many2one field in make sale order wizard

9641. By Denis Ledoux (OpenERP)

[FIX]hr_timesheet_sheet: report, the join clause of the view was wrong, account_analytic_line is join with hr_timesheet_sheet_sheet thanks to the sheet_id (hat.sheet_id=htss.id), not with the line_id (hat.line_id=htss.id)

9642. By Denis Ledoux (OpenERP)

[FIX]hr_timesheet_sheet: remove useless css rule, which had the effect of erasing the half timesheet weekly input on ie.

9643. By Thibault Delavallée (OpenERP)

[FIX] mail: fixed replying to the first message in Inbox that was crashing

9644. By Thibault Delavallée (OpenERP)

[FIX] mail: fixed reply button in mail_mail form view, should reply
to a mail.message, not a mail.mail.

9645. By Thibault Delavallée (OpenERP)

[FIX] mail: in some cases tracking is called
without the context (some workflows for example). In that case use the
current user lang when generating the automatic message. This is done
by adding it in the context if not present.

9646. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9647. By Denis Ledoux (OpenERP)

[FIX]hr_timesheet_sheet: add right-padding to timesheet weekly input in order to avoid the value to be partially cut (in ie 9/10, for instance)

9648. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

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

[FIX] purchase: at the validation of the PO, force the company in the context as the company on the PO in order to read property fields correctly. This patch is necessary to allow a user to confirm a PO belonging to another company (if he has the rights to do so).

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

[FIX] sale, purchase: don't copy the customer/supplier reference when copying a SO/PO

9651. By Christophe Simonis (OpenERP)

[MERGE] {purchase,purchase_requisition}: choose the right warehouse when creating purchase orders from purchase order/requisition

9652. By Martin Trigaux (OpenERP)

[FIX] mail: decode filename at email reception (if non-ascii characters) (opw 591729)

9653. By Martin Trigaux (OpenERP)

[FIX] account: Set the alignment of Total parallel to amount in invoice report

9654. By Denis Ledoux (OpenERP)

[FIX]note: notes with undefined stages did not appear if the user had defined stages (they appeared if the user had no stages defined)

9655. By Martin Trigaux (OpenERP)

[FIX] pad: add break-word css to avoid going out of the field in case of too long words (eg: urls) (opw 593426)

9656. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9657. By Martin Trigaux (OpenERP)

[MERGE] [FIX] sale: use client ref on invoice val instead of name for make invoice wizard, same behaviour as creation of invoice in classic _prepare_invoice of sale.py. Courtsey of Yannick Vaucher (Camptocamp)

9658. By Martin Trigaux (OpenERP)

[MERGE] [FIX] mail: css improvement, no overflow when too long words, line break instead

9659. By Martin Trigaux (OpenERP)

[MERGE] [FIX] sale_stock: pass missing context when retrieving product uom (opw 594350)

9660. By Martin Trigaux (OpenERP)

[MERGE] [FIX] document: check method fails if it is called with an id instead of a list of ids. Courtesy of Carlos Vásquez (CLEARCORP)

9661. By Martin Trigaux (OpenERP)

[MERGE] [FIX] purchase: fix typo attr -> attrs in form view, courtesy of Joshua Jan (SHINEIT)

9662. By Martin Trigaux (OpenERP)

[FIX] stock: switch ids new - old picking in the message informing the back order was created (opw 594402)
Post on delivered picking that the backorder was created. Was inconsitent with the field 'Back order of'

9663. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9664. By Thibault Delavallée (OpenERP)

[MERGE] [FIX] crm: fixed lead to opportunity wizard customer creation policy (opw 596231).

When choosing to link to an existing customer, then changing the action to create
a new customer or to avoid linking, the newly created opportunity was linked
to the previously chosen customer, due to the partner_id field not being
reset and used in the conversion process.

This field is not reset when changing the conversion action, leading to the action
being correctly taken into account.

9665. By Thibault Delavallée (OpenERP)

[FIX] crm_claim: the 'My Company' filter was wrong, not useful and not possible to achieve. It is therefore set as invisible, and its domain set as void. This won't break any inheriting views, and this filter is ready to be removed in 8.0

9666. By Martin Trigaux (OpenERP)

[FIX] purchase: revert revision 7677 to set a default unit of measure to 'Unit'
This allows to field a purchase.order without showing the units of measure if not product is selected
Revision 7677 was integrated to fix lp:958897 (no change of uom when selecting a product whose uom is in the category 'Units'). This fix did not solve it properly (only for initial value) and introduced another problem. A better fix will be done on the onchange product.

9667. By Denis Ledoux (OpenERP)

[FIX] {account, sale_stock}: res_config: set_default as SUPERUSER_ID. check user group to avoid passthrough access rights security

9668. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9669. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9670. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9671. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9672. By Denis Ledoux (OpenERP)

[FIX]portal_sale: add the lang to the email templates (sale.order and account.invoice), for the email to be translated in the customer language (as this is the case for regular email templates from sale and account modules-

9673. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9674. By Denis Ledoux (OpenERP)

[FIX] sale_crm: wizard crm_make_sale crash if partner_id not sent on the opp.

Because defaults get function of partner_id of wizard read the partner_id of the opp and return the first item of the tuple, but if there isnt a partner on the opp, the read return a false for this field, not a tuple.
No return the first item of the tuple if the partner_id is set, else False

9675. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9676. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9677. By Denis Ledoux (OpenERP)

[FIX] sale_stock,stock: change model to stock.picking.out of deliveries to invoice view in sales

Deliveries to invoice in sales menu should display delivery order only (no incoming shipment). This was already the case thanks to the domain [('type','=','out')], but since the refactor of the module stock, and the division of stock.picking to stock.picking.in and stock.picking.out, the model of this view should be stock.picking.out instead of stock.picking (for instance, to get the actions binding (ir.values) of stock.picking.out model).
+ typo fix in action binding

9678. By Denis Ledoux (OpenERP)

[FIX] purchase: warning uom category different only if the changed field is product_uom itself.

Changing product_id with a different unit category does not trigger the uom category change warning

9679. By Martin Trigaux (OpenERP)

[MERGE] [FIX] account: performance improvement on account.analytic.lines
don't create new analytic lines at move creation, will do it once the move is balanced
don't remove analytic lines (to avoid duplicates) at the begining of the validation of a move, will do it once we create the new correct analytic lines (opw 597719)

9680. By Martin Trigaux (OpenERP)

[FIX] account: correct name_search on account to be validated even at negation
added test checking every combinaison of name_search

9681. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9682. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9683. By Thibault Delavallée (OpenERP)

[MERGE] [FIX] mail: fixed message_follower_ids function field.

The set method of the field, set_followers, is now using message_subscribe and message_unsubscribe to have only one access point to adding or removing followers. Previously to this fix it was directly creating entries in the mail_followers table, neglecting the calculation of subtypes and default subtypes.

9684. By Denis Ledoux (OpenERP)

[FIX] point_of_sale: ignore TOTAlY returns

Returns were partially ignored when typing keystrokes, thanks to a return; when event which equaled 13, but the default behaviour (press on the focused input/button) was not prevented. This is now the case thanks to preventDefault. For instance, just after a discount set, the focused input was pressed and the associated value was added when scanning a new product with the scanner. Therefore, if we entered a discount of 30%, scanning a new product added '0', the last pushed button, to the discount, and then added the product.

9685. By Xavier ALT

[FIX] crm: use email widget for email_from field in Opportunities form view

9686. By Denis Ledoux (OpenERP)

[FIX] stock: incoming shipment supplier quick create was creating a customer instead of a supplier

9687. By Denis Ledoux (OpenERP)

[FIX] purchase: set readonly on warehouse_id related field in stock.picking.in

9688. By Christophe Simonis (OpenERP)

[MERGE] annoucement bar

9689. By Denis Ledoux (OpenERP)

[FIX] point_of_sale: fix default destination(or source, for returns) location for pos order moves

For instance, the source location of moves of returned products was output instead of partners locations / customers

9690. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9691. By Denis Ledoux (OpenERP)

[FIX] mrp: cost structure report, do not display twice main supplier

9692. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9693. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9694. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9695. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9696. By Denis Ledoux (OpenERP)

[FIX] account_analytic_analysis: is_overdue_quantity was not updated when quantity max was changed

is_overdue_quantity is a stored function field which was updated only when analytic lines where updated. Or, when the quantity_max field is updated, this field should be recomputed and restored. This is now the case

9697. By Xavier ALT

[FIX] document: duplicate directory detection should work even when a record rule prevent user from seeing duplicates

9698. By Olivier Dony (Odoo)

[FIX] base_action_rule: upon update/create of an automated action in multiprocess mode, force registry reload

Short of signaling the other workers, the (new) automated
rule may be randomly ignored, depending on which worker
handles the request (until the workers all reload
their registries).

9699. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9700. By Olivier Dony (Odoo)

[FIX] project_mrp: local copy of the "Procurement" process node to avoid errors during updates when sale_stock is not installed

The various attempts to fix this error without duplicating the node
have all caused other errors. Having a duplicate process node has
no consequence on business operations, so it is an acceptable
workaround until the node can be moved to the sale module.

9701. By Denis Ledoux (OpenERP)

[FIX]sale_crm: quotation/sale order default section_id based on res_users default_section_id

9702. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9703. By Martin Trigaux (OpenERP)

[MERGE] [IMP] account_payment: remove widget=selection (was forcing the preloading of every partner for an invisible field)

9704. By Xavier ALT

[FIX] hr_holidays, hr_timesheet: fix XMLSyntaxError when company name contain an ampersand '&' sign

9705. By Xavier ALT

[FIX] l10n_be: fix no value in 'Code (Tax Code)' column on 'Print VAT Intra' preview report

9706. By Xavier ALT

[FIX] project: fix error on ``schedule_tasks`` when there is no resource available on project

9707. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9708. By Xavier ALT

[FIX] document: on report.document.user view, use correct field type for ``user_id`` field.

9709. By Xavier ALT

[FIX] purchase: remove duplicate 'Warehouse' and 'Reference UOM' groupby filter in Purchase Analysis search view

9710. By Xavier ALT

[FIX] project: fix task progress not correctly updated when reopening a task

9711. By Thibault Delavallée (OpenERP)

[FIX] email_template: support of email_recipients in send_mail.
email_recipients is a char fields holding a comma separated list of partner_ids
that are the email recipients. This field is correctly handled in the composer
but was not taken into account in the send_mail method email_template.
However due to model limitations, this field can only be taken into account
when sending the email directly using force_send. When the email is
queued, no field is available to hold the value of email_recipients.
This is already fixed in trunk/v8 as a field has been added to handle
this value.

[FIX] mail: when sending email to some recipients_ids, filter to have only
the existing partner_ids. Trusting email template to generate valid
partner_ids is a bit risky.

[TESTS] email_template: added tests for send_mail

9712. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9713. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9714. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9715. By Martin Trigaux (OpenERP)

[FIX] hr_payroll: skip missing structures in get_all_structures for hr.contracts (eg: if structure is deleted afterward) (opw #602411)

9716. By Denis Ledoux (OpenERP)

[FIX] account_check_writing: display real currency name on check print

Instead of 'Euro' hardcoded.
As the currency complete name is not available in res.curreny model, exceptions are made for currencies EUR, USD and BRL, the mosts used currencies for checks (+75% of cases)

9717. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9718. By Denis Ledoux (OpenERP)

[FIX] account_voucher: computed writeoff and invoices selected were not right on partial invoice payment in account voucher wizard.

Due to the algorithm which did not handle the fact that an invoice could have several move lines

9719. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9720. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

9721. By Thibault Delavallée (OpenERP)

[MERGE] [FIX] sale_stock: invoice services when invoicing on delivery order

9722. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

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.

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 Mohammad Alhashash

Fix bug 1219204: error when re-generating opening entries

Revision history for this message
Mohammad Alhashash (alhashash) wrote :

Branch updated for latest 7.0

Unmerged revisions

10024. By Mohammad Alhashash

Fix bug 1219204: error when re-generating opening entries

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account.py'
2--- account/account.py 2014-04-22 13:50:12 +0000
3+++ account/account.py 2014-04-29 18:56:55 +0000
4@@ -1646,7 +1646,7 @@
5 # you should use the generate opening entries wizard for that
6 def unlink(self, cr, uid, ids, context=None):
7 for move_rec in self.browse(cr, uid, ids, context=context):
8- if move_rec.opening_reconciliation:
9+ if move_rec.opening_reconciliation and not context['regenerate_opening']:
10 raise osv.except_osv(_('Error!'), _('You cannot unreconcile journal items if they has been generated by the \
11 opening/closing fiscal year process.'))
12 return super(account_move_reconcile, self).unlink(cr, uid, ids, context=context)
13
14=== modified file 'account/account_move_line.py'
15--- account/account_move_line.py 2014-04-22 10:11:28 +0000
16+++ account/account_move_line.py 2014-04-29 18:56:55 +0000
17@@ -1026,9 +1026,8 @@
18 all_moves = obj_move_line.search(cr, uid, ['|',('reconcile_id', 'in', unlink_ids),('reconcile_partial_id', 'in', unlink_ids)])
19 all_moves = list(set(all_moves) - set(move_ids))
20 if unlink_ids:
21- if opening_reconciliation:
22- obj_move_rec.write(cr, uid, unlink_ids, {'opening_reconciliation': False})
23- obj_move_rec.unlink(cr, uid, unlink_ids)
24+ ctx = {'regenerate_opening':True} if opening_reconciliation else None
25+ obj_move_rec.unlink(cr, uid, unlink_ids, ctx)
26 if all_moves:
27 obj_move_line.reconcile_partial(cr, uid, all_moves, 'auto',context=context)
28 return True