Commit Graph
128505 Commits
Author SHA1 Message Date
Andrea Ullianaandqsm-odoo 7deceae18c [IMP] website, *: use "auto" widget for font customization
* theme_bootswatch, theme_default, website_theme_install

This commit makes use of the new 'auto' widget for font selection:
instead of enabling a template which will enable a scss file which sets
a font variable to a specific value... we directly allow to do a scss
custo which sets that value.

The code in charge of resetting font customizations on theme switching
is also moved and refactored here in website (instead of being specific
to each theme).

Part of https://github.com/odoo/odoo/pull/33442
task-1974659

Co-authored-by: qsm-odoo <qsm@odoo.com>
2019-07-30 09:59:28 +00:00
Andrea Ulliana 15bae2920c [IMP] website: introduce "auto" widget for theme modal
The theme customize dialog implements its own system of widgets. For
example: data-widget="color" and data-widget="input". Now, a new type of
widget data-widget="auto" exists. The goal is the same as the
data-widget="input" but with a predefined value that the user cannot
choose.

Also, as "data-value" was badly chosen during its implementation, it
is now renamed to "data-variable" and "data-value" is now used with the
new widget.

Example of the new widget "auto":

<opt data-widget="auto" data-variable="logo-height" data-value="3rem"
	string="Logo Height"/>

-> Allows to create a button forcing the logo height to 3rem.

Part of https://github.com/odoo/odoo/pull/33442
task-1974659
2019-07-30 09:59:22 +00:00
Xavier Morel e4b75149f7 [REM] doc: js apidoc
Breaks doc-building all the time, more advanced ES6 features are not
supported by the JS parsing library.

closes odoo/odoo#35288

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-07-30 09:30:52 +00:00
Xavier Morel 2ad764b5ea [FIX] doc: rST warning
rST wants an empty line after a list.
2019-07-30 09:30:05 +00:00
Xavier Morel 38b919251e [REM] doc: autodoc of removed api.* decorators
* @one was removed in 407f1f6cdb
* @v7 and @v8 were removed in c552fb7a61
* @multi was removed in a8767716cf
2019-07-30 09:29:28 +00:00
Robot Odoo 8e132f50be [MERGE] generic: set some fields as optional to improve and ease tree views usage
PURPOSE

Purpose of this merge is to set the new attribute OPTIONAL = SHOW/Hide on
tree views so the user can easily hide/show the optional fields on the tree view.

SPECIFICATIONS

contacts (not used as main view but generic to all modules):
* phone: show
* email: show
* city: hide
* state: hide
* country: hide
* next partner review: hide
* level: hide
* activation: hide
* tags: hide
* current membership status: hide

leads
* created on: show
* company name: hide
* contact name: show
* email: show
* phone: show
* city: show
* state: hide
* country: show
* score: hide
* assigned partner: show
* sales team: show
* salesperson: show
* company: show
* tags: hide
* priority: hide

product template
* internal reference: show
* barcode: hide (to move after internal ref)
* website: show
* company: hide
* sales price: show
* cost: show:
* product category: hide
* product type: hide
* quantity on hand: show
* forecast quantity: show (rename to Forecasted Quantity)
* unit of measure: show
* ebay status: show

product product
* internal reference: show
* barcode: hide (to move after internal ref)
* website: show
* company: hide
* public price: show (to rename in Sales price, to be consistent with product template form)
* cost: show:
* product category: hide
* product type: hide
* quantity on hand: show
* forecast quantity: show
* unit of measure: show

quotation
* quotation date: show
* website: show
* sales team: hide (before sales person)
* sales person: show
* company: show
* warehouse: hide
* company: show
* total: show
* status: show
* invoice status: hide
* tags: hide

sales order
* confirmation date: show
* website: show
* sales team: hide
* salesperson: show
* company: show
* warehouse: hide
* total: show
* invoice status: show
* tags: hide

helpdesk tickets
* customer: show
* assigned to: show
* ticket type: hide
* priority: hide
* tags: hide
* stage: show
* company: show

RQP/purchase orders
* vendor reference: hide
* order date: show
* company: show
* scheduled date: show
* Purchase rep: show
* source document: show
* untaxed: hide
* total: show
* status: show

Purchase agreement
* purchase rep: show
* company: show
* ordering date: show
* delivery date: hide
* deadline: show
* source document: show
* status: show

Incoming products
* date: hide (to rename into Creation date)
* source document: show
* status: show

Invoices & bills:
* invoice date: show
* origin: show
* payment reference: hide
* company: show
* sales team: hide
* salesperson: show
* due date: show
* tax excluded: show
* tax: hide
* total: show
* amount due: show
* payment status: hide

Journal entries
* partner: show
* reference: show
* company: show (after journal)

Journal items
* reference: show
* partner: show
* analytic account: show
* matching number: show
* due date: hide

Analytic items
* ref: hide
* tags: hide (after analytic account)
* financial account: hide
* journal item: hide
* partner: hide (before company)
* company: show
* product: hide
* quantity: hide
* unit of measure: hide
* amount: show

Transfers (stock.picking)
* from: show
* to: show
* partner: show
* responsible: hide
* operation type: hide
* company: show
* scheduled date: show
* effective date: hide
* source document: show
* back order of: hide
* status: show
* batch picking: show
* carrier: hide
* tracking ref: hide
* weight: hide
* weight for shipping: hide
* priority: hide

Inventory adjustment
* location: hide (to add after inventory date)
* company: show
* accounting date: hide

Inventory report (stock.quant)
* reserved: hide
* company: show

Lot/serial
* best before: hide (after creation date)
* removal date: hide
* end of life date: hide
* alert date: hide
* created on: show
* internal ref: show

MO
* deadline start: show
* planning start date: hide (rename to planned start date)
* product: show
* bill of material: hide
* source: show
* responsible: hide
* company: show
* quantity: show
* uom: show
* routing: show
* state: show
* material availability: show

BoM
* Reference: show
* variant: show
* version: show
* quantity: show
* unit of measure: show
* bom type: hide
* company: show
* routing: show

Repair order:
* product to repair: show
* product quantity: hide
* uom: hide
* customer: show
* delivery address: show
* warranty expiration: show
* location: hide
* company: show
* status: show

Quality alerts
* product: show
* product variant: hide
* lot: hide
* work center: show
* team: show
* responsible: show
* check: show
* tags: hide
* root cause: hide
* priority: hide
* description: hide
* date assigned: show
* vendor: hide

Quality control points (and reorder tree view according to the list)
* reference
* title: show
* product: show
* product variant: hide
* operation type: show
* operation: hide
* work order operation: hide
* control type: hide
* device: hide
* type: show
* team: show
* responsible: hide
* company: show

Quality checks (add the fields in the following order in the list view)
* product: show
* lot: show
* picking: hide (rename to Transfer)
* checked date: show
* checked by: show
* control point: hide
* team: show
* status: show

Project tasks
* project: show
* assigned to: show
* customer: hide
* tags: hide
* planned hour: show
* remaining hour: show
* deadline: hide
* stage: show
* progress: show
* company: show

LINKS

See task 1997453

closes odoo/odoo#33888

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-30 12:51:36 +02:00
Prakash Prajapati f8814f2a79 [IMP] sale(_*): set optional field to simplify the tree view
* = sale_crm, sale_stock, website_sale

Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

task-1997453
Closes: #33888
2019-07-30 08:53:05 +00:00
Prakash Prajapati 16db6d8fd0 [IMP] stock(_*): set optional field to simplify the tree view
* = stock_account, stock_picking_batch, stock_product_expiry, delivery

Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

Update string date field from incoming products tree view.

Update string virtual_available field from product tree view.

task-1997453
Closes #33888
2019-07-30 08:53:05 +00:00
Prakash Prajapati 317802d69e [IMP] analytic, account: set optional field to simplify the tree view
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

task-1997453
Closes: #33888
2019-07-30 08:53:05 +00:00
Prakash Prajapati cb9e69ce1a [IMP] crm(_*): set optional field to simplify the tree view
* = website_crm_partner_assign

Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

task-1997453
Closes: #33888
2019-07-30 08:53:05 +00:00
Prakash Prajapati e0389c0f15 [IMP] purchase(_requisition): set optional field to simplify the tree view
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

task-1997453
Closes #33888
2019-07-30 08:53:05 +00:00
Prakash Prajapati fd5e297707 [IMP] product: set optional field to simplify the tree view
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

task-1997453
Closes: #33888
2019-07-30 08:53:05 +00:00
Prakash Prajapati 5f6c698a75 [IMP] base: set optional field to simplify the tree view
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

task-1997453
Closes: #33888
2019-07-30 08:53:05 +00:00
Prakash Prajapati d5ffe89058 [IMP] repair: set optional field to simplify the tree view
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

task-1997453
Closes: #33888
2019-07-30 08:53:05 +00:00
Prakash Prajapati 67ad4632a1 [IMP] mrp: set optional field to simplify the tree view
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

Update string date_start_wo field from mrp.production model.

task-1997453
Closes: #33888
2019-07-30 08:53:05 +00:00
Prakash Prajapati 668193fd78 [IMP] project, hr_timesheet: set optional field to simplify the tree view
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.

task-1997453
Closes: #33888
2019-07-30 08:53:05 +00:00
Patrick Hoste 94c332b499 [FIX] website_profile: changes the display of the users search error message
The error message now display a message containing the term of
the search and it is also not always displayed as it was before

Task ID : 2036652

closes odoo/odoo#35052

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-22 07:38:23 +00:00
fja-odoo 0299a3fa24 [IMP] web_editor, *: add message when no document/image
* web

The document/image tab in "Select a media" Dialog were not displaying
any info when there was no document/images to load.
Now there is a message with the same image as the backend.
The "All attachments have been loaded" message is only displayed if
there is no more documents to display after using the button "Load More".
The "Load More" button is removed in the backend if there is no
documents/images.

Part of https://github.com/odoo/odoo/pull/33195
task-1945874

closes odoo/odoo#33195

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-07-30 09:04:18 +00:00
fja-odoo bb37077610 [IMP] web_editor, *: remove assets from documents
* web

"Document" tab in "Select a media" Dialog was displaying all the assets
files. Now all files containing "assets_" are excluded from the
"Document" tab. This is similar to the regenerateAssets function in
debug_manager that deletes assets based on this criteria.

For consistency the Assets Domain is now a utils.js function

Part of https://github.com/odoo/odoo/pull/33195
task-1945874
2019-07-30 09:03:51 +00:00
Jérémy HennecartandQuentin Mourrier d14093dcb7 [IMP] survey: Create pages without modal
This commit customizes the one2many field so that
every questions with the flag "is_page" are editable inline
directly in the tree view with no modal on the survey form.

Questions who don't have that flag are still created the same way
as it was before.

TaskID:1999109
PR: #35170

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>


Co-authored-by: Jérémy Hennecart <jeh@odoo.com>
Co-authored-by: Quentin Mourrier <qmo@odoo.com>
2019-07-30 08:32:54 +00:00
Robot Odoo 64bed2851e [MERGE] web: Various graph view improvements
This PR aims to bring several improvements to the graph view.

The main points are:
- custom tooltips in line mode to avoid problems with the Chart.js generic tooltips (those cannot
go outside of the canvas boundary and information is lost).
- tooltips when legend items hovered in case their texts were cut for reason of space.

See task https://www.odoo.com/web#id=1963306&action=333&active_id=133&model=project.task&view_type=form&menu_id=4720

closes odoo/odoo#33910

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-07-30 10:20:59 +02:00
Mathieu Duckerts-Antoine f781a7acbb [IMP] web: graph legend always on top 2019-07-30 06:53:12 +00:00
Mathieu Duckerts-Antoine c8f5cd71ed [IMP] web: fill area for unique line chart group 2019-07-30 06:53:12 +00:00
Vincent Schippefilt 97efe4b4e7 [REF] web: fix graph view code typos and formatting 2019-07-30 06:53:12 +00:00
Mathieu Duckerts-Antoine df279a5113 [IMP] web: add a small padding-top to the graph container 2019-07-30 06:53:12 +00:00
Mathieu Duckerts-Antoine 781d4da3f7 [IMP] web: make sure all non zero datasets are visible in graph views 2019-07-30 06:53:12 +00:00
Mathieu Duckerts-Antoine 4302f4dc1c [REF] web: review inline doc of graph renderer 2019-07-30 06:53:11 +00:00
Mathieu Duckerts-AntoineandThomas Werland 21944479a2 [IMP] web: tooltips on graph view legend items
Graph view legend items are shortened when ther are too long.
Here we add tooltips on hover to allow the user to see the
full text of items that were cut.

We also improve a bit the way items are shortened.

Co-Authored-By: Thomas Werland <twe@odoo.com>
2019-07-30 06:53:11 +00:00
Thomas Werland f9bcf4c079 [IMP] web: Chart.js update
Update of Chart.js library to the latest version.
The onLeave listener was not avalaible in the previous version of the library.
This has also removed a bug in the graph view where
some groups were sometimes not shown in the legend.
2019-07-30 06:53:11 +00:00
Mathieu Duckerts-AntoineandThomas Werland adeeb0149a [IMP] web: bar charts not stacked if not enough datasets
Co-Authored-By: Thomas Werland <twe@odoo.com>
2019-07-30 06:53:11 +00:00
Mathieu Duckerts-Antoine a9d013c581 [REF] web: remove old dropdown_menu.js file 2019-07-30 06:53:11 +00:00
Mathieu Duckerts-AntoineandThomas Werland 7811189c59 [IMP] web: custom tooltips in graph view
Co-Authored-By: Thomas Werland <twe@odoo.com>
2019-07-30 06:53:11 +00:00
Simon LejeuneandArnold Moyaux 8a32846858 [REF] sale_stock: delivered and procurement quantity
Share the logic for delivered and procurement quantities computation. In
some edge cases, the differences between them triggered an unexpected
behaviour such as showcased in the added tests.

closes odoo/odoo#35257

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>


Co-authored-by: Arnold Moyaux <arm@odoo.com>
2019-07-29 14:49:12 +00:00
mreficent a894bb5908 [IMP] purchase_requisition: remove dead code from v11
The commit https://github.com/odoo/odoo/commit/d3dc5048e40d1aef693336d10ce582d39ce17337 from v11 should be removed, as in v12 becomes dead code because the commit https://github.com/odoo/odoo/commit/93ae1b1a041b6a36521263ff87ac980e6102551a deleted the _get_exceptions_domain method.

closes odoo/odoo#35256

Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2019-07-22 12:37:16 +00:00
Jigar Vaghela f0455c7435 [REM] l10n_in_schedule6: Remove this module because of outdated
This module is not fully featured and also outdated so now we remove this module

closes odoo/odoo#35007

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-07-26 11:19:58 +00:00
William Henrotin 1fa1f4ae14 [FIX] stock: enforce test to be deterministic
test_putaway_6 creates 2 putaway rules on the same product category but to different location.
As the order on putaway rule is [sequence, product_id] and the two have the same sequence,
it can happens that the choosen rule is not always the same,

Furthermore, the test tried to show the hierarchy between two category matters in term
of putaway rule.

This commit create a child category of 'all' and set it on one of the rule.

closes odoo/odoo#35264

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-07-29 14:39:58 +00:00
Christophe Simonis 81f024b545 [FIX] point_of_sale: allow opening the pos interface
The `cash_control` constraint [1] is only relevant when the field
`cash_control` is modified. Do not check it when opening the pos UI.

[1] added by 733fb360d2
2019-07-29 15:59:40 +02:00
Christophe Simonis ac5c493c37 [FIX] base: remove usage of @api.multi
Oversight of previous forward-port.
2019-07-29 14:48:26 +02:00
Christophe Simonis d5e1fd16b4 [MERGE] forward port branch saas-12.4 up to cda4f3c308 2019-07-29 14:10:30 +02:00
Shreya Modi ae71f95371 [IMP] mass_mailing_sale: traceback due to invoice stat button
when opening the sale promotion in mass mail, it creates a traceback
due to invoice compute method as it does not have invoice id because
of changes in account.move.

task-2036203

closes odoo/odoo#35202

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-07-25 07:20:22 +00:00
Julien MougenotandLucas Perais ed18095127 [IMP] base: Configure document layout
The onboarding modal for setting up the few base fields of a company
has now been moved to a wizard
It is accessible from the general settings, but also in the onboarding
section of sale and account modules.

The following company settings are editable with that wizard:

- Set report **layout**:
The user can chose the overall look of the report. The current choices
are : *Standard* (default), *Background*, *Boxed* and *Clean*.

- Set company **logo**:
Changes the company logo.

- Set report **colors**:
The user can set the primary and secondary colors of the report through
a newly added widget allowing to pick a custom color.
When changing the **logo**, colors are automatically set to its most dominant
colors.
> A "Reset colors" button also triggers the color calculation.

- Set report **font**:
Changes the overall font of the report. Only Google Fonts are used
for enhanced compatibility.

- Company **tagline**, also called "header"
- **Footer**
- **Paper format**
- Report **preview**:
A mockup of a final report
Automatically updates when changing **layout**, **logo**, **colors** or **font**

Co-authored by: Julien Mougenot <jum@odoo.com>

closes odoo/odoo#33863

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>


Co-authored-by: Lucas Perais <lpe@odoo.com>
2019-07-29 08:29:26 +00:00
Julien Mougenot a8c93df9c8 [IMP] web: add noTransparency option for colorpicker dialog
Added a boolean option to toggle opacity settings on the colorpicker dialog widget.
When set to true, both the opacity slider and the opacity input are hidden in the
dialog. When not set or set to false, opacity settings remain unchanged.
2019-07-29 08:28:15 +00:00
Julien Mougenot edc60f7fb4 [REF] web,web_editor: moved ColorpickerDialog to web
The reason this widget was moved is that the next improvement
([IMP] base: Configure document layout) defines a new field (FieldColor)
which needs to call the colorpicker dialog inside of the base module.
This couldn't be done while the dialog was located in the wysiwyg assets.
2019-07-29 08:28:15 +00:00
RomainLibert db8d22621f [FIX] hr: Add the color field to public employee
The color field is necessary to be able to display some fields
(many2many_tags) and used in the kanban views

closes odoo/odoo#35216

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-07-26 11:45:48 +00:00
svs-odoo 5d5db35f87 [FIX] sale_timesheet_purchase: remove uninstall_hook
The commit f3999314af introduces a
declaration of non-existing `uninstall_hook` in the manifest, causing
error when trying to uninstall the sale_timesheet_purchase module.
This commit simply removes it.

Task #2039731

closes odoo/odoo#35106

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-07-26 11:51:02 +00:00
svs-odoo f26a6306b3 [IMP] stock,*: hide Advanced Scheduling setting
Before this commit, the stock's setting Advanced Scheduling was always
visible, even when it's empty. Now, it is invisible until sale_stock or
purchase_stock makes it visible (it's needed because they each add an
option into it).

Task #2039731
2019-07-26 11:51:02 +00:00
svs-odoo 088a1709f4 [FIX] stock_account,mrp_account: align Update Cost button
Task #2039731
2019-07-26 11:51:02 +00:00
svs-odoo 13e30d581a [IMP] stock_account: inventory valuation groupby product
In the Inventory Valuation report, values must be grouped by product_id.

Task #2039731
2019-07-26 11:51:02 +00:00
svs-odoo b4a435606c [IMP] stock: change position of picking type field
In the picking form view, places the picking type field before location
fields, thus user is prompt to set it before locations because the
onchange on the picking type erases the location fields.

Task #2039731
2019-07-26 11:50:56 +00:00
svs-odoo 0c26d65980 [FIX] stock_account: traceback when create quant
How to reproduce:
- Active multilocation in inventory setting;
- Go on product form view;
- Click on Update Quantity / On Hand button;
- Create a new quant.

With stock_account, we encounter a traceback when creating a new quant
in some case where the `location_id` isn't set by default, because it
tries to compute the value and it checks location to know if the quant
must be valueted or not.

Task #2039731
2019-07-26 11:46:34 +00:00