Commit Graph
103218 Commits
Author SHA1 Message Date
Denis Ledoux 668b4e1f62 [FIX] membership: invoice_line has been renamed to invoice_line_ids
This prevented the deletion of invoices when
the module membership was installed.

opw-671575
2016-03-10 11:27:48 +01:00
Goffin Simon 03c84f2c76 [FIX] sale, sale_stock: Changing the product uom
When changing the product in a SO line, the uom must be change if
the uom category of the product is different of the uom set.

Closes #11241

opw:671367
2016-03-10 10:59:19 +01:00
Martin Trigaux abe5859559 [FIX] gamification: close challenge after expiration
Before this patch, the challenges with an end date in the future were closed at
the first cron run.

opw-669995
2016-03-10 09:26:17 +01:00
Thomas Groutars 07dd720cf6 [FIX]product_visible_discount: uom factor computation
Conversion error.

opw:671367
2016-03-09 16:48:03 +01:00
Nicolas Lempereur 51641d2634 [FIX] web_editor: leave block after two enter
Before 3959afc the `node` tested would be the selection containing node,
but since then it may have been a `<br/>` which has some damaging
effects: now entering double enter at the end of a list, quote or code
block doesn't end this block.

Testing the use case corrected by 3959afc, the said change seems to have
no effect so this commit reverts it.

opw-667618
2016-03-09 16:01:49 +01:00
Nicolas Martinelli 560e5eec15 [FIX] purchase: duplicate origin in PO
When a "Drop Shipping" route is used on a product, the origin document
is duplicated on the PO created. This is because in this case,
po_rec.origin and procurement.origin are the same.

opw-671039
2016-03-09 15:57:00 +01:00
rmu-odoo b549af8ddf [IMP] l10n_br: Added post-migrate_tags_on_taxes file 2016-03-09 14:22:36 +01:00
rmu-odoo b21c687dd0 [IMP] l10n_br: Created new tags and assign to taxes for one grid in tax report 2016-03-09 14:22:28 +01:00
Yannick Tivisse b1b8d0b353 [FIX] account: buggy typo in unused line
it was a tracback prone res
2016-03-09 14:09:37 +01:00
Goffin Simon 13c33264e6 [FIX] purchase: _get_po_line_values_from_proc-sig
Introduced by eefc76f
Only the supplier taxes of the company set in the procurement
must be set in the PO.

Backport from f5989bc3d8

opw:671449
2016-03-09 13:16:14 +01:00
Christophe Simonis d1067cf83f [FIX] stock_account: avoid duplicate ids in stock.history
Since 27a7cab52b, it may happen that the
stock.history view contains duplicated id (mutliple quants with
different lots for a single move).

Regroup serial numbers in order to keep a unique id per row.

opw-669349
2016-03-09 12:51:33 +01:00
Goffin Simon f5989bc3d8 [FIX] purchase: _get_po_line_values_from_procs
Introduced by eefc76fdee
Only the supplier taxes of the company set in the procurement
must be set in the PO.

opw:666875
2016-03-09 12:10:39 +01:00
Denis Ledoux c175699e3f [FIX] sale: make New in new sales orders translate-able
opw-671476
2016-03-09 11:33:41 +01:00
Denis Ledoux f4006d22ef [FIX] crm: allow Settings users to set generate_sales_team_alias
The change of value of this param can lead to the
unlink of an `ir.values`, which can be performed
only by sudo.

opw-671469
2016-03-09 11:24:09 +01:00
Damien Bouvy d69d08cfb1 [DOC] views: calender 'event_open_popup' is disabled by default 2016-03-09 10:35:58 +01:00
Goffin Simon 6cb518d530 [FIX] website_portal: state_options
Inspired from 1ef52c9

opw:668271
2016-03-09 09:26:21 +01:00
Damien Bouvy 7d90640fd0 [DOC] backend tutorial: end_date field should be on session class 2016-03-09 09:23:53 +01:00
Damien Bouvy 15b8f3586c [FIX] website_portal_sale: let ACL do their job
Specifying the partner_id in the search does not give the same
result as the portal_sale module, which actually lists all the
SOs/Quotes/Invoices where you or anyone from your company is the
partner_id. To make the backend and frontend listings consistent,
let the ACL and ir_rules do their job (these are defined in the
portal_sale module).
2016-03-09 09:23:43 +01:00
Goffin Simon f6a62fa6e1 [FIX] mrp: a member of group_mrp_manager can create Work center
When creating work center, a resource.resource record is created.
Then a member of group_mrp_manager is allowed to create resource.resource record.

opw:671218
2016-03-09 09:15:34 +01:00
Joren Van Onder 591d74becf [FIX] point_of_sale: do not select payment input when hidden
Edge >=12 throws an error (code 800a025e) when calling the select()
method on an input element that is not currently part of document and
has a non-empty value.

When adding a paymentline a "change:selected_paymentline" event gets
triggered which in turn triggers the focus_selected_line function before
the actual paymentline gets rendered.

opw-671426
2016-03-09 09:13:44 +01:00
Denis Ledoux 9fa597c9c2 [FIX] point_of_sale: sessions closing performances
`account.move.line.company_id` is a related
to `account_id.company_id`

`account.bank.statement.company_id` is a related
to `journal_id.company_id`

Any attempt to set the `company_id` value
when creating or writing records for these models
will result to the update of the value in
the related record (the update of `company_id` in the
`account.account and the `account.journal`), which
will result in the update of the `company_id` value in all
records in which this related record is used
(in all `account.move.line` where this `account_id` is used,
in all `account.bank.statement` where this `journal_id` is used).

In other words, the more a database had `account.move.line`
or `account.bank.statement` records, the more
it took time for the pos sessions to be closed.

To force a company for an `account.move.line`
(`account.bank.statement`), you must just
set the correct `account_id`(`journal_id`)
in the first place.

For instance, for the `account_id`, passing
`force_company` in the context ensure to choose
the `account.account` from the right company
property.

See
`local_context = dict(context or {}, force_company=company_id)`
which is set in `_confirm_orders` just before calling
`_create_account_move_line` which retrieve
the account from the
`property_account_receivable_id` property.

opw-671362
2016-03-08 17:55:52 +01:00
Nicolas Lempereur 6d56d02d05 [FIX] website_views: don't show view editor when versionning
The versionning has not been created for editing view with the website
HTML Editor, it can leads to several issues, among which are:

- getting the wrong view (good key but bad version) in the HTML Editor,
- losing view inheriting the modified view

So this commit remove the HTML Editor when a version is currently shown,
if a view needs to be edited with the HTML Editor it should be done only
on the 'master' version.

opw-667225
2016-03-08 17:13:58 +01:00
Nicolas Lempereur b0b6b9afb5 [FIX] website{,_version}: get current version view
customize_template_get which gets template inheritence informations was
not taken into account by website version, so at one time we could get
an erroneous view version instead of the wanted one.

This commit refactor some of the code adding a function to sort view and
find the most suitable one (based on website and version in request).

This function is then used in ir.ui.view `_view_obj`'s function to
select the correct view.

related to opw-667225
2016-03-08 17:13:58 +01:00
Denis Ledoux 002722b967 [FIX] mail: Discuss > Send mail sends a private message
For a message to be considered as a private message,
the message must have:
 - `no_auto_thread` set to `False`
   in other words, it must not be attached to a thread
 - no `model` or `res_id` must be set on the message
   meaning the message is not attached to a specific
   record thread.

See `_get_message_id` in `mail/models/mail_message.py`.

Before this revision, the mails sent from
`Discuss` > `Send mail` were not regarded
as private messages,
but as a kind of mass mailing messages,
with a `reply-to` wrongly set.
Any attempt to reply to these mails
failed with a delivery failure notification.

This was because the `message-id` of these messages
contained `reply-to`, and such message-ids are
treated as a special case in the messages routing
(basically, the match on the mail references is disabled
for these messages containing `reply-to` in
their message-id).

opw-669241
2016-03-08 15:38:10 +01:00
Nicolas Martinelli 04f7858159 [FIX] mrp_operations: search function for date_planned_end
Commit bfa68b433 adds the field `date_planned_end` in the Gantt view.
However, the Gant view will perform search on this field, which is an
issue since it is a computed field without any `fct_search` defined.

opw-669042
2016-03-08 14:15:04 +01:00
Jairo Llopis 906bf16a76 [8.0][FIX] Make on_change in address_format divs work
To reproduce the bug:

- Create a partner.
- Set it state "Alaska".
- Country becomes "United States".
- Set a country for YourCompany, such as Spain.
- Create a partner.
- Set it state "Alaska".
- Country remains blank.

Also, `node.xpath("//field")` was running over every `<field>` in the
view, not just those inside the `<div class="address_format">`. Now it
only traverses the right nodes, which renders every affected view
faster.
2016-03-08 13:40:40 +01:00
Nicolas Martinelli e8bc1c7e6b [FIX] mail: followers: allow edit subtypes even if not follower
Partial backport of 27e92415a. The JS modification is not applied, in
case any extension would use `records_length`.

opw-668781
2016-03-08 11:05:27 +01:00
Denis Ledoux 84b45515bd [FIX] hr: mention suggestions, exclude disabled employees partners
It was possible to mention an employee despite the
fact the associated partner and user were
both disabled.

opw-671130
2016-03-07 18:22:41 +01:00
Nicolas Martinelli b955bac100 [FIX] stock_landed_costs: stock input account
When assigning landed costs to products that have already left the
stock, the expense account is used instead of the stock input account.

opw-671311
2016-03-07 17:02:19 +01:00
Yannick Tivisse 240417be1e [FIX] hr_holidays: date_from and date_to missing on hr.holidays tree view 2016-03-07 16:43:37 +01:00
Goffin Simon 7cf20afb0b [FIX] account_check_writing: wrong duplicate period
When duplicating an account voucher, the period was duplicated even if
the Bill Date didn't match with it.

opw:669850
2016-03-07 15:32:29 +01:00
Yannick Tivisse 9a56bf5fe4 [IMP] account: email notification button for all users
The access/follow/actions buttons on the notification email template
are sent only to employee. For this particular business model when
want all the users to receive them, as the portal users.
2016-03-07 14:24:18 +01:00
Yannick Tivisse 0c2bbf6da6 [FIX] website_project_issue: Don't always display 'View Issue'
This override was always sending the document to all the recipients.
If the user is only a follower, he sees the button but cannot access
to My Account as he's not a user.
2016-03-07 14:24:18 +01:00
Yannick Tivisse 271840a282 [FIX] project_issue: Allow portal customer to see their own issues
Some computed fields have been added in v9 and are calling the method
_compute_day. This method accesses the project related to the issue
So a user portal is able to see his own issue, but cannot open the
form view as the prefetching is loading the fields. Hiding them in
the group base.group_user doesn't have any effect as the compute method
is called on the read. These information may have their importance to
the customer too.

We decided to compute these fields on superuser access rights.

Also the field project_id is displayed on the project_issue form view.
As this information is internal, we're hiding this also under the employee
group.
2016-03-07 14:24:18 +01:00
Yannick Tivisse f7c4b5b65e [IMP] project_issue: email notification button for all users
The access/follow/actions buttons on the notification email template
are sent only to employee. For this particular business model when
want all the users to receive them, as the portal users.
2016-03-07 14:24:18 +01:00
Yannick Tivisse 38f0e1f122 [IMP] sale: email notification button for all users
The access/follow/actions buttons on the notification email template
are sent only to employee. For this particular business model when
want all the users to receive them, as the portal users.
2016-03-07 14:24:18 +01:00
Trevor Bekolay d28cde3e30 [FIX] mrp_repair: fix description metadata
Avoid the string 'summary' to be included in the description

Closes #11219
2016-03-07 14:16:17 +01:00
Trevor Bekolay 75a33d5c87 [CLA] sign CLA for Applied Brain Research 2016-03-07 14:11:29 +01:00
Nicolas Lempereur 4309bd311f [FIX] base: don't unlink base.open_menu but reset it
The ir.actions.todo record base.open_menu is used to redirect the user
to a menu after installing a module.

To do so, a new module override the record changing its action (toward a
menu) and setting its state to "open".

But with f7fe753 when one such changed action is removed after
uninstalling a module (or removing the action by any other way) the
base.open_menu would also be removed. Thus thereafter the open_menu will
not work anymore (since type "automatic" is lost).

With this commit, when whenever base.open_menu is removed, instead its
action will be replaced by base.action_client_base_menu which is the
original action.

closes #11224
related to: #11216, opw-660269
2016-03-07 14:03:28 +01:00
Nicolas Martinelli b30afcbdb9 [IMP] sale_stock: set partially delivered products to fully invoiced 2016-03-07 14:02:44 +01:00
Goffin Simon fcc733241c [FIX] stock: wrong state in delivery slip report
When the stock.picking record is linked to some pack.operation records,
the move line state displayed has to be the move line with the same product as
the one in the pack operation record.

opw:671192
2016-03-07 13:18:23 +01:00
Goffin Simon 9519ad42ea [FIX] product: _check_valid_attribute
All the ids must be checked.
Introduced by 856b31719c
2016-03-07 13:03:36 +01:00
Denis Ledoux a37bd77895 [FIX] mail: mark all as read, remove notification as sudo
As it's done few lines below,
in `set_message_done`.

The user could have a notication associated
to a message he has not, or no longer, the
write access, but he should still be able
to mark it as read.

opw-671188
2016-03-07 11:21:42 +01:00
Nicolas Martinelli 018b53bc15 [FIX] product: do not add same attribute on product
Adding an attribute with only one value does not recreate the product,
but write this attribute on every product instead. However, the current
filter is not correct: it checks if the given attribute value is not
already in the list of attribute values of the product.

The appropriate check is to verify that the attribute itself is not
already in the list of attributes of the product. Indeed, there is a
constraint to prevent the same attribute to have two different values on
the same product.

BTW, it's a new api function (`mapped`) inside an old api module. Not
the cleanest way to do it, but simpler to write.

opw-671114
2016-03-07 10:08:17 +01:00
Odoo Translation Bot aca8a8bebc [I18N] Update translation terms from Transifex 2016-03-06 02:59:52 +01:00
Odoo Translation Bot 7d3d9272bf [I18N] Update translation terms from Transifex 2016-03-06 00:33:40 +01:00
Olivier Dony 9804c54634 [FIX] product_expiry: performance issues due to extra write() call
When creating thousands of production lots in batch, the
extra call to write() cuts performance in 2, and can be
replaced by an appropriate context when calling super(),
as all the default values are computed correctly.

The only case that could possibly fail is when the product_id
is not passed to the create() call but comes instead from
defaut values (ir.values).
This case is very rare and considered a manual exception
where the expiry dates can be input manually.
2016-03-04 19:15:28 +01:00
sha-odoo 8266a41a66 [IMP] l10n_jp: Added post migration file 2016-03-04 18:03:14 +01:00
sha-odoo 98df903af3 [IMP] l10n_jp: Created tags and Assign to Taxes 2016-03-04 18:03:09 +01:00
rmu-odoo 13ec67c847 [IMP] l10n_hu: Added post migration file 2016-03-04 17:52:18 +01:00