Commit Graph
140847 Commits
Author SHA1 Message Date
Thibault Delavallée 60f9c85a8c [FIX] mail: make mail.mail an internal model by default
Task 2078313
2019-09-03 14:01:00 +02:00
Jeremy Kersten cc1e8f2876 [FIX] portal: avoid crash when using the wrong HTTP method
opw-2078313
2019-09-03 14:01:00 +02:00
Jairo Llopis e5f673087b [FIX] mail: Support nameless attachments
`ir.attachment` records do not require to have a filename set.

In `AttachmentBox`, a filename is always set, although in case it's missing it was untranslated. I fixed that.

In cases where `AttachmentBox` is not used but its underlying templates are rendered using other means, a user could get a client-side error like this one when browsing a record that had an attachment without filename:

<details><summary>Error</summary>

```
Error:
TypeError: dict.attachment.filename.split is not a function

https://www.tecnativa.com/web/static/lib/qweb/qweb2.js line 469 > Function:26
Rastreo de error:
anonymous@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js line 469 > Function:26:45
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:458:58
call@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:154:35
anonymous/<@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js line 469 > Function:340:33
foreach@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:180:25
anonymous@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js line 469 > Function:338:25
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:458:58
call@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:154:35
anonymous/<@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js line 469 > Function:27:31
foreach@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:180:25
anonymous@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js line 469 > Function:11:23
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:458:58
render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:450:26
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:480:29
call@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:154:35
anonymous@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js line 469 > Function:20:30
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:458:58
render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:450:26
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:480:29
call@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:154:35
anonymous@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js line 469 > Function:15:31
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:458:58
render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:450:26
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:480:29
call@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:154:35
anonymous@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js line 469 > Function:11:31
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:458:58
render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:450:26
_render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:480:29
render@https://www.tecnativa.com/web/static/lib/qweb/qweb2.js:450:26
render@https://www.tecnativa.com/mail/static/src/js/thread_widget.js:183:28
_fetchAndRenderThread/<@https://www.tecnativa.com/mail/static/src/js/thread_field.js:124:36
then/</</<@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3276:89
fire@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3119:58
fireWith@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3231:49
Deferred/</deferred[tuple[0]]@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3321:62
then/</</<@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3276:89
fire@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3119:58
fireWith@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3231:49
then/</</<@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3283:104
fire@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3119:58
fireWith@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3231:49
Deferred/</deferred[tuple[0]]@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3321:62
fire@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3119:58
fireWith@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3231:49
then/</</<@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3283:104
fire@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3119:58
fireWith@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3231:49
Deferred/</deferred[tuple[0]]@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3321:62
rpc/<@https://www.tecnativa.com/web/static/src/js/services/ajax_service.js:16:29
then/</</<@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3276:89
fire@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3119:58
fireWith@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3231:49
Deferred/</deferred[tuple[0]]@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3321:62
fire@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3119:58
fireWith@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3231:49
Deferred/</deferred[tuple[0]]@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3321:62
genericJsonRpc/<@https://www.tecnativa.com/web/static/src/js/core/ajax.js:65:18
then/</</<@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3276:89
fire@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3119:58
fireWith@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3231:49
then/</</<@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3283:104
fire@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3119:58
fireWith@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:3231:49
done@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:9275:42
callback@https://www.tecnativa.com/web/static/lib/jquery/jquery.js:9685:57
```

The error is produced when trying to render this line: https://github.com/odoo/odoo/blob/66c5053a3d1f8cb456929453a62869c95eccf86a/addons/mail/static/src/xml/thread.xml#L506

</details>

This patch ensures all attachment has a filename, and fixes that problem.

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
@Tecnativa TT19555

closes odoo/odoo#37546

Forward-port-of: odoo/odoo#37253
X-original-commit: ebba3c9fa709dccf4cab91e9f37aa3eaa24c7d21
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-09-27 17:14:07 +00:00
qsm-odoo 3d4060f756 [FIX] web_editor: do not redraw option hierarchy on click
Before this commit, when a hierarchy of options was displayed in the
editor left panel and that the user click on any one, the related
snippet was enabled making all the children options disappear (like
the "go to parent" button in the old UI). Now we only keep this behavior
when we click on the title of the snippet's options.

closes odoo/odoo#37538

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-27 15:24:30 +00:00
qsm-odoo a27c0fd0fc [FIX] website: remove 1px gap below mega menus
task-2075949

closes odoo/odoo#37534

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-27 15:05:36 +00:00
Florimond Husquinet (fhu) 472a12cc8e [FIX] point_of_sale: scanning a product twice takes the barcode as the quantity of the product
- Connect a real barcode scanner.
- Start a POS session.
- Scan a product. The product appears in the list properly with a quantity at 1
- Scan the product again.

Before this commit:

After the second scan the quantity is the number represented by the barcode.
The reason for this being that it's allowed to type a quantity with a numpad,
but the scanner works pretty much like a keyboard.

After this commit:

Scanning a product multiple times just increase the quantity by one. But you
can still type the quantity with a numpad, provided you don't type as fast as
a barcode scanner.

closes odoo/odoo#37530

Opw: 2075470
X-original-commit: db3ae61c00364894fef4684f34143f1cf575e882
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-27 14:39:41 +00:00
Jorge Pinna Puissant f7fd783eff [FIX] point_of_sale: pos session username in a multi-companies environment
— Have a POS in a multi-companies environment;
— the multi-companies environment configuration don't have a 'Common
    Contact Book';
— user 'A' open a session in the company 'Z';
— user 'A' closes the POS without closing the session;
— user 'A' change of company to company 'Y';
— user 'B' opens the POS application in company 'Z'.

Before this commit, an error message was shown, because user 'B' didn't
have access to the name of user 'A' when user 'A' is not in the same
company.

Now, the name of user 'A' is shown correctly in the dashboard.

opw-2075388

closes odoo/odoo#37529

X-original-commit: b149522b281a5fcf8fe6d3d7421e364acb46e888
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-27 14:39:24 +00:00
fw-bot 0328459682 [FIX] sale: right order type in notification
The notification for quotation/sale order would always say "See Sale
Order" and things (in the notification view, not inside) and not
"Quotation" if it is a quotation.

Do something similar to what was done for purchase in 3f72a8fab.

note: foward port of #37395 (half-fix is in 25153b but not translatable)
opw-207060
closes #37463

closes odoo/odoo#37519

X-original-commit: fe3df270e19f77ce5d29b101f32834e96089a0d6
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-09-27 13:35:01 +00:00
Thibault Delavallée d140711a86 [FIX] sms_*: fix field name used in some security rules
Oupsy.

closes odoo/odoo#37512

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-27 15:13:11 +00:00
Debauche Stéphane f518a7dc63 [FIX] rating: fix image computation and display
Currently if we try to display image of a rating having a different value of
0/1/5/10 there is an infinite loading. Indeed images for rating are limited
to those values.

In this commit we fix that by computing a rounded value to find the closest
image.

Text display in form view is also centered for better wow onboarding back 2
basics demo usability fiximp effect.
2019-09-27 15:11:27 +00:00
sri-odoo 09c9d1f0d0 [IMP] utm,crm,link_tracker,sale: improve utm.campaign kanban view
This commit slightly improves the utm.campaign kanban view by reordering statistics and changing
their display.

Task#2077579

closes odoo/odoo#37518

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-27 14:22:10 +00:00
jem-odoo f68c946f6c [FIX] hr_timesheet: allow importing timesheets
The import button on timesheet list view is not visible
for now. This commit makes it reappear, as we want to
handle that use case, since it is a common action for
end user.

opw-2077117

closes odoo/odoo#37498

X-original-commit: 5fb7ab44e1a113339c2ad797dfd2eb8ddfa4bf78
Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-09-27 11:37:00 +00:00
Florian Gilbert a77d80a48d [FIX] account & l10n_ch: fix l10n_ch installation on a company
And a compute field.

closes odoo/odoo#37497

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-09-27 14:14:18 +00:00
wan b3ab9604c4 [FIX] account: reconcilciation model with amount based on regex
the amount is now not always set in credit side

closes odoo/odoo#37475

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-27 09:19:38 +00:00
Florian Gilbert 85cf47fc92 [FIX] Web controllers: quick fix for just keep number in aggregated_values 2019-09-27 09:19:38 +00:00
oco-odoo ae2cbfa20f [FIX] account: make open_action() work with actions targetting both account.move and account.move.line 2019-09-27 09:19:38 +00:00
wan 40f0c28d5e [IMP] account: fix reconciliation model matching on note and transaction type
Before, all fields were looking at the name of the statement line
2019-09-27 09:19:38 +00:00
wan d745c4ee4d [FIX] account: add to check entries on misc journal on dashboard 2019-09-27 09:19:38 +00:00
Laurent Smet a007a70830 [FIX] account: Fix 'partner_id' field required in account.move view 2019-09-26 10:17:20 +00:00
oco-odoo b794bbdd3b [FIX] account: don't set the 'sales' filter by default when opening the move lines' tree view from the dashboard or clicking the 'reconciled entries' button of the move's form view 2019-09-26 10:15:11 +00:00
oco-odoo 567f4f0e40 [FIX] account: make "journal items" link of journals in the dashboard work for 'sale' adn 'purchase' journal 2019-09-26 10:15:11 +00:00
Laurent Smet 93fb9721fe [IMP] account: Set today as default bill date
Suppose the following workflow:
- Creates a new vendor bill.
- Set an accounting date but no bill date.
- Post the vendor bill => accounting date / bill date are set at today.

This behavior is due to the fact the user didn't set a bill date.
This commit aims to set a default bill date to encourage the user to edit it
instead of letting it empty.
2019-09-26 10:02:08 +00:00
Laurent Smet 7de871cc38 [FIX] account: Don't change partner_id on grouped view 2019-09-26 09:58:26 +00:00
Priyanka KakadiyaandMohammed Shekha 9b57bfb6a2 [FIX] web, *: button special not working to close dialog
*: event_sale
   mail
   sale_product_connfigurator
   stock

Before this commit: if we open dialog from acitivity view and try to
discard it (i.e. close it), it throws traceback.

Issue arises from following commits:
https://github.com/odoo/odoo/commit/d3d576cf8ec9e5b5f6ae5f9d8845cf384435f12d
https://github.com/odoo/odoo/commit/3210f108272be89f1a7b01f4e1816b7f04ae0a3b

Previously, special attribute was passed directly, but now `on_close`
gets action info as an object.

After this commit, it passes special key as an object for `on_close`,
also changed special action based logic in other modules.

Task-Id 2072181

closes odoo/odoo#37078

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
2019-09-27 14:45:51 +00:00
69bf106a47 [REF] website_event, *: review event design and features
* event, website_event_questions, website_event_sale,
  website_event_track, base, website, website_blog

task-2043872

closes odoo/odoo#37009

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: Cocographique <nmi@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
Co-authored-by: Jérémy Kersten <jke@odoo.com>
2019-09-27 18:40:48 +02:00
f402afd7b5 [REF] website_event, *: review event design and features
* event, website_event_questions, website_event_sale,
  website_event_track, base

Part of https://github.com/odoo/odoo/pull/37009
task-2043872

Co-authored-by: qsm-odoo <qsm@odoo.com>
Co-authored-by: Jérémy Kersten <jke@odoo.com>
2019-09-27 13:36:37 +00:00
William Henrotin bb017e64d4 [FIX] mrp: add new line by the bottom in produce wizard
Any new line (components or by products) in the produce wizard
will be now added from the bottom of the One2many widget.

closes odoo/odoo#37514

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-27 13:03:05 +00:00
Martin Trigaux 6378c8fb25 [I18N] *: export saas-12.5 source terms
Still without demo data

closes odoo/odoo#37502

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-27 11:58:55 +00:00
Laurent Smet 05c349056f [FIX] account: Fix tax cash basis entry
Suppose a tax cash basis without account_id set on any repartition lines.

Before this commit, the generation of the cash basis entry failed because
odoo tried to create an account.move.line without account_id.

With this commit, a fallback is made on the base line account_id in case
of missing account_id on the tax repartition line.

closes odoo/odoo#37499

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-27 12:28:43 +00:00
qsm-odooandCocographique fdd0724636 [REF] website_event: reorganize views in preparation of redesign
This commit is just about moving views and factorizing views content.

Part of https://github.com/odoo/odoo/pull/37009
task-2043872

Co-authored-by: Cocographique <nmi@odoo.com>
2019-09-27 11:49:53 +00:00
qsm-odoo 80f54f563a [REF] website_blog, *: move editor "fix" in blog to website
* website

Part of https://github.com/odoo/odoo/pull/37009
task-2043872
2019-09-27 11:49:53 +00:00
qsm-odoo 08cc073369 [REF] website(_blog): make most of the cover_properties system generic
This commit moves most of the logic of cover edition to website. This
will allow to define cover on other non-blog models, like events.

Note: this also "accidentally" fixes a crash during rendering of the
blog page when there is no blog or post.

Part of https://github.com/odoo/odoo/pull/37009
task-2043872
2019-09-27 11:49:53 +00:00
jem-odoo 05b50842a4 [FIX] project: company of duplicated task
When copying a task, we need its company to be the
one in its new project.

Task-1999686

closes odoo/odoo#37108

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-09-27 11:43:13 +00:00
jem-odoo a1268c15eb [FIX] hr_timesheet: employee in the same company as the timesheet
When encoding a timesheet, we want it to be linked to an employee of the
same company. Purpose is for the current user to find its correct employee
directly, and so its timesheet cost.

Task-1999686
2019-09-27 11:43:13 +00:00
jem-odoo de8e413e08 [IMP] hr_expense: use 'check_company' mecanism
As the ORM now supports some helpers to handle
multi company environment, it is recommended to
use them. So, this commit changes technically
some aspect of the multi company consistency
implemented a few commit ago.

Task-1999686
2019-09-27 11:43:13 +00:00
jem-odoo 0fdee29bb4 [IMP] project: multi company subtasks
This commit makes possible the task delegation in a multi company
environement. A subtask is a normal task with a parent, but can
now be in a different company, to be use as subcontracting task in
another company.
Tests are added to check multi company consistency for the project
app in general and for the subtask cases.

Task-1999686
2019-09-27 11:43:13 +00:00
jem-odoo 749810a2e1 [IMP] project: substask can live their own life
This commit completes what was initiated a few time ago : a substask
is like a normal task and can now live its own life, being in another
project, attached to another customer, billed on another sale line, ...
than its mother.
The informations coming from the parent are only use as default values to
prefill the form view (with default options on creation, or though `onchange`
when setting the parent on existing task).

No values are forced now.

Form, default context, and others views has been adapted to make this feature
works.

Task-1982072
2019-09-27 11:43:13 +00:00
William Henrotin 5c8f83ef6b [IMP] stock: open graph view by default
On the product form view, the forcast stat button should open
the Graph view by default and not the grid one

closes odoo/odoo#37501

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-27 11:53:07 +00:00
Nikunj Ladava a408e37568 [FIX] payment: fix issue with s2s error icon position
before this commit:
the icon was not there in proper position

after this commit:
the icon is at proper position

task- 2074108

closes odoo/odoo#37352

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-09-24 10:25:43 +00:00
Geoffroy Larue d43ede7882 [FIX] account_analytic_default_hr_expense: access rights
Before this commit, when user has no extra access rights, clicking on
create in Expense raises an Access Right Error.

This fix solves the issue by sudoing the access on
account.analytic.default in the onchange method causing the error.

Task-2069060

closes odoo/odoo#36572

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-09-09 14:19:37 +00:00
svs-odoo 9087332336 [TEST] stock: product responsible company_id
Adds a test to be sure `product.template` can be create with a
responsible when:
  - The product has no `company_id` (the responsible must belong to the
    user's company in this case).
  - The product `company_id` is one of the companies of its responsible.

And to be sure that we can't create a `product.template` if its
responsible doesn't belong the product's company.

closes odoo/odoo#37362

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-27 11:34:54 +00:00
svs-odoo a3281058b0 [FIX] models: check_company on res.users field
Before this commit, when a record of a model who has a `res.users` field
it could fail the `check_company` because the check looks for
`company_id` who is the default company of the user.
In the case of `res.users`, `check_company` must look after the
`company_ids` of the user.
2019-09-27 11:34:54 +00:00
Luis Torres e7bbe5dc0e [FIX] l10n_mx: Country in tags is required for domain
The domain for the tags in the taxes indicates that the country must be
the same that the tax country:
domain="[('applicability', '=', 'taxes'), ('country_id', '=', country_id)]"

For this reason is necessary assign the country in the tags, to allow
register new taxes or change the tag in the records created.

closes odoo/odoo#37482

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-26 19:10:09 +00:00
David Beguin 218f1c63ea [FIX] website : fix visitor email and phone computing
When a lead entered a wrong email address in the contact form,
this crashes when loading visitor view.
We were doing a email concatenation to have all the email address
of the leads linked to the visitor.
But as it is a cornet case that shouls not happens often
(to have multiplus email address linked to the visitor)
we will only keep the last email addresse entered by the visitor.

Task ID: 2077182
PR #37472

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-27 08:47:50 +00:00
Luis Torres 9dfc9ac76c [FIX] l10n_mx: account_cancel module was removed
In https://github.com/odoo/odoo/pull/36304 was removed the module
account_cancel, but missing remove the dependence. Now is
removed

closes odoo/odoo#37455

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-25 18:11:40 +00:00
Arnold Moyaux e7bdf82f59 [FIX] stock: empty warehouse when company is not set.
When the user do not set a company on a route and check warehouse selectable
then it's impossible to select a warehouse. It happens due to the
check_company domain ['|', ('company_id', '=', company_id)('company_id','=',False)]

closes odoo/odoo#37404

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-09-25 13:17:05 +00:00
Cedric Snauwaert 618d67b131 [FIX] account: revert month displayed in journal kanban activty view
Initial spec was to add month after activity name in the kanban
journal view. However this does not work when tax period is quarter
and also the month is always displayed even on other activities which
we don't want.
Reverting this commit and another task will come later to improve the
display on the journal kanban activities.

closes odoo/odoo#37277

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-09-27 08:11:39 +00:00
Laurent Smet f7b988744b [FIX] account: Fix several bugs in accrual accounting
- Multi-company: Fix domains on wizard / company.
- Multi-currency: Manage multi-currency when generating accrual lines.
- Moves creation: Avoid creating too much moves:
	[1-2] moves was created per line before this commit.
	[1-2] moves are created per invoice with this commit.
- Invoice type: Allow accrual only one posted journal entries.

closes odoo/odoo#37487

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-27 07:57:09 +00:00
Laurent Smet 006e15569b [FIX] account,mail: Fix creation message in chatter for invoices
Add a hook inside mail_thread to be able to get a custom message at
the record creation.
Override this hook in account.move to get a custom creation message
dependent of the move's type.

closes odoo/odoo#37474

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-27 08:08:04 +00:00
William Henrotin 237e0b42dc [FIX] mrp: generate wo line according to move and not product
Planning workorder will generate workorder lines according to reservation
If some lines are already created into the workorder for the current product,
The line generation will increase the quantity of the existing one instead of creating
a new one. The issue occurs when the production have some stock move with the same
product.

This commit change the condition to find workorder line candidate. Instead of searching
line with same product, we now search line with same stock move.

closes odoo/odoo#37419

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-09-25 12:18:45 +00:00