Commit Graph
103345 Commits
Author SHA1 Message Date
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 7ab4f6e669 [FIX] base: Replace (correctly) group_light_multi_company
Because sometimes shit happens (see 8a2f4e7d3f)
2016-03-07 16:53:45 +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
Yannick Tivisse f6c0418a80 [IMP] mail: Send plaintext emails on discussion with external user/partner
When there are no available action buttons on the email (as Follow, View Task,
Convert to Opportunity), i.e. when the user/partner is not an employee, and
when the message subtype is 'Discussion', send a plaintext mail instead of
a formatted one.

Use case: Strange to receive a mail like this when you're on a lead and you
receive formatted mails.
2016-03-07 15:55:53 +01:00
Yannick Tivisse 8a2f4e7d3f [IMP] base: Merge group_light_multi_company into group_multi_company
This distinction is useless and confusing.
2016-03-07 15:53:30 +01:00
Yannick Tivisse abdca55ea2 [FIX] User with 'Access Rights' rights not able to access Users menu
The ERP managers (users with 'Access Rights' rights) cannot even click on
the Settings app menuitem. Because of 2 things:
- The Dashboard settings is accessing the model ir_module_module. So
  we set a groups 'group_settings' on it.
- The Users view is accessing the model ir_module_category to groups
  the aggregate and display the settings. So we change the security rules
  by giving the access to the group_erp_manager instead of group_settings
- The global rules opn companies was applied to the erp managers. We
  splitted this ir.rules into three new ones on portal,public and employee
  users to allow the erp managers to access the companies
- Writing on the res_groups was calling the method _update_user_groups_view
  in all the cases. This method should be called only when the view was
  needed to be modified, i.e. when the category_id is modified for this
  group.
2016-03-07 15:53:30 +01:00
Yannick Tivisse 29404e096b [IMP] base,base_setup: easier multi-company configuration
- The 'Extra Access Rights' is now hidden out of debug mode
- The fields 'company_id' (current company) and 'company_ids'
  (allowed companies) are hidden if there are no more than 1
  company in the database.
- If there are more than 1 company, the fields are displayed
  on the user form view and setting more than 1 company on the
  user will add him into the group 'group_multi_company'. On the
  same way, setting only one company on a user will remove him
  from this group
- The group 'group_multi_currencies' is displayed on the General
  Settings. Enbaling this feature will add all the users into this
  group. This is more accurate as this feature is more global
  than per employee.
2016-03-07 15:53:30 +01:00
Yannick Tivisse 90981ec730 [IMP] Administration access right on Configuration->Settings menuitems 2016-03-07 15:53:29 +01:00
Yannick Tivisse fdb3ad7082 [REM] Remove the group 'base.group_configuration'
This additional administration group was formerly used to hide
the configuration menuitems for the common users.

Being manager should be enough to access these items
2016-03-07 15:53:29 +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
Mansi Gandhi d5f9338e81 [IMP] account: display user message to configure the tax-cash-basis-journal. 2016-03-07 14:51:13 +01:00
rap-odoo 59efea7e31 [IMP] account: Remove the 'reference' field from the Customer invoice report. 2016-03-07 14:47:36 +01:00
Ankit Joshi 266f798fc0 [ADD] stock: add the field 'description_picking' in picking report
The field is defined but never user. It could be useful to indicate
to the delivery guy that the product is 'fragile' or whatever.
2016-03-07 14:28:54 +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
Darshan Kalola e14d0a9f62 [ADD]hr_recruitment,website_event_track: added color field to store the user selected tag color where tag color selection is not possible and improved the tag position in kanban view of event.track. 2016-03-07 14:02:33 +01:00
Anand Kansagra 87c631b1c1 [IMP] sale: Add tooltip for expiration date field. 2016-03-07 13:57:56 +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
Kinjal Mehta a3f5d07d32 [IMP] stock_landed_costs: add tooltip message on split method and string on cost lines header 2016-03-07 10:24:11 +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
Jigar Patel 159f6c9e1f [IMP] event: The timezone of the event should be required field because if the user does not set timezone then in website_event(frontend) for event's timezone is not intuitive 2016-03-07 09:20:34 +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
rmu-odoo d474dce528 [IMP] l10n_hu: Created tags and Assign to Taxes 2016-03-04 17:52:13 +01:00
Martin Trigaux c811ebb337 [FIX] doc: reference to Launchpad for translations 2016-03-04 17:31:47 +01:00
qdp-odoo 62fb8d8a34 [IMP] accout_bank_statement_import: add a feature to build the full name of the bank statements by just giving the number 2016-03-04 17:01:49 +01:00
Denis Ledoux af174897ab [FIX] website_sale, website_sale_options: currencies
Adaptations following rev. 1684ae4:
    The website pricelist is now dynamic, according
    to the pricelist chosen by the customer on the website.
    It's no longer a static pricelist, it's no longer
    the public user pricelist.

    Therefore, when computing the variants prices,
    the prices should no longer be converted
    from the public user pricelist to the current (context)
    pricelist, but from the product currency to the
    current pricelist chosen by the customer on the website

    In addition, when getting the unit price,
    `/shop/get_unit_price`,
    the website current pricelist should always be used,
    it should never fall back on the partner pricelist,
    as, it's the user who choose his pricelist from the website
    now (if he has specific set on his partner
    form, it's that one which is loaded by default, and which
    is returned by the website.pricelist_id)

    In addition, the displayed currency on the ecommerce
    must always be the current website pricelist currency

Adaptations following rev. 3622c0d:
    A product can have no company set (not required).
    Therefore, when attempting to set the `from_currency`
    to the product company currency, this could return
    `None`, if no company was set on the product.
    `product.currency_id` ensures to always return a currency
    for the product. It's the company currency
    if the product has a company set, otherwise it take it from
    the main company (`base.main_company`).

    In addition, when editing the product price from the website,
    the price must be displayed within the product currency,
    as, if changed by the user, it changes the product sales
    price directly on the product form, without any currency
    conversion applied or whatever.

opw-670898
opw-671100
2016-03-04 16:34:17 +01:00
Jigar Patel 224d1c5433 [IMP] purchase_requisition: procurement tooltip
Remove the tooltip as it is outdated. It still refer to a checkbox. However it
is now a selection field whose entries are clearly defined. The tooltip is
therefore not necessary anymore.
2016-03-04 16:18:27 +01:00
Anand Kansagra 14bf814e88 [IMP] crm: wording of function field
Rename field string from 'Function' to 'Job Position' in the lead model. This
way it matches the wording used in the customer form.
2016-03-04 16:13:52 +01:00
Kinjal Mehta 58c4619918 [IMP] mass_mailing: no create link.tracker
Indeed UTMs should be created from the front end, via promote.

Also fixed some mismatch in tracker views by correctlin setting the view_id in
mass_mailing and classic utm view.
2016-03-04 16:12:37 +01:00
Joren Van Onder f0257a9c72 [FIX] point_of_sale: maintain stable viewport on iOS
The POS frontend has an unchangeable viewport which should be 1024 px
wide. On iOS 9.2.1 however, the viewport width sometimes changes to a
much smaller value (154 px on an iPad Air 2) after fading out the
loading screen. This makes the POS pretty much unuseable, especially
considering that this viewport is not user-scalable, which means you
can't zoom out.

This is due to a recent change to WebKit2 for iOS [1] which makes the
viewport resize when setting the overflow property on
document.body. This particular change has been recently reverted [2],
but this does not seem to have made it to the latest stable WebKit build
for iOS as of the time of this commit.

Because of this we will remove the call to set_content_fullscreen
entirely. It only does two things:

1. set overflow-y to hidden on the document.body
   This is reduntant because we already have 'overflow: hidden' on the
   .pos div, which contains the entire application
2. adds .oe_content_full_screen to the .oe_webclient div
   This is also not particularly useful because the stylesheet rules for
   this class are contained in addons/web/static/src/css/base.sass which
   isn't loaded in the POS

[1] https://trac.webkit.org/changeset/186786
[2] https://trac.webkit.org/changeset/194667

note: for forward-porting to >saas-6, setting the application fullscreen
is instead done by triggering 'set_full_screen' through core.bus, so
those core.bus.trigger() calls should be removed instead.
2016-03-04 16:09:08 +01:00
Ajay Javiya 5738f99aac [MIGR] website_sale_stock: new module structure
As this module does not have any code to migrate to the new api, only a move
is performed. No code has been harmed.
2016-03-04 16:05:09 +01:00
Dharmraj Jhala f2ace98a5f [REM] website_sale_stock: unnecessary controller
Removed controller override in website_sale_stock. Indeed this override adds a
result that is not used anywhere. website_sale_stock contains now only a template.
2016-03-04 16:05:09 +01:00
Foram Shah 002f0647e6 [IMP] stock: wording, leftover suppliers
Replace the word 'Supplier' with 'Vendor'
2016-03-04 15:54:45 +01:00
Damien Bouvy 161e85a1dc [FIX] website_quote: do not force send the quotation in case of payment error
Mirror code, mirror fix: 84573fe
2016-03-04 15:37:39 +01:00
Nicolas Lempereur 4706a0c9a2 [FIX] base: shield embedded view from action 'create'
With `92a3178` if a window action has `'create': False` in its context,
creating a record by one of the action view is disabled.

But this is also applied to eventual embedded views which is not wanted.

With this commit, a `'create': False` in the context is only applied on
root view model and not on embedded ones.

closes #11207
opw-660607
2016-03-04 15:32:54 +01:00