Commit Graph
106922 Commits
Author SHA1 Message Date
Ravi Gadhia 4aa3f3f94e [IMP] account: add support of activities
account.invoice model now supports activities. Filters have been added to ease
their management.
2016-12-21 10:56:15 +01:00
Ravi Gadhia 60bacefd01 [IMP] mail: add activities allowing to define next actions on various models
This commit introduces generic activities to use in your addons. Activities are
actions user have to take on a document like making a phonecall or organizing
a meeting. Activities come with the mail module as they are integrated in the
Chatter but are not bundled with mail.thread.

New models are

 * mail.activity.type: used to categorize activities. Each type is a different
   kind of activity e.g. call, mail, meeting. An activity can be generic i.e.
   available for all models using activities; or specific to a model in which
   case res_model_id field should be used.
 * mail.activity: an actual activity to perform. Activities are linked to
   documents using res_id and res_model_id fields. Activities have a deadline
   that can be used in kanban view to display a status. Once done activities
   are unlinked and a message is posted. This message has a new activity_type_id
   field that indicates the activity linked to the message.

This commit introduces a mail.activity mixin to use in various addons that
enables the activities feature. It works like the mail.thread mixin. It defines
a activity_ids one2many field toward activities using res_id and res_model_id.
Various related / computed fields are also added to have a global status of
activities on documents.

Activities come with a new JS widget for the form view. It is integrated in the
Chatter widget although it is a separate widget. It displays activities linked
to the current record and allow to schedule, edit and mark done activities.
Use widget="mail_activity" on activity_ids field in form view to use it.

There is also a kanban widget defined. It defines a small widget to integrate
in kanban vignettes. It allow to manage activities directly from the kanban
view. Use widget="kanban_activity" on activitiy_ids field in kanban view to
use it.

Next commits will aim at integrating activities inside main Odoo addons.

Thanks to R&D India for their work and testing on this task. Thanks to belgian
Usabiliteam for reviewing and testing it. Thanks to @jem-odoo for the final
review. May his soul lie in peace with the trumpets of paradise.
2016-12-21 10:56:15 +01:00
Ravi Gadhia 936bc35820 [FIX] web_kanban: correctly align kanban status in kanban vignettes
Otherwise ze bouboule is not aligned with other elements being in the same
line of the vignette.
2016-12-21 10:53:39 +01:00
Thibault Delavallée 4f54f13074 [FIX] mail: customers should not follow default internal subtypes
This is a manual forward-port of commit 03ac47b9d7

Currently when someone is added as follow to a document default subtypes
are computed if no specific subtypes are given to the subscription. However
if internal subtypes are set as default those are added to all new
followers. It should take into account customers and shared users and avoid
adding them internal subtypes.

Customers and shared users are not notified of messages using an internal
subtype. So currently there is no information leak. However with this fix
we ensure internal subtypes are not followed by external people even if
no notification is created.

Compared to original commit tests are slightly updated because there are now
default internal subtypes in data. Not in 10.0 and previous versions.
2016-12-21 10:53:39 +01:00
Thibault Delavallée 0bc2cbe149 [FIX] website_crm_partner_assign: fix selector use 2016-12-21 10:53:38 +01:00
Fabien Pinckaers e41d3fb036 [IMP] sale_timesheet: add ability to assign a task to a SO line for invoicing (debug mode); better ux 2016-12-20 21:11:20 +01:00
Fabien Pinckaers 28a912d821 [FIX] account: invoice email, fixing signature style 2016-12-20 20:55:22 +01:00
Fabien Pinckaers 170299e8e5 [FIX] sale: usability of email: signature more visible 2016-12-20 20:52:59 +01:00
Lucas Perais (lpe) 76c75d8292 [FIX] point_of_sale: sale details report: the base amount should be the sum of subtotal of lines
The base amount was miscalculated. Now we use numbers that are already computed by the pos.order.line model
2016-12-20 14:52:30 +01:00
qdp-odoo ee2c76a431 [IMP] account: define the m2m relation between bank statement lines and account.move.line instead of account.move
This is needed in order to support use cases where we have several account.move.line on an account_id of internal_type 'bank' inside a single account.move. Indeed, each journal item should be linked to a bank statement line in order to disappear from the bank reconciliation widget and, previously, setting the reference to the second bank statement line was removing the first as both info had to be filled in a single m2o. OPW: 696842
2016-12-20 14:43:03 +01:00
lpe cdcdebc6cb [IMP] point_of_sale: Added on what base price a tax is applied in sale details report
Closes #14358
2016-12-19 08:57:23 +01:00
Fabien Pinckaers 944c13a548 [IMP] project: priority -> starred, search on starred tasks 2016-12-17 14:49:18 +01:00
Dhawal Limbuwala c52350cf21 [REF] hr: typo
"HR" is consistently used in Odoo, instead of "Hr".
2016-12-15 17:05:39 +01:00
Martin Trigaux 4005ceffa7 [FIX] account: bad label
Frenchiglisation of labels
2016-12-15 11:56:44 +01:00
fwi-odoo 7cb865fab8 [IMP] web_editor: avoid loading translation in the backend twice 2016-12-15 11:23:46 +01:00
fwi-odoo 34b7fd833c [IMP] web: allow mentioning people right after inviting them
Before this commit, the list of channel members is fetched once, and never reloaded.
So, when a new member is invited, he cannot be mentionned by the autocompletion.
With this commit, we remove the 'members_deferred' from the channel,
which will cause the member list to be refetched next time it is needed.
2016-12-15 11:15:04 +01:00
Yannick Tivisse 168908656d [MOV] report: move paperformat from account_batch_deposit
It is used in mrp_account, but the module doesn't depend on account_batch_deposit
2016-12-14 16:03:28 +01:00
Raphael Collet 6fa2167247 [IMP] stock: remove _parent_store=True from model stock.quant.package
The model does not actually need this feature, as the hierarchies of packages
are not expected to be deep.  Performance wise, updating columns `parent_left`
and `parent_right` may actually suffer from concurrent updates that require
retrying requests.
2016-12-13 12:59:26 +01:00
cst-odoo 9a777f315e [IMP] resource: Improve time_efficiency help tooltip
Rewrote help tooltip to improve English and clarity.

Closes #14696
2016-12-13 10:04:37 +01:00
Christophe Simonis 5f945a5fc5 Revert "[IMP] product,purchase: Make the vendor price configurable on the variants too."
This reverts commit d5c24abee5 which is
broken since e945b86d5a but hasn't been
noticed due to non-validation of views (fixed by fe02b79a65).
2016-12-12 14:34:35 +01:00
Christophe Simonis 8a808d1703 [MERGE] forward port branch 10.0 up to 8094970 2016-12-11 10:57:39 +01:00
Christophe Simonis 8094970df1 [FIX] fields: also protect computation of draft record fields 2016-12-11 10:24:29 +01:00
Odoo Translation Bot f5adc1ade0 [I18N] Update translation terms from Transifex 2016-12-11 03:43:27 +01:00
Christophe Simonis c292202a47 [MERGE] forward port branch 10.0 up to 18456b9 2016-12-09 15:58:39 +01:00
Christophe Simonis 18456b9d42 [MERGE] forward port branch saas-11 up to 321b7dc 2016-12-09 15:44:01 +01:00
Nicolas Lempereur f8db92e278 [IMP] stock_account: anglo-saxon stock input->expense->default
Before this commit, in anglo-saxon accounting the account of a
vendor's bill line was defined as the stock input account, or the
default account.

With this commit the chain becomes:

- if one: stock input account,
- else if one: expense account,
- else: default account

opw-695167
2016-12-09 15:32:18 +01:00
Christophe Simonis 321b7dc5b6 [MERGE] forward port branch 9.0 up to 9c8422a 2016-12-09 15:09:36 +01:00
Christophe Simonis 9c8422a405 [MERGE] forward port branch saas-6 up to 75e7f0d 2016-12-09 15:07:00 +01:00
Christophe Simonis 75e7f0da10 [MERGE] forward port branch 8.0 up to 5ece76b 2016-12-09 15:04:42 +01:00
Martin Trigaux cb7517f7e5 [CLA] merge duplicated signature file
Case mismatch
2016-12-09 14:43:06 +01:00
Cristian Moncho 5ece76b717 [FIX] project: remove redundant context declaration
Declaring the keyword argument `context` in an API v7 `orm.browse_record` can
lead to mixed API v7/v8 inheritance bugs (`context` will be treated as a
function parameter instead of being injected in `self.env.context`). As the
context is already propagated in line 953, we can safely remove it from line
971.

Closes #13115
2016-12-09 14:37:21 +01:00
sergiov 4792a669d3 [FIX] auth_signup: display full error message
When the user name entered hasn't an email specified the error message wasn't
displayed in the reset view.
The error message was in e.name, not e.message
2016-12-09 14:32:16 +01:00
sergiov 85dc060a06 [CLA] signature for Sergio2409
cf #13960
2016-12-09 14:28:15 +01:00
Eric Antones e191b5af6e [FIX] website_sale: sort by literal not detected for translation
There are literals inside a t tag that should be translated but they are never
exported to the pot file because they are inside a t-value attribute as python
code.

Closes #14344
2016-12-09 14:09:38 +01:00
Nhomar Hernandez 9a0e3a11db [IMP] l10n_mx: Completely refactored Mexican CoA Template. Courtesy of Vauxoo.
* Added accounts provided following the structure provided by the SAT
this accounts are only the minimal necessary ones, with the objective
to set the first easiest engagement to new users and tags will represent the actual information
from the document linked.

* The name of the tag is the concatenation of tag.code + tag.name, because the account.tag
model have not the code field.

Note: we will need more accounts but some of them for special operations
which are not basic at all, then it is better just propose the operational accounts
once we understand a proper closing process.

* Set the proper user-types on accounts in order to be able to use it with the official reports this CoA
for operational purpose.

* Added nature field and data in tags to allow set this value in electronic account report, and
set this value with data pre loaded, we did not use user.type for this due to the fact that the same user type can have different nature (if it grows for credit or debit), I do not know if this field brakes the stable rule we can discuse about that.

* Assign the account tags with in the Mexican CoA template installation, and with an onchange(account.code) when manually modifying/creating accounts.

Rationale: If the code of the accounts follows the pattern 111.00.00 or 111-00-00 then it will
set the tag 111.00 if the tag exists, if not then this will be ignored.

* Generate an account tag by each second level account in SAT catalog, and assign to the corresponding account.
2016-12-09 13:59:09 +01:00
David Tran bee407d8d7 [IMP] crm: improve crm opportunity report extendability
split SQL query inside the init method of the model
'crm.opportunity.report' into multiple methods (i.e.
_select, _from, _join, _where, _group_by) to bring ease for other
modules to inherit

Closes #14568
2016-12-09 13:59:00 +01:00
Fabien Pinckaers eff9045741 [iMP] mass_mailing: adding color or kanban views 2016-12-09 13:37:12 +01:00
Fabien Pinckaers b17029cf5d [IMP] mass_mailing: better CSS padding on kanban views 2016-12-09 13:30:11 +01:00
Fabien Pinckaers 5ab390c444 [IMP] mass_mailing: default kanban view non grouped (as there is only 2 columns really used 2016-12-09 13:27:06 +01:00
Aleš Ferlan 331f4c7e1e [FIX] l10n_si: adapt after taxes raise
Taxes in Slovenia were raised from 8.5% to 9.5% and 20% to 22%

Closes #13397
2016-12-09 12:02:31 +01:00
Aleš Ferlan 9b36f3f6ad [CLA] corporate signature for GoOpen
cf #13397
2016-12-09 12:02:31 +01:00
app d6ead3dbe0 [FIX] base: show attachments of archives records
When testing the access rights, attachments associated with
archived/inactive records are inadvertently being hidden due to
the default ORM behavior of search.

Patch simplified while merging.

Closes #14366
2016-12-09 11:51:21 +01:00
Martin Trigaux d29c40e1e1 [FIX] payment_paypal: avoid crash in validation without reference
When `paypal_validate_data` is called without any reference, `tx` is None.
Before the migration, it was catched by a `tx and tx.acquired_id` but it is no
longer the case.

Introduced at f1ac1b12

Fixes #13834
2016-12-09 10:47:51 +01:00
Raphael Collet 5593d2c89b [FIX] fields: detect recursively computed fields when computed together
When several fields are computed together, if one of them depends on another,
all the given fields must be considered recursive.
2016-12-09 09:40:59 +01:00
Raphael Collet a3f2b8937a [FIX] fields: computed fields with some erroneous records
When computing a field on a recordset with erroneous records in the
middle, the field is invalidated for some records of the recordset.

OPW 697059
2016-12-09 09:40:31 +01:00
Patrik Lermon f61dc8451e [IMP] doc: update guidelines.rst
Typo
Closes #14652
2016-12-09 09:29:42 +01:00
Nicolas Martinelli b27787c92c [FIX] payment_authorize: reconcile transaction
- Create a SO, link it to a Quotation Template (e.g. "Odoo Monthly" from
  the demo data). Note that the Quotation Template must require a
  payment.
- Click on "Preview", then "Accept & Pay" in the website quote
- Pay with Authorize.net
- In the Subscription linked to the SO, change the invoice date to a
  date in the past (so it will generate an invoice)
- Execute manually the Scheduled Action "Generate Recurring Invoices and
  Payments for Subscription Contracts"

The payment is correctly registered on Authorize (you should receive a
confirmation email), but:
- No invoice is generated
- The next invoice date has not been changed

The issue comes from the fact that:
- `payment_authorize` executes the callback method
  `reconcile_pending_transaction` before changing the status of the
  transaction.
- The method `reconcile_pending_transaction` cancels and unlinks the
  invoice if the transaction is not 'done' or 'authorized'.

In order to solve the issue, two fixes are necessary:
- Switch the status update with the callback (this commit), as it is
  already the case for Ogone and Stripe.
- Do not manually call `reconcile_pending_transaction`, since it is
  already executed as callback. This avoids two increments of the period
  (commit in Enterprise).

opw-694730
2016-12-09 09:14:48 +01:00
Nicolas Martinelli b64ac1f454 [FIX] website_sale, website_portal_sale: SO auto-confirm
1. Setup authorize.net acquirer
     Published on website
     Order Confirmation: capture manually
     Store card: always
2. Buy something on the store => SO gets confirmed
3. Buy again but select the saved card
4. You get a confirmation screen on the website, but the SO is not
   actually confirmed in the backend (but it should)

The issue is that the confirmation of the SO is located in the
`form_feedback` method. When paying with a saved credit card, there is
no form filled in since we use a S2S transaction. Therefore, the method
is never called, and the SO never confirmed.

Fixes #14007
opw-693517
2016-12-09 08:49:36 +01:00
Christophe Simonis f4ad09b30e [FIX] report: correct pot file 2016-12-08 14:52:34 +01:00
Christophe Simonis 70193f23dc [MERGE] forward port branch 9.0 up to 154a125 2016-12-08 13:55:40 +01:00