Commit Graph
130836 Commits
Author SHA1 Message Date
Debauche Stéphane 2dc1f2ea73 [FIX] rating, typo error in `_compute_rating_image`
closes odoo/odoo#37583

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-30 11:08:34 +00:00
qsm-odoo bd701e1e03 [REF] website_theme_install: remove dead code in theme install code
closes odoo/odoo#37569

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-30 10:00:51 +00:00
Xavier Morel 0c7f7b186d [FIX] web, mail: move admin login warning to mail
Fixes #33254:

* was in mail despite using mail.channel (which breaks if mail is not
  installed, and web doesn't depend on mail)
* changes to sudo() broke previous behaviour (of having odoobot
  message the admin, we ended up with the admin messaging themselves)
  so fix that
* also get the channel and message with the user's context, otherwise
  since we're during the login procedure the context could be as
  little as just the lang from the browser and apparently channel_get
  automatically creates a translation which would break if the
  browser's lang is not installed in Odoo

closes odoo/odoo#37580

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-09-30 10:34:42 +00:00
Jairo Llopis 974913c316 [IMP] Support psycopg2.sql module
[`psycopg2` includes a submodule called `sql`][1] which provides more safety and comfort when dealing with raw SQL queries.

As of today, it works fine with Odoo unless SQL query logging is enabled.

This patch fixes that problem, allowing usage of that module.

[1]: http://initd.org/psycopg/docs/sql.html

closes odoo/odoo#37561

Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-09-30 08:08:07 +00:00
Vincent Schippefilt e06117bd85 [FIX] web: multi-hell-ditable list
only activate multi-edit on list with specific attribute.
When the attribute multi_edit="1" is set on the tree view the user
can select a/some records and it will activate the multi-edit
with confirmation dialog (even for a single record).
Also, on-change are not applied when using multi-edit

closes odoo/odoo#37525

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-09-30 08:57:23 +00:00
Romeo Fragomeli e8301cacb7 [FIX] account: missing fields in invoice line form view on mobile
Due to the merge of account.invoice.line and account.move.line
some views doesn't exist anymore.
On desktop, we only need editable list view to do the job but
it's not the case on mobile!

On mobile, the kanban view is loaded instead of "tree" and
the form view is opened when we add a record.
Before this commit, the corresponding form view wasn't usable
on mobile and some fields were hidden like product_id.

As kanban view and form view are important on mobile, we get them
back like on saas-12.3. So the workflow is quite similar as before.

Steps to reproduce:
* Open Odoo in mobile
* Go Accounting App
* Create a new record
* Add a new line
* There is no product field (BUG)

Task ID : 2061797

closes odoo/odoo#37424

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-09-30 09:05:03 +00:00
Geoffroy Larue 9a39194813 [MOV] hr, resource: unavailability methods
Move and adapt gantt unavailability related methods (
_get_work_interval() and _get_unavailable_intervals() ) from
hr.employee to resource.resource. This move allows the unavailability
to be generated for users without related employees (like in FSM in
enterprise).

Task-2069861

closes odoo/odoo#36785

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-09-30 07:59:10 +00:00
Antoine Vandevenne (anv)andRaphaël Collet 5350c6576a [FIX] base_automation: prevent automations from triggering on new records
Before this commit, automations triggering on new records caused onchanges to break out-of-context record rules, hence preventing to create the record.
This commit filters out new records from the list of records matched by the domain of an automation.

task-1998636

closes odoo/odoo#37360

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
Co-authored-by: Raphaël Collet <rco@odoo.com>
2019-09-30 07:23:03 +00:00
fw-bot ea11adf982 [FIX] sale: show payment token in sale payment
purpose of this commit is to show payment token while making payment with sale order

before this commit:
in SO payment, there is a filter for s2s acquirer, and becuase of that filter, if brings
tokens of the acquirer which is set to s2s currently

after this commit:
payment token will be shown for particular user, now it will not depends on mode of acquirer

task- 2028285

closes odoo/odoo#37562

X-original-commit: 0ebfe8575a8bac0f6b4c0ba1f1084701d73c4c74
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-09-30 08:27:13 +00:00
Laurent Smet 223b338f49 [FIX] account,l10n_be: Fix accrual accounting wizard
- Remove the useless domain set on the field.
- Fix the belgium PCMN to work with accrual.

closes odoo/odoo#37560

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-30 07:30:32 +00:00
Richard Mathot cc3f0313a2 [FIX] hr_holidays: don't do accrual allocation of time off for archived employees
opw-2071886

closes odoo/odoo#37451

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-30 05:59:54 +00:00
mreficent 84f7d33f72 [FIX] l10n_si: 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#37553

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-29 16:49:40 +00:00
Nicolas Martinelli 01c567c376 [FIX] mrp: Time Cycle computation
- Create a workcenter with a capacity of 500 units
- Create a BOM with a routing generating one work order in the WC
  created
- Create 3 MO with the following real durations:
  MO 1: 1000 units produced in 420.95 seconds
  MO 2: 1000 units produced in 120.28 seconds
  MO 3: 1000 units produced in 60 seconds
- Create a MO for 1 unit

The Duration expected is computed as

The Time Cycle is computed as:
  (420.95 + 120.28 + 60) / (1000 + 1000 + 1000) = 0.20041
The Total Expected is computed as:
  0 + 0 + (1.0 * 0.20041) * (100.0 / 100.0) = 0.20041

0.20041 seconds is not realistic based on the previous MO real
durations.

This is because the Time Cycle doesn't take into account the workcenter
capacity. If we can produce 60 units in parallel in 60 seconds, that
doesn't mean we can produce 1 unit in 1 second. Therefore, the Time
Cycle should be multiplied by the WC capacity, which gives a Time Cycle:

   500 * (420.95 + 120.28 + 60) / (3000) = 100.205

Which is much closer to the real duration.

opw-2070759

closes odoo/odoo#37548

X-original-commit: 9d3a73f64feb3b9e71c50a04adb6206b6393c757
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-27 17:51:21 +00:00
Victor Feyens da5a51eb32 [IMP] product: useless field declaration in product kanban
To simplify sale_renting view inheritance (enterprise).

closes odoo/odoo#36920

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2019-09-29 17:27:59 +00:00
Victor Feyens 5312368e46 [IMP] sale_product_configurator: empty line on configuration cancel. 2019-09-29 17:27:59 +00:00
Odoo Translation Bot d7b8831ea8 [I18N] Update translation terms from Transifex 2019-09-29 01:22:33 +02:00
Olivier Dony cc6c0c8b21 [IMP] http: remove outdated logic for redirects
Section 7.1.2 of RFC 7231 requires preservation of URL fragment
through redirects. Our old JS redirection code was necessary when
browsers did not consistently implement it. Apart from a few odd
and marginal exceptions they all do it now, so we can stop that.
2019-09-28 03:54:54 +02:00
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