Commit Graph
127887 Commits
Author SHA1 Message Date
Hiral Bhavsar 6eef0ea0b7 [IMP] lunch: clean the controlpanel actions
- For the model 'lunch.order', rename the actions menu
  'Lunch: Receive meals' by 'Mark as received' and 'Lunch: Cancel meals'
  by 'Cancel'.
- For the model 'lunch.product', remove the action menu
  'Lunch: Archive/Restore products'

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar 5a2c3286ea [IMP] hr_expense: clean the controlpanel action menu
For the model 'hr.expense', rename the action menu 'Submit Report' by
'Submit report' and set it only for the list view.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar 32c01d1850 [IMP] hr_timesheet: remove the action menu 'Timesheet Entries'
For the model 'project.task', remove the action menu 'Timesheet Entries'

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar cba58475b2 [IMP] repair: rename the action menu 'Create Invoice'
Rename the action menu 'Create Invoice' by 'Create invoices' for the
model 'repair.order'.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar 2456f673de [IMP] purchase: set the action menu 'Share' only for form view
For the model 'purchase.order', set the action menu 'Share' only for
the form view.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar 9f3d3eb8f5 [IMP] mrp(_account): clean the controlpanel action menu
For model 'mrp.production', rename the action menu
'Mrp: Plan Production Orders' by 'Plan orders' and set it for the list
view only.

For the model 'product.template' and 'product.product', rename the menu
'Compute Price from BoM' by 'Compute cost from BoM' and set it for the
list view only.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar 1574861e48 [IMP] stock(_picking_batch): clean the controlpanel actions
For the model 'stock.picking'
- Rename the action menu 'Assign a Responsible' by 'Assign responsible'
  and set it for the list view only.
- Rename the action menu 'Add to Batch' by 'Add to batch'

For the model 'stock.warehouse', remove the action menu 'Reordering Rules'

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar c2bc4ee7cd [IMP] point_of_sale: clean the controlpanel actions menu
For the model 'pos.session'

- Remove the actions menu 'Put Money In', 'Take Money Out' and 'Orders'
  from the controlpanel actions menu.

For the model 'pos.config', remove 'Sessions' action menu.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar 9df284f5b5 [IMP] (website_)sale: clean the controlpanel actions
For the model 'sale.order'

- Set the action menu 'Share' only for the form view of model.
- Rename the action menu 'Invoice Order' by 'Create invoices' and set
  only for the list view.
- Rename the action menu 'Send a Cart Recovery Email' by
  'Send cart recovery email' and set it only for the list view.
  Also improved tour 'shop_cart_recovery' as now action menu only
  available on the list view.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar 701f26ce79 [IMP] crm, website_crm_partner_assign: clean the controlpanel actions
For the model 'crm.lead'

- Rename the action menu 'Send an email' by 'Send email'.
- Remove the action menu 'Mark Late Activities as Done' and
  'Mark All Activities as Done'.
- Set 'Mark as lost' menu action only for the list view.
- Remove the action menu 'Assign salesman of assigned partner'.
- Rename the action menu 'Forward to Partner' by 'Forward to partner'
  and set it for both form and list view.

For the model 'res.partner', remove the actions menu 'Meetings'.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:57 +00:00
Hiral Bhavsar 69cf2c0f82 [IMP] portal: rename the action menu 'Grant Portal Access'
Rename the action menu 'Grant Portal Access' by 'Grant portal access'
for the model 'res.partner'.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:56 +00:00
Hiral Bhavsar 3b08cf1d17 [IMP] membership: remove the action menu 'Invoice Membership'
Remove the action menu 'Invoice Membership' from the model 'res.partner'

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:56 +00:00
Hiral Bhavsar b366c554e6 [IMP] mail: rename action menu 'Send Email' by 'Send email'
Rename the action menu 'Send Email' by 'Send email' for the
'res.partner' model.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:56 +00:00
Hiral Bhavsar 6f30fcec14 [IMP] base: rename action menu 'Merge Contacts' by 'Merge'
Rename the action menu 'Merge Contacts' by 'Merge' for the 'res.partner'
model.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:56 +00:00
Hiral Bhavsar 29bb709844 [IMP] sms: set action menu 'Send SMS' only for list view
Set action menu 'Send SMS' only for list view of 'res.partner' model.

Linked to task 1984526
Related to PR #33720
2019-07-10 15:07:56 +00:00
mgh-odoo b133091728 [IMP] stock: clarify procurement rule message
message help user in case of misconfiguration.

Task-1960746

closes odoo/odoo#34000

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-07-10 11:35:13 +00:00
Hetal Dhanak 14ccea24e0 [IMP] website_crm: made company name field optional in contact form
Previously, 'company' field in the 'contact us' form was a required field
which wasn't ideal to accommodate B2C flow.

When applied this commit will make company field optional by default. Note
that users can customize the form to make it required again if necessary.

Linked to task 1965839

closes odoo/odoo#33005

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-10 15:18:42 +00:00
Parth Choksi d59fd862f1 [IMP] auth_signup : send a reminder for pending users
Purpose of this commit is to send a mail template to the user
who invited other user(s) in Odoo.

It informs the user about the details of user(s) who have been
invited by him but have still not registered after the given days
of creation (default set to -> 5days)

task-1912449
Closes #31582

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-10 15:12:02 +00:00
Romain DerieandXavier Brochard 41334ca2a5 [FIX] portal: show only real partner on access portal wizard
Before this commit, when granting portal access to a res.partner through the
wizard, it would show all the partner + its child_ids, including shipping
addresses partner, billing addresses, private (hr) addresses etc, which makes
no sense.

This commit hide contact-address from the list.

Fixes #32848

closes odoo/odoo#34522

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>


Co-authored-by: Romain Derie <rde@odoo.com>
Co-authored-by: Xavier Brochard <xavier@alternatif.org>
2019-07-04 09:34:02 +00:00
Yenthe666 ebb755a95d [IMP] sales_teams: improve term and comments
Cateamions?

Fixes odoo/odoo#34045

closes odoo/odoo#34057

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-08 12:29:38 +00:00
mgh-odoo 180f237907 [FIX] stock, purchase_stock: activity type to exception
When the system generate an activity the standard is to define it
as an exception type. Todo works as well but we would keep it for
the user and avoid a mix between exception from the system and created
manually.

Task-2007559

closes odoo/odoo#34006

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-07-10 11:36:30 +00:00
William Henrotin 671c71d7d8 [FIX] stock: avoid false-positive in tests
As next activities are ordered by date, having the same date can implies
the order is not always the same.

closes odoo/odoo#34753

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-07-10 13:00:58 +00:00
Simon Lejeune 14812f4171 [REF] sale_stock: invoice_policy shouldn't impact valuation
The invoice status of a sale order line depends on its product's
`invoice_policy` and `qty_delivered` fields.

`invoice_policy` is also used to compute the "anglo saxon price
unit" which is, once multipled by the invoiced quantity, the
amount we will take from the stock delivered account to put into
the cost of goods sold account if we are in anglo saxon mode.

The default `invoice_policy` is set as "ordered". In this mode and in
anglosaxon, the "anglo saxon price unit" will always be standard price
of the product, resulting in unbalanced accounts.

In this task, we chose to use the real delivered price if something was
delivered, whatever the value of `invoice_policy`. We fallback on the
standard price if nothing or not enough things were delivered.

test_dropship_fifo_perpetual_anglosaxon_ordered and
test_dropship_fifo_perpetual_anglosaxon_delivered do have the same
result now.

task-2003196

closes odoo/odoo#34644

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-07-09 14:56:43 +00:00
Aaron Bohy 3db2f7f73d [FIX] web: tab navigation in editable list with only readonly fields
Let's assume an editable list with a row containing only readonly
fields. Before this rev., if the user clicked on this row and then
pressed TAB, it crashed. The crash occurred in historical code that
now seems to be useless, so we simply removed it.

closes odoo/odoo#34696

Signed-off-by: Julien Mougenot (JUM) <Arcasias@users.noreply.github.com>
2019-07-09 12:15:03 +00:00
Thibault Delavallée 3eab0a54ff [FIX] mail: restore send after commit behavior for notification emails
Previously to commit [1] notification emails were send using the after commit
hook (see [2] for related code move and [3] for original code). That commit
changed the parameter default value without any reason, meaning this mechanism
is not used anymore. This commit fixes that behavior.

[1] See commit 581a74143e: code cleaning
[2] See commit 7a6269719f: code move
[3] See commit 38e181ee2c: use of post-commit hook in mail

closes odoo/odoo#34681

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-09 08:22:13 +00:00
Thibault Delavallée 6231b82fad [FIX] crm: add forgotten mixin for phone validation
Commit f60825b439 moved phone validation addition on res.partner model
from a specific module to crm directly. However the inherit from the validation
mixin class was forgotten, leading to a crash when changing phone from the UI.

closes odoo/odoo#34545

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-09 08:22:06 +00:00
Hetal Dhanak c0734817b9 [FIX] account: display tag properly on payments
Removed classes "default-label" and "label" as they weren't required and
were giving a bad look to tag.

Task-2033286

closes odoo/odoo#34646

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-07-09 09:17:44 +00:00
Simon Lejeune 777a63cdd9 [FIX] stock: stock.move write() cleaning
This commit adds some comments, clean linter error and remove unused
variable in the write method of stock.move

closes odoo/odoo#33624

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-07-09 12:14:42 +00:00
William Henrotin 4c3121dbfe [IMP] stock: alert in case of rescheduling
In a move chain, if the scheduled date of a move N is updated, we would
like to create an alert on the move N+1.

This commit adds a boolean field on stock.rule that, if set to True, will
create a next activity on the stock.picking of the move that are created
from this rule, in case the previous move has its scheduled date changed.

The message will depends on the propagation of the schedule date between
the two moves:
 - If the date is propagated, the message informs the picking user that
  the transfer is delayed.
 - If the date is not propagated and the new date of move N is after the
   schedule date of move N+1, the message says that the scheduled date
   will be outdated.

Task: 2001643
2019-07-09 12:14:42 +00:00
Martin Trigaux 64907ba7aa [MERGE] forward port from saas-12.4 to master up to b27c145cf2
closes odoo/odoo#34697

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-09 12:28:03 +00:00
Simon Lejeune 3d1d4575a6 [REF] stock_account: allow receipt/deliveries at 0 in perpetual
We still create a valuation layer for the traceability of what
happened though.
The rationale is that receiving free products is often requested by our
customers.

task-1985424

closes odoo/odoo#34683

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-07-08 12:21:33 +00:00
Aaron Bohy ea2207afea [FIX] web: don't close dialog on doAction with target 'new'
Rev. ee44d23 fixed a usability issue: when a doAction is performed
from a dialog, it automatically closes the dialog (as the action is
rendered in the background, behind the dialog).

However, it also closes dialogs when the action has target='new',
i.e. when it also opens in a dialog, which is not strictly
necessary in this case.

This is problematic in mobile for the product configurator widget:
in the sale.order form view, the order_line field is displayed as a
kanban, and in its form view, the product_(template_)id field has
widget product_configurator. When a value is set, it performs a
doAction (target="new") to configure the product. The widget listens
to the dialog's 'closed' event to update itself. However, with what
is done in ee44d23, the x2many form dialog is closed by the DoAction,
so the flow doesn't work.

This rev. reverts the attempt done in ee44d23, and does something a
bit more brutal: as soon as an action is pushed in target 'current'
(in the main part of the interface), all dialogs are automatically
closed.

closes odoo/odoo#34678

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2019-07-09 07:59:05 +00:00
Cedric Snauwaert 9cab694bf5 [IMP] web: add simple calculator on numeric fields
Add a new behavior to numeric fields, possibility to enter value manually or to use a simple arithmetic expression that will be evaluated.
Example: =20+3*2
In order for the computation of the arithmetic expression to be done, the value needs to starts with = and then an expression can be entered. We only support the basics mathematical operations + - * / ( ) ^
User locale and digits separator are taken into account. If the value entered can't be evaluated to a numeric, the field will be displayed in error.

closes odoo/odoo#34538

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-07-09 07:45:42 +00:00
Simon Lejeune 38753f95d9 [FIX] stock_account: default_type and account move creation
Default "type" key in the context leads to a traceback. Force the type
to be entry.

task-2033390

closes odoo/odoo#34665

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-07-08 14:58:08 +00:00
Yannick Tivisse 7fdc3a1890 [FIX] base: Allow to create an user
Now that an onchange set its result into the cache, we
cannot create a user because the onchange tries to put
the reified fields (eg: sel_4_7) into the cache.

As those field don't exist and are pseudo-fields used
to manage groups into the res user form view, we should
replace the values by ORM commands on the groups_id field,
as this is already the case in the create and the write
methods.

Note: Initially merged in saas-12.4, but was not
forward ported, I don't know why.

closes odoo/odoo#34487

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-07-09 09:13:58 +02:00
Goaman 04114043bb [IMP] account: Allow to merge and print original vendor bills
This commit add an action to merge and print the original vendor bills
through the field 'message_main_attachment_id'.

Was task 2006908

closes odoo/odoo#34023

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-07-08 12:10:51 +00:00
Goaman b82a6cdea2 [IMP] base, ir_actions_report: allow to merge pdf and images
This commit allows to merge, in a single pdf, different streams comming from both PDFs and images.
To achieve that, the dictionary save_in_attachment used in method render_qweb_pdf() has been changed to now store streams instead of ir.attachment records. That allows to process each of them equally to render them.

Was part of task 2006908
2019-07-08 12:06:49 +00:00
Kevin Baptiste 544476f945 [IMP] hr_work_entry: improve work entries error management
`display_warning` is now replaced with the `conflict` state.

closes odoo/odoo#34653

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-07-08 11:45:47 +00:00
Yenthe666 8dcc4f9d94 [REM] web: remove old changelog
Was for 7.0, no longer needed in 13.0

closes odoo/odoo#32922

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-08 12:23:23 +00:00
Yenthe666 f042c62916 [IMP] base_address_city: prefill country
When creating a state from the Cities list, the country was not prefilled.
Use the parent record

Closes #30135

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-08 13:14:45 +00:00
Nans Lefebvre b65d5efd02 [FIX] mrp: show the real duration for all users
The duration field ('real duration') only showed the duration spent
for the currently logged user; this was confusing to user.
We remove the domain on the user to show the same duration to all users.

opw 2029830

closes odoo/odoo#34649

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-07-08 11:00:10 +00:00
ppr-odoo 1520547ca3 [IMP] account: small UX imp in 'Journal Entries' form view
don't show the 'Reconclied Entries' stat button if no reconciliation are linked to the move

task-1935597

closes odoo/odoo#31149

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-07-08 10:26:52 +00:00
Simon Lejeune 341a9921e0 [REM] stock: remove unused context key usage
closes odoo/odoo#34540

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-07-08 07:20:37 +00:00
Simon Lejeune d3a23ab5ec [REM] stock: unused last_done_picking field 2019-07-08 07:20:36 +00:00
svs-odoo ca672eebac [IMP] stock: not detailed operations for receipts
Before this commit, each picking type had its `show_operation` field on
true if user actived multi locations, packaging or tracking.
Now, it still the case except for picking type for receipt.

Also, modifies onchange to reflect that when creating new picking type.

Task #2031313
2019-07-08 06:44:51 +00:00
jem-odoo 31a8616a03 [IMP] hr: add helpers to get employee unavaibilities
Those 2 methods are used in enterprise (for now) in order to get employee
unavailabilities. This is used for planning and forecast gantt view. As we
didn't want to create a bridge module for those 2 methods, we place them
here as 'hr' is the only one common dependency between forecast and planning.

Task-2024216

closes odoo/odoo#34638

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-07-05 13:06:05 +00:00
Gert Pellin 3ca2842cc1 [IMP] pos_sale: store sales team on pos order
For now the sales team is only used on the pos.config and now on the invoices generated.
When you open the sale report, you'll see the sales team of the pos.order, but in reality it is the one of the related pos config.
That means that if you change the pos team on a config. It will change the pos team of all existing order.
We should store sales team on pos order, like on invoice and sale order

TASK-ID: 2011460

closes odoo/odoo#34246

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-07-05 12:34:29 +00:00
Prakash Prajapati b85b584c34 [REF] sales_team: remove reply_to field from crm.team model
reply_to field is not used (and not available) anywhere. Its use is completely replaced by
aliases you can set on teams. Let us therefore remove this field.

Related to task 1985539

Closes #33497

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-05 11:44:04 +00:00
Patrick Hoste 68186037a2 [REM] crm, project: remove the legend_priority fields
Purpose of this commit is to remove of the legend_priority field in the crm
and project addons since they are not used anywhere.

Those were initially introduced at dd343c8633 . Purpose was to be able
to customize displayed label of priority field used in kanban view in
replacement of standard string. However kanban view does not support it
anymore since whatever web refactoring and this feature will not be
reintroduced. Let us therefore remove the fields.

Linked to task ID 1935620

closes odoo/odoo#33444

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-05 11:47:50 +00:00
Robot Odoo 1013f86bb0 [MERGE] mail: Apply some UX improvements (Back2Basics)
1/ base: use new avatar for administrator

As the current icon is white, we cannot see anything when
put on a white background, as this is the case on the chatter.

2/ mail: Remove the 'Bell' icon to edit subtypes

There are 2 different manners to edit the subtypes:
- The bell above the chatter
- The pencil next to your avatar on the followers dropdown.

It's better to have only one way to edit these subtypes.

As this is an advanced configuration that is not part of the
onboarding process, remove the most obvious way to edit it.

3/ mail: Move the attachment icon on the left

This is much better.

4/ mail: Display some tour popups on a better side

5/ mail: do not log note if note is empty

Because a note could be only False, not at least
"<p></br></p>"

TaskID: 2026295

closes odoo/odoo#34615

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-07-05 14:32:33 +02:00