Commit Graph
103218 Commits
Author SHA1 Message Date
Christophe Simonis 4d9e36a459 [FIX] core: update model information when updating modules 2015-11-18 15:26:24 +01:00
Nicolas Martinelli 70ac92ed1a [I18N] export l10n_ch source terms
To reflect changes in previous commit and due to few previous changes
2015-11-18 15:00:36 +01:00
Nicolas Martinelli 44476635f2 [FIX] l10n_ch: typo
OK to do so in stable since the fields are not translated yet and were
added from a recent commit.

opw-654141
2015-11-18 15:00:36 +01:00
Thibault Delavallée 938d368afc [FIX] mass_mailing: resending exception emails
When resending emails whose statistics are in exception, erase the exception date
from the statistics. Indeed what is important is that they have been sent. Moreover
the mailing statistics are wrong as you could have sent emails still considered
as in exception.
2015-11-18 15:00:28 +01:00
Thibault Delavallée f57e580f2d [FIX] project_issue: correctly update alias
When choosing use tasks / use issues, correctly update the project alias. Indeed
only the use issues checkbox had an onchange. This revision adds the onchange
on use tasks so that the method correctly computes the new alias destination model.

Also updated the _get_alias_models method to be more modular instead of hardcoding
values. Call super.
2015-11-18 14:41:56 +01:00
Nicolas Lempereur 21a8c76b6a [FIX] web_editor: set csrf_token in editor iframe
Some feature of the iframe embedded editor may require csrf token
present, thus it has been added in the same way that cea29e0c0 did.

The web editor iframe template is also used to display the value without
editing it and in this instance having the csrf has no meaning.

opw-656685
2015-11-18 14:31:55 +01:00
Martin Trigaux 2831d94c20 [FIX] survey: no attachment in shared survey
When sharing a survey, a mail.mail is created but the attachment were lost.
This is due to a missing command (6, _, ids) when creating records in
attachment_ids field (many2many).

Fixes #9364, opw 656742
2015-11-18 13:52:21 +01:00
Thibault Delavallée 2e583eb7c9 [FIX] mail: chatter: re-re-add the read more / less
The read more / read less in chatter has been removed in the new timeline and
then cleaned timeline introduced at cc6d2aa995.
This feature has been brought back at revision 486aab5098.
However a new cleaning removed the feature at revision 2a5f07e0b9.

This commit brings back this feature for the second time. Next one brings free
cookies.
2015-11-18 13:48:27 +01:00
Thibault Delavallée e01e24aa9c [FIX] mail: chatter: subtype when tracking
When having a tracking, the subtype description should be displayed. This is
used for tracking linked to a subtype like Task Opened, Task Blocked, ...

This feature was forgotten when refactoring the chatter for v9 and is now
back.
2015-11-18 13:48:27 +01:00
Thibault Delavallée fef3fdb1d9 [FIX] hr_holidays: calendar in month mode by default
Week display is not very easy to use for holidays.
2015-11-18 13:48:27 +01:00
Goffin Simon 11f8e8db4c [FIX] account: get_reconciliation_proposition
The bank statement reconciliation widget should look for the name
of the account.move if the ref is not found.

opw:652656
2015-11-18 13:36:33 +01:00
Nicolas Martinelli e994617872 [FIX] base_import: correct address type
opw-656072
2015-11-18 13:10:02 +01:00
Goffin Simon d18b573319 [FIX] report_intrastat: month used for intrastat.report record
The month used for an intrastat.report record must be the same as
the invoice_date set on the invoice.

opw:656575
2015-11-18 13:06:00 +01:00
Richard Mathot 9e35833672 [FIX] delivery: A return picking should not copy the carrier of its originating picking.
Furthermore, we do not support returns in our shipping providers integrations. Maybe one day...
2015-11-18 12:25:25 +01:00
Nicolas Lempereur 6f02ba9cbf [IMP] website_form: don't remove newline
In some instance, the mail content of a sent form would only be text
formatted. This could lead to a message with no newline, thus making it
illegible.

This fix has to be ugly since body_html field of a mail.mail is of type
text.
2015-11-18 11:41:25 +01:00
David Monjoie c016078f7b [FIX] website: no login_success on oauth redirect
It seems like nobody other than me ever had issues with this line
since its introduction in January 2015, so I just swapped the
conditions, since this param is seemingly always present, unless
you are using oauth with redirect.
2015-11-18 10:58:44 +01:00
Nicolas Lempereur a4cfe7f6ec [FIX] website_form: be consistent when concatenating string
In the form builder, custom field name could contain special char but
the get key values are of the type str whilst the value are in unicode
type.

Thus when concatenating them, one should be converted so they are
uniform and don't lead to an encoding error.

opw-656745
2015-11-18 10:49:24 +01:00
Goffin Simon d1d896621f [FIX] report_intrastat: month used for intrastat.report record
The month used for an intrastat.report record must be the same as
the invoice_date set on the invoice.

opw:656575
2015-11-18 09:26:50 +01:00
Martin Trigaux 6fcf6b5c09 [I18N] export accounting source terms
To reflect changes in previous commit and due to few previous changes
2015-11-18 09:24:38 +01:00
Martin Trigaux a6515d7c56 [FIX] account: typo
Ok to do it in stable as the string 'Technical field used for usability purposes'
is already present in the module
2015-11-18 09:24:38 +01:00
Nicolas Lempereur a23009bcc8 [FIX] mass_mailing: fix tooltip for "Select a theme"
The popover in the mass mailing are not enabled, also the whole CSS of
the website is not used (particularly, the popover CSS is not included).

This commit replace the popover by a tooltip and enable tooltip on
[data-toggle="tooltip"] elements.

second half of:
opw-656693
2015-11-18 09:02:00 +01:00
Nicolas Lempereur daca0d350a [FIX] mass_mailing: on_change in new and old api
Keep only the on_change in the new api, the other one caused error and
was pointless.

fixes #9537
first half of:
opw-656693
2015-11-18 08:27:47 +01:00
Nicolas Martinelli d40a548ac8 [FIX] purchase: prevent traceback
message_post should only be called with a singleton.
2015-11-18 08:08:42 +01:00
Nicolas Martinelli b098ab1f93 [FIX] purchase: unit price
The seller price is expressed in the seller UoM. If the UoM of the PO
line is different from the seller UoM, it must be recalculated.

opw-654417
2015-11-18 08:08:42 +01:00
Olivier Dony 815216be83 [MERGE] Forward-port 8.0 up to e99358415a 2015-11-17 19:41:02 +01:00
Olivier Dony d117d6645e [MERGE] Forward-port 7.0 up to 051b2ce539 2015-11-17 17:55:17 +01:00
Denis Ledoux d47ee18fef [MERGE] forward port of branch 8.0 up to c9fce1a 2015-11-17 13:19:14 +01:00
Denis Ledoux c9fce1a404 [MERGE] forward port of branch saas-3 up to f69b0ca 2015-11-17 13:05:15 +01:00
Denis Ledoux f69b0cade1 [MERGE] forward port of branch 7.0 up to df91cb5 2015-11-17 13:04:39 +01:00
Denis Ledoux df91cb5a9a [FIX] mrp: Product Cost Structure decimal precisions
The decimal precisions for the quantities, cost/supplier price
per unit of measure were not respected. It was always
set to 2 digits, whatever the configuration in the database
decimal precisions.

opw-653143
2015-11-17 12:56:28 +01:00
Goffin Simon e3b90ba1d4 [FIX] sale_stock: payment_term in supplier invoice
When invoicing a supplier, this is the supplier payment term which
has to be taken into account.

opw:656307
2015-11-17 10:45:17 +01:00
Nicolas Martinelli cf82f0fffc [FIX] account_analytic_default: access rights
The group analytic.group_analytic_accounting should have access to the
account.analytic.default model. Otherwise, a user with only analytic
rights (along with another group which has access to the products, e.g.
Purchase) will not be able to see the product form view. Indeed, the
field rules_count requires an access to the model
account.analytic.default.

opw-653735
2015-11-17 08:08:38 +01:00
Matthieu Dietrich 0d0bb69bb1 [FIX] stock: Only re-reserve moves not done or cancelled
`Recheck availability` must ignore
the done or cancelled moves.

Otherwise, it raises the warning telling you cannot
unreserve a done move.
https://github.com/odoo/odoo/blob/856b31719c69e7f022143ce39df7c6c43688beb9/addons/stock/stock.py#L1899

To reproduce the issue:
 - Create a delivery order,
   with 10 stockable product A
   & 10 stockable product B,
   mark as todo.
 - Create a receipt,
   with 5 stockable product A,
   mark as todo & transfer.
 - Cancel the move of stockable product B from the delivery order,
   in Traceability -> Stock Moves.
 - Come back to the delivery order, `check availability`,
   then, `recheck availability`

Closes #9550
2015-11-16 17:13:25 +01:00
Goffin Simon 856b31719c [FIX] product: _check_valid_attribute
To check if the values set for the attribute are valid.

opw:653945
2015-11-16 13:50:19 +01:00
Martin Trigaux c054350dac [FIX] account_check_writing: undefined amount
In check_writing report, amount is the content of the field amount_to_text that
we can not guarantee has been filled (done in onchange so could be avoided, also
for other languages, etc.)
Instead of potentially failing, double check amount is filled.
cf https://www.odoo.com/groups/59/14976615
2015-11-16 12:15:40 +01:00
Odoo Translation Bot 396181648c [I18N] Update translation terms from Transifex 2015-11-15 03:03:19 +01:00
Goffin Simon 26189bf67a [FIX] website_sale, website_sale_options: optional_product_ids
The field optional_product_ids is not in the model "product.template" if
the module website_sale_options is not installed.

opw:654273
2015-11-13 13:05:33 +01:00
Christophe Simonis afae197073 [IMP] base: timezone handling in server actions.
Give access to `pytz.timezone` (as `timezone`) in `ir.actions.server`
records. Usefull when dealing with date(time)s.
2015-11-12 12:23:27 +01:00
Christophe Simonis 5b77f9d39f [FIX] website: pass context as keyword argument when calling method. 2015-11-12 12:09:53 +01:00
Denis Ledoux 56c08e486f [FIX] expression: child_of domain with parent_store & non-existing parent
In the `product.template` model,
when searching products within a category that doesn't exist,
all products were returned, while none should be returned.

For instance,
In Sales > Products,
In the search input, search with internal category:
"A category that doesn't exist",
all products were returned.

opw-649548
2015-11-10 16:35:55 +01:00
Nicolas Lempereur a8ae94485d [FIX] website_sale: unify image update when change variant
The variants on a product in the ecommerce can appear:
- naturally, not a list, colored square for color, ...
- in a list of radio button.

To have the second kind, we need to enable the "List View of Variants"
customize option.

One part of the code was not the same which cause an issue when saving
the image of the variant, it was saved on the product.template instead.

This commit add an "update_product_image" function which is now called
in both scenario.

first half of:
opw-654279

forward port note: in 9.0 website/image -> web/image
2015-11-10 16:34:57 +01:00
Denis Ledoux 238b2027b0 [FIX] hr: retrocompatibility for last_login in employee kanban
This revision is related to 67e07d55ee
We reset back a `li` element with `id="last_login"`,
for views inheriting from this kanban view on this field.
2015-11-10 13:32:01 +01:00
Nicolas Lempereur 15b0596c31 [IMP] web: remove onchange on m2o one remove record
These onchanges were needless since it was already done by the
BufferedDataSet when we use alter_ids to add/remove ids/virtual ids from
the recordset.

The onchanges this commit remove were introduced with 6b907bb4d in
juliet 2012 whilst the onchange in the BufferedDataSet when using
dataset alter_ids was with dd747c096 in october 2012.

closes #8273
fixes #7595
opw-644706
2015-11-10 12:38:04 +01:00
Nicolas Lempereur 3e1d5a5cca [IMP] web: remove needless o2m onchange
Partial backport of master (-> v9) commit 059230512.

for the issue when removing an invoice line from an account.invoice,
three onchange where triggered:

- ListView account.invoice.line unlink the line id from its dataset,
  [[first onchange]]
  -> the line id is removed from the dataset which trigger an onchange

after this is done (and the onchange is finished), the following
onchange happen:

-- remove each record of the Collection of the ListView
   -> this remove the id of these record from the ListView List dataset
      [[second onchange]]
      -> this trigger an onchange albeit the dataset is not changed
         (since it was already removed before the first onchange)
   -> this trigger an onchange on the one2many_list of the ListView
      which has the same dataset as the ListView
      [[third onchange]]
      -> so an onchange is called yet again.

this commit removes the second onchange in this case where we remove ids
already removed from the dataset.

closes #8273
fixes #7595
opw-644706
2015-11-10 12:36:06 +01:00
Nicolas Martinelli 6f7e757fa2 [FIX] website_quote: description translatable
The website description should be translatable.

opw-652454
2015-11-10 12:10:19 +01:00
Denis Ledoux 67e07d55ee [FIX] hr: last login hour on employee kanban.
Setting a value for the `date` field on a partner of
an employee leaded to a crash in the employees
kanban view.

This last login field on the employee kanban
had as goal to display the last connection hour
of each employee, if the last
login happened within the current day.

Since 7.0, the last login date field  on `res.users`
has been renamed from `date` to `login_date`,
and became a date instead of a datetime.

Nevertheless, the `last_login` related field
on `hr.employee` remained on the field `date`,
which is set on the `res.partner` model,
but is not used as a connection date field. The
related should have been updated to use
`res.users`.`login_date`, probably, but it
wasn't the case.

From saas-6, the `date` field is no longer available
on the `res.partner` form.

We can therefore safely assume that this feature
is no longer used nor needed, as:
 - It should display the last hour of connection within a day
 - but it uses the wrong date field
 - and it uses a field type for which the hour is not stored (date).
 - even by updating the related to use `login_date`,
   it would still be a field where the hour is not stored.

opw-654313
2015-11-10 11:12:15 +01:00
Manuel Vázquez Acosta c333385eda [FIX] account_voucher: amount currency on supplier payment
In scenario described at #1490 (comment 152726416), amount_currency of a
supplier payment has the incorrect sign
Complete ede807d2955
Closes #9347
2015-11-09 17:07:25 +01:00
Denis Ledoux 7cab554590 [FIX] portal_sale,website_quote: templates compatible with wysiwyg
<% are automatically escaped as soon as the wysiwyg tool
is used to edit the template.
The wysiwyg tool is not compatible with Jinja, and
it isn't expected to be.

To avoid to have this problem everytime when
editing the portal email templates, we use
a Jinja syntax compatible with the wysiwyg,
as a workaround.

opw-654223
2015-11-09 15:38:17 +01:00
Odoo Translation Bot 7a0a649deb [I18N] Update translation terms from Transifex 2015-11-08 03:01:35 +01:00
Denis Ledoux 8558ecfdf3 [MERGE] forward port of branch saas-3 up to dd8cbf4 2015-11-06 16:08:30 +01:00