Commit Graph
103913 Commits
Author SHA1 Message Date
Denis Ledoux 7c9ab02c53 [FIX] website_event: make Attendee # translatable
On the website,
when registering for an event with ticket,
the placeholder `Attendee #` could not be translated,
as `t-att` attributes are not translated.

An alternative is to put the string to translate
in a `t-set` node, which can be translated, and
to use the variable assigned in this `t-set`
in the `t-att` attribute.

opw-678758
2016-06-30 13:01:27 +02:00
Denis Ledoux bc2a06c019 [FIX] http, website_form: preserve form input values order
By default, werkzeug doesn't preserve the order
of the parameters sent to routes.

As stated in the werkzeug documentation:
```
parameter_storage_class

the class to use for args and form.
The default is an ImmutableMultiDict which supports multiple values per key.
alternatively it makes sense to use an ImmutableOrderedMultiDict
which preserves order or a ImmutableDict which is the fastest
but only remembers the last key.
It is also possible to use mutable structures, but this is not recommended.

New in version 0.6.

```

For some of our use cases, it makes sense to keep the order
of the route parameters.

e.g. In the website builder, when building a form
with a bunch of inputs values that will be concatened
in a lead note, the user expects the answer to be displayed
in the same order than the form inputs.

This change is seen as a bit risky as it could lead to
performances issues in the http routes processing, and this
is the reason we do not merge this in stable 9.0 at the moment.

If needed, it could be back ported later to 9.0, after
several weeks/months of testing in this release(saas-10 atm).

opw-677508
2016-06-30 10:45:55 +02:00
Nicolas Lempereur 811dd8f24c [FIX] web: submenu need toggling of .o_hidden
Since dce2a309 submenus where hidden by using the class `o_hidden` but
this was not taken into account when showing them (so opening submenu
was not possible).
2016-06-30 09:30:06 +02:00
Fabien Pinckaers aed9b23688 [IMP] hr_expense: on boarding tour: accept non employee email option 2016-06-29 22:19:46 -07:00
Fabien Pinckaers 7aa835ae11 [NEW] hr_expense: new tour
[NEW] point_of_sale: new tour
[IMP] hr_expense: main employee is created by default, so that you can
use the email gateway and record expenses, without configuration
required
[IMP] all tours: applying JWR propositions: americanization of tips
[IMP] crm tour: add invite people steps

Merge branch 'master-expense-tip-fp'
2016-06-29 22:00:44 -07:00
Fabien Pinckaers 8c65bb7311 [IMP] project: tour improvements 2016-06-29 21:58:36 -07:00
Fabien Pinckaers 0ea1db4d34 [FIX] project: tour: misc fixes: missing extra_trigger, clean selectors,
missing _t(), adding a step to edit before asking to change a field.
2016-06-29 21:50:29 -07:00
Fabien Pinckaers 724eb557d1 [IMP] partial revert of 3106d5a3f2
Usability: remove the Settings tour and include the addition of users
back at the end of others tour. The reasons:
- When someone starts with Project, we don't want to invite him going on
  the settings tour (Don't make me think/choose)
- If the user starts with Settings (e.g. out of curisity), he will not
  have a great on boarding experience.
- We expect the user to follow the steps in this order 1/ discover
  project tasks and, only after, 2/ invite users (he will probably not
  invite users before discovering the application)

The drawback is that we have to add "Invite Users" steps on others tour,
but only those for which it has a sense:
- Website, Accounting, eCommerce are typically single-users apps (we
  don't need to make him invite people)
- CRM, Project are multi-users apps
2016-06-29 21:23:42 -07:00
Fabien Pinckaers 33ce526aa2 [IMP] tours 2016-06-29 21:14:00 -07:00
xmo-odoo b3feb2358c [IMP] allow group_operator on any field
There's really no reason to limit group_operator to numeric fields and Postgres's flexible aggregate make the ability to aggregate on non-numeric fields (and/or non-numerically)

* moves group_operator to Field
* adds a default value of `sum` on integer, float and monetary fields
* in read_group, filters on fields with a group operator rather than by
  type (also allow id fields, since Id doesn't have a group_operator by
  default it will be ignored anyway) (sequence is still specifically
  excluded for now because they're usually regular Integer fields)

Closes #12372
2016-06-29 17:52:30 +02:00
Yannick Tivisse 51a8bc1a60 [IMP] sale_crm,project: usability improvement from user tests 2016-06-29 16:40:59 +02:00
Nicolas Martinelli a4e4881f4c [FIX] website_portal: missing kwargs
The route "/my/home" is missing kwargs, therefore switching to debug
mode or trying to translate leads to a traceback.

opw-681380
2016-06-29 16:39:51 +02:00
Christophe Simonis 2eebef8d41 [FIX] web: pager minimum on next/previous record
Since the deduplication of web addons (977db823c7),
patch 9062c01c02 (freshly forward-ported)
is now useless. Apply odoo/enterprise@26adf4fe2c couterpart.
2016-06-29 13:58:20 +02:00
Yannick Tivisse 3106d5a3f2 [IMP] web_settings_dashboard,web_tour: usability improvement from user tests
1/ The tip should be on the textarea, not on the button.

2/ The access right field on the quick user creation form is confusing.
   I propose to put it in "Technical Feature" so that it's not visible for normal users.

3/ dissociate les settings tour from project tour
2016-06-29 12:02:19 +02:00
Goffin Simon 58bdc39fb8 [FIX] product_extended: bom_count appeared twice in a view
The field bom_count appeared twice in product.template form view and
then the smart button for "Bill of Materials" always displayed 0 as
number of BoMs.

opw:681830
2016-06-29 11:58:54 +02:00
Nicolas Martinelli cef9759c31 [FIX] account_extra_reports: partner of other company
Printing the report "Sale/Purchase Journal" leads to an access error if
one of the partner of an account.move.line is from another company.

opw-681104
2016-06-29 11:34:44 +02:00
Nicolas Martinelli 4c4b0b6e1f [FIX] doc: RHEL-based installation
The instructions to install Enterprise version on RHEL-based
distributions are not correct.

opw-681767
2016-06-29 11:08:23 +02:00
Nicolas Martinelli dd233bd40e [FIX] mail: message order
It might happen that a transaction produces more than one message in the
chatter. In this case, the messages are created with the exact same
date, and they might appear in the wrong order in the chatter.

We therefore sort the messages by id, and not by date. Note that the
messages are already sorted when received from the server, but the web
client has its own management of the messages' order. Relying on the
server order might imply to change other parts of the code on client
side, which is something we want to avoid on a stable version.

opw-681049
2016-06-29 10:23:29 +02:00
Goffin Simon 1d843884e8 [FIX] account: Empty list with get_default function in "ir.values"
The function get_default in "ir.values" can return an empty list.
This is why checking that the result of this function is a list was not
enough.
2016-06-29 09:25:48 +02:00
Adrien Dieudonne 1ec2e4b22d [IMP] mail: limit number of messages fetched to 25 2016-06-29 08:36:41 +02:00
Fabien Pinckaers 4882a521f1 [IMP] Expense: tour + employee created by default 2016-06-28 19:35:25 -07:00
Christophe Simonis 2a3f37806f [FIX] im_livechat: use new api when calling cleaning methods 2016-06-28 19:01:53 +02:00
Christophe Simonis 30edf6fa8f [FIX] website_payment: use renamed fields/variables 2016-06-28 18:59:46 +02:00
Christophe Simonis 93e6316029 [MERGE] forward port of branch saas-11 up to 7153077 2016-06-28 18:05:25 +02:00
Christophe Simonis 8eb2be4668 [REM] mail_tip
Since the deletion of `web_tip` module (6416c46d85),
this link module is useless.
2016-06-28 17:22:49 +02:00
Christophe Simonis 1747e12bee [REM] hr_expense: remove unused data file.
This file has wrongly been reintroduced by 717f9217bb
2016-06-28 17:12:51 +02:00
Christophe Simonis 71530771ea [FIX] web: re-add now usefull variable self 2016-06-28 17:05:11 +02:00
Martin Trigaux cf1e8dcb92 [IMP] point_of_sale: migration of the action
Was removed at 2e4b82f4 (for good reasons) but an explicit empty value is better
for migration as it prevents needing to explicitly removed the domain.
2016-06-28 16:24:21 +02:00
Nicolas Martinelli 506c161990 [FIX] stock: appropriate chatter log when picking done
Commit d349584 solved the state change tracking of pickings, and
moreover prevents unnecessary state changes to be recorded. However,
this also prevents the state "Done" to be recorded in the chatter.

Saving properly the state change for the picking might be quite tricky,
since the stock processes sometimes imply unreservation/rereservation of
quants, and therefore lead to several state changes inside the same
process.

opw-680343
2016-06-28 16:13:34 +02:00
Denis Ledoux 8e9187e746 [FIX] account: partner ledger report, _lang_get
From revision 2483327236
`_lang_get` returns a browse record

opw-682034
2016-06-28 15:24:23 +02:00
Christophe Simonis 5166fbd21b [MERGE] forward port of branch saas-10 up to 6d51bce 2016-06-28 15:12:06 +02:00
Nicolas Martinelli 6d51bce057 [FIX] account: money in/out in PoS
It is not possible to take money out or put money in for a PoS since it
leads to a traceback.

The decorator `@api.one` returns a list, which is something we don't
want when the method returns a dictionary.

opw-681417
2016-06-28 14:17:39 +02:00
Yannick Tivisse c7bde46d64 [IMP] project_issue: remove 'team_id' on project issue + code cleaning
The sales team defined on the project issue is never used.

Furtermore, in the method 'stage_find' contains a parameter team_id BUT
a project_id is given when called.

That way, we can also remove the dependency to sales_team which doesn't make
sense anymore, and remove 2 useless ir.model.access rules
2016-06-28 14:13:20 +02:00
Christophe Simonis 841aa4e208 [MERGE] forward port of branch 9.0 up to 3e15b86 2016-06-28 14:10:35 +02:00
Yannick Tivisse 675f6a0f3f [IMP] crm: Activity Analysis: Confusing labels
Author: User who logged the activity in the chatter ----> Created By
Responsible: User assigned on the lead ----> Salesperson
Salesperson filer = Author. --> Same label : Created By
2016-06-28 13:26:40 +02:00
Martin Trigaux 3e15b86428 [FIX] point_of_sale: do not insert related fields on one2many
fields ref, journal_id and date on account.move.line are all related fields on
the account.move.
Setting a value here is then useless and triggers write on the account.move
after the creation of the account.move.line (inverse values in write)
2016-06-28 13:23:41 +02:00
Martin Trigaux 5d9e4b7858 [FIX] account: performances of map_tax
break on first match instead of checking other Tax Source that will not match
anyway.
2016-06-28 13:23:41 +02:00
Martin Trigaux 173b76c7bb [FIX] point_of_sale: performance and invalidation
Function fields, old-api style, that are not stored do not have cache
invalidation mechanisms. This means that they are recomputed every time the
field is accessed.
Due to the way the cache behaves, the records that are present in the cache will
be included when the prefetching is done.

In the scenario of the a POS session being closed, this implies that the cache
will contains more and more account.move.line records and try to prefetch all
(hopefully max 1000) without ever relying on the computed result for the next
access. This makes the computation of fields `amount_total` and `price_subtotal`
very slow, even for orders with a very low number of lines.

Backport the new API migration of these computed field to benefit from depends
mechanism and keep the computed value into cache when needed.

In master these fields should be stored.
2016-06-28 13:23:41 +02:00
Christophe Simonis 10550aa5a5 [MERGE] forward port of branch saas-6 up to e68ed41 2016-06-28 13:11:35 +02:00
Jainik Patel 633ff1df67 [IMP] website: Snippets images are quite old, so replace with new images. 2016-06-28 13:05:15 +02:00
Christophe Simonis e68ed417b6 [MERGE] forward port of branch 8.0 up to 3e965ec 2016-06-28 12:23:54 +02:00
Martin Trigaux cbbc90fc2e [FIX] website_payment: access parent payment method
On the other routes (e.g. /my/, /my/contract/) payment information on the parent
contact are displayed but can not be access in the my payment route.
You get in a unconsistant situation where you can access the contract of the
company and its payment information but can not use this payment information.

opw-681491, opw-681502
2016-06-28 12:16:41 +02:00
Mahendra barad 6ba6213fa9 [ADD] account_taxcloud: Integrate TaxCloud API to get Sales Tax
- add a new checkbox on fiscal position: TaxCloud API
- when computing this fiscal position, it will:
        - return an existing tax if one exists for the same tax
          percentage, state, zip and TIC Category
        - or create and return this tax if it does not exists yet
- Create a data fiscal position: country U.S., tax cloud API
- In l10n_us, add a settings in accounting: compute tax automatically using tax cloud.

NB:
- The signature of map_tax has been modified to optionally specify the product
  and the partner on which the tax is applied
- The avoid the validationerrors that may occur while evaluation the tax with Taxcloud
  when a public user is on the frontend shop (website_sale), we have to execute the
  error silently by logging it.
2016-06-28 12:12:30 +02:00
Christophe Simonis b355377a25 [IMP] web: visible default color on tags now visible in kanban view
un-revert of fe66472e2c which have
wrongly been reverted with 977db823c7
2016-06-28 12:01:27 +02:00
Goffin Simon 8ec03fde14 [FIX] point_of_sale: _check_unicity
A violated python constraint must raise a validation error.
This is expected by function _validate_fields.

opw:681212
2016-06-28 10:43:30 +02:00
Nicolas Martinelli 84b0fb5bbc [FIX] sale, purchase: add back analytic groups
The commit 2277b8955d removed these groups
while they should be kept.

opw-681848
2016-06-28 10:32:00 +02:00
Raphael Collet c78a3811b8 [IMP] models: make records.mapped(arg) return records when arg is falsy
This extension of the method `mapped` is a consistent extrapolation of mapping
a recordset through an optional sequence of relational fields.  It removes the
necessity of special-casing the empty sequence, and also avoids an obscure
exception in that case.
2016-06-28 10:16:26 +02:00
Nicolas Martinelli 77212863b1 [FIX] stock, sale_stock, portal_stock: picking access
An access error occurs when a the delivery address of a SO is set to a
different partner than the SO partner. In this case, the picking
created is associated to the partner of the delivery address. This is an
issue when the SO partner tries to view the picking from the front-end
("My Account"), since he is not allowed to access it.

opw-681341
2016-06-28 09:10:55 +02:00
Fabien Pinckaers 62d6f52312 [IMP] project: tour: improved sentence 2016-06-27 11:24:59 -07:00
Fabien Pinckaers df3631ee3a [IMP] project: tour: add a Done stage to be able to close tasks. 2016-06-27 10:25:24 -07:00