Commit Graph
115208 Commits
Author SHA1 Message Date
Aaron Bohy 36a9cb2059 [IMP] web: Kanban open ColumnQuickCreate if no column
Part of task #38740
2018-01-26 19:26:03 +01:00
Aaron Bohy 563c31fe49 [IMP] web: Kanban: hide Create button if no column yet
Onboarding process: the user has to create a column first.

Part of task #38740
2018-01-26 19:26:03 +01:00
Aaron Bohy 6ea347a490 [REF] web: Kanban: move quick create widgets
... in their own file.
2018-01-26 19:26:03 +01:00
Aaron Bohy 7ed3bd40a7 [FIX] crm,test_main_flows: adapt tours to flow changes
The 'crm_tour' and 'main_flow_tour' tours both create a 'crm.lead'
record from the Kanban view at some point. Since last commit, this
doesn't open a form view in a dialog anymore, but instead opens a
form view in the QuickCreate widget. Some steps of those tours had
to be adapted accordingly.
2018-01-26 19:26:03 +01:00
Aaron Bohy 973205f21d [IMP] crm,hr_recruitement,project: kanban quick create
This rev. defines form views to use as quick create views in the
kanban view of models 'crm.lead', 'hr.applicant' and 'project.task'.

It uses a newly created mechanism allowing to specify a form view
xmlid in the Kanban arch, such that the referenced view is rendered
inside the QuickCreate widget (see parent commit).

Task #27475.
2018-01-26 19:26:03 +01:00
Aaron Bohy d18d08f01a [IMP] web: Kanban: quick create record with more fields
This rev. improves the QuickCreate widget for grouped Kanban views.
It allows specifying in the Kanban arch a form view xmlid, e.g.:

    <kanban quick_create_view="some_form_view_xmlid">
	...
    </kanban>

When this attribute is set, the referenced form view is loaded and
rendered inside the QuickCreate widget. A real FormView widget is
instantiated, meaning that all form view mechanisms are available
in the QuickCreate (modifiers, default_get, onchanges, widgets...).

Task #27475.
2018-01-26 19:26:03 +01:00
Aaron Bohy af2686fee5 [IMP] web: Kanban: cancel column quick create on ESC
Record quick create can be cancelled by pressing ESC, so this rev.
ensures that the same behavior applies for the column quick create,
for the sake of consistency.
2018-01-26 19:26:03 +01:00
Aaron Bohy cf178a2f06 [IMP] web,*: config: add XXS size to config.device
In Less, the size_class XXS is defined and used in media queries.
This rev. adds it in JS for sake of consistency.

Code in addons comparing the size_class needed to be adapted due
to the new XXS size_class.

Moreover, we now use the helper 'config.device.isMobile' everywhere
we should, instead of manually comparing the size_class.

Finally, we changed the way the config.device has to be specified
in the test environment. From now on, only the size_class should be
set, and the isMobile flag is computed automatically.
2018-01-26 19:26:03 +01:00
Géry Debongnie cb339842d4 [REF] web,*: move fvg processing from DataManager to Views
*: mail, web_diagram
2018-01-26 19:26:03 +01:00
Géry Debongnie 12fa4e565a [REF] web: move _loadSubviews() from FormView
... as this function is only used by the FormView.
2018-01-26 19:26:03 +01:00
Simon Lejeune 5f17f0184a [REF] delivery: remove unused field
This is a preliminary commit to more cleaning in the UOM used for the
weight of products.
2018-01-26 17:38:13 +01:00
Sanjay Jamod 7642754122 [IMP] account: Added feature to create recurrent vendor bills,
- One need to first enable this from Accounting Settings to use this feature
- This feature works for Vendor Bills which are validated/paid
- Once activated, user can see one option in Vendor Bills to set particular record to be recurrent document and can define the recurrency period. This will automatically create draft documents(by mean of Scheduled Actions) as per recurrency configuration.

Was PR #21411. was task 34884.
2018-01-26 16:56:57 +01:00
Adrian Torres a094095ef3 [IMP] mail: check if template can be rendered on write (#20834)
* [IMP] mail: check if template can be rendered on write

Before this commit, whenever a user would send an email from a template
containing mako python expressions and those expressions contained
syntax errors, the mail would still be sent but the body would be empty,
this was intended behavior but due to an increase in complaints of empty
mails being sent, the behavior was reviewed.

This commit improves on this behavior by:

    1. Rendering the template on write (save)
    2. Checking if the template rendered successfully
    3. Raising a UserError if the rendering failed

The end result is a modal box showing an error to the user whenever he
either saves an mail.template with python syntax error in mako snippers
or when a mail with mako snippets is rendered on-the-fly (wizard).
2018-01-26 16:02:24 +01:00
Martin Geubelle 4a409fb4bf [FIX] web: pass additional_context in load_action
The `additional_context` key was missing from the mock function of `load_action`.

This was causing an issue when testing a use case (the context was correctly
passed in Studio).
2018-01-26 13:13:27 +01:00
Alexandre Kühn 1a7a0ec4b3 [FIX] mail: livechat: send message with chat_window
Revision on c778de44c7
The changes on chat_window are wrong, because the
composer uses an 'input', instead of a 'div'.

As a result, it was not possible to send messages
over im_livechat from the website.

This was not the case on the webclient: chat_window
is enhanced with extended_chat_window, which replaces
the composer with 'div', hence the changes are correct.
2018-01-26 11:14:01 +01:00
Nicolas Martinelli 8531af9c8b [IMP] stock: unnecessary inventory line fields
Several fields are not necessary on inventory lines: they are not used
anywhere, or can be replaced with their Many2one.

opw-805439
2018-01-26 08:27:04 +01:00
Christophe Simonis 88a87240a6 [MERGE] forward port branch saas-11.1 up to 8613724bfc 2018-01-25 17:38:41 +01:00
fda-odoo ccdbc16efc [MERGE] hr_expense: onboarding 2018-01-25 17:03:12 +01:00
Christophe Simonis 8613724bfc [FIX] stock_dropshipping: adapt test.
Field `schedule_date` is now readonly for new records. Simply set the
correct `expected_date` on the move line.
2018-01-25 16:44:37 +01:00
fda-odoo 8cf946a838 [IMP] hr_expense: rename responsible_id to user_id
As user_id is a magical field, we rename responsible_id to user_id to notify him when he is assigned to an expense sheet.
The other option is to rewrite the mail template "message_user_assigned" and to adapt mail_thread.py to accept other field than user_id, but this task is let for later.
2018-01-25 15:51:57 +01:00
fda-odoo 2df2afc405 [IMP] hr_expense: improve useability of hr_expense
- Change the differents states of hr.expense to have
ToSubmit, submitted, approved, refused and paid.
- Add a responsible field on employee model. The responsible is a res.user that belong to the group "hr_expense.group_hr_expense_manager"
The commit change too a "vals" variable that changed in a git rebase operation.
- Make the other_info tab invisible if the user doesn't belong to account.group_account_user.
- Make expense wizard (for expense lines) editable if expense is in reported mode, so when the sheet is in To submit state.
- Move a tour from expense form to expense_sheet form
- rename two fields (attachments and manager)
- The buttons "approve" and "expense" must be hidden if the user isn't the expense responsible.
- The description field of expense line must be editable in draft, reported and refused state
- Add a subtype to follow responsible changes on expenses sheets
2018-01-25 15:51:57 +01:00
fda-odoo ab8f5ec95d [IMP] hr_expense: change tours text, labels, search field
- subscribe responsibles of an expense to followers of that expense
- hr_expense requires sale_expense instead of sale_management
- remove one tour step and change texts of some others
- remove header from expense line wizard
- add tax field in form view for expense
- change the display name of some fields and other titles.
- remove the expense report and improve search bar for expenses in report.
2018-01-25 15:51:57 +01:00
Christophe Simonis cb50970f3f [MERGE] forward port branch 11.0 up to eefe879a37 2018-01-25 15:41:45 +01:00
qsm-odoo f79b00c3b7 [FIX] portal, web_editor: responsive images but with inline display
Commit https://github.com/odoo/odoo/commit/abde8bddf8ec45cf12aab59e95c330321158cfba
made a small change to make all images responsive when they are added
with the editor. This had however the side effect of making them go to
a new line which may not be what we want.
2018-01-25 13:56:29 +01:00
qsm-odoo 461bf2331d [IMP] portal: default floating media' spacing
When an image/video is floating, the text around was hitting the image
as no spacing was defined. Now, a left margin is added on right-floating
images and a right margin is added on left-floating images.
2018-01-25 13:56:29 +01:00
Prakash Prajapati eb2cf11904 [IMP] web: hide group by option in search view for calendar view 2018-01-25 13:14:00 +01:00
fda-odoo eefe879a37 [MERGE] fix payment flow with acquirers in e-commerce, invoices and quotations
As some flows were broken, this set of fixs improve the different routes for all acquirers
See commit messages for more information

Thanks to @jpr-odoo for his first implementation and to @tde and @fgi
2018-01-25 13:12:25 +01:00
Ravi Gohil 1a6b32ff58 [IMP] sales, crm: improve sales reporting UX
- 'Customer' is more appropriate than 'Partner' for sales
- makes some confusing menu easier to understand
- remove favorites search duplicates of groupby
2018-01-25 13:01:51 +01:00
Ivan Yelizariev decc668f76 [FIX] base_import: typo 2018-01-25 12:59:19 +01:00
Christophe Simonis c6b2fa47ed Revert "[FIX] base: bad back-port"
This reverts commit 0ac6043ec7.
2018-01-25 12:43:02 +01:00
Nikunj Ladava c778de44c7 [IMP] mail : display mentions in green color in edit mode
When someone mentions another person in discuss/chat window, the
mentioned name was displayed just as a text, which may be unclear.  With
this commit, we display mentions with the same style as mentions in a
message.

To do that, the main idea is to change the input by a div with
contenteditable set to true.  This allows us to add <a>...</a> inside.
2018-01-25 12:18:10 +01:00
Raphael Collet f50c6b1f6c [FIX] tools: align API of groupby on the one of itertools.groupby
The function `stripped_sys_argv` was broken because of `itertools.groupby`
being hidden by the local `groupby`.  Aligning APIs makes the local one a valid
substitution for `itertools.groupby`.
2018-01-25 11:28:13 +01:00
Christophe Simonis da9baf2331 [MERGE] forward port branch saas-15 up to 0c97be858c 2018-01-25 11:14:56 +01:00
Christophe Simonis 1d884bec75 [FIX] mass_mailing: set related field on model as readonly
This avoid writing on `ir.model` for unprivileged users.

Courtesy of Jose Suniaga (suniagajose)

Closes #22496
2018-01-25 11:05:28 +01:00
Nicolas Martinelli ee8e3d6940 [FIX] account, l10n_be_invoice_bba, purchase, repair, sale: format_amount
Use `format_amount` in the mail templates in order to format as a
regular amount (with rounding and symbol).

opw-805370
2018-01-25 11:00:35 +01:00
Nicolas Martinelli a57a290bd8 [FIX] stock: scheduled date read-only on picking
- Create a picking
- At creation, add a product and change the scheduled date

The scheduled date is reset to its original value when saving.

This is a standard behavior of the ORM for computed fields. Therefore we
simply forbid the modification of the scheduled date at creation.

opw-807572
2018-01-25 09:09:41 +01:00
Christophe Simonis 0c97be858c [MERGE] forward port branch saas-14 up to 4ea4f99df9 2018-01-24 18:12:53 +01:00
Christophe Simonis 4ea4f99df9 [MERGE] forward port branch 10.0 up to efd300156b 2018-01-24 17:23:28 +01:00
Christophe Simonis efd300156b [MERGE] forward port branch 9.0 up to d29c2dbbdd 2018-01-24 17:22:44 +01:00
Lucas Perais (lpe) d29c2dbbdd [FIX] account: no payment terms on refund
In the case where:
create an invoice with payment terms that contains at least 2 term lines
Validate
create a refund by clicking cancel and reconcile

Before this commit, the refund move lines were wrongly created and reconciled with the invoice's move lines

After this commit, since payment terms are irrelevant on refunds, we set it to false and the problem doesn't raise

OPW 804752
2018-01-24 16:41:42 +01:00
Lucas Perais (lpe) adad192cc0 [FIX] account: reconciliation on payment terms
The case: create an invoice of 2000 euros. Payment terms have been configured as:
1) fixed amount 150, 0 days after invoice date.
2) fixed amount 200, 10 days after invoice date.
3) fixed amount 200, 20 days after invoice date.
4) balance, 30 days after invoice date

Before this commit, when issuing a payment of 150 at day 0, that payment got reconciled with the balance line.

After this commit, the payment is reconciled with the right payment term line

OPW 805006
2018-01-24 16:38:41 +01:00
Lucas Perais (lpe) 2e515a61bc [FIX] mail: res_model of followers should compute as uid=1
Take as example:
having demo user as expense manager
create with demo user an expense sheet for the employee linked to admin
on save, there was an access rights error for the write on mail_followers

After this commit, there isn't the error anymore,
since the computation of the field related is done with sudo

OPW 804740
2018-01-24 16:30:25 +01:00
Lucas Perais (lpe) 7dd3ab9c55 [FIX] website_sale: pending message do not disappear
On the payment confirmation page, when the payment is still pending.

Before this commit:
the user friendly message disappeared and a warning icon took its place

After this commit, the warning icon is prepended to the message.

OPW 787799
2018-01-24 16:18:02 +01:00
Christophe Simonis 6f2d1b8261 [MERGE] forward port branch 10.0 up to 34bfadb2f2 2018-01-24 15:50:56 +01:00
Christophe Simonis 9a2b9b1ae1 [FIX] l10n_fr: correct taxes' tags migration script 2018-01-24 15:49:11 +01:00
Romain Derie 3c998acaaf [FIX] website_blog: archive multiple blog.post throws a server error
Step to reproduce:
  - Go to 'Blog' > 'Blog Posts' in the 'Website Admin' module
  - Select several blog.post on the list view
  - Click on 'Archive' in the 'Action' dropdown

This will throw a server error since write() is overriden for blog.post and
do an ensure_one()

This commit closes #22208
2018-01-24 15:48:49 +01:00
fda-odoo 7335fade15 [FIX] website_quote: fix a typo
Add a 's' to 'any question' and remove space before '!'
2018-01-24 15:41:39 +01:00
fda-odoo 4fc96f9795 [FIX] account_payment, sale_payment: stop propagation of status message in URL after payment
We only want to keep the access_token from the URL and not all the error and success messages.
2018-01-24 15:41:31 +01:00
fda-odoo 2bd17285ea [FIX] payment_stripe: fix the 404 error and redirect on /my/orders page
Fix the 404 error with stripe on the page /my/orders if website_quote and website_sale aren't installed
2018-01-24 15:41:01 +01:00
fda-odoo 9ba1cc46c5 [FIX] payment: save the token if the option is checked in the form mode of the related acquirer.
The function was searching for the wrong acquirer in the page, so check the option was without effect
2018-01-24 15:38:54 +01:00