Commit Graph
101188 Commits
Author SHA1 Message Date
Nicolas Martinelli 04f896b135 [FIX] warning: onchange_partner_id
When the warning module is installed, `onchange_picking_type` is not
called anymore.

When the method `onchange_picking_type` was introduced, it was not taken
into account that the warning module would change the onchange property
on the `partner_id` field thanks to the method `onchange_partner_id`.

opw-672091
Fixes #11342
2016-03-29 16:00:31 +02:00
Goffin Simon 11d3aaf848 [FIX] purchase: origin field on "procurement.order"
The field origin is not required in "procurement.order" and
trying to concat a string with a boolean raises a Type Error.

opw:670307
2016-03-29 12:21:49 +02:00
Nicolas Martinelli c26fa293c8 [FIX] stock: get quants domain
The call to method `quants_get_preferred_domain` is not correct anymore
after commit 6ef158b63.

opw-672973
2016-03-29 11:49:23 +02:00
César Castillo 36ef20fe52 [FIX] doc: duplicated text in themes.rst
close #11502
2016-03-29 11:32:00 +02:00
Odoo Translation Bot f02b8a76df [I18N] Update translation terms from Transifex 2016-03-27 00:32:16 +01:00
pvy 825c02ff58 [FIX] l10n_nl: 2 taxes were forgotten during the taxes tags overhaul 2016-03-25 17:08:32 +01:00
Goffin Simon 2225a1992d [FIX] sale: _get_advance_payment_method
When there is at least one invoice already linked to the SO, the
default advance payment method must be 'Invoiceable lines (deduct down payments)'

opw:672911
2016-03-25 16:54:40 +01:00
Denis Ledoux 949da8affa [FIX] crm: re-apply 71b0a4c
It was somehow lost with
e48c50bb10
and
30a7ef804a

opw-672974
2016-03-25 16:49:10 +01:00
Xavier Morel fc40772926 [FIX] scaffolding: packaging
Packaging doesn't include non-imported python file because
redhat. Oblivious, revision 8e81abfeb5
renamed .py.template files to .py thus breaking scaffolding from
packaged odoo.

Revert that specific change.

Fix #11050
2016-03-25 14:42:32 +01:00
Xavier Morel 4a31f85c5a [FIX] base_import: CSV import error from windows
Missing bit from #10374: because the _read_xls function is a generator
it is *entirely* lazy and Python doesn't execute *any* code when it's
initially called, which means the file is actually (tentatively) parsed
when the first line is requested which happens outside of
_read_file (and thus of the fallback mechanism implemented by #10374).

Fix by splitting _read_xls between the opening of the workbook (eager)
and the actual iteration (which remains lazy).
2016-03-25 13:13:23 +01:00
Thibault Delavallée 3b26d1e2fd [FIX] mail: default reply to with multiple alias
When having multiple aliases matching a record, take the first one coming
in the order instead of the last one. This way the defined order is effectively
taken into account.
2016-03-25 12:40:46 +01:00
Thibault Delavallée 554f70f218 [FIX] crm, hr_recruitment, project_issue: responsible
When using the mailgateway, the responsible of the newly created lead / applicant /
issue is explicitely set to False since the original mailgateway commit in 2010.

However this conflicts with some custom behavior that tries to set the responsible
on the same objects. Notably in recruitment the responsible is set to be the
recruitment responsible set on the job, if any.

In this commit we replace the explicit set of user_id=False to using a
default_user_id=False in the context. This way the admin or mailgateway user
will not be responsible of every new records. And this enables custom behavior
to find a responsible.
2016-03-25 12:40:34 +01:00
Nicolas Lempereur 918e1b06bc [FIX] website_blog: .cover_narrow removed when cover removed
opw-668713
2016-03-25 12:21:33 +01:00
Nicolas Lempereur 85eda0c55f [FIX] web_editor: two editor and image bar buttons
Some image functionalities of the inline summernote would only take the
first of multiple editor into account when selecting the targeted image
of an image button action (image size, image padding, ...).

This commit select the appropriate editor given the current editable.

closes #11474
opw-668861
2016-03-25 11:39:57 +01:00
Nicolas Martinelli 62792a8ff6 [FIX] purchase: purchase count
After commit cb01be23, the states have changed.

opw-671989
2016-03-25 10:43:33 +01:00
Goffin Simon cb435481c0 [FIX] account: _get_counterpart_move_line_vals
When the move_id was not set in the invoice, the field number
is False and making False + a string raised a type Error.
2016-03-25 09:28:33 +01:00
Martin Trigaux 40a299c580 [FIX] base: mildly privileged user accessing partner form
A user in base.group_erp_manager (Access Rights) but NOT in base.group_system
(Settings), will try to fetch the list of groups to generate selection fields
to represent groups selection.

As the method `_is_admin` only verifies the user belongs to group_erp_manager
and the model ir.module.category requires group_system for read access rights,
`fields_get` method tries to fetch the groups and fails with a security warning.

The user fields are fetched when a res.partner form is loaded as the field
user_ids (one2many) is present in the form view of partner in invisible.

opw-672435
2016-03-24 18:15:32 +01:00
Nicolas Lempereur a23e850f63 [FIX] website_blog: narrow_cover and overriding header
The narrow cover option new in 9.0 has no meaning if the content can
overflow it (it would overflow the cover and hide the blog content).

opw-668713
2016-03-24 17:29:57 +01:00
Christophe Matthieu 5ab43773cb [FIX] ir.qweb: can't edit t-field content if modified by inherit xpath 2016-03-24 16:20:28 +01:00
Joren Van Onder 5fe5618b7e [FIX] point_of_sale: make invoices use the fiscal position on pos.order
We have to ensure that the invoices generated through the POS always
reuse whatever fiscal position is set on the pos.order. Both in the
front- and backend a user can change the fiscal position to be different
from what is set on the customer of the order.

opw-668155
2016-03-24 16:12:13 +01:00
Damien Bouvy a2c5fe4a64 [FIX] website_portal_sale: ACL are too wide for employees
In revision 15b8f35, we decided to 'let ACL and ir_rules
do their job', which is an excellent idea for portal
users but a catastrophe for employee users (since, with
ACLs and rules, they have access to an giganormous amount
of SO, invoices, etc.), which made the server timeout for
big databases.

This commits reintroduces a limitation of the search that
matches ir_rules for portal users but which should limit
the number of elements visible to employees.
2016-03-24 14:34:23 +01:00
Denis Ledoux 5e84021cbb [FIX] product: fixed price decimal priecision in pricelist
The fixed price decimal precision must use the same precision
than the other price field referencing a product price,
as this field is expected to contain a product price.

opw-672877
2016-03-24 14:31:40 +01:00
qdp-odoo 3f9c383a0e [FIX] account_full_reconcile: migration script fixed in order to work also on databases that has been used after the migration + query optimization 2016-03-24 12:26:43 +01:00
Nicolas Martinelli 64e8d9c972 [FIX] web: clear filename if image error
When the user chooses as product image a file which is not an image, the
message "Could not display the selected image" is displayed. However, at
saving, a traceback is thrown since the file chosen is uploaded anyway.

If the image cannot be displayed, the image field is cleared.

opw-672206
2016-03-24 11:09:02 +01:00
Nicolas Martinelli 4fdd741b3b [FIX] crm: default subscription
When a CRM activity is defined, the subscription is activated by default
for any user. There is no way to change it since the field is not in
the form view. Therefore, a customer is automatically subscribed to any
internal activity, and the user must manually remove the subscription
afterwards.

The `default` field is displayed in the forw view, so this default
behavior can now be configured for a given activity.

opw-672453
2016-03-24 09:31:29 +01:00
Damien Bouvy 7682760dca [FIX] website_sale,website_quote: form must be in dom to be submitted
Revision 15f27b2 introduced a dynamic form submission to
avoid some payment transaction problems.

It so happens that form submission in jquery necessitates
said form to actually be in the dom (at least for Firefox
and some version of MSIE); this revision ensures that the
form is updated in the dom by the rpc call then properly
submitted.
2016-03-23 16:38:57 +01:00
Damien Bouvy a4f8464be7 [FIX] website_sale: when paying by wire transfer, display payment info
In 8.0, when paying by wire tranfer, the confirmation page
contained the detailed payment information.

This behaviour was lost in 9, this revision reintroduces it.
2016-03-23 16:38:57 +01:00
Joren Van Onder 48eb674a70 [FIX] pos_mercury: allow for 40 bit mercury invoice numbers
We generate the Mercury invoice number in JavaScript based on the uid
property of the order. That uid is generated by
Order.generate_unique_id() which generates a 12 digit number. A decimal
12 digit number can contain a maximum value of 10^12 - 1 which requires
40 bits to store. The issue is that Integer fields by default are backed
by a PostgreSQL integer type which is only 4 bytes. This means you can
end up with an invoice number you won't be able to store in the
database.

In order to resolve this we will update the field to be a Float field
instead which will result in a PostgreSQL double precision type which
allows values up to 10^308.

opw-671362
2016-03-23 16:25:47 +01:00
Christophe Simonis de8e9a0f96 [MERGE] forward port of branch saas-6 up to 348e8a9 2016-03-23 15:55:34 +01:00
Christophe Simonis 348e8a9d83 [MERGE] forward port of branch 8.0 up to 9752aed 2016-03-23 15:49:27 +01:00
Denis Ledoux 9752aedb4e [FIX] website_sale: update partner details when reusing payment transaction
When attempting to pay a cart in the ecommerce,
if the customer went on the payment acquirer site
(meaning, the `payment.transaction` is created
in the database), then come back to the checkout form
using the browser back button, and changed his customer
details (address, email, phone,...),
these changes in the details were not applied
in the `payment.transaction` record that was being
re-used.

e.g.
Checkout > Confirm > Choose Paypal, Pay Now
> History back to the checkout and apply changes
in the address > Confirm > Pay Now.
2016-03-23 15:38:20 +01:00
Denis Ledoux a0c473379a [FIX] website_sale: back port of 15f27b2614 2016-03-23 15:38:20 +01:00
Denis Ledoux a430e2c8c5 [FIX] payment, website_sale: back port of cb9d798 2016-03-23 15:38:19 +01:00
Denis Ledoux e1b1f24516 [FIX] payment, website_sale: back port of f89e8f9 2016-03-23 15:38:19 +01:00
sha-odoo b253c3323e [IMP] l10n_nl: Added pre and post migration file 2016-03-23 14:54:25 +01:00
sha-odoo 1c92a88003 [IMP] l10n_nl: Created tags and Assign to Taxes 2016-03-23 14:54:11 +01:00
Christophe Matthieu bad14a54d3 [IMP] gamification: add sql index on 'gamification.badge.user' to improve speed of 'gamification.badge' function fields 2016-03-23 12:53:16 +01:00
Christophe Simonis 42e3ed9ed3 [MERGE] forward port of branch saas-6 up to 0a1de99 2016-03-23 12:11:39 +01:00
Christophe Simonis 0a1de99731 [MERGE] forward port of branch 8.0 up to d39d191 2016-03-23 11:44:28 +01:00
Christophe Matthieu 2abc2ceee0 [IMP] gamification: split multi function field to avoid massive prefetching of user records
Issue: website_forum takes 15 to 30 seconds to load the user page
2016-03-23 11:22:51 +01:00
rmu-odoo 1936367fd2 [IMP] l10n_et: Added post migration file 2016-03-23 10:55:23 +01:00
rmu-odoo a9c93119ae [IMP] l10n_et: Create newly tag assign to taxes 2016-03-23 10:55:10 +01:00
Denis Ledoux 6207644c00 [FIX] website*: remove technical routes in sitemap
Multiple technical routes were listed in the sitemap,
and it's pointless to list them in the sitemap.

There is currently no way to exclude routes
from the sitemap using a specifc argument
(e.g. sitemap=False on the route).

Therefore, in order to remove them from the sitemap,
we play with the current conditions to exclude
these routes from the sitemap:
 - routes with `auth` other than `none` and  'public`
   are excluded. Technical routes marked as `auth="public"`
   for no reasons are changed to `auth="user" so they
   are excluded from the sitemap
 - routes with required arguments are excluded as well.
   the route `website/image` cannot work without any argument,
   `website/image` has therefore been removed from the possible
   routes for the method `website_image`, so it's no longer
   listed in the sitemap.

For an exhaustive list of the conditions to exclude
a route from the sitemap, check the method
`rule_is_enumerable` in `website/models/website.py`

opw-670865
2016-03-22 18:01:41 +01:00
Nicolas Martinelli d39d191cec [FIX] stock: reserve if move not assigned
Commit 4a0b6f6 slightly improves the performances of `action_assign` by
skipping moves which already have pack operations. However, if the move
is not completely assigned, it prevents the possibility to search for
new quants to assign to the given move.

opw-672069
2016-03-22 17:17:37 +01:00
Denis Ledoux 9e624671d2 [FIX] account: bank statement lines order on write
When adding new lines to an existing statement,
the order of the lines was not kept,
due to the re-sequencing operation done in the
override of `write` in `account.bank.statement`:

```
for statement in self.browse(cr, uid, ids, context):
    for idx, line in enumerate(statement.line_ids):
        account_bank_statement_line_obj.write(cr, uid, [line.id], {'sequence': idx + 1}, context=context)
```
as the lines order was based on `statement_id desc, sequence`,
which is the same for all lines added,
(except if the order is forced in the web client,
using the handle widget)
and, therefore, the order
of the lines returned by `statement.line_ids` was
not determinist.

Adding the `id` to the lines order
(as it's done in `sale.order`, for instance),
solves the issue, as the lines will then be fetched
in the order they were created.

opw-667541
2016-03-22 17:12:01 +01:00
Denis Ledoux e94be1856c [FIX] website_sale: non-blocking order confirmation fail
When validating a payment transaction,
if the cart (order) cannot be confirmed or
the email cannot be sent for any reason
(instance, the email template is broken),
the transaction must continue, so the payment
transaction can be set to `done` or `pending`.

In other words, not sending the confirmation
email or not confirming the sale order must
not be blocking to mark the payment
transaction as done.

opw-672486
2016-03-22 15:49:14 +01:00
Nicolas Martinelli d6c88b8809 [FIX] account: filter out special periods
Commit 7b7f3fa filters out the special periods. However, the filtering
should be done only for the display in the form view, nto for the
reporting which is actually correct.

opw-672531
2016-03-22 13:07:30 +01:00
Nicolas Martinelli 43445db7e4 [FIX] point_of_sale: fiscal position on invoice
In v8.0 and saas-6, the PoS does not support the concept of fiscal
position. Therefore, the invoice generated should not use it, otherwise
there might be an inconsistency between the PoS order and the invoice.

FORWARDPORT TO SAAS-6 ONLY!

Fixes #11299
opw-671743
2016-03-22 11:46:49 +01:00
Denis Ledoux 9d12f90c23 [FIX] crm: check context before using it
context could be `Nonetype`

opw-672452
2016-03-21 18:28:01 +01:00
Josse Colpaert 87578177ac [FIX] mrp: Cost calculation of finished product when real price should work in real-time too
For that, we needed to inverse the processing of the moves of the production order (first consumed, then produced
instead of the opposite) as that way we know the price to put on the produced moves based on what was consumed before.
2016-03-21 17:08:07 +01:00