Commit Graph
126133 Commits
Author SHA1 Message Date
Olivier Colson 691a5818ee [IMP] account: bank setup wizard: explicitly declare the implicit "res_partner_bank_id" field, automatically created by the use of _inherits, to remove a warning in the logs. 2018-07-25 17:10:06 +02:00
xmo-odoo abc1289a4c [ADD] pagebreak to core qweb 2018-07-25 16:53:11 +02:00
Christophe Simonis cd2ccc4110 [FIX] models: correct onchange on one2many fields
The method `convert_to_onchange` on one2many fields [1] makes a `copy()`
of `subnames` before altering it. However during onchange management, we
pass it a `PrefixTree` object that can't be copied. As we knows the
object is empty, directly use a empty dict.

[1] https://github.com/odoo/odoo/blob/e6928a6c976cf0f0f7b7b3280205516ad677b413/odoo/fields.py#L2221

Oversight of 2054b59285
2018-07-25 16:11:39 +02:00
Christophe Simonis e80a0d4aa9 [MERGE] forward port branch saas-14 up to ea53be492e 2018-07-25 16:09:06 +02:00
Martin Trigaux 5c44f205a2 [FIX] stock: proper api.multi
Mixup with f7dcabf (saas-11.1) and a496ca9 (11.0) that was not properly ported
Avoid undefined variable if self is empoty (e.g. when reinstall stock)
2018-07-25 15:57:54 +02:00
Yannick Tivisse 369286d303 [IMP] sale,crm: Notify users on online orders/leads
Purpose
=======

The user is not notified when an online order is placed or when an opportunity is posted on the contact form.

set admin as default follower of sales teams (or any team creator).

The concept of sales channel is confusign to users. When you need to create a channel, it's to manage a team of people -> rename bac kto "Sales Team"

Specification
=============

crm lead:
---------

- notify admin user when a lead/opport is created by a website visitor or any other user or created from an email sent to the email alias
- admin user should be follower of first sales team by default => Done
- "Opportunity Created" subtype should be selected by default when a user becomes a follower of any salesteam
- Show following fields in the notification:
    - Contact Name:
    - Customer Name:
    - Phone:
    - Email:
    - Message:
    - Sales Channel:
    - Stage: New
    + other current tracked fields in case of update ( expected revenue, score)
- don't show company name, contact name, phone if not set (e.g. if created from email alias)

ecommerce:
----------

- notify admin when an order is placed on the website:
- admin should be follower of website salesteam by default
- order tracked fields in a logical order and add currency to amounts (nice to have but would be cleaner):
    - Customer:
    - Salesperson:
    - Status:
    - Delivery Amount:
    - Untaxed Amount:
    - Total:
- edit notif preferences on the salesteam:
- In notifications sent by email, add a link to edit notif preferences in the salesteam: "Edit your notification preferences"
- redirect to notification preferences of the user in the salesteam

- Other users must easily manage the way they want to be notified about salesteams activities:
- move kanban view out of reporting (it's an operational view, not a reporting one and all the users need to see it)
- CRM: https://drive.google.com/a/odoo.com/file/d/1ZWgU_2uozRvwhe8dtemvEFWP_Rsq-bdn/view?usp=drivesdk
- Sales: https://drive.google.com/a/odoo.com/file/d/1AzmT2-shMXzl6olm2d_u0ZXY4Ov1m4q2/view?usp=drivesdk
- show assignation section out of debug mode, to let users edit following preferences in the sales team
- if no sales channel set for the website (https://drive.google.com/a/odoo.com/file/d/1TbB0FsdFxkTRLq-2Fa480AK9MPbCV9Q3/view?usp=drivesdk), show a specific message asking to set one: "Please set a sales team for the website. Otherwise you can't follow related events."

Miscellaneous:
--------------

- rename Sales channels into the old term "Sales Teams", the concept of sales channel is not understood by most users
2018-07-25 15:45:36 +02:00
lejeune quentin 384647e583 [IMP] all_module : Modify "Sales Channel" by "Sales Teams" 2018-07-25 15:41:31 +02:00
lejeune quentin f3f3af88ab [IMP] website_sale : Active "Sales Team" and "Salesperson" config in website setting without debug mode 2018-07-25 15:41:31 +02:00
lejeune quentin 5e577d206f [IMP] crm : Add link on email for salesman's group 2018-07-25 15:41:30 +02:00
lejeune quentin 06bbd88e9f [IMP] website_crm : In setting add specific message to tell user to set a default sale channel for website 2018-07-25 15:41:30 +02:00
lejeune quentin 050628413c [IMP] crm : Modify position of Sales Channel menu for CRM and Sale 2018-07-25 15:41:30 +02:00
lejeune quentin ec35eca7c6 [IMP] mail : Add possiblities to sequence tracking fields in the chatter
Fields in the chatter can be organized with a business logic.
Here fields for CRM and Website E-commerce have a tracking sequence.
For other fields/module just add "track_sequence=x" on model
2018-07-25 15:41:30 +02:00
lejeune quentin 9c9215fef2 [IMP] crm : Modify followers subtype "lead created" by "opportunity created" and checked by default 2018-07-25 15:41:30 +02:00
lejeune quentin 63af046331 [IMP] crm : Add administrator to be followers by default of sales team "Sales" AND "Website" 2018-07-25 15:41:30 +02:00
Christophe Simonis ea53be492e [MERGE] forward port branch 10.0 up to f1ee633f26 2018-07-25 15:29:29 +02:00
Martin Geubelle 0f03f57034 [FIX] web: look into the DOM for loadCSS
Since rev. odoo/odoo@0dd6a0b loadCSS function in ajax returns a promise
in order to known when the stylesheet is loaded.

It uses a local cache to avoid fetching the file multiple times.
However, the lazy loaded lib could already be in the DOM (in the
test bundle for example). In this case, the file was fetched twice.

In this case, the cache is now filled with a resolved promise.
2018-07-25 15:08:52 +02:00
Alexandre Kühn 81287c0a25 [FIX] mail: post message with emojis x'D (😂)
Before this commit, when posting a message with some emoji sources (e.g. "x'D"),
sometimes it was not transformed into the corresponding unicode representation
(e.g. "😂").

The emojis with this issue have different escaped and unescaped source
representations:

  - (unescaped) "x'D"
  - (escaped) "x'D".

The emoji converter was mistakenly using the escaped representation, instead of
the unescaped one.

Task-ID 1868892
2018-07-25 14:04:23 +02:00
Hiral Bhavsar da7b59045d [IMP] base_import, web: add view switcher and h 'Import' button in mobile
As there are a few chance that someone will import something on a mobile view.
So, we hide the button 'Import' in a mobile view.

For mobile view, we added a view switcher button and it'll display a list of
views buttons. Also set active view's icon as its icon.

Related to Task: 1857696
Co-authored-by: Mohammed Shekha <msh@openerp.com>
2018-07-25 12:48:38 +02:00
Nicolas Lempereur f1ee633f26 [FIX] website_hr_recruitment: frontend creation ok
When creating a job position from the frontend, and we:

- are on the same language that the default website language,
- have the permission to write on ir.ui.view,

we have all conditions to adding branding used to edit a page.

But when creating a position by the frontend, we create a job that will
render this template:

 website_hr_recruitment.default_website_description

When we are in the above said condition, we will create a job position
that erroneously has the branding that should only be displayed on
website and removed when saving an edition.

This caused a lot of problem with the editor that would most often not
be able to edit the content.

In this commit, we use the "rendering_bundle" context key to prevent
branding.

opw-1868879
closes #25963
2018-07-25 12:01:05 +02:00
Olivier Colson 272bcadc92 [IMP] account: setup: opening balances tree view: highight accounts whose opening balance has been set 2018-07-25 11:53:41 +02:00
Martin Trigaux d05378f53c [IMP] base: clean compatibility kw
Revision 6e36cbc243c41 changed the signature of the method in 11.0 for
python 3.7 compatibility.
To avoid breaking calls, introduced as fallback using kwargs.

Remove this ugly hack for v12
2018-07-25 11:22:46 +02:00
Martin Trigaux 7c8c27b9a9 [ADD] web: easy to change noupdate value
It is currently difficult to mark a record as noupdate
Make it doable in one click.

The choice of what should and should not be on noupdate is personal and depends
of the company need and how technical are the users.

Problem raised at #25748
The res.lang records are typically complicated and changing the date format may
break the database. Keeping it in noupdate=0 makes sense for most use but allow
to change it if needed.

Closes #25759
2018-07-25 11:17:51 +02:00
Priyanka Kakadiya 4513ce1844 [FIX] base: Show the full partner form by default
Instead of showing the simplified form view, we should always open the full partner form
by default if nothing is specified.

Coming from: https://github.com/odoo/odoo/commit/f56ad6daf80a15101017dce1145a7ee821d272a3#diff-0e8ff6c715847d514bedc0feb80894deR194

Related to Issue: 1865330
2018-07-25 11:13:08 +02:00
Christophe Simonis a34789c837 [MERGE] forward port branch 9.0 up to 2c5ec48f92 2018-07-25 11:09:30 +02:00
Christophe Simonis 2c5ec48f92 [FIX] http: only del existing attributes
Closes #25652
2018-07-25 11:01:07 +02:00
Lucas Perais (lpe) e6928a6c97 [FIX] project: proper access check on tasks
With the portal user, go on /my/task/1
(obviously provided that this task doesn't belong to portal user)

Before this commit, there is a 500 error

After this commit, the exceptions are handled and throws a 403

OPW 1867795
closes #25951
2018-07-25 09:48:03 +02:00
Lucas Perais (lpe) aa4ccef418 [FIX] account: fix planner extra features 2018-07-25 09:21:26 +02:00
Christophe Simonis 78eff004bf [FIX] im_livechat: enforce empty domain in action 2018-07-24 19:09:32 +02:00
Christophe Simonis ba202dbe63 [MERGE] forward port branch saas-11.2 up to 3c521f6d05 2018-07-24 18:10:32 +02:00
Shubham Johar 64dc1de744 [IMP] mail: Dialog confirmation on channel administrator unsubscribe
Before this commit, the administrator of a channel may easily unsubscribe
by accident from the channel.

With this commit, there is a confirmation dialog for the administrator of
the channel when he leaves it. This should prevent most accidental leaves
from the administrator.

Task-ID 1835641
2018-07-24 18:00:06 +02:00
jbeficent a955aee429 [IMP] l10n_es: improves groups
add name + some missing groups

Was PR #23922. Courtesy of Jordi Ballester (Eficent)
2018-07-24 17:43:33 +02:00
Sébastien Theys 424d9b019b [FIX] l10n_in_sale: remove deleted file from manifest
The file report_invoice_view.xml was deleted in the commit 762adedece, but I forgot to remove it from the manifest.

This commit fixes it.

Task: 53996
PR #25209
2018-07-24 17:33:05 +02:00
Cédric Snauwaert 3ff5fea933 [ADD] l10n_de: din5008 type B report
Specific report template used in Germany. Add a new report layout as well as
a new paperformat.

Was part of task: 35289
Was part of PR #25472
2018-07-24 17:12:52 +02:00
Cédric Snauwaert c71da7db84 [REF] report, *: defines address area in external layout templates
This is needed because some reports we want to add later on, need to have
    the address field on the left or following a given format.

    Hence we moved the address div from each existing report on to the main report
    template itself, Since some reports uses up until 3 addresses, we have defined
    an area for the main address that each report can set (address used on the
    envelope's window for sending). The any other extra address, or additional
    information should be defined in the 'information_block' div

Was part of task: 35289
Was part of PR #25472
2018-07-24 17:12:52 +02:00
Raphael Collet 2054b59285 [FIX] models: make onchange return a smaller diff
Large diffs (specifically in x2many fields) cause performance issues.  They
overload the web client, which considers all returned fields as dirty.
2018-07-24 17:12:04 +02:00
Raphael Collet 0ab6845ed8 [FIX] models: make read_group() call name_get() on demand only
This improves the performance of code using read_group() without actually using
the display names of the result.  It also optimizes name_search().
2018-07-24 17:02:07 +02:00
Raphael Collet fdeeedc2b9 [FIX] models: inverse fields in dependency order
The result of inversing several fields on a record is non-deterministic if one
of those fields depend on another one.
2018-07-24 16:58:14 +02:00
Raphael Collet 3b710ed640 [IMP] fields: optimize field.write for batch creation 2018-07-24 16:58:14 +02:00
Raphael Collet 7d667eb57b [FIX] base: test on copy 2018-07-24 16:58:14 +02:00
Raphael Collet e9fc0e2b5a [FIX] stock, website_blog: duplicate xmlid 2018-07-24 16:58:14 +02:00
Raphael Collet d5b687a48f [REF] models: import records in batch
Create new methods on `BaseModel` to create records with given xml ids in
batch.  Those methods replace the methods `_update` and `_update_dummy` of
model 'ir.model.data', which are now deprecated.

Adapt XML and CSV import code to create records in batch.
2018-07-24 16:58:14 +02:00
Raphael Collet 896e36edab [REF] *: adapt create to work in batch 2018-07-24 16:58:14 +02:00
Raphael Collet b1e83fd7b8 [REF] models: make create work in batch
Add a decorator `model_create_multi` to indicate whether a `create` method is
implemented to work in batch.
2018-07-24 16:58:14 +02:00
Christophe Simonis 3c521f6d05 [MERGE] forward port branch 11.0 up to c51488c2f4 2018-07-24 16:43:26 +02:00
Wolfgang Taferner 62770ae9b8 [FIX] stock: test should actually fail, but did not for months
Commit dc1681b1 did change the name of the inventory creation from
direct qty update, but test still tries to compare the product.name

closes odoo/odoo#25948
2018-07-24 14:17:38 +00:00
qsm-odoo 24a8bce542 [IMP] website: add BS3/snippets showcase demo data
(should not be forward-ported)

- Backport of https://github.com/odoo/odoo/commit/9f2750d9ebda20758345724cd2a0934ab08d1f00
- Backport of https://github.com/odoo/odoo/commit/925fdbc683c546e096d1ae99aa22606480f78a0e

closes odoo/odoo#27187
2018-09-24 10:44:09 +00:00
Nicolas Lempereur 07cdd24f30 [FIX] product: is_product_variant true if variant
In 11.0 7e724f96c5 is_product_variant has been introduced back (it was
removed in 10.0 b747b05fa). But related of _inherits are computed on the
related model so is_product_variant would always be false.

Without fix, added test fails with:

 AssertionError:
  Items in the first set but not the second: True, Items in the second
  set but not the first: False, Product variants are variants

fixes #26961
related to opw-1814973
closes #27163
2018-09-24 09:45:52 +00:00
Yenthe V.GandReinaldo Ramos ecea8c4df3 [FIX] sale_timesheet: set value on correct key
The view timesheet.plan expects a to_invoice key

Fixes #27160

Co-authored-by: Reinaldo Ramos <reinaldo.ramos@arxi.pt>

closes odoo/odoo#27166
2018-09-24 08:10:44 +00:00
Jeremy Kersten ef0f9556f8 [FIX] base: action - fix on_change on new record
Before this commit, if you create an automated action with trigger 'on_change'
it was not called because the run() function don't have active_id.

Now if we have onchange_self in the context but not active id, we call the
function nevertheless. (withtout active_id in context!)

closes odoo/odoo#27167
2018-09-22 21:02:30 +00:00
Nicolas Martinelli ee96c84a60 [FIX] stock: quant domain in valorisation
- Create a Customer location (CL) and set a Company on it
- Configure Product A in FIFO / Perpetual
- Receive 2 Unit(s) of A in Stock
- Create an Internal Transfer
  1 Unit(s) of Product A
  Source location: Stock
  Destination Location: CL
- Validate

The Inventory Valuation report incorrectly retrieves a quantity of 2 in
stock instead of 1.

The error is first due to a misconfiguration: the CL should not have a
Company set. However, we should not take into account any quantity in a
customer location, even if there is a Company set.

opw-1884675
opw-1884835

closes odoo/odoo#27145
2018-09-21 11:50:55 +00:00