Commit Graph
120711 Commits
Author SHA1 Message Date
Sébastien Theys a7f32c2649 [IMP] account,sale,website: improve buttons text and class
Website generic: change "edit to backend" class to match other menu dropdown items.

Invoice: add "back to edit mode" banner.

Sales Order:
- "Reject" in red, we really don't want the user to click it.
- "Accept & Sign" renamed to better convey the meaning and match the button on the popup.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys d50aa61cf7 [IMP] sale_management: prevent from archiving default template
This will prevent confusion from the user at a later time.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 4a1ad6f536 [IMP] various: rename electronic payment to online payment
To be consistent with "online signature".

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 78e51c429d [IMP] sale: improve demo, default data, and manifests
*** Activate pay and sign, as well as quotation template, by default when using demo data.

Previously, the features would show by default on runbot because they activated on installing modules.

Now that they are settings of sale_management, we need to specifically activate them for demoing. However we don't want them for on-boarding.

*** Remove the default template from sale_management, move it into sale_quotation_builder

The default template was useless in sale_management because it was empty: it was previously a required field, which is not the case anymore.

It was only filled and used in sale_quotation_builder to display an example quotation, which is why it is now moved there.

*** Update manifests

Fix category of sale_quotation_builder and slightly improve its text.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 83f9ef9059 [FIX] account,web: fix invoice iframe height
a7a89f3174 introduced a change that broke the invoice iframe.

The #wrapwrap corresponds to the client body, therefore the container must be inside it, and the scrollbar will now be on it instead of on the iframe body.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
Sébastien Theys 36d1b456d2 [IMP] portal,various: factorize "back to edit mode"
The same code was duplicated in several places. This commit creates a single template for it.

PR: #26801
task-1876864
2018-09-19 12:00:37 +02:00
jem-odoo a2456b20e9 [FIX] hr_timesheet: create project with allow_timesheet checked by default
The default value when creating a project is true for 'allow_timesheet'
field. This will automatically create an Analytic Account (if not
provided). However, the old onchange reset the allow_timesheet to false
if no AA was given, which is a contraction with the expected behavior
on project creation. But, we might want to uncheck 'allow_timesheet'
when we remove the AA on an existing project (Users can not log
timesheets without an active analytic account).
This commit fixes the erasing default value on creation by checking
the record is currently existing in the database.

Task #1886691
2018-09-19 11:35:06 +02:00
jem-odoo 8e875f58cf [IMP] hr_timesheet: move demo data
For people having only hr_timesheet installed, it could
be cool to have the hourly cost per employee set on some
demo data.
2018-09-19 11:35:06 +02:00
jem-odoo 4739d6067d [FIX] sale_timesheet: avoid access error on recomputing invoice_type 2018-09-19 11:35:06 +02:00
qsm-odoo fa12ae4009 [FIX] website_theme_install: fix the enable_view method
The method failed to enable views which were created by copying a
theme.ir.ui.view. This is because standard views were found with the
'ref' method while those particular ones were found thanks to the
copy_ids field... which only found the already active ones by default.
2018-09-19 10:24:35 +02:00
qsm-odoo 3ecf2fbc7e [FIX] website_theme_install: review customization dialog message
The priority was set to a low value while it was meant to be a high
value. Indeed, we want that if that template is active, the customize
modal is emptied no matter what, so it has to be called last.

This is to have an understandable behavior if our code fails to mark the
template as inactive on a theme installation. With this commit, the
customization dialog will be empty. Without this commit, it gives an
error which can lead to think we made a mistake writing the theme's own
customization dialog while it was in fact inheriting from an emptied
dialog.
2018-09-19 10:24:00 +02:00
qsm-odoo 1c946f79fc [FIX] website: review customize modal definition
- Remove theme specific parts and move them in theme_common
- Use IDs to ease theme overrides
- Use the same convention for all options: the default one is not bound
  to any xml_id (that's just the default scss files)
2018-09-19 10:23:29 +02:00
Pratima Gupta 197119a37d [FIX] mrp: add missing space in warning message
opw-1886349
Closes #27053
2018-09-19 09:46:54 +02:00
Nicolas Martinelli b9473c09c6 [FIX] account, sale: Intrastat delivery address
Forward-port of fix 034e1d37d9
Since there is not link module between `sale` and `account_intrastat`,
we use a common method in `account.invoice`.

opw-1878590
2018-09-19 08:07:50 +02:00
Aaron Bohy 66c716d781 [FIX] *: adapt calls to _is_superuser
Rev. 2f7c03d added a second admin user (id 2), the 'human' one, on
top of the 'technical' one (id 1, also known as the superuser).
Basically, all calls to _is_superuser() should have been changed to
_is_admin(). They weren't. As a consequence, some features that
were previously available for the admin weren't anymore (e.g.
tours).

This rev. replaces all calls to _is_superuser() by calls to
_is_admin().
2018-09-18 20:31:28 +02:00
Martin Trigaux 952889c056 Revert "[FIX] account don't make administrator part of account users group by default"
This reverts commit e2c28ed3d6.

This commit was making the reconciliation test fail
2018-09-18 18:33:32 +02:00
Alexandre Kühn 95331042f1 [FIX] web: do not re-render app menu on every app click
This was necessary because the rendering was always determining
which app item should have the class 'active'.

This was an issue with the 'Click Everywhere Test': at the beginning
of the script, it gets the jQuery element that matches all nodes
`a.o_app` in the app menu. When an app item is clicked, it re-renders
the whole app menu, so that older referenced nodes are detached from
the DOM. As a result, clicking on them no longer works, because it
never triggers the MouseEvent `click .o_app`.

This commit fixes the issue by rendering the whole app menu once.
When an item in the app menu is clicked, it dynamically changes
the `active` app.
2018-09-18 18:12:03 +02:00
Odoo Translation Bot 53908da50c [I18N] Update translation terms from Transifex 2018-09-18 18:08:33 +02:00
Nicolas Seinlet 49cc76797c [FIX] mail: add group on i tag
attrs use a field only accessible to members of group users.
If any user non member of group user, like user_id 1
during a migration, reach this view, you got an error.
2018-09-18 17:34:50 +02:00
Christophe Monniez 98ced5ca88 [FIX] web: fix selector for the menu items in clickEverywhere test
Also clarify a variable name referencing a node instead of a jquery
object.
2018-09-18 16:44:38 +02:00
Martin Trigaux 9370decebb [I18N] remove website_forum_doc
cf b83a574687
2018-09-18 16:35:40 +02:00
William HenrotinandDenis Roussel 96143348ae [FIX] product: lock uom in edition
On product packaging model, the uom is related to the product uom but
but editable. This can lead to some error in the database. This commit
set it as readonly to avoid any mistake.

Co-authored-by: Denis Roussel <denis.roussel@acsone.eu>
2018-09-18 16:29:07 +02:00
Olivier Colson e2c28ed3d6 [FIX] account don't make administrator part of account users group by default
Before that, the administrator could use accounting features by default. This is not what we want, the group only gets assigned by default when installing account_accountant, on enterprise.
2018-09-18 16:20:53 +02:00
qsm-odoo 18a1629c12 [FIX] website: restore color palette generation
Commit https://github.com/odoo/odoo/commit/77402a4efc4c8b3fbb146dbef57dfbebae709017
modified the color palettes to use alpha, beta instead of primary and
secondary in the color selection.

Something was forgotten: changing the first (alpha) color did not
regenerate the whole palette anymore.
2018-09-18 16:18:39 +02:00
qsm-odoo a6dd40220b [FIX] website: wrap social icons in the footer 2018-09-18 16:18:39 +02:00
qsm-odoo 7bc7775037 [REF] website: t-call s_share in carousel instead of copying it 2018-09-18 16:18:39 +02:00
Raphael Collet 71613d9eab [FIX] fields: avoid _update to raise AccessError
During an onchange, setting a many2one field automatically updates its inverse
one2many field.  If the update raises an exception, catch it and put it in
cache, so that it is re-raised when the value is read from the cache.
2018-09-18 16:00:32 +02:00
Martin Trigaux fe9612c6bc [I18N] remove l10n_* translation files
Were no longer synchronized since 9.0
Commit 710f67ad4b mistakly reexported them too

Remove the .pot, keep only a few one like it actually makes sesne to have
translated content such as l10n_be_invoice_bba
2018-09-18 15:58:44 +02:00
William Henrotin 7c96632497 [FIX] stock: wrong barcode encoding
Commit 3cebe88 set the barcode encoding of production lot to EAN13 in
the pdf report. It should be Code128 as lot barcode are the lot name.
2018-09-18 15:38:50 +02:00
Arnold Moyaux c0d7a05730 [REF] stock: _action_done and cache invalidation
`_action_done` could unlink a quant. This happens when moving a product from a
location to another one and makes null the quantity of this product in one of
theses locations. In this case, we unlink the quant because it is now useless
and could be confusing on reports based on quants.

The unwanted side effect is that unlinking a record will invalidate the cache. In
some pathologic cases, like making an inventory adjustment of 600 products
and reseting their quantity back to 0, the time of the operation is around 15
minutes. With this patch that tries to work carefully with the cache invalidation,
the same operations takes around 15 secondes.

This commit do not unlink quant anymore, instead it use a 'garbage
collector' on quants without quantity. The garbage collector is trigger
on the scheduler and when the user open the inventory view.
2018-09-18 14:53:03 +02:00
jem-odoo 6a81e671ea [FIX] hr_timesheet: change column order list view
Task #1883937
2018-09-18 14:49:40 +02:00
jem-odoo fe8893ed3d [FIX] sale_timesheet: hook to invoice validated timesheet
When invoicing only validated timesheet (enterprise feature), the actual
code also link other non validated timesheet from the same Sale line.
This
is not correct.
This commit provide a hook to extend the domain of timesheets to link
correctly. This came from 561ee39356.
2018-09-18 14:49:16 +02:00
jem-odoo bf905014f7 [FIX] sale_timesheet: remove domain on wizard map
We want to allow setting user that havent timesheeted yet
on the project, in the map. We keep the check that every
user with a timesheet should be in the map, but there
can have others.

Task #1883640
2018-09-18 14:49:09 +02:00
Martin Trigaux 0a95798a09 [MERGE] base: improve ir.translation import
Speed up the import of a translation file by getting rid of the previous slow
find_expr and replace it by on conflict clauses

Add a new type of translation model_terms to simplify import

Closes #26925
2018-09-18 14:31:01 +02:00
Martin trigaux 710f67ad4b [I18N] export saas-11.5 source terms
To match new model_terms syntax
2018-09-18 14:30:04 +02:00
Pierre Masereel 7288b4779a [IMP] base, tools, web_edeitor: improve ir_translation insertion
The ir_translations were pretty slow to load, this was mainly caused by
the condition in variable 'find_expr' and the import of po values in the
temporary table.

To improve the load performance, we made two improvement:

1. Insert the row in the temporary table by batch instead of making an
   insertion for each record.
2. Replacing the condition in the variable 'find_expr' by partial unique
   index. To perform such a thing, we had to separate the type model in
   two types, 'model' and 'model_terms' because it wasn't possible to
   create a partial unique index on type 'model' because the type was
   used for two different use cases. The type model is now used for
   fields that have have a value not callable for the attribute
   translate, these field can only have one record for the same field,
   model, res_id and language. And the type 'model_terms' is used for
   the fields callable, because they can have multiple sources for the
   same res_id.

We also removed the deprecated types 'report', 'help', 'view', 'field'.

Thanks to @rco-odoo for the improvement of the first point.
2018-09-18 14:30:03 +02:00
Christophe Monniez 83e460b8da [IMP] web: add a phone input to the database manager
Task: 1879675
2018-09-18 13:54:19 +02:00
sri-odoo ed2773e381 [REF] mail: activities list, ‘mark as done’ sliding panel
Refactor ‘mark as done’ popup JS in order to use a sliding panel layout instead.
Sliding panels are currently needed in kanban views, where activities are listed in a dropdown that can't handle popups because of CSS overflow and lack of space.

Since this new system check for default bootstrap data-toggle attributes, it could be easily used elsewhere changing the buttons's data-toggle and providing the necessary container for the “mark as done” form.
2018-09-18 13:44:00 +02:00
XavierDo 47496b9fe5 [IMP] mail: add force_next on activity type
A new field on activity type allow to change the behaviour of mark done & schedule next:
-marking as done will automatically schedule the next activity, based on the default_next_activity.
-It should also be impossible to edit an activity when this flag is on.

task: #1884521
2018-09-18 13:44:00 +02:00
RomainLibert 44fd3bc808 [IMP] *: implement new version of dashboards
In order to implement the next version of the dashboards in enterprise
we need to make some changes in community namely :
   * Modify some search views (used in the dashboards)
   * Remove the date/datetime filters from the search views as they are
     duplicated with the time ranges
   * Rename the menu items from Dashboard to Overview
2018-09-18 12:31:27 +02:00
Christophe Simonis 94aaa2f5b0 [FIX] web: tests: refine selector on values only. 2018-09-18 12:02:12 +02:00
Prakash Prajapati 71564384cd [IMP] im_livechat, web: Live chat kanban view improvement.
Related Task : 1882802
Closes : #26900
2018-09-18 11:56:19 +02:00
Christophe Simonis a12c4d284c [MERGE] forward port branch saas-11.4 up to a1b384d66b 2018-09-18 11:42:52 +02:00
TWA 947194c03d [IMP] iap: Adapt insufficient credit message
based on enterprise and trial
2018-09-18 08:55:26 +02:00
Christophe Simonis a1b384d66b [MERGE] forward port branch saas-11.3 up to 2de573440e 2018-09-17 19:40:47 +02:00
ThanhDodeurOdoo 389cb3e8dd [REF] mail: update related_attachment_count field name to match mixin namespace.
Reason: The Attachment count of mail_thread is used by the new
attachment button of the chatter, the compute field has been chosen
over a search_count JS RPC to keep a synchronous chatter and prevent
flickering.

This commit refactors those changes to follow the naming
conventions of mail_thread and to optimize the count method for
eventual reuse follwing TDE's advices.

- Changed the name of a mail_thread's related_attachment_count into
message_attachment_count.

- Changed the count method to a read_group.

PR: 26989
Task: 1860031
2018-09-17 19:12:25 +02:00
Christophe Simonis 2de573440e [FIX] stock_dropshipping: call existing method in test 2018-09-17 18:48:53 +02:00
Christophe Simonis 0942a57b5a [MERGE] forward port branch 11.0 up to f2b8caff07 2018-09-17 18:03:41 +02:00
Christophe Simonis f2b8caff07 [MERGE] forward port branch saas-15 up to 03b83abb7f 2018-09-17 17:02:40 +02:00
Alexandre Kühn 7075142bd4 [FIX] mail: counter color green in community
It was blue over blue with the change of the navbar.
Before the navbar change, it was blue over black.

To avoid blue over blue, counter is now green, so that
it is green over blue.
2018-09-17 16:46:53 +02:00