Commit Graph
122402 Commits
Author SHA1 Message Date
Xavier Morel 4d7aa97da3 [FIX] core: fixup of convert cleanup
_tag_delete was not properly converted when the _tag_ calling
convention was modified in 4d581e26c2,
so <delete> tags would all blow up if encountered.

closes odoo/odoo#29149
2018-11-29 13:46:14 +00:00
Hetashree Chauhan 9c793253d7 [IMP] purchase: create&edit for Payment Terms
If a user is at the same time purchase user and billing manager
he can't create a new payment terms from the PO and he has to
navigates throws multiple menus instead of just using the create
and edit function.

taskId 1868555
Closes #28280
2018-11-29 13:14:26 +00:00
Adrian Torres 758382b3a7 [REM] pycompat: remove python 2 shims and helpers
Odoo no longer supports python 2, thus some of these helpers can and
have been replaced by python 3 built-ins, therefore there is no need for
them to stay defined.

The removed helpers are:
    * izip, imap and ifilter
    * unichr, text_type
    * implements_to_string, implements_iterator
    * string_types, integer_types
    * to_native

The python 2 shims have also been removed, and only the python 3 helpers
have been kept, because they can still be usable (i.e. accepting
both bytes and str for functions that can only accept one of the two)

[REM] pyjsparser: remove PY3 shims

They're no longer necessary as Odoo doesn't officially support python 2
anymore.

closes odoo/odoo#28519
2018-11-29 09:28:17 +00:00
Adrian Torres 52f5528cfb [REF] *: replace deprecated pycompat helpers for builtins
This commit replaces calls to pycompat helpers that were intended for
python 2 <-> python 3 interoperability for python 3 builtins, as python
2 is no longer officially supported by Odoo.

This includes:
    * calls to imap/izip/ifilter replaced by map/zip/filter
    * uses of text_type replaced by str
    * uses of unichr replaced by chr
    * calls to implements_to_string, implements_iterator removed
    * string_types and integer_types replaced by str, int respectively
    * calls to to_native replaced by calls to to_text

This is done in preparation to the removal of these deprecated helpers
in the following commit.
2018-11-29 09:28:17 +00:00
Adrian Torres e5c864a596 [REM] test_pylint: remove PY2/PY3 restrictions
Since Odoo no longer officially supports python 2, some of the
restrictions previously imposed by test_pylint are no longer necessary,
either because the usage of some builtin functions is legal (zip, map,
filter) or because the concerned function/module would already raise a
relevant error under python 3.
2018-11-29 09:24:26 +00:00
Mitali Patel d6abf593d7 [IMP] stock: displaying improvements
On some models, like picking, package and move, the weight was hardcoded
in 'kg', we instead use the value in the ir.config.parameter.

We also changed some field labels to give them more meaning.

Related Task ID: #1895297

closes odoo/odoo#27944
2018-11-29 08:46:13 +00:00
mgh-odoo 52f13c5f6d [IMP] purchase: PO status changed to more suitable
purpose of this commit is to change invoiced status
    "No Bill to Receive" to "Fully Billed"

Task: 1857963
Closes: #25804
2018-11-20 10:03:53 +00:00
Géry Debongnie 6eb217ef79 [FIX] web: properly cleanup after notification tests
The NotificationService has a side effect: it adds a div inside
document.body. We could implement a cleanup mechanism for services, but this
seems a little overkill since services are not supposed to be destroyed anyway.

closes odoo/odoo#29099
2018-11-28 13:38:21 +00:00
Géry Debongnie 0e40d843d5 [DOC] doc: add warning in JS test documentation
This commit adds a warning for common causes of mistakes, while running
the JS test suite.  It is possible to lose a lot of time trying to make the
tests pass if one does not notice that the browser window is not zoomed at 100%.

Maybe this warning will help someone in the future...

closes odoo/odoo#29021
2018-11-28 12:47:55 +00:00
Robot Odoo 7f1f7794fb [MERGE] website(_*): reorganize the JS
Reorganize the javascript to use conventional website widgets, rpc calls, classes, ... This will allow to better improve, fix and extend the existing behaviors. This is also a first step towards automatically testing website features more correctly.

This work was started with  https://github.com/odoo/odoo/pull/27719

closes odoo/odoo#28404
2018-11-28 14:41:26 +01:00
Robot Odoo e48cc56b3b [IMP] mrp: unbuild ui improvements
Add some tooltips and rename labels for lot and source_location fields.
More details in specific commits

Task link : https://www.odoo.com/web?#id=39843&action=327&model=project.task&view_type=form&menu_id=4720
Pad link : https://pad.odoo.com/p/r.c50cfff56ca538324f15214213c860d9

closes odoo/odoo#27017
2018-11-28 14:41:02 +01:00
Darshil Trivedi b2ec6bc7ad [IMP] mrp: BoM and product as readonly when a MO is set on UB.
Since commit 2bd10fa757 when the user specify a MO the
unbuild use the existing moves raw and moves finished in order to create the unbuild
moves. In this case the bom_id and the product_id is not needed since we don't generate
unbuild move from the BoM

This commit is related to task ID 39843.
2018-11-28 11:50:24 +00:00
Darshil Trivedi e25b9c9ffa [IMP] mrp: unbuild tooltips and fields label rename
The purpose is to help the user if he has difficulties
to know the purpose of a field. The field for tracking
was named lot but it is also used for serial number. That
could be confusing for the end user. Also rename source as
source location in order to be coherent with destination
location

This commit is related to task ID 39843.
2018-11-28 11:47:22 +00:00
qsm-odoo 5bb426c9de [FIX] website_slides: move JS in the correct file
Commit https://github.com/odoo/odoo/commit/6f5748d28854305bb33ffe54e5f94bab4a14828f
split and moved JS in different files... but in files which were in
different assets.
2018-11-28 10:28:53 +00:00
qsm-odoo 6d67ce5b7c [REF] website_*: review reorganization and enforce conventions
Review the JS reorganization made by direct parent commits and do more
to use our defined JS conventions. Also simplify JS which can be
obviously improved.
2018-11-28 10:28:53 +00:00
Andrea Ulliana c64c646d62 [REF] website_slides: reorganize javascript 2018-11-28 09:49:10 +00:00
Andrea Ulliana 08230abe3c [REF] website_sale_delivery: reorganize javascript 2018-11-28 09:49:10 +00:00
Andrea Ulliana eb5d6c212e [REF] website_mail_channel: reorganize javascript 2018-11-28 09:49:10 +00:00
Andrea Ulliana 1eab58bdbd [REF] website_links: reorganize javascript 2018-11-28 09:49:09 +00:00
Andrea Ulliana 2cdcdedef6 [REF] website_forum: reorganize javascript 2018-11-28 09:49:09 +00:00
Andrea Ulliana ed3c8d38ff [REF] website_event_track: reorganize javascript 2018-11-28 09:49:09 +00:00
Andrea Ulliana 0bd719caac [REF] website_crm_partner_assign: reorganize javascript 2018-11-28 09:49:09 +00:00
Andrea Ulliana af1244fb07 [REF] website_blog: reorganize javascript 2018-11-28 09:49:09 +00:00
jem-odoo 6e31e8d535 [IMP] sale_*: visible reinvoice policy rights
Impacted modules: sale, sale_timesheet, sale_expense

The purpose of this commit is to remove harcoded list of xml ids that
are not defined in the module 'sale'. This commit brings a new
implementation of the feature (hiding re-invoice policy on product
form view, depending of multiple user groups). The approach is more
modular and easy to extend than the previous one.
Therefore, this commit is completely technical and does not change any
functionnal behavior.

Task-1896095

closes odoo/odoo#28786
2018-11-27 14:46:26 +00:00
Raphael Collet 782885ab2f [FIX] base: translations lost after synchronization
Modifying a source term in an XML/HTML translated field can lose translations
if the same term is translated in several languages.

closes odoo/odoo#29082
2018-11-27 15:06:53 +00:00
Geoffroy Larue 5cfbead81e [REM] crm_project: remove module
Purpose : This module was allowing to quickly create tasks from
leads. It is now considered as useless, and an activity should be used
instead. We bring another module crm_helpdesk in enterprise to convert
leads to helpdesk tickets, which appears more useful.

Closes #28425 Task-1867574
2018-11-27 16:15:46 +00:00
David Arnold 30e4d89a62 [IMP] point_of_sale: allow to choose loaded categs
Before this commit, it was not possible to effectively limit the available
products when a company had several POS with different product offers.

This commit allows limiting the available product categories for a single POS.

Now, a company can serve different POS with different product offerings.

Anecdotal Note: This was especially annoying as the POS only shows 100 products.
If those happened to be the products not served by a signle POS, the only work
around was using the search bar (on a tablet?!?)

closes odoo/odoo#28393
2018-11-26 10:23:07 +00:00
Divyesh Patel 9215a40768 [IMP] mrp: attachments button on bom lines
There are two different icons on bom lines to distinct the ones having
attatchement links and the ones without. But those icons are not very
explicit and so we set the same icon for all lines and the number of
documents next to it.

TASK-ID: 1878242

closes odoo/odoo#26625
2018-11-27 08:35:05 +00:00
Haresh Shyara 240d191ba3 [IMP] stock: add company_id field on stock_move_line
There is no company_id field on stock.move.line and it is so impossible
to restrict easily the access rights on move lines (except by passing
through stock.move, but all stock move line don't always have a
stock.move)

To resolve this we've added a field company_id on stock.move.line, and a
constraint to force it having the same company_id than the one on stock
move.

Task ID : 1905232

closes odoo/odoo#28575
2018-11-28 05:39:06 +00:00
Darshil Trivedi aa4b686bac [IMP] product: Choose volume measure on products
Until now, the volume measure displayed on the product form was only in
m³. We now allow to choose between m³ and ft³.

So, we add volume selection field (m³/ft³) on general settings and it will
be display on product and product variants form view as configuration.

We also Remove tooltip from weight and volume field.

And display weight (kg or lb(s)) in product and product variants form view correctly,
because currently weight didn't display on product form view before save the product
but after this commit weight will be display.

This commit is related to task ID 1869002.

closes odoo/odoo#26542
2018-11-28 06:08:46 +00:00
Prakash Prajapati 96b103a8b1 [IMP] stock_account: Return product improvement
-Ticked by default(Update quantities on SO/PO)
   -Hidden in debug mode
   -Rename label "To Refund (update SO/PO) into Update quantities on SO/PO"

This commit is related to task ID 1880715 and closes PR #28091.
2018-11-19 11:11:30 +00:00
Robot Odoo 8272b914d5 [REF] mrp: state refactoring
The purpose of this PR is to allow more flexibility on Manufacturing.
It will allows:
- Pull and Push rules are no more directly trigger. It will require a confirmation from the user in order to launch them. (except when it comes from another rule)
- The user will be able to add extra components. Those components will follow the classic flow (trigger rules, will be present in workorders and produce wizard, ...)
- State will be computed and will not require explicit write
- Advanced filter

Task 1889384

closes odoo/odoo#28034
2018-11-28 06:06:17 +01:00
Robot Odoo 257bd0e874 [IMP] website_sale: add html field to customize category header
closes odoo/odoo#29085
2018-11-27 18:27:17 +01:00
Jeremy Kersten 432997b967 [IMP] website: support custom placeholder in empty-structure for editor
Before this commit, the placeholder was hardcoded:
'Drag building blocks here'

Now you can customize the placeholder using a data-editor-message attribute.
2018-11-27 16:13:01 +00:00
Fabien Pinckaers d06fcffe1d [IMP] website_sale: ability to set a cover (or other building block) in /shop/category/X
This commit closes #29045
2018-11-27 15:49:43 +00:00
Arnold Moyaux 1efc2e9ad9 [FIX] mrp: mrp user w/h inventory right 2018-11-27 11:58:02 +00:00
Arnold Moyaux 7206b385b5 [IMP] mrp: raw moves generation in onchange 2018-11-27 11:58:02 +00:00
Arnold Moyaux d76048c003 [IMP] mrp: miscalenous tab no more in debug mode 2018-11-27 11:57:44 +00:00
Arnold Moyaux 3bb3e6a530 [IMP] mrp: add a 'draft' state to MO
The purpose is to be able to plan manufacturing order
without propagate the components's documents directly.
Except when the manufacturing comes from a pull rule, it will
be confirmed directly.

In order to do it, it will just create the moves without confirm them.
They will be only confirmed after a 'Mark as Todo' click.
2018-11-27 11:57:43 +00:00
Arnold Moyaux c407d9afb9 [REF] mrp: compute state for production
Refactor production order state:
- Directly have an idea of linked workorders's state
- Computed in order to manage it in a single method
- Add tooltips for each state

Remove the None in availability selection field instead use a False

Also refactor the ready_to_produce field in order to only set as
assigned a production order that have the component for its first
workorder.
2018-11-27 11:56:56 +00:00
Romain Derie 52c3836780 [IMP] website_sale(_comparison): simplify xpath for old customize_show
Historically, the `website_sale.product_attributes` was a customize option.
That template became a normal view (removed customize_show attribute) with
bbd2d0e42
As it is now a normal view, there is no reason left to be an xpath view and we
can move itw code directly into the inherited template.

That way, we can simplify the `website_sale_comparison.product_attributes_body`
template that was doing a cross xpath (inheriting `website_sale.product` but
xpathing a DOM element from `website_sale.product_attributes` which was also
inheriting `website_sale.product`).

Note that cross xpath was not working well with multi website but was fixed
with 410c07283b

Still, we should avoid doing cross xpath when possible (originally it was not
possible since the view was a customize_show) as it is hard to grep DOM element
to find possible breaking xpath when doing changes on DOM.
This is the reason of this commit.

closes odoo/odoo#29044
2018-11-26 16:52:40 +00:00
Richard Mathot 30791b59b3 [IMP] hr: allow to search employees per company
closes odoo/odoo#29053
2018-11-27 08:10:53 +00:00
Robot Odoo 7614eaf725 [IMP] stock location cleanup
Here we are cleaning some stuff in locations

closes odoo/odoo#28449
2018-11-27 13:24:26 +01:00
Pierre Masereel 0d6bcd3918 [IMP] stock: scrap location internal or inventory
We restrict the case of locations that can be scrap locations to
locations of usage internal or inventory loss, depending on how you want
to manage your scrap. Other usage of location shouldn't be scrap
locations.

TASK-ID: 38469
2018-11-27 11:05:56 +00:00
Pierre Masereel e0cac32bdc [IMP] stock: orderpoint only on internal and view location
We put a domain on location_id on order point to only allow to create
orderpoint on location of type 'view' or 'internal'.

TASK-ID: 38469
2018-11-27 11:05:55 +00:00
Pierre Masereel 5e42f46b87 [IMP] stock: warehouse view
We add the stock and view location in debug mode for warehouse form to
be able to check easily the warehouse configuration.

TASK-ID: 38469
2018-11-27 11:05:55 +00:00
Pierre Masereel 9775d4cce8 [FIX] stock: Don't allow to archive main locations of warehouse
When a location is archived, we are checking that it is not used a
warehouse stock or view location to avoid bad configration leading to
inconsistencies on stock available quantities.

TASK-ID: 38469
2018-11-27 11:05:55 +00:00
Pierre Masereel f3ad1e2bcb [REF] stock: remove confusing demo data
As configuring multiple vendor locations is a quite advanced case, that
need too change configuration on partners, and eventually routing, we
remove those demo data that can lead to misunderstanding the way vendor
locations works.

We've also adapted a test that was using those demo data

TASK-ID: 38469
2018-11-27 10:47:36 +00:00
Pierre Masereel 2062ac6dec [REF] stock: remove unsused field partner_id
The field partner_id on locations is not used in odoo, and can create
some confusion in odoo with the customer/supplier location you can set
on your partner and/or the owner_id you can set on your moves ans
quants. So we removed it.

TASK-ID: 38469
2018-11-27 10:47:36 +00:00
Pierre Masereel feb336a203 [REF] stock: remove unused location usage
The stock location usage 'procurement' is not used anymore in stock, and
we remove it as it is not used either for the stock and valuation of
stock.

TASK-ID: 38469
2018-11-27 10:47:36 +00:00