Commit Graph
127612 Commits
Author SHA1 Message Date
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
Thibault Delavallée 542899d1fe [IMP] account: add invoice_id in account invoice report
Purpose is to be able to have invoice_id information on accounting report.
It allows notably to filter reporting result by invoice. This will be
used notably to have reporting information about invoiced amount linked
to UTM-based sale order subset.

This commit is linked to task ID 1872198 and PR #26188.
2018-08-09 12:15:44 +02:00
Arnold Moyaux c3adeb8420 [FIX] stock: remove translation on location name
The complete name on stock location is computed base on the
location name. However the location name can be translate and then
the complete name is often half translated.

This commit remove the translation on location name.
2018-08-09 12:05:01 +02:00
sed-odoo d81e1b7341 [IMP] website_*: Improve menus and configuration
Purpose
=======

Clean menus structure in website frontend and backend, for an easier navigation.

Specification
=============

Website
-------

- Restructure menu
- Enterprise: Keep google analytics view in a dedicated menu item when ecommerce is
  installed:
    - Sales Dashboard(ecommerce dashboard)
    - Analytics (google analytics)
- Community: Keep both sales orders and google analytic dashboard on the same
  dashboard view
- Restore google analytics api option in website settings when ecommerce
  is installed

E-Commerce
----------

- Website > orders > orders: add default filter "from website" and remove it in
  the action. That way if you create an order manually there is still a way
  to find it from the menu (the salesteam is different)
- Default filter for abandoned cart menu
- Improve setting text and tooltip. It's not obvious that recovery emails must
  be sent manually. Replace with:
    - Title: Abandoned Carts
    - Subtitle: Send a recovery email when a cart is abandoned
    - Tooltip: Abandoned carts are all carts for which no transaction has
               been confirmed while the customer has filled in their address.
               You can find them in *Website > Orders > Abandoned Carts*.
               From there you can send a recovery email to stimulate the
               customers to resume their order.
    - Tooltip email template: This email template is suggested by default
                              when you send a recovery email.
    - Tooltip hours: Carts are flagged as abandoned after this delay.
    - Hour label: Cart is abandoned after .... hour(s).

Task ID: 1859170
2018-08-09 11:58:35 +02:00
Marco Calcagni ed19ad1568 [CLA] signature for As400it
Closes #26253
2018-08-09 11:38:24 +02:00
len-odoo f4ec8b95b7 [FIX] mail: only get one mail channel partner per user
When more than one mail.channel.partner have been linked to a given user, he may
be unable to open some discussion channel because of a traceback.
The issue is that we access a channel_partner field while the recordset is not a
singleton.
We limit the search to 1 to ensure that this recordset is a singleton.
2018-08-09 11:24:27 +02:00
Xavier Morel cb6ad25e2b [FIX] base_import: import options layout
Broke during bootstrap 4 migration.
2018-08-09 11:13:48 +02:00
Ankit Joshi de7277c6a9 [FIX] mrp: Print Unfloded print all columns.
Take care of the report type set on the html report.

Task id: 1857701.
2018-08-09 11:13:00 +02:00
Arnold Moyaux bb05e833f9 [IMP] mrp: Show the bom reference on BoM report.
Each line that contains a manufacturable product displays its
BoM (clickable with an html report). _get_bom_reference function
is used in order to add information about BoM in report (e.g plm
module add its version).

Task id: 1857701
2018-08-09 11:13:00 +02:00
Hetashree Chauhan 88bf279c46 [IMP] mrp: show product attachments in bom structure and cost report
Show all the documents related to products in the Bom Structure and costs report.
On click of the icon attachments, open all the documents/attachments related to product
and its template.

Task id : 1857701.
2018-08-09 11:13:00 +02:00
Christophe Simonis cdef8740ec [MERGE] forward port branch 11.0 up to 252bc396b4 2018-08-09 11:10:38 +02:00
Xavier Morel be96188f2f [IMP] base_import: date-parsing patterns
* expand auto-detected date and time patterns (e.g. %b, %I, ...)
* try to make date-pattern-detection clearer
* add a select2 dropdown for date patterns (with a bunch of
  preselected patterns) rather than just an input
* also try to improve other column-matching bits (e.g. less reliance
  on exceptions, attempts to avoid redundant work)
2018-08-09 10:58:52 +02:00
Sanjay Jamod c9e132ea43 [TEST] puchase: complete test case
- If ordered quantity is less than what supplier/vendor supplies then the price unit should be set to 0
- If vendor does not supply the ordered product then the unit price should still the same

TASK-34233
2018-08-09 10:01:15 +02:00
Sanjay Jamod dacab6945e [IMP] purchase: update unit price on quantity change
When the quantity of a purchase line id is changed, the unit price is
set to 0.0 if the PO partner has a seller line on the product and the
quantity choosen on the line cannot get a seller.

TASK-34233
2018-08-09 09:58:03 +02:00
Darshil Trivedi 1ca06f2758 [IMP] stock_landed_stock: Landed cost error message and change label
- Change label Pickings to  Transfers to be consistent with the stock
  module
- Improve landed cost error message when they cannot be applied

TASK-1819891
2018-08-09 09:33:00 +02:00
Darshil Trivedi 39db047514 [IMP] stock, stock_account: Inventory Adjustment dates
- Change "Force Accounting Date" label in "Accounting Date" on
  inventory adjustments.
- 'accounting_date' only visible in debug mode
- Improvement tooltip of accounting_date,date

TASK-1819891
2018-08-09 09:32:39 +02:00
Simon Lejeune 252bc396b4 [FIX] stock: button_validate: forced move lines
When a move line is not linked to a move, it'll be linked to the first
move of the same product at validation time. We slightly improve this
logic by linking it to the first non-completed move. To be completely
correct, we should split the move line if necessary and link it to all
needed moves, but at this time we don't  want to make the logic too
complex.

Use case: create a sale order with three sale order lines of the same
products, use the detailed operations view and add three move lines of
the same products, validate the picking. Before the patch, all move
lines were linked to the first move and thus only the first sale order
line had delivered quantities.

Fixes #25488
opw-1861765
2018-08-09 08:38:17 +02:00
Christophe Matthieu 6448420c5d [IMP] bus: re-factoring of bus.bus (Longpolling and CrossTab)
The purpose of this change is to make the code clearer and testable.

In this change, the 'tab_manager' static object was merged with the bus
cross tab.

Cleaning was done to clearly define private and public functions as well
as handlers. The methods are documented and the constants are now defined
on the class. The bus use the service behavior with 'trigger_up'.

'bus.CrossTab' who extend 'bus.Longpolling' are instantiated by the
bus service.

The class is always instantiated with a parent, or root in the case of the website
(im_livechat), to use the ajax and localstorage services. So the behavior, perhaps
logger or redefined by the parents.
2018-08-09 02:31:59 +02:00
Christophe Matthieu 791c70b329 [FIX] web: in the test the mocked services use the tests features
Must move the service construction to intercept the request with the
test parameters
2018-08-09 02:31:59 +02:00
Christophe Matthieu a8e4e625f4 [IMP] web: remove useless service name
We use the registry keys as name for the services.
2018-08-09 02:31:59 +02:00
Christophe Matthieu cf4c4a11b7 [IMP] web: the service mixins _rpc method add the abort method
This change is usefull to convert the bus.bus into a sweet bus and cross tab bus service.
Actually, if we use the _rpc mixins in the bus, the long polling can't be abort, and
raise an exception.
2018-08-09 02:31:59 +02:00
Christophe Matthieu 693c771111 [IMP] web: abord the poll when destroy to avoid useless call
If the service bus are called and destroyed the rpc can be returned after, to
avoid a useless call to the database and unexpected behavior, we abort the
connection.
2018-08-09 02:31:59 +02:00
Jigar A d92f17cebe [FIX] signup: allow non-admin to invite portal users 2018-08-08 23:44:40 +02:00
Christophe Simonis 325399ab44 [FIX] {sale_,}stock: revert 0ab71f1247
Esentially forward-porting a backport is not a good idea...
2018-08-08 19:38:19 +02:00