Commit Graph
132543 Commits
Author SHA1 Message Date
Jigar VaghelaandMitali Patel ff19556121 [IMP] sale: change the pricelist in the quotation its update prices of product.
purpose of this commit is when the pricelist is chnaged and
some products alredy added to the sale order, display a button
"recompute price" that throws a confirmation model asking for
recompute the price of the so line

task: 1947320
Closes: #31535

Co-authored-by: Mitali Patel <mpa@odoo.com>
2019-12-13 14:09:36 +00:00
Florent Lejoly 39979b7558 [FIX] website_slides: fix cancel of uploaded file
Steps to reproduce

  * connect as any user with right to edit website;
  * go to website and chose a course;
  * add content -> chose any of the possibilities;
  * click on choose file, select a file and open it;
  * click on choose file again, and then cancel

You get a traceback. This is due to the right panel that displays a preview
of the selected file. IN this commit we fix that issue by removing the
preview panel.

Task id 2146217
PR#40895

closes odoo/odoo#41837

X-original-commit: e59b86e6474ae994307952d53f4e5a7571ac1763
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-13 09:53:13 +00:00
jerome hanke (jhk) 7a3316daa6 [FIX]point_of_sale:domain is applied properly on pos sale report
Steps to reproduce:
-install point_of_sale
-open a session and make a few sales -> closes the session
-go to point of sale > reporting > sales detail
-select a specific start date and end date
=> the start and end date are ignored by the report

Previous behavior:
the start and end date option have no effect on the report

Current behavior:
the domain is taken into account when generating a report

opw-2149216

closes odoo/odoo#41834

X-original-commit: 157e3fe4d4fb47b33211d1e52116284090b3e01a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-12 10:38:37 +00:00
Odoo's Mergebot 3f43ea79c9 [MERGE] mail, social: allow support of emojis in char fields in mail applications
PURPOSE

Allow to use the text field with integrated emojis support in other apps
notably mass mailing

SPECIFICATIONS

This purpose is achieved in several steps, each done with different
commits to ease understanding

  * move emojis mixin and FieldTextEmojis field definition from social to mail
    application. Rename emojis namespace accordingly;
  * allow emojis support in chat fields through new field widget;
  * use this new widget in mass mailing subject field;
  * perform some code cleaning;

See sub commits for more details.

LINKS

Task #2117238
PR #40045
Enterprise PR odoo/enterprise#6630

Related: odoo/enterprise#6630
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-13 12:21:00 +01:00
Debauche Stéphane 8bee94f260 [IMP] mail: clean the emoji widget (mixin, text_emojis, char_emojis)
PURPOSE

Allow to use the text field with integrated emojis support in other apps
notably mass mailing

SPECIFICATIONS

In this commit we somehow clean code related to emojis widgets

  * simplify some code bits;
  * update comments;
  * add an option on the emojis widget to trigger ``onchange`` on a ``keydown``
    event;

LINKS

Task #2117238
PR #40045
Enterprise PR odoo/enterprise#6630
2019-12-13 10:31:59 +00:00
Debauche Stéphane 47115a3a2a [IMP] mass_mailing: use emoji widget allowing support of emojis in subject
PURPOSE

Allow to use the text field with integrated emojis support in other apps
notably mass mailing

SPECIFICATIONS

Now that we moved emojis widget from social to mail and allowed its use
within a char field, let us use it for email marketing mailings subject.

LINKS

Task #2117238
PR #40045
Enterprise PR odoo/enterprise#6630
2019-12-13 10:27:16 +00:00
Debauche Stéphane 2e2e945a0b [IMP] mail: allow emojis support in chat fields through new field widget
PURPOSE

Allow to use the text field with integrated emojis support in other apps
notably mass mailing

SPECIFICATIONS

Currently there is one emojis enabled widget which is based on text widget.
It is therefore limited to ``<textarea/>``.

In this commit we propose to support emojis in char fields, aka using an
``<input/>``.

We therefore move most of the code within a ``FieldEmojiCommon`` and then
creates two widgets based on it

  *  ``text_emojis`` inherits from ``FieldText``
  *  ``char_emojis`` inherits from ``FieldChar``

LINKS

Task #2117238
PR #40045
Enterprise PR odoo/enterprise#6630
2019-12-13 10:24:35 +00:00
Debauche Stéphane e870ccf9ab [MOV] mail, social: move emojis mixin and field from social to mail
PURPOSE

Allow to use the text field with integrated emojis support in other apps
notably mass mailing

SPECIFICATIONS

Move emojis mixin and FieldTextEmojis field definition from social to mail
application. Rename emojis namespace accordingly.

LINKS

Task #2117238
PR #40045
Enterprise PR odoo/enterprise#6630
2019-12-13 10:18:49 +00:00
Andrea Grazioso (agr-odoo) 0ddfbab90f [FIX] point_of_sale: skip 0% tax declaration
Install point_of_sale and a localization (i.e. l10n_be) with a tax
configured with 0% and no account.
Assign the tax to a product available on POS. Open POS session, sell
such product, close session and validate. Error message will popup,
blocking the action because the tax used for the product has no
associated account for posting the entry.

This should not be the case because the tax is 0% so it should not be
posted. Skipping taxes based on the amount to avoid the issue.

opw-2155173

closes odoo/odoo#41821

X-original-commit: c7936d2884c10865bfc39a43d30aef6926f29079
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-12 13:38:49 +00:00
Kishan Gajjar 81b0149a1b [FIX] web_editor: fix few CropImageDialog issues
whenever we crop any image we set few data attributes to the cropped
image but if we change a cropped image from media dialog (ImageWidget)
we should remove crop related attributes from that newly added image
so that newly added image can be cropped with correct data.
since https://github.com/odoo/odoo/commit/a473453b3166a381130d9bd6ec4851b9e1ecab26
we are setting 'crop:originalSrc' data to the cropped image but not
removing from media dialog.

this commit also avoids unnecessary creation of an attachment.

closes odoo/odoo#41779

X-original-commit: 4a15b44243b3edbc7b2350806fea1a58f5734332
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-12-12 09:46:57 +00:00
Victor Feyens 1bcc175e37 [FIX] sale_margin: no uom on line.
Since the purchase_price is now computed, it may be triggered before an
uom is set on the product line (onchanges may happen after computes).

closes odoo/odoo#41808

X-original-commit: 9ebbdd24752a0ff1c1057fc533074555810ffa39
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2019-12-12 13:57:08 +00:00
jerome hanke (jhk) 974d28fc21 [FIX]analytic:analytic tags are searchable by name
Steps to reproduce:
-install accounting
-go to settings > accounting > check the 'Analytic Tags' and the
'Analytic Accounting' options
-go to accounting > configuration > analytic tags and try to use the search
=> You should be unable to search tags by name (working in 12.0)

Previous behavior:
searching tags by name is not possible

Current behavior:
searching tags works as intended and allows to filter by tag name

opw-2152154

closes odoo/odoo#41807

X-original-commit: bcd4458d57d996aa0812da21e7d03155a4314bcd
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-12-12 12:30:48 +00:00
mightyjol (jhk) 346048be50 [FIX]point_of_sale:clients from pos sessions are now considered customers
Steps to reproduce:
-install the POS module
-install the Contacts module
-create or use an existing partner as a customer during the pos session
-go to contacts and activate the "customer" filter
-> partners used during the pos session are not showing in the list

The problem was that the 'customer_rank' property
https://github.com/odoo/odoo/blob/d8d7635d6cf2af60791f25201a7bd1c2d5ec238b/addons/account/models/partner.py#L430
was not updated properly after a pos account move was done

Previous behavior
After ending a POS session, partners that are created and/or used
during the session are not showing on the Contacts views when the
'customer' filter is active

Current behavior:
The customer_rank of the partners is increased by one for every sale
during the pos session
Partners created or linked during a POS session are now considered
customers and appear in the contact view when the "customer"
filter is active

opw-2148894

closes odoo/odoo#41792

X-original-commit: 22874376594f94232e0c4ad5a4db3ee76f24b39a
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2019-12-12 11:31:32 +00:00
mcm-odoo 32d8caf088 [IMP] crm: allow searching leads by phone or mobile numbers
PURPOSE

Purpose of this commit is to allow users to look for leads and opportunities
by using the phone/mobile number fields. For example this allows salesmen
working in call centers to quickly retrieve all open opportunities of a
specific caller.

SPECIFICATIONS

Add a phone_search field allowing to implement a search on both phone and
mobile fields.

Allow searching independently from local format used to store the phone number.
Imagine we have leads with phone or mobile number that looks like ``+32 485 11
22 33``. We want to find this lead even when typing ``485112233``.

A custom search method is therefore implemented. It uses only the digits in the
phone or mobile number to perform the search.

A limitation is added on search having to contain at last 3 digits. Indeed
as it returns a domain whose leaf is ``[('id', 'in', ids)]`` it may be huge
for production databases.

LINKS

Task 2122873
PR #40131

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-12 10:28:47 +00:00
mcm-odoo 90bf317c01 [REF] website_slides: define specific eLearning user groups
PURPOSE

Have user groups specific to eLearning to separate them from generic website
editors. Indeed this is a specific work area and require more than pure design
skills.

SPECIFICATIONS

Two user groups are added in this commit

  * group_website_slides_officer

    + can read any course/slide
    + can create a course (will be responsible)
    + can write on its courses
    + can upload slides to the courses he is responsible
    + can publish slides to the courses he is responsible
    - cannot unlink courses/slides (you should archive them)

    * implies group_website_publisher in order to see the top navbar in
      frontend with the publish toggle button and the new content button;

  * group_website_slides_manager: has full rights

    + can read any course/slide;
    + can create a course;
    + can add slide to any courses;
    + can publish any courses/slides;
    + can unlink any courses/slides;
    + has access to reporting menu entries;

Rights for other groups are untouched for courses / slides. As a reminder
we still support responsibles being outside of eLearning groups, for example
if an employee is a teacher that handles a course:

  * people in upload_group_ids of a channel can upload slides, even if they
    don't belong to any eLearning group;
  * people responsible of a course can upload and publish slides even if they
    don't belong to any eLearning group (done through controller as they
    don't have real rights on underlying models);

We choose to keep the survey rights separated from eLearning ones. Indeed
it is easy in odoo to update the imply_ids field of groups if necessary
to link survey / eLearning groups; default user template can also be updated
easily. Standard Odoo should therefore correctly separate those groups. The
only specific rights is that eLearning officers can read all surveys, allowing
to choose them for certification-based courses.

LINKS

Task ID 2062462
PR #39485

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-12 14:12:51 +00:00
Nicolas Martinelli a0fc349f04 [FIX] stock: prevent import
Prevent import on `stock.quant` since the fields are read-only and the
ACL explicitly prevent creation and edition.

opw-2128053

closes odoo/odoo#41802

X-original-commit: 6a9e8faf567b9b0b508ba279405cb0ec80c7538b
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-12 12:37:45 +00:00
Vincent Schippefilt 6cbfdbce2d [FIX] mail: Timer(s) tests nondeterministic behavior
Timer test relies on setTimeout(..., 0) for its execution and its
verification. However it seems that in the browser there is *not always*
a guarantee that 2 setTimeout(...,0) will execute in a specific order.

Delaying the verification by 1 ms : setTimeout(..., 1) should force the
order of execution.

closes odoo/odoo#41732

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-12-12 13:22:20 +00:00
Vincent Schippefilt 89f213001f [REM] web: remove useless and buggy test.
Removing the test "field changes are correctly debounced in text fields"
because it doesn't represent the reality that fields are not debounced
anymore in production code.

This test was nondeterministic.
2019-12-12 13:22:19 +00:00
Aaron Bohy 3aee5a4cb4 [FIX] web: utils: patch: restore _super
Before this rev., this._super wasn't correctly reset after being
called. It means that it was sometimes wrongly set, for instance
in the following scenario:

utils.patch(SomeComponent, {
  x: function () {
    this.y();
    this._super(...arguments); // this._super was still y
  },
  y: function () {
    this._super(...arguments);
  },
});

closes odoo/odoo#41691

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-12-12 13:34:48 +00:00
Géry Debongnie fc0f22f9b9 [FIX] web: update owl to last version
This commit updates owl from v1.0.0-beta1 to v1.0.0-beta2.
2019-12-12 13:34:48 +00:00
Vincent Schippefilt 5ced595b58 [FIX] web: fix click_all in enterprise
During the fix of the click_all test in community in 0f2a500f0e,
I have overlooked that enterprise used this code and removed a bit too much.

Restore the start flag in enterprise.

closes odoo/odoo#41784

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-12-12 11:47:03 +00:00
William Henrotin 9503f463e3 [FIX] mrp: always show post inventory button
The inventory button was shown or hide depending of the product valuation.
As the valuation was previously stored on the stock moves and posting
split the stock moves. Fifo and Avco valuation was not well computed.
The migration to stock valuation layer fixed this behavior. This
commit shows the post inventory button as soon as there are some
finished move to be posted.

task : 54665

closes odoo/odoo#41781

X-original-commit: 5dfa3f817d3a9f47a863a587569a862a40c7d159
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2019-12-10 12:41:06 +00:00
William Henrotin 9debcaf377 [FIX] mrp_account: show valuation button
The valuation stat button was shown only at validation of the manufacturing
order. If an intermediary inventory is posted. A part of the stock moves
are validated so some stock valuation layer are generated.

This commit shows the valuation button as soon as some valuation layers
are linked to those validated stock moves.

Task : 54665

X-original-commit: 7f67af93299c449ba80489a84ed0b13930edff90
2019-12-04 12:53:43 +00:00
William Henrotin 21834430a1 [FIX] mrp: post partial production with workorders
The commit 75460e697a was introduced in
v12, when the workorder stored their consume data on stock.move.lines.
Their was an issue when posting intermediary inventory on productions
using workorder. As those 'dummy' stock.move.lines did not have their lot
field filled, an error at line validation was raised.

In v13, the workorders use workorder lines. The lots and quantity are
transfered on real stock move lines only at the end of the production.
Posting intermediary inventory did not failed anymore in case of partial
production

Task : 54665

X-original-commit: a41239b378a1cae394d18f43e991ec8bceeac826
2019-12-04 10:26:24 +00:00
Martin Trigaux b3d143761e [IMP] test_translation_import: stricter test
To be able to detect issues in .pot like at #41364 due to bad .pot
file (cf fix at #41650)

closes odoo/odoo#41778

Related: odoo/enterprise#7200
Original-signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
X-original-commit: ba39590b004655df55d5d182c4ad50caa7f583c1
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-12-12 09:23:35 +00:00
Nicolas Martinelli 2398f57fb0 [FIX] hr_holidays: time designation
12:00 AM is midnight and 12:00 PM is noon.

opw-2154640

closes odoo/odoo#41763

X-original-commit: e0df98d872c0feefbd31b119136057b7c36d81f3
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-12 08:27:49 +00:00
Nicolas Martinelli b0605b4adc [FIX] *: make ribbon text translatable
closes odoo/odoo#41749

X-original-commit: 64c259fc74a8181aa381b6647a9816b6f5530dfd
Related: odoo/enterprise#7216
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-04 12:01:16 +00:00
Nicolas Martinelli 99a25142e4 [FIX] web: support title field in ribbon
The `text` attribute is not translatable, so we support the `title`
attribute which is.

Fixes #38568
opw-2148416

X-original-commit: 21203ec63db6702529a791f5abab317c6d4fb8af
2019-12-04 11:59:12 +00:00
Nicolas Seinlet 637c0fbc10 [FIX] website_blog: None is not iterable
return empty string instead of None to avoid `TypeError: argument of
type
'NoneType' is not iterable`

closes odoo/odoo#41772

X-original-commit: dd65c9fd7213f3d780a733e67390b2ae59f0f526
Signed-off-by: Nicolas Seinlet (nse) <nse@odoo.com>
2019-12-12 09:00:48 +00:00
Andrea Grazioso (agr-odoo) 14e87b9783 [FIX] point_of_sale: add serial number on refund
Install POS, create a product available in POS, tracked by Serial
Number.
Add some product to the inventory.
Open the POS session, sell the demo item, close the session (do not end
the session, just close the interface).
Go to POS orders, select the last order and click on "Return Products",
the refund will be created.

The user will be unable to process payment for the refund order because
Serial Number is missing. Adding a copy of the lot from the original
order line fix the issue

opw-2152776

closes odoo/odoo#41762

X-original-commit: 886dee9efc3bd743ca1b9353872021c1f81efa9a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-12 07:25:08 +00:00
Nicolas Martinelli 40fa388b5b [FIX] point_of_sale: prevent deletion of payment
Deleting a payment will prevent the POS session closing.

opw-2155093

closes odoo/odoo#41752

X-original-commit: a6927e31af53f28c04eb567db0da396ad07e7206
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-12 07:38:26 +00:00
Aurélien Warnon 0d6ddb7bda [FIX] event[_sms]: correctly take parameters from event type mail
PURPOSE

This commit 62ac23f0b9 introduced SMS capabilities on for
event.type.mail and event.mail models.

Values of event_type_mail_ids on event.type are supposed to be copied to
event_mail_ids on event.event when changing the event_type_id of an event.

There are however 2 issues with that integration:

- The 'notification_type' field was not correctly set on default
  event_type_mail_ids on event.type;
- The 'notification_type' and 'sms_template' fields were not copied from
  event_type_mail_ids to event_mail_ids;

LINKS

PR #39892
Task ID 2115792

closes odoo/odoo#41736

X-original-commit: 3fd66d844aa66ca8d54223071c787974e6c88c94
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-12 06:24:35 +00:00
Andrea Grazioso (agr-odoo) c8e862249e [IMP] account_check_printing: store check number also as int
Go to Accounting > Vendor Bill, pay via check, view the invoice and
click on 'Print Check'. The widget will popup but as the 'next check
number' will always display 1.

This append because the model of account_payment has changed
https://github.com/odoo/odoo/blob/13.0/addons/account_check_printing/models/account_payment.py#L28
and now check_number is a char so it will not sorted correcly by the
database.

To avoid doing a lot of strings manipulation it is convenient to
store the check number as integer, with proper default case

Followup of opw 2151242

closes odoo/odoo#41659

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-12 09:00:18 +00:00
Pierre Rousseau 513f8e134e [FIX] web: pivot isHeaderClicked
This commit explains why we use isHeaderClicked.

closes odoo/odoo#41756

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-12-12 09:40:04 +00:00
oco-odoo 2a99353026 [FIX] account: avoid crashing when selecting a reconciliation model when doing manual reconciliation
Before that, an empty account.bank.statement.line recordset was passed to the function, and caused the recordset containing the currency to use to also be empty, eventually leading to a rounding value of 0, which raised and error.

closes odoo/odoo#41474

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-12-06 12:06:33 +00:00
Laurent Mignon (ACSONE) 28c444e9e7 [FIX] base: Allow user to change its own language
Before this change, it was not possible to a user to change its own
language via the Preference view.

In order to allow a user who does not have access rights on the
res.users model to modify his language (field included in the list of
SELF_WRITEABLE_FIELDS fields) it is necessary to force the reandly
attribute to False in the view used to edit the user's preferences.

opw-2151630
Closes #41412

closes odoo/odoo#41748

X-original-commit: 272bff9e3173e1ed5da5d5a87e4c7be53ad59700
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-12 07:05:23 +00:00
Victor Feyens 3a6385343a [FIX] event_sale: ticket prices
closes odoo/odoo#41738

X-original-commit: 270b5798b5869c93f80863ee0bd891ab7a2488f0
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2019-12-11 16:36:22 +00:00
Debauche Stéphane 8453b7fb90 [IMP]: mass_mailing: improve some views
- In the campaign form view, when you click on "SMS", the filter has changed
  ``My Mailing`` -> ``My SMS Marketing``
- In the campaign form view,  display the Mail/SMS subject instead of the SMS name
- In UTM, move the campaign from the data to the demo data

Task #2082296

closes odoo/odoo#40205

Related: odoo/enterprise#6685
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-11-14 07:37:16 +00:00
Romain Derie e788c040f6 [FIX] website: set correct value in frontend_lang cookie
Before this commit, the `url_code` field value was stored in the cookie instead
of the `code` field.
This was making the language selector in the frontend to not change the lang
correctly when trying to access the website default lang, ONLY for the lang
having an `url_code` different than its `code` value (typically the case for
principal languages).

Step to reproduce:
  - Add `fi_FI` as main lang on website
  - Visit frontend and change lang to `Suomi`, it won't change

This behavior was only related to the language switcher. It did not affect
dispatching (if correct lang in url) and nearest lang finder.

Fixes #41522

closes odoo/odoo#41728

X-original-commit: b62b2828552abb38c8adc74c69cb427c3fd98605
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2019-12-11 13:33:22 +00:00
Vincent Schippefilt 0f2a500f0e [FIX] web: fix click_all test
Before this commit, after the introduction of OWL, for some reason,
maybe because the session is ready earlier or later, the webclient is
opening the first app sightly earlier than before, making it too early.

The click_all failed actually because, in the initialization of the
webclient, it does a read on read user, protected by a drop_previous
it tries to start the first applictaion, when this happens, the hash
changes
==> because the hash changes, it tries to open an application, with is
also protected by the same drop previous, this discarding the result of
the read and preventing the then callbacks of the read to happen.

After this commit, we are declaring that the client is ready after the
actual load of an application.

closes odoo/odoo#41695

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-12-11 14:37:04 +00:00
Yennifer Santiago 74dcb64f46 [CLA] Add ysantiago as new contributor in vauxoo
closes odoo/odoo#41715

X-original-commit: 5028acce9e56afadfa409316f758f220803aacf8
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-12-10 21:33:35 +00:00
Nicolas Lempereur 76e36be45f [FIX] product: no default_code empty string
Currently, empty strings and False have different meaning when assigning
a Char or Text field with ORM methods.

So avoid setting empty string on `default_code`.

opw-2151849
closes #41662

closes odoo/odoo#41674

X-original-commit: d038cc1a0a6e1d939318763aa9dba48aa1eafcf5
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-12-10 15:57:17 +00:00
Debauche Stéphane f21b696c6e [IMP] sale_stock_margin: improve the margin computation
Before
======
The margin stay unchanged after the validation of the delivery.

After
=====
The margin is updated when the delivery is validated.
To compute the margin for FIFO products, we use the value in the stock valuation layer as ``standard_price``.

e.g.:
    IN 1 product @ 10
    IN 2 product @ 20
    SO 4 products @ 40

    After delivery validation (after stock move creation), the margin is
    (40 * 4 - 10 - 20 - 20 - 20)

Task #2038418

closes odoo/odoo#41381

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-12-10 16:13:29 +00:00
Debauche Stéphane 39872c9324 [IMP] stock_account: change the standard price calculation for FIFO products
Before
======
If a product is FIFO, the standard price is the unit cost of the last released.
```
+ 1 product @ 10€
+ 1 product @ 15€
- 1 product
-> Actual standard price is 10€

```

After
=====
If a product is FIFO, the standard price of the ``product.product`` is the
unit cost of the next product which will  be released
```
+ 1 product @ 10€
+ 1 product @ 15€
- 1 product
-> Actual standard price is 15€

```

Task #2038418
2019-12-10 16:13:28 +00:00
Ipsita Borisagar 83a5b691af [IMP] project: minimal chatter on project form view
Before this commit, chatter of project form view took about 1/3rd
of screen width on big screen, even though no discussion is possible.

This commit solves this issue by moving the chatter at the bottom of
the sheet, so that it isn't displayed at the right of the screen.

Task-2125078

closes odoo/odoo#41082

Related: odoo/enterprise#6959
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-12-10 09:02:02 +00:00
Laurent Smet 6d699ace25 [FIX] payment: Display the "register payment" button in receipts
The button attrs has been well fixed in the 'account' module but not in 'payment'.

closes odoo/odoo#41657

X-original-commit: b5b7131c97aff987ef365dfaeefcbb2dc3bbdf68
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-12-10 13:31:31 +00:00
Laurent Smet d4341ae212 [FIX] account: Fix sequence used by receipts
X-original-commit: 4c4825758c40004ca539f3669d333426664a4406
2019-12-10 13:25:39 +00:00
Laurent Smet 04287b45c8 [FIX] account: Prevent erasing currency when changing the date
- Create a misc. journal entry.
- Add a foreign currency on the line.
- Change the date.
=> The currency is erased because the onchange works only for invoices.

X-original-commit: e0bb4134512ec252b66ecfe91ce259d8cdcffedf
2019-12-10 13:21:53 +00:00
Sébastien Theys 905eed0de1 [FIX] web: introduce format for many2one_reference for form view
The format of `many2one_reference` was not introduced when the new field type
was created, which leads to empty values when the web client is trying to
display the value of such fields in form views.

Since the value of this field is an ID, it is decided to display it like an
integer, which is consistent with previous behavior: the fields that are now
`many2one_reference` are still stored as integer and they were already displayed
as integer before.

This was fixed in list views in commit d0c852f50e
and the current commit fixes it for form views.

opw-2127010
closes #38009

closes odoo/odoo#41666

X-original-commit: c37a16c9dfd09038925034b90ab49e1ab674e714
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2019-12-10 14:46:30 +00:00
Romain Derie 1559750620 [FIX] web_editor, website: better handling of invisible title entry
Using `Title` as invisible entry had the benefit of being translatable
but has the issue to be displayed on mouse over which we don't want.
Using `string` will fix it and will still be translatable.

closes odoo/odoo#41646

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-12-10 15:15:17 +00:00