Commit Graph
126133 Commits
Author SHA1 Message Date
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
Christophe Simonis 4c2bdafe69 [MERGE] forward port branch saas-15 up to e7ccf38c48 2018-08-08 18:42:27 +02:00
Christophe Simonis e7ccf38c48 [MERGE] forward port branch saas-14 up to 42f87c73fd 2018-08-08 17:58:05 +02:00
Ankit Joshi 23c0c79128 [TEST] purchase_stock: Add reordering rule test case
- Receive products in 2 steps
- The product has a reordering rule
- On the PO generated, the source document should be the name of the reordering rule

Task-1838639
2018-08-08 17:39:02 +02:00
Pierre Masereel b3d30969a4 [IMP] stock: do not use rule name in origin
We don't want to use the name of the rule that created a move anymore,
so we propagate the origin of previous move if it has any and, use the
picking name of the previous move if doesn't hav any origin.

This behaviour make more sense as it will alway keep the origin of the
document that trigger the creation of a move.

TASK-1838639
2018-08-08 17:39:02 +02:00
Yannick Tivisse 64f6e50d0c [FIX] web: Reset correctly the selection on reference fields
Purpose
=======

If the model on a reference fields is not modified from the interface
by the user but by the server, the selection is not correctly
recomputed on the interface.

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

By calling super first on the '_reset' method, the new model
is taken into account when resetting the selection.
2018-08-08 17:35:34 +02:00
Pierre Paridans 91b62235f8 [IMP] base: Allow to select a record by its name on a server action line
Purpose
=======

When you update a record on a server action, you can modify a field
value (like the partner id). It's boring to be forced to specify
the id on the server action line. It would be easier to search on the
record name.

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

A a server action line type 'Reference'. It allows to select the partner
name (Agrolait) instead of being forced to specify its id (3493).
2018-08-08 17:35:34 +02:00
Pierre Paridans 7309981426 [IMP] mail: Add 'Next Activity' in server action type
Purpose
=======

As a server action could add followers on a record, here the goal
is to be able to add a next activity on a record.

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

Based on the configured trigger, we can add a next activity on a record
by specifying :
- The activity type
- A summary
- A note
- A due date in x days/weeks/months
- A responsible
2018-08-08 17:35:34 +02:00
Pierre Paridans e4381d9f1b [IMP] base_automation: Reorganize server action form view 2018-08-08 17:35:34 +02:00
jem-odoo 001ab92bd3 [FIX] sale_timesheet: use datetime and not string 2018-08-08 17:27:02 +02:00
Christophe Simonis 42f87c73fd [MERGE] forward port branch 10.0 up to 6ded4d9ce8 2018-08-08 17:26:04 +02:00
Thibault Delavallée db8c5e6c16 [MERGE][IMP] hr_holidays: improve and fix views
According to tasks purpose: clean leave view

See sub commits for more details.

This commit is linked to task ID 1871812 and closes PR #26180.
2018-08-08 16:33:02 +02:00
Thibault Delavallée a072f13688 [IMP] hr_holidays: fix display of duration in allocation form view
Purpose: better display duration. Label for hours / days is not very user
friendly when displayed left compared to the value. In this commit we
move the unit display right of the value and correctly display choices
related to the leave request date options.

This commit is linked to task ID 1871812 and PR #26180.
2018-08-08 16:28:56 +02:00
Thibault Delavallée 5ee535f297 [IMP] hr_holidays: improve leave type form view
Purpose: according to tasks's specifications

 * place elements in order it is not changing according what you select
 * https://drive.google.com/a/odoo.com/file/d/18gat1lw8mo9NTqU3mDuXqvuZXlMRzASX/view?usp=drivesdk
 * https://drive.google.com/a/odoo.com/file/d/1fLKpnW6RcaQetYJ0Ep7vZ7YHr_pW8-x_/view?usp=drivesdk

This commit is linked to task ID 1871812 and PR #26180.
2018-08-08 16:28:52 +02:00
Thibault Delavallée 7e7ea0aa82 [IMP] hr_holidays: limit configuration menu to hr officers
Purpose: an employee shouldn't see the leave type menu in configuration
(access right)

This commit is linked to task ID 1871812 and PR #26180.
2018-08-08 16:28:48 +02:00
Thibault Delavallée 9af6e9070a [IMP] hr_holidays: improve application menus
Purpose: new menu organization

 * Dashboard (only for officer and manager like currently)
 * New Request (= leave requetss in calendar view)
 * My Leaves
 * Leaves Summary
 * Leaves Requests (in list view)
 * Allocation Requests
 * Managers (current menu is ok)
 * Reporting (current menu is ok)
 * Configuration (ok)

This commit is linked to task ID 1871812 and PR #26180.
2018-08-08 16:28:40 +02:00
Thibault Delavallée 48210c76db [IMP] hr_holidays: improve leave request form display of duration
Purpose: better display duration. Label for hours / days is not very user
friendly when displayed left compared to the value. In this commit we
move the unit display right of the value and correctly display choices
related to the leave request date options.

Part of the spec: https://drive.google.com/file/d/1XQtw5ZiAebycXbeHmfbDYYwrFTRmkBNU/view

This commit is linked to task ID 1871812 and PR #26180.
2018-08-08 16:28:24 +02:00
Pedro M. Baeza b122526666 [FIX] pad_project: avoid rewriting project on task saving
Due to the side effect on related fields that are not readonly, the value is saved
in project although not changed. Putting it readonly avoids the problem.

Fixes #26156
Closes #26171
2018-08-08 15:42:13 +02:00
RomainLibert 8cebbe4c31 [MERGE] various: improve product form usability
* product_product, product_template :
    - Add `uom_name` field to display stat buttons with UoM's name.

* delivery:
    - Move field 'HS Code' from `General Information` to `Accounting`.

* hr_expense:
    - Make checkbox `Can be Expensed` visible for all products.

* mrp:
    - Stat button update, we now count the uom quantity of product we have in our MOs
      limited to the last 365 days. Before that we were counting all the MOs.

    To achive this,
        - Add a stored compute field `product_uom_qty` on `mrp.production`.
        - Stat button now uses `action_view_mos`
        - The field was called `mo_count`, renaming it to `mrp_product_qty` as its
          function changed.

* point_of_sale:
    - Add a new tab (`Point of Sale`) and moved the `Point of Sale` section
      previously located in `Sales` to this newly created tab.

* product_email_template:
    - Renamed header 'Email' to 'Automatic Email at Invoice'.

* purchase:
    - Improved tooltip of field 'property_account_creditor_price_difference'.
    - Set `product_uom` to `uom.product_uom_hour` instead of
      `uom.product_uom_unit` in demo data.
    - Add a stored compute field `product_uom_qty` on `purchase.order.line`.

* report_intrastat:
    - Move field `Intrastat` from `General Information` to `Accounting`.
    - For product template's form view, inherit from
      `product.product_template_form_view` instead of 'stock.view_template_property_form'.

* sale:
    - Move `expense_policy` from `Purchase` to `Sales`.

* stock:
    - Add a new section in `Inventory` called `Logistics`, and put fields
    - `Weight`, `Volume` and `Responsible` in it.
    - `incoming_qty` is now only visible in debug mode.

* website_sale:
    - Add a new tab 'eCommerce' and move 'eCommerce' section from 'Sales' tab to this newly created tab.
    - Rename 'eCommerce Categories' to 'Categories'.

Task: #51125
Closes: #23868
2018-08-08 14:51:15 +02:00
Deep Patel af1a935604 [IMP] web: Added help option in stat buttons. 2018-08-08 14:51:14 +02:00
Kirti Choudhary 9108a271bc [IMP] purchase: correct demo data
A service type product should be counted in hours instead of units
2018-08-08 14:51:13 +02:00
Kirti Choudhary 227dbaa037 [IMP] mrp,stock: use custom action for product variant
Before this commit we used the same view everywhere, now each module has
its own view.
2018-08-08 14:51:13 +02:00
Kirti Choudhary 815154df2e [IMP] various: clean product search views
Lots of modules are adding their search view for products
this commit tries to clean them in order to have something clearer
2018-08-08 14:51:12 +02:00
Kirti Choudhary 5118d248cc [IMP] various: use uom in stat buttons
In purchase we add a stat button that counts the number of purchase
orders linked to the product.
In this commit we change this count to count the quantity of products
linked to a purchase order.

We basically do the same thing with the stat button of sale (sale
orders) and mrp (manufacturing orders).
2018-08-08 14:51:12 +02:00
Kirti Choudhary c1f7987f49 [IMP] various: improve product form usability 2018-08-08 14:51:11 +02:00
Nicolas Martinelli d32a5eddc8 [FIX] point_of_sale: wrong behavior Price Control
This is not expected since it leads to an inconsistent result: the user
and the access rights do not match. Better add a PIN to the manager.

This reverts commit bb8bb3cbfe.
2018-08-08 14:30:07 +02:00
Nicolas Martinelli 6ded4d9ce8 [FIX] payment_stripe: disable button
- Create an order from the eCommerce
- Choose to pay with Stripe
- Enter the credit card info, validate

There is a short window of time (before the reload of the page) where
the user can click on 'Pay Now' again.

This is because the HTML is completely replaced, including the button.
We restore it when necessary.

opw-1866332
2018-08-08 14:18:17 +02:00
Martin Trigaux c119ea40bb [FIX] point_of_sale: show the invoice button for paid orders
Introduced at e434690fe3
The button should be displayed when the order is paid to generate the invoice
Once the invoice is generated, the state is invoiced and a statbutton lead to
the generated invoice.

Remove the readonly attrs as it has no effect on a button
2018-08-08 14:13:46 +02:00