Commit Graph
126133 Commits
Author SHA1 Message Date
Martin Trigaux aae5b4a41e [FIX] point_of_sale: fixup 53233b41
Why is github green when the tests have not run yet?
2018-08-10 10:51:41 +02:00
Fabien Pinckaers 23b43a1515 [IMP] base: adding website enterprise modules 2018-08-10 10:20:15 +02:00
SEINLET Nicolas 53233b41a8 [FIX] point_of_sale: display only once a field
location_id and stock_location_id are both containing the same location.
Keep only one

Closes #26297
2018-08-10 10:16:50 +02:00
Prakash Prajapati c69a6c6509 [FIX] mrp: see full name of 'report' option in BoM 'Structure & Cost' report
Before this commit, when we opened the report "Structure & Cost" of a Bill of
Materials of a product without any variant, the dropdown option selection
'report' had the current selection name cut. For instance, the selection
"BoM Structure & Cost" was displayed as "BoM Structure".

This was due to each option having a width determined by the bootstrap
classname `col-md-4`, independently on the number of options that are
available.

There are either 2 or 3 options at the top of this report, depending on whether
the product of the BoM has variants or not. When there are 3 options, there is
not problem. However, with 2 options (i.e., without variants), each option
available horizontal space is reduced, so that the 'report' option is shrunk,
which cuts the text selection as a result.

This commit fixes this problem when there are 2 options (= "no variant"),
so that the 'report' option uses more horizontal space.

Task-ID 1864490
Closes #25643
2018-08-10 10:15:20 +02:00
Fabien Pinckaers 80879132c8 [FIX] base: fix Learn More on some chrome versions, using a link instead of button 2018-08-10 10:05:41 +02:00
Fabien Pinckaers 17f6e43bfa [FIX] website: fix button 'more info' on modules 2018-08-10 10:00:44 +02:00
Lucas Perais (lpe) da2140b726 [FIX] sale_timesheet: choose the project's company to determine cost
Companies:
B child of A

User:
Demo in B not in A
Admin in A

Create a product with Admin:
track service = timesheet on project
invoicing policy = delivered quantities

Create a SO with Demo and validate, a project is created
Now, make the demo user timzsheet on it

Before this commit, there was an access error on company,
that was because the the company that was choosen to determine the cost, was the one on the employee, which could be
in another company than the user and moreover than the project

After this commit, we take the company of the project

OPW 1871440
closes #26271
2018-08-10 09:45:06 +02:00
Lucas Perais (lpe) 21064c7de8 [FIX] hw_escpos: byte/string correction
OPW 1868196
2018-08-10 09:39:44 +02:00
Lucas Perais (lpe) abd2b2e2ca [FIX] account: reconcile through widget associate payment/invoice
Create an invoice, validate it

Create a payment from athe account.payment model (not the register payment wizard)

click on the smart button payment matching, and match the invoice with the payment
Reconcile

Before this commit, the invoice was not part of the invoice_ids field of the payment,
So, when printing the payment receipt or check, there was nothing on there

After this commit, we associate the invoice with the payment, and the receipt prints
what is expected

OPW 1871575

closes #26245
2018-08-10 09:35:26 +02:00
William Henrotin 80ceddfe8f [FIX] base: show Qweb views from reports
The commit 480184115d introduce a new 
report type (qweb-text). It uses qweb syntax and views but the button 
'Qweb view' is hidden in the report form. 
This commit displays the button for the new type.
2018-08-10 09:32:53 +02:00
len-odoo 47c7d123da [FIX] web_editor: remove related videos at the end of youtube embeds
If a user embeds a youtube video on his website, he has no option to remove the
suggestion of related videos at the end of playback.
Since there is no good reason to have it, we disable the related videos in all
cases.

opw 1868380
2018-08-10 09:30:41 +02:00
Lucas Perais (lpe) 215754a7db [FIX] payment: display error on payment acquirer return
Before this commit, when authorize (for example) returned a business error
the error wasn't displayed to th ecustomer

After this commit, it is.

OPW 1866408

closes #26279
2018-08-10 09:27:09 +02:00
Christophe Simonis 7717f082c0 [MERGE] forward port branch saas-11.3 up to af35aea6b0 2018-08-09 19:33:32 +02:00
Christophe Simonis af35aea6b0 [FIX] sale_stock: adapt new test to renamed xmlid 2018-08-09 18:56:26 +02:00
Christophe Simonis a98131d5bc [FIX] test_mail: bump query count
An extra query is made because of new group added to fields in 57ea939eda.
2018-08-09 18:52:46 +02:00
XavierDo d6a601fe3f [IMP] mail: do not subscribe inactive partners
We do not want inactive partners to be added as followers. Indeed this may
lead to unwanted notifications send as inactive partners are not easily
found in the various widgets. It also creates unnecessary data and
computation.

This commit has a small impact on performances as we choose to do it in
message_ subscribe method. Private _message_method is left untouched as
parameters given to this method are left to caller control.

This commit is linked to task ID 1838588.
2018-08-09 16:30:52 +02:00
Martin Trigaux 15b0e010a3 [FIX] web_settings_dashboard: don't update copyright every year
The end year is not important.
The point is that Odoo s.a. is owner of the copyright since 2004
2018-08-09 16:22:41 +02:00
Yannick Tivisse 97af4a1575 [FIX] base: Re-display the onboarding bar on view loading
Purpose
=======

Currently the onboarding bar is not shown due to the BS4 migration
2018-08-09 16:19:30 +02:00
Yannick Tivisse bdf413055a [FIX] mail: Re-display the next activities on chatter loading
Purpose
=======

Currently the next activities are not shown due to the BS4 migration
2018-08-09 16:19:30 +02:00
Goffin Simon bf282f2b7b [FIX] stock_landed_costs: List view in multi-company
In multi-company, it was not possible to distinguish the records
of the current company of the user.

opw:1870561
2018-08-09 16:01:31 +02:00
stefanorigano 961ccd69c8 [REF] *: improve app icons, add SVG version
- Uniform colors and design
- Replace duplicated icons (eg. mrp_maintenance / maintenance)
- Improve misleading icons (eg. sale_subscription)
- Add icons for new apps

Add SVG versions to lossless future editing and print/marketing use.

See https://github.com/odoo/odoo/commit/1d9208c4fa92d00090b37b8e5dbed48087a7f52f

task-54681
2018-08-09 15:51:42 +02:00
stefanorigano f7ffbcd1c8 [REF] *: improve app icons, add SVG version
- Uniform colors and design
- Replace duplicated icons (eg. mrp_maintenance / maintenance)
- Improve misleading icons (eg. sale_subscription)
- Add icons for new apps

Add SVG versions to lossless future editing and print/marketing use.

See https://github.com/odoo/odoo/commit/1d9208c4fa92d00090b37b8e5dbed48087a7f52f

task-54681
2018-08-09 15:51:42 +02:00
sri-odoo 1934780fc3 [IMP] doc: reduce imgs footprint
Reduce footprint using a combination of resize/imageoptim saving ~10Mb
2018-08-09 15:50:31 +02:00
stefanorigano 97fc6c0b5a [IMP] base: adapt app form view design to new icons
See 1d9208c4fa
2018-08-09 15:50:22 +02:00
stefanorigano 1d9208c4fa [REF] *: improve app icons, add SVG version
- Uniform colors and design
- Replace duplicated icons (eg. sale / sale_management)
- Improve misleading icons (eg. POS)
- Add icons for new apps

Add SVG versions to lossless future editing and print/marketing use.

task-54681
2018-08-09 15:46:06 +02:00
Aurélien Warnon f6bb29c0c7 [FIX] website_product_comparison: Re-display product comparison
Purpose
=======

Since the migration to bootstrap 4, the variants are not displayed
anymore on the product comparison view.
2018-08-09 15:21:41 +02:00
Nadal Francisco Garcia 4f4fdb2f35 [FIX] stock: fix unreserve
In the original commit 19116cc878, `action_assign` was called
on all `move_ids`. However, after API conversion, moves are filtered.

Closes #25886
opw-1868834
2018-08-09 15:19:15 +02:00
Nadal Francisco Garcia fac1d2dd2a [CLA] BT-nfrancisco added to Braintec 2018-08-09 15:19:15 +02:00
Christophe Simonis 9cb97a8c2d [MERGE] forward port branch saas-11.2 up to 499af66727 2018-08-09 15:06:31 +02:00
Adrian Torres a1bad2191c [IMP] pyjs: add date/datetime utilities
Introduce utilities to calculate the start / end of a period given a date or datetime object in the JS python interpreter.

This commit is the JS implementation of commit 960360afe4
2018-08-09 15:00:37 +02:00
Christophe Simonis 499af66727 [MERGE] forward port branch 11.0 up to a10ea93dbe 2018-08-09 14:50:55 +02:00
William Henrotin 3cebe88d8d [IMP] stock: report consitency
Some pdf reports are renamed to be identified as pdf reports (to
be distinguished with zpl ones). The old layout become similar with
the label one.

Task ID:1837175
2018-08-09 14:33:03 +02:00
William Henrotin 77d8d45d7f [IMP] stock_zebra: report samples
This commit brings some text reports to generate ZPL scripts.
labels from:
- products (template and product)
- lots
- transfers
- packages

The templates have been tested on a Zebra GK420d

Task ID: 1837175
2018-08-09 14:33:03 +02:00
William Henrotin 480184115d [ADD] base: report: qweb-text type
This commit adds a new ir.action.report type: qweb-text. It produces text files,
serves them with a text mimetype and these reports use the same rendering context
as the current other types (PDF and HTML).

This will be used in a following commit to produce ZPL scripts. Those scripts
are used for printing thermal label on Zebra printers.

task ID : 1837175
2018-08-09 14:33:03 +02:00
Goffin Simon a10ea93dbe [FIX] account: rounding problem with Payment Matching in multi-currency
Steps to reproduce:

- activate the multi-currency option in the Accounting App
- activate the EUR currency (USD being the base currency)
- create a EUR Bank Journal with an EUR account
- on 31/07 ==> rate = 1.1
- on 08/08 ==> rate = 1.2
- create a vendor bill for Asustek on 31/07 for 39794,40 EUR
- create a vendor bill for Asustek on 31/07 for 61668,00 EUR
- create a vendor bill for Asustek on 31/07 for 33487,70 EUR
- create a supplier payment for Asustek for 134950,1 EUR
- use the payment matching smart button
- match the 3 invoices you entered;

Bug:
Odoo says there is an open balance to write-off and prevents you from reconciling

Expected Behavior: the payment total amount in EUR matches the 3 vendor bills total
amount in EUR so I would expect Odoo to consider I have a perfect match between the
payment and the vendor bills and the difference in USD (base currency) should be
automatically reflected through an exchange difference entry.

if you follow the same operation with 3 invoices of 115EUR each and a payment of 345EUR,
it will work as expected.

opw:1872978
2018-08-09 13:43:38 +02:00
Thibault Delavallée 6184c85de0 [MERGER][ADD] mass_mailing{crm/sale}: better showcase UTM integration in mass mailing
Specifications

If CRM is installed
 * add 2 stat buttons to the mass mailing form;
 * XX Leads -> redirects to lead list view (should include both types: leads
   & opportunities), only visible if Leads are activated in CRM settings;
 * YY Opportunities -> redirects to opportunities list view (only
   opportunities);
 * those stats buttons are linked to UTM trackers used in the mass mailing
   itself: campaign, source and medium. Those can be configured notably using
   the website_link module;
 * display the stat buttons even if no data;
 * update demo data;

If sales installed
 * add 2 stat buttons to the mass mailing form;
 * XX Quotations -> redirects to quotation list view;
 * YY Invoiced -> redirects to invoice list view. Use the account invoice
   report to generate the invoiced amount;
 * those stats buttons are linked to UTM trackers used in the mass mailing
   itself: campaign, source and medium. Those can be configured notably using
   the website_link module;
 * display the stat buttons even if no data;
 * update demo data;

See sub commits for more details. This merge is linked to task ID 1872198 and
closes PR #26188.
2018-08-09 13:37:02 +02:00
Pierre Masereel e01620ce02 [IMP] stock: quant_package owner and company
When all quants in a package have the same owner and/or company, the
field owner and/or company on quant_package will have the same value as
the one on quants.

TASK-60709
2018-08-09 13:30:39 +02:00
Nirali Sapra 23415c2b52 [REF] uom: Change constraint message
When an uom is created with a rounding of 0.0, an error message
is triggered, we improved this message.

TASK-60709
2018-08-09 13:30:39 +02:00
Nirali Sapra d590410925 [REF] mrp: Change error message when a product is unbuilt
We generate a better message when a product is unbuilt and has
components tracked.

TASK-60709
2018-08-09 13:30:39 +02:00
Nirali Sapra b5254db321 [REF] purchase_requisition: change "Purchase tender" for "Call for tender".
We changed the name of purchase requisition type "Purchase tender" by
"Call for Tender"

TASK-60709.
2018-08-09 13:30:39 +02:00
Thibault Delavallée a18ff88b42 [ADD] mass_mailing_sale: add UTM statistics on mass mailing linked to sale orders
Purpose: better showcase the integration between email marketing and sale
application thanks to UTM links.

Specifications

 * add 2 stat buttons to the mass mailing form;
 * XX Quotations -> redirects to quotation list view;
 * YY Invoiced -> redirects to invoice list view. Use the account invoice
   report to generate the invoiced amount;
 * those stats buttons are linked to UTM trackers used in the mass mailing
   itself: campaign, source and medium. Those can be configured notably using
   the website_link module;
 * display the stat buttons even if no data;
 * update demo data;

This commit is linked to task ID 1872198 and PR #26188.
2018-08-09 13:30:28 +02:00
Thibault Delavallée f028ba56d1 [ADD] mass_mailing_crm: add UTM statistics on mass mailing linked to lead/opportunities
Purpose: better showcase the integration between email marketing and crm
application thanks to UTM links.

Specifications

 * add 2 stat buttons to the mass mailing form;
 * XX Leads -> redirects to lead list view (should include both types: leads
   & opportunities), only visible if Leads are activated in CRM settings;
 * YY Opportunities -> redirects to opportunities list view (only
   opportunities);
 * those stats buttons are linked to UTM trackers used in the mass mailing
   itself: campaign, source and medium. Those can be configured notably using
   the website_link module;
 * display the stat buttons even if no data;
 * update demo data;

This commit is linked to task ID 1872198 and PR #26188.
2018-08-09 13:30:28 +02:00
Pratima Gupta fca1875a69 [FIX] mail: no duplicated messages on (un)star document thread message
Before this commit, when we star or unstar a message from a document thread,
the message was duplicated in the document thread.

This commit fixes this issue by not adding already existing messages on
document threads.

Task-ID 1871428
2018-08-09 13:19:00 +02:00
len-odoo 908ddbfeb7 [FIX] account_asset: do not show deactivated assets in the report view
When canceling invoices, Odoo deactivates related assets.
However these assets are not filtered in the pivot view, screwing the report.

opw 1864252
2018-08-09 13:17:16 +02:00
William Henrotin d3df57bf90 [FIX] mrp: remove mrp.message
The commit cfbfaf38be283e68c5a923ff2aafd1293135c4f1 remove the views and 
menus related to mrp.message. This commit complete it by removing the 
model, all the related fields and the access rules
2018-08-09 13:12:18 +02:00
Nicolas Martinelli 1f42cf9f9c [FIX] sale, sale_timesheet: re-introduce default invoice policy
Related to f89d4201c7

Since the invoice policy is becoming more and more simple, it is
always nice to add as much logic as possible to make things even more
simple.

For the record, 5 fields are taken into account when it comes to
invoicing policy:
service_policy
service_type
service_tracking
invoice_policy
expense_policy

They are partially linked one with the other, and not all make sense for
a given product type...
2018-08-09 13:04:45 +02:00
Laurent Smet e0bc158655 [FIX] account: fix missing 'amount_type' field on testing data
Since https://github.com/odoo/odoo/commit/10b9d06689c55e5273d2fdff560403cac59278be,
the reconciliation widget tests failed because the code is using the 'amount_type' field on
'account_tax'. However, this field is not specified on testing data.
2018-08-09 12:28:02 +02:00
Thibault Delavallée 28433c0a3c [IMP] mass_mailing, crm, sale: improve demo data related to UTM
Purpose is to be able to have some basic demo data for crm and sales linked
to UTMs. Those will be used when introducing crm and sale bridge module with
mass mailing in order to display some documents linked by UTMs.

This commit is linked to task ID 1872198 and PR #26188.
2018-08-09 12:18:32 +02:00
Thibault Delavallée 5b0bcaef3e [IMP] mass_mailing: improve mass mailing view
Purpose is to prepare addition of UTM statistics in mass mailing view.

Specifications

 * add a hook on stat buttons to add some of them in sub modules;
 * add UTM information in debug mode to be able to see them and update
   them if necessary;

This commit is linked to task ID 1872198 and PR #26188.
2018-08-09 12:17:13 +02:00
Thibault Delavallée 98b6081ef1 [REF] mass_mailing: make tests independent from demo data
Purpose of this commit is to avoid having tests depending on demo data.
Especially those tests are recent, introduced at 967d228a44 and should
have been made independent before merge. File is renamed according to
guidelines.

This commit is linked to task ID 1872198 and PR #26188.
2018-08-09 12:16:23 +02:00