Commit Graph
103607 Commits
Author SHA1 Message Date
Ravi Gohil 1449a1eaf1 [MOV] project: renamed and moved files according to new API guidelines 2016-06-30 14:41:20 +02:00
David Monjoie b41bbb2b87 [REM] project,hr_timesheet: removed dead _get_total_hours function
It should have been removed by 9b69184ffa.
2016-06-30 14:41:20 +02:00
Gaurav Panchal e7e277480c [REM] project: removed dead code from removed template mechanism 2016-06-30 14:41:19 +02:00
Gaurav Panchal b4280b3bb5 [REM] project: removed dead code since Archive/Unarchive 2016-06-30 14:41:19 +02:00
Gaurav Panchal 0b9a3f94fb [REM] project: removed dead task delegation code
Task delegation was removed at e485b6c5ee.
2016-06-30 14:41:18 +02:00
Yannick Tivisse 70c1de4244 [CRM] crm: activities improvements
When you change the activity on the Schedule activity wizard, keep the scheduled date

Rename a string on dashboard
2016-06-30 14:36:07 +02:00
Jeremy Kersten 96dbbba064 [FIX] hr_holidays: force employee during test
Since base.user_root has 2 employees (one in demo, one in data).
The method _compute_leaves will use the employee id forced in context.

The test should be improved later.
Maybe not 2 employees for same partner...
2016-06-30 13:45:11 +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
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
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
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
Martin Trigaux cc4f8df99f [FIX] account: compute total invoice in batch
The computation of the total_invoiced field did not work in batch mode.
When displaying a company in a form view (field invoice_total comptued), the
children of this company are present in the cache and the value of the field
invoice_total will be prefetched for these children as well (at least in 9.0).
Most of the time this is redudant information and the same value is computed
for each child while most of the invoices are on the parent.

Batching the computation per partner allows to make one global query for all
partners.

Add test to make sure the total increase correctly after a test invoice
confirmation.
2016-06-27 17:20:05 +02:00
Denis Ledoux 9062c01c02 [FIX] web: pager page on next/previous record
When browsing a form with a one2many / many2many field
with several pages, the one2many pager page was not reset
when going to the previous/next record, while the next/previous
record could not have multiple pages on its one2many/many2many,
and the page on which the user was on the former record could
not exist in the newly displayed record.

Besides, even if the page does exist, there is no reason
to display this new record X2many value from its first page.

It's the case anyway when you edit/save, it comes back to the first page.

opw-679092
2016-06-27 16:50:47 +02:00
Joren Van Onder 86cf147f2e [IMP] pos_mercury: move automatic Mercury token deletion to vacuum cron 2016-06-27 16:24:31 +02:00
Martin Geubelle f8ca7634ca [FIX] base: rate with correct current user's company
Bug introduced in 7eab8e2.

As `self.env.user` is browsed with `sudo`, the result of this call
will always return the admin's current company and not the user's current
company.

opw-681809
2016-06-27 16:20:47 +02:00
Aaron Bohy 246b9a29ae [FIX] mail: tour: tip's position
Tips are now positionned in their closest scrollable parent (b70c990b), which
breaks some tips in discuss as they overflow that parent.
2016-06-27 16:04:25 +02:00
Goffin Simon d577eeaa6e [FIX] product: pricelist items
With the pricelist, it is possible to define a pricelist just for
a variant. But in the product.product.form, only the pricelist items
linked to the product template could be displayed.
The field item_ids has been created in product.product model to display
all the pricelist applied on a product.

opw:674700
2016-06-27 15:47:58 +02:00