Commit Graph
137859 Commits
Author SHA1 Message Date
Pierre Paridans 14a73fa1df [FIX] website_event_track_online: miss-assigned var. in ServiceWorker
When caching a POST request a cache key is builded based on a serialized
version of the request... but the serialization wasn't properly
performed.

This commit properly assigns the `serializedRequest` variable before
attempting to build the cache key.

This was due to a miss-extraction of that variable (see commit
odoo/odoo@f538a551b1 ).

closes odoo/odoo#56049

X-original-commit: 30c99d9fe49cf864687b1f9c7cc887b169698b66
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-08-18 11:05:27 +00:00
Pierre Paridans 8f836fd9a7 [FIX] website_event_track_online: PWA install banner visibility
Before this commit the Event PWA's install banner may be hidden behind
the footer if a non-zero z-index value has been set (like on odoo.com).

This commit raises the install banner to match the tooltip's z-index and
ensure its visibility.

closes odoo/odoo#56048

X-original-commit: 08f4f1934ea05112705b6a4733c915a8fb2360dd
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-08-18 11:05:06 +00:00
Rémi Rahir 40de7e6555 [FIX] snailmail: avoid resending letters on rollback
Up until now, the cron would send letters by batch on a single call with
15 secs timeout which is unfortunately insufficient to have an answer
from the IAP server.
The cron would therefore fail and would end up trying to resend the same
letters again and again even if each call had reached the IAP server and that the
letters were actually processed.

FW port of 61c10c5c9bb3f0d3c2d01bcb1798d03996217585

closes odoo/odoo#56050

X-original-commit: b34d2905ba11ee5bddd1efd2121595a4bdc304c4
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-08-18 11:15:47 +00:00
Martin Trigaux f9432df1b8 [FIX] account: fallback on company language
The field partner_id of an account.payment is not required and there
are no value specified for internal transfers.
Before this patch the report had lang=None so was bypassing the
translation system.
Fallback on company's language instead

Fixes odoo/odoo#43377

closes odoo/odoo#56030

X-original-commit: 63b161e8c927889cd82da1ed6a0973234c639fb1
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-18 07:55:11 +00:00
Mathieu Duckerts-Antoine 423f79c2dc [IMP] base: Apps search panel values order
We order the 'Apps' search panel values by 'sequence'.
Partial realization of Task 2001615

closes odoo/odoo#55997

Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
2020-08-18 08:53:10 +00:00
Thibault Francois f7d478999a [FIX] website_crm_partner_assign: date_partner_assign
Problem:
Now that date_partner_assign is a computed field, a
value should be set each time there is a value
set for partner_assigned_id. Still, it was not the case

Solution:
Use the proper decorator: depends instead of onchange.

closes odoo/odoo#55950

X-original-commit: 56d859d85f1e00029a601e9b1daa6bbcbdb7dc43
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-14 15:12:21 +00:00
Odoo's Mergebot eee563ae1a [MERGE] crm_*: hide irrelevant measures from graph/pivot views
PURPOSE

Support invisible attributes to remove irrelevant fields in standard views.

SPECIFICATIONS

Add the possibility to not display some fields in the measures dropdown for
the graph and pivot views.

When a field is not displayed in the measures of a pivot views we remove them
also from the list of groupable fields.

Update CRM addons to hide irrelevant measures.

LINKS

Task ID-2288381
Community PR #54774
Enterprise PR odoo/enterprise#11970
Upgrade PR odoo/upgrade#1519

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-18 12:44:27 +02:00
Jérémy Hennecart d863558663 [IMP] crm(_iap_lead_website), website_crm_partner_assign: remove incoherent measures for pivot/graph
PURPOSE

Adapt CRM views now that some measures can be set invisible.

SPECIFICATIONS

Adapt the views and implementing the new invisible attribute on some fields.
It allows to hide unnecessary measures.

In this commit we remove some measures in inheriting CRM apps

  * crm: do not use color as measure;
  * crm_iap_lead_website: do not use reveal_iap_credits as measure;
  * website_crm_partner_assign: do not use partner_latitude and partner
    longitude as measures;

LINKS

Task ID-2288381
Community PR #54774
Enterprise PR odoo/enterprise#11970
Upgrade PR odoo/upgrade#1519
2020-08-18 09:04:13 +00:00
Jérémy Hennecart 2c21301d31 [IMP] web: manage invisible fields in graph and pivot view
PURPOSE

Be able to remove some measures from graph / pivot views. Currently fields
are automatically added but some of them make no sense.

SPECIFICATIONS

Add the possibility to not display some fields in the measures dropdown for
the graph and pivot views.

When a field is not displayed in the measures of a pivot views we remove them
also from the list of groupable fields.

LINKS

Task ID-2288381
Community PR #54774
Enterprise PR odoo/enterprise#11970
Upgrade PR odoo/upgrade#1519
2020-08-18 08:56:48 +00:00
Juan Jose Scarafia 29b44207c9 [FIX] l10n_ar: invoice pdf on cia without website
closes odoo/odoo#55892

closes odoo/odoo#55893

X-original-commit: 2e5eb5b5a69f0eebcdca5405d2924472a55cbb21
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-18 08:10:04 +00:00
std-odoo 13d1f3e012 [IMP] mass_mailing: allow to customize the mail preview
Purpose
=======
Allow to customize the preview text in mass mailing.

Specifications
==============
We do not generate the preview text anymore, instead we add
a new field to let the user choose want he want to put into
the preview. As the preview is added in the mail body, it
supports dynamic placeholders.

Rename "View in browser" into "View Online" because the text
will be displayed in the preview if the snippet is added at
the beginning of the email. And we want to make it shorter.

Remove the alt attribute of the image tag which are not part
of the "email content" in the mass mailing template.
So, we improve the email preview in the mail clients
(otherwise the mail client include the alt attribute into the
preview).

Task-2313872

closes odoo/odoo#55695

Related: odoo/upgrade#1584
Related: odoo/enterprise#12323
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-18 08:47:28 +00:00
Rémy Voet (ryv) 8d62eacfff [FIX] *stock*, mrp: fix effective_date
- Avoid to truncate the hour/min/sec in the computation of the
effective date which is related to the `date_done`
of the first incoming picking.
- With manufacturing in 3-step (pbm_sam), the store picking
had a source document == "New". It was the case because
the `_get_move_finished_values` was call before the create
and the name is set only on create.
To fix this issue, during the `create` set the origin of all move.
- To avoid to maintain old views unused,
remove unused view of stock move.
- The computation of the products_availability json is too expensive
to be in tree view (2.5 times long with it) of picking.
It will be hard to optimize because the half the time
is due to _get_report_lines method - already in batch (on 80 records).
- Review buttons of the replenishment list to be more Odooer.
- In some cases the delay alert date was wrongly compute:
  - If we new dest_move_ids of a existant move, the delay alert date
    won't be compute.
  - If the state (to done) and the date are save in same write call
    the alert date of next move won't be reset.
To avoids these issues, refactor the alert date to be a compute stored
fields.
- To avoid any confusion between date expected in the replenishement
(in date) and the purchase order receipt date (datetime),
we put the receipt date at the middle of the day.
Also  On-Time Delivery Rate computation counts
only when date are bigger effective date trunced to date.
Also used the timezone of the company by default (if not user timezone)

task-2246665

closes odoo/odoo#55379

Related: odoo/upgrade#1586
Related: odoo/enterprise#12309
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-18 07:48:27 +00:00
Rémy Voet (ryv) 57f805f71e [IMP] stock*,mrp*: Dates Refactor
- The deadline of MO generated via procurements is calculated differently.
Now, it doesn't take anymore in account the manufacturing_lead
of the company (Security Lead Time of MO). The computation of planned date remains unchanged.
- The date_expected fields was duplicated with the date fields
except when the move was done. Merge both fields.
The only information lost is: we can't know what was the
scheduled date before processing move (`state` == done).
Indeed, the date becomes the actual move processing datetime.
- The `date` in `stock.picking` field contained the time of
(purchase) order `date_order` (`purchase.order`).
This field is was wrongly used in the kanban view where we
expected to see date_planned instead. Also, the `_order` used
this date instead of date_planned too.
- The `delay_alert` is activate independently of stock rules.
Then it is now activate in all case.
- Remove the auto-reschedulting process of stock move via
the stock rule (`propagate_date` and `propagate_date_minimum_delta`).
Replace it by a automatic deadline date (`date_deadline`) propagation.
The deadline is the promise done to/by vendor/client (SO/PO)
then it is a readonly fields on picking/move and MO.
- Now the Scheduled date (`date`) of stock move is never propagate
and it is only related to the Scheduled date of
related document (MO or picking).
- Now when a move is created from procurement (sale),
`date_planned` = `date_deadline` - `security_lead`.
- The `delivery_date` of sale is no editable after confirmation
and propagate as the deadline to related stock move linked to order_line
- Adapt filter and decoration of MO and picking.
- Because we are the client in case of purchase (PO), the promise of vendor
can be not respected. Then we add the lead security to the deadline
(inverse the sale order logic) of PO picking (promise reciept date
+ security lead) to match with the replenishment.

task-2246665
2020-08-18 07:48:27 +00:00
Rémy Voet (ryv) e40553723b [IMP] stock,mrp,purchase: refactor priority
- MO/picking/PO/stock.move have now the "same" `priority` fields
(Boolean logic: Normal or Urgent).
These models are now sort by priority first. Note that the priority field of
stock move is a technical one.
- For MO and picking, the set of `priority` field change priority of
the related stock move. The prioriry field on stock move is
used by the scheduler for reservation ('Urgent' before 'Normal')
- The Stock Replenishment Report also take in account the priority
to be consistent with the reservation.

task-2246665
2020-08-18 07:48:27 +00:00
bb9ef00452 [IMP] web: support action helper on gantt view
Currently, only List and Kanban view supports the action helper and
display the folder icon with the helper text.

With this commit we have also provided the action helper support for
other views. The logic for no content helper has been moved in
abstract_renderer.js so that it can be accessed by all views. This was
done mainly to give the action helper to the gantt view.

closes odoo/odoo#53902

Task: 2284779
Related: odoo/enterprise#11563
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
2020-08-14 13:12:07 +00:00
Bruno BoiandAaron Bohy 26633ea8bb [IMP] hr: add a standalone version of the avatar employee widget
This will be useful for special views like gantt, grid…

A StandaloneM2OAvatarEmployee widget will be available and would allow to
instantiate a Many2OneAvatarEmployee widget anywhere.

Usage:
  const widget = new StandaloneM2OAvatarEmployee(<parent>, <value>);
  widget.appendTo(<Node>);

Where:
  <parent> the widget parent, if it is given
  <value> {number|[number, char]} either the employee id or an array representing the employee: [id, display_name]. If only the id is passed, the widget will fetch the display_name through a name_get rpc.
  <Node> any DOM Node object you want the widget to be appended to.

Examples:
  const w1 = new StandaloneM2OAvatarEmployee(null, 3);
  const w2 = new StandaloneM2OAvatarEmployee(null, [1, 'Mitchell Admin']);
  w1.appendTo(document.body);
  w2.appendTo(document.body);

closes odoo/odoo#54230

Taskid: 2272544
Taskid: 2272582
Related: odoo/enterprise#11412
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Co-authored-by: Aaron Bohy (aab) <aab@odoo.com>
2020-08-17 08:30:52 +00:00
Michael Mattiello (mcm) 5750adea3a [IMP] doc: add limit parameter to map view
This commit adds some doc for the new `limit` parameter of map view.

Task id: 2150548

closes odoo/odoo#55856

Related: odoo/enterprise#10882
Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
2020-08-17 06:54:08 +00:00
Harpritsinh SisodiyaandMohammed Shekha 88608c605f [IMP] web: kanban: archive last column records
Before this commit, the action helper (if any) was not displayed when
archiving all records of the last non empty column of a kanban view
(making empty that view).

With the present commit, the action helper is now correctly displayed in
that situation.

Task ID: 2247788

closes odoo/odoo#50557

Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
2020-08-17 13:21:16 +00:00
wan b35ec70109 [IMP] account: add default cash difference account
Task 2300900

Easier onboarding.
Because we don't have the correct prefix to use, we set a default '999'
code prefix.

closes odoo/odoo#55996

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-17 14:03:22 +00:00
Odoo's Mergebot 3f43ce07ff [FW][MERGE] (website_)event(_*): improve customer flow
PURPOSE

Provide some fixes after internal test deployment of event online features.
Notably: user registration flow, clean various access rules, improve copy
writing and typography in various templates.

See sub commits for more details.

UPDATE

  * event.access_event_tag
  * website_event.access_event_type_public
  * website_event.index_topbar
  * website_event.layout
  * website_event_track.track_view
  * website_event_questions.registration_attendee_details_questions
  * website_event_meet.community_main
  * website_event_meet.meeting_room_card
  * website_event_meet.community_aside
  * website_event_meet_quiz.community_leaderboard_small

New records
  * event.ir_rule_event_event_ticket_company
  * event.access_event_registration_all
  * website_event_online.ir_rule_event_tag_public
  * website_event_questions.ir_rule_event_question_published
  * website_event_questions.ir_rule_event_question_event_user
  * website_event_questions.ir_rule_event_question_answer_published
  * website_event_questions.ir_rule_event_question_answer_event_user
  * website_event_track.ir_rule_event_track_tag_public

Remove
  * event.access_event_registration_employee
  * event.access_event_registration_portal
  * website_event_sale.access_event_product_product_public
  * website_event_sale.access_event_product_template_public

LINKS

Task ID-2169118
Task ID-2314778
odoo/odoo#55967
odoo/enterprise#12438

closes odoo/odoo#56007

Forward-port-of: odoo/odoo#55967
Related: odoo/enterprise#12458
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-17 19:43:40 +02:00
Thibault Delavallée fbcf45fbfb [FIX] website_event_meet: improve typography
SPECIFICATIONS

Improve typography to take more place (h2 instead of h1), smaller phrases and
move some text to lessen noise on main community screen.

LINKS

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: 7041225a4b039bc81eb2b301b5fda09fbefc95f9
2020-08-17 16:29:52 +00:00
Thibault Delavallée 8f715d1e22 [FIX] website_event_track_exhibitor: improve typography and exhibitor sampling
SPECIFICATIONS

When user is redirected from an exhibitor card to register because event is
not started, rename button from Connect to Register to be accurater.

Also ensure in a given category exhibitors are randomized in order to give
visibility to everyone.

LINKS

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: d1f1a88e2117be7ee8a5ce0f59b690677afdcb66
2020-08-17 16:29:52 +00:00
Thibault Delavallée 040c439450 [IMP] test_event_full: improve full tour registration test
Adding some steps and checks, notably

  * add questions and fill them while registering;
  * in unit test launching tour, check content of registration
    as well as visitor;

LINKS

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: 83f5c49f8f6734ab2beb9347029cbb69d154d15d
2020-08-17 16:29:52 +00:00
David Beguin 5ee37a42f7 [FIX] website_event_track: display time difference instead of whole timezone name
SPECIFICATIONS

Display hours difference (GMT+2) instead of timezone name in track date
details. It is easier for users to understand timing difference with a number
compared to a timezone name.

LINKS

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: c4fad383885390471a44ab2888b6c7f290a39762
2020-08-17 16:29:51 +00:00
Thibault Delavallée 63d37afe09 [FIX] website_event_online: take visitor informations from registration time asc
When computing phone and email of a visitor based on its linked registrations
take first registration values as more important. Indeed we think first encoded
registrations have a better chance to be accurate than the last ones.

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: e983336b2e89101f6123c15848f59a8b8c111342
2020-08-17 16:29:51 +00:00
Thibault Delavallée 5853ad9ad7 [FIX] website_event_questions: remove "General questions" not-loved section
Remove "General questions" label in registration. According to our test user
base it is confusing.

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: 7e2b24bb8c2361896b069d138991b487e2f09bfe
2020-08-17 16:29:51 +00:00
Thibault Delavallée bb5fe8cb95 [FIX] website_event: fix event nav display when no menu is defined
When no menu is defined on an event a custom header is displayed instead of
menus. It holds a link to "All events", link allowing to filter on event
type and address, and a search box. This navigation bar is badly displayed
as it takes too much space, and search is on another line.

This commit fixes it by displaying everything in a clean one line on desktop
and several well ordered lines on mobile.

Event type link is now also displayed only if the relevant option has been
chosen on the Events main page. Otherwise it makes no sense as types are
not displayed by default.

LINKS

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: c343647506d775cbe09feba1e14b1205da5426a0
2020-08-17 16:29:50 +00:00
Thibault Delavallée d6bfd275bb [MOV] website_event: reorganize some templates
Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: 23230cf75563a39b41c4f09b252890db5167c31c
2020-08-17 16:29:50 +00:00
std-odoo 3dfb3c1e74 [FIX] website_event(_*): improve user flow and experience from frontend
PURPOSE

Provide some fixes after internal test deployment of event online features.
Notably: user registration flow, various fixes in templates.

Also add some unit tests to avoid regressions while working on event features.

LINKS

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: e66684b23eebaadc3df7b908427d3d7a83d4f0a0
2020-08-17 16:29:49 +00:00
Debauche Stéphane d3b18979bf [FIX] website_event: correctly support registration creation from frontend
Ensure values coming from frontend are correctly formatted.

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: 492ef200892b991ea780af829c792d4079d2d66e
2020-08-17 16:29:49 +00:00
David Beguin f4e23f78bd [FIX] event: set last tour bullet at bottom position for readability
Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: 15c4acf0511ad9e48666e46a2e8789d4c1090013
2020-08-17 16:29:49 +00:00
Jeremy Kersten 73b4e9b1b6 [IMP] portal,*: /my counter async
Before this commit, the time to compute all counters was making the rendering
of the portal page slow.

Now the count is done in rpc after the loading of the page.

Now you can decide which part you want to show on the portal, and only compute
for these one.

It is not because you have purchase installed for your internal process, that
it means that your supplier use your portal and it avoid the computation for
all end users.

We parallelize the counters in arbitrary 3 rpcs.

closes odoo/odoo#55999

Related: odoo/enterprise#12456
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-08-17 15:59:03 +00:00
Jeremy Kersten 5da1b96fbf [IMP] website: perf - reduce query for editor on first blank page
Before this commit, the template to generate 'New' panel generates .exists()
queries for each env.ref, now only one by module.
We could still improve it, deferring this rendering on click only.
For now, each time you are editor, we render it, even if you don't plan to
create anything.

+ use some xmlid_to_res_id instead of ref to avoid useless exists query.
Courtesy of @Feyensv for the tips
2020-08-17 15:59:03 +00:00
Pierre Collinet (pic) 68e2b0a878 [IMP] crm: remove default filter on crm.lead calendar stat button
This commit simply removes the default filter on the calendar.events when
clicking on the crm.lead stat button to access "Meetings".

The filtering was not handy because the user could not easily see when a slot
was available to schedule a new meeting.

The events that are related to that crm.lead are highlighted anyway (current
behavior), which should be sufficiently clear.

Task ID 2289295

closes odoo/odoo#55050

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-17 15:46:06 +00:00
Yenthe666 d249522d84 [IMP] calendar: show more meeting details
Before this commit there is no label shown at the top of the invite if
the user hasn't done anything with the invite or if he chose
'Tentative'. Now it always shows the informative label. This commit
also adds the description of a meeting subject as it can be
interesting and important in many cases.

closes odoo/odoo#43121

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-17 15:46:04 +00:00
Nicolas (vin) a60567a659 [IMP] account_accountant : update the account_accountant tour
The current accounting tour is broken, this change will fix it.

Task id #2289610

closes odoo/odoo#55850

Related: odoo/enterprise#12389
Related: odoo/upgrade#1643
Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2020-08-17 13:51:41 +00:00
Benjamin Frantzen (bfr) e2c6a37d32 [REF] l10n_mx_edi: Refactoring of l10n_mx_edi depending account_edi
closes odoo/odoo#52407

Task: 2247368
Related: odoo/enterprise#12226
Related: odoo/upgrade#1571
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-17 10:22:02 +00:00
Benjamin Frantzen (bfr) 013936261b [IMP] account_edi: added flows to manage web-services and payments.
Added edi.documents representing an electronic document for a move and an edi.format.
A format can be asynchronous if it needs to call a web-service to generate the document, it will then be generated by the CRON (otherwise it's generated in post).
The formats can support payments if needed (can be generated immediately or by the CRON).
Added support for errors and related views.
Setting defaults format on a journal can be done automatically (based on a hook).
Added tests : xml comparaison with diff and helpers to test a EDI import/export

--task: 2247368
2020-08-17 10:22:01 +00:00
Nikunj Ladava 34c4752eea [IMP] base_vat: remove simple check vat for co
- removed simple check vat for columbia
- removed document type field from partner
  - document type will be managed by latam type
-  updated city name for colombia
- added data for for latam identification type
- Added depdencies
  - base_address_city
  - account_debit_note
  - l10n_latam_base

task- 2190843

closes odoo/odoo#53040

Related: odoo/upgrade#1589
Related: odoo/enterprise#9567
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-17 14:11:07 +00:00
Joseph Caburnay 9cf8da90d5 [FIX] pos_restaurant: should show product screen after tip screen
If floor screen (iface_floorplan) is not active in the pos.config,
product screen should follow the tip screen and not an error.

closes odoo/odoo#55998

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-08-17 14:08:29 +00:00
Joseph Caburnay 4bd9ced6bf [IMP] point_of_sale,pos_*: new receipt screen
Aside from new look, we also move the email option from payment
screen to receipt screen. This allows emailing the receipt to a
customer that is not in the contact list.

We also removed invoicing in the receipt screen during failed invoicing
from payment screen as it is removed in here: bc48e0033e

closes odoo/odoo#55868

Related: odoo/enterprise#12395
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-08-17 10:49:05 +00:00
Joseph Caburnay 9f835a30df [REF] point_of_sale: simplify media print
The old implementation manually sets 'display' to 'none' to the elements
we don't want to see in the print. This is tedious because we need
to identify every element to be hidden when in fact we know the only
element that we want to print -- the receipt.

So in this commit, we set the 'visibility' of all elements to 'hidden'
and only the element tree of the receipt is set to visible.
2020-08-17 10:41:15 +00:00
Katherine Zaoral b1fb1e351a [FIX] l10n_ar: partner name in invoice report
Show partner commercial name and contact name in the inovice report
instead of just the partner contact name. For the example of

   Adhoc (Commercial Partner)
    - Katherine Zaoral (contact)

The invoice report was showing: Katherine Zaoral (partner name).
Now will show: Adhoc (the commercial partner name)

closes odoo/odoo#55202

closes odoo/odoo#54193

Related: odoo/enterprise#11717
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-17 14:09:18 +00:00
Katherine Zaoral 1d9196f776 [IMP] l10n_ar: invoice report header better fit
Change padding right in the header of the report to ensure that the data
to show take advantage of the most space possible without overlapping
the header data with the report content.

closes odoo/odoo#55212

Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-17 14:09:18 +00:00
Katherine Zaoral a0653089fe [REF] l10n_cl: Add custom report
Port foward from 13.0 branch . Also adapt _get_name_invoice_report()
method to match the new method in account.
2020-08-17 14:09:18 +00:00
Katherine Zaoral 1931a22835 [IMP] l10n_ar: Argentinean invoice report
Port foward from 13.0 branch. Also update the _get_name_invoice_report()
method to match the one in account module.

Also update the name of payment field that has been change in master version

* o.invoice_payment_ref is now o.payment_reference
2020-08-17 14:09:18 +00:00
Katherine Zaoral 1c5ca6a16d [IMP] l10n_latam_invoice_document: custom reports
port foward from 13.0 branch, also remove the logic of _get_name_invoice_report()
method already added in account module and remove the not needed latam
report templates.
2020-08-17 14:09:18 +00:00
Katherine Zaoral f6935ef81a [IMP] account: unify invoice report w/o payments
* merge report_invoice_document and report_invoice_document_with_payments templates
* define new generic method _get_name_invoice_report that let us to
  print a different report, this method can be inherited by each localization
  to set their custom report
* change report templates to use the new method.
2020-08-17 14:09:18 +00:00
Adrien Horgnies dc4f6ad04f [IMP] payment_stripe: support webhooks
Allow configuring a webhook in Stripe to send s2s notifications to Odoo
when a Checkout payment is completed. Note that SetupIntent and
PaymentIntent events are not listened to, since they are handled 'live'
with the customer actively present; the main use case for Stripe
webhooks is a Checkout session that gets interrupted before the customer
is redirected to Odoo (e.g. network loss, browser crash, closing the
tab, etc.)

The webhook should be configured to send its events to
<base_url>/payment/stripe/webhook and should only subscribe to
checkout.session.completed events to avoid spamming the Odoo server with
useless notifications.

closes odoo/odoo#52754

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-08-17 14:16:51 +00:00
qsm-odoo 7eee8f5cf5 [FIX] website: remove options linked to inner cols of form snippet
Since [1], a new option targeting cols has been introduced. It should
not have targeted the inner cols of the form snippet (the same as the
resize and color options are disabled on those).

[1]: https://github.com/odoo/odoo/commit/a2ed3bda2ecddd8dcd890240576d0d6908148f63

closes odoo/odoo#55985

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-08-17 13:06:54 +00:00