Commit Graph
111605 Commits
Author SHA1 Message Date
Sanjay Jamod 6416d44f4c [IMP] web : add caret to statusbar buttons dropdown in mobile view 2017-08-24 10:50:51 +02:00
Richard Mathot 594ff13f58 [IMP] base: log user id triggering module (un)installations
After a few tickets with clients asking "who installed this app?", we
will be able to answer with this.
2017-08-24 09:55:38 +02:00
oco-odoo d7f75040c6 [IMP] account: reintroducing the journal items.
Was task 31306. Was PR #15547
2017-08-23 15:58:49 +02:00
qsm-odoo 0fb82ab34e [FIX] web_editor, *: allow editor dialogs in simple HTML areas
* website_forum

Summernote is instantiated as a simple text editor for 'simple' HTML
backend fields and in website_forum. In those cases, the user was not
able to open editor dialogs anymore as their opening was now handled
by the RTE widget in web_editor since the recent website refactoring.
The goal was to use `this._rpc` in these dialogs (and this required the
dialogs to be attached to the widget parenting system).

As a fix, a new component was implemented to handle these dialog
openings and this component is thus created by the RTE widget and the
other places that need the feature. The right fix would be a better
integration of the summernote editor in the parenting system but this
requires a lot more work than this commit, this will be the goal of the
future editor refactoring.
2017-08-23 11:27:55 +02:00
Thibault Delavallée c5c53c8b6d [CLN] account_payment: indentation issue 2017-08-22 14:02:21 +02:00
qsm-odoo c587c154c2 [REF] website: make better framework for animations
Since commit https://github.com/odoo/odoo/commit/0e08e653cd47e6ef00cf041d774ddec4b83431c1:
The animation 'component' feature was introduced and allowed to define
smooth animation (like the parallax one) thanks to particulary named
methods. This feature was dangerous and ugly and does not match our
convention requirements anymore (in particular adapting a regex to camel
cased method names will be subject to lots of error). Also, during the
website refactoring introduced with https://github.com/odoo/odoo/commit/2972976962617d4b8a0113bae58c640ab41cdff8,
errors were found that were due to this feature. Indeed, it happened
that some existing method names were matched by the regex (as a simple
'on_click'). This feature was also 'slowing' (by a very slow amount)
the page loadings for no good reasons.

The animation 'component' feature has been renamed to 'effect' and
instead of naming methods with particular names, all the effects'
options can now be simply described in the special 'effects' key of
snippet animations.
2017-08-22 13:03:16 +02:00
qsm-odoo f997c128c7 [REF] web, website: share modal.less file
Following https://github.com/odoo/odoo/commit/5658e337c3e0385d3d116e34404ef4086b3e94f0:
The modal.less file is now in the common assets so that the
dialogs' style is shared instead of duplicated.
2017-08-22 13:02:12 +02:00
Thibault Delavallée 69d9058cd2 [FIX] project: fix issue when not having project and default partner 2017-08-22 10:50:02 +02:00
Thibault Delavallée bce4a31ec7 [REF] various: update community to enterprise change 2017-08-22 10:42:26 +02:00
Pierre Masereel ef91c141f6 [FIX] point_of_sale: fix demo data for pricelist tour
When the pricelist tour is launched in enterprise, it fails because of
fiscal position created by the module account_taxcloud that set a
default tax on products and so change the price of products.
2017-08-21 18:20:18 +02:00
Thibault Delavallée 189cd5926e [MERGE] website_portal_purchase: move customer portal to purchase
As already done for account, sale, project and helpdesk, customer portal
for purchase is moved directly into purchase. No dependency to website
is required anymore.

This merge also removes website_portal_purchase as all its content has
been moved.
2017-08-21 14:40:21 +02:00
Thibault Delavallée 748270065f [REM] website_portal_purchase: kill the module
This module is now void since the customer portal has been moved
to purchase. Let us therefore remove the module itself.
2017-08-21 13:56:22 +02:00
Thibault Delavallée bcada50bc5 [MOV] (website_portal_)purchase: move customer portal to purchase 2017-08-21 13:54:08 +02:00
Thibault Delavallée ab00000624 [CLN] purchase: reorder some access rights to ease reading
So much badass.
2017-08-21 13:53:55 +02:00
Thibault Delavallée aaea9f3172 [FIX] purchase: remove duplicated and wrong access right
Access on purchase order lines for managers is present twice in the
security file. Once with only read access and once with full access.
I suppose the latter one is the correct one.
2017-08-21 13:52:52 +02:00
Thibault Delavallée b9ce6890f2 [REM] website_portal_purchase: remove unused less file
As this file does not seem used or imported anywhere let us get rid of
it. This way we won't have to move it. I like to not move it.
2017-08-21 13:52:17 +02:00
qsm-odoo 9af8d5e6de [IMP] web_editor: make HTML editor select2 dropdown better
In saas-15, the LESS editor was introduced alongside the use of the
select2 library to style the <select/> element which allows to choose
the view / less file to edit. The problem is that the default behavior
of the select2 library is to open a dropdown with a max-height of 200px
and a width equals to the <select/> element (with no regards to the
dropdown content). In most cases, the dropdown was then displaying
only a few results, broken over multiple lines.

Now, the dropdown is restyled so that it has no maximum height, no set
width and more readable content.
2017-08-21 10:57:28 +02:00
Laurent Smet 9a58e95edf [FIX] base,report: fix report empty pages/traceback (#18795)
When printing a report not linked to a record, a traceback appears if the
report_name is not an existing model or en empty page is generated.
2017-08-21 08:27:24 +02:00
Dhawal Limbuwala 98ceb0fd2d [IMP] crm,hr_recruitment,project: add 'Create and Edit' btn
This commit adds a 'Create and Edit' button in the footer of the
dialog opened when creating a record from the Kanban of several
models. Clicking on this button creates the record and directly
opens it in a more detailled form view in edit mode.
2017-08-18 16:53:25 +02:00
Dhawal Limbuwala 42757c120f [IMP] web: Kanban: quick create and edit feature
This commit adds an 'Edit' button to the record quick create in
grouped Kanban views. When this button is clicked, a name_create
RPC is performed and the created record is directly opened in a
form view in edit mode.
2017-08-18 16:53:25 +02:00
Chirag Vaghela b31f7786f4 [IMP] account: dynamically display invoice filters depending on the context:
When displaying only invoices, a "Credit notes" filter is useless (and
vice-versa). Filters will be called "Not draft"

When displaying both, keep filters for Invoices and Credit Notes.
2017-08-18 15:59:55 +02:00
Deep Patel f6031f617c [IMP] website_sale,point_of sale: clean "ecommerce product categories" menus and group them under "Configuration" menus 2017-08-18 15:56:44 +02:00
Haresh Shyara 1f3e13a114 [IMP] project: usability of "Merge tasks" wizard
Display "Assigned to" field only if "Create a new task" checkbox is
checked (else it has no meaning)
2017-08-18 15:53:23 +02:00
Pierre Masereel 29ee95be4e [FIX] point_of_sale: remove useless spaces and fix wrong indentation 2017-08-18 14:55:48 +02:00
Joren Van Onder 0178bf39c4 [IMP] point_of_sale: allow users to modify pricelist on customers
It's not a common use case for existing customers, but it's probably
useful to have when creating new customers.
2017-08-18 14:55:48 +02:00
Joren Van Onder 861266dce1 [FIX] point_of_sale: _symbol_set comment typo
Made it hard to grep.
2017-08-18 14:55:48 +02:00
Joren Van Onder ac89783d2f [IMP] point_of_sale: full pricelist support
Before this the POS would load product.product records with
pricelist_id defined on the pos.config in context. These unit prices
were then used everywhere in the POS as-is. The POS contained no
pricelist logic at all.

This implements the full pricelist logic in the POS and provides a way
for users to choose what pricelist to apply per order. This
implementation closely follows the behavior defined in the product and
sale modules.

This includes unit tests for the get_price function and acceptance
tests. The unit tests are done in PhantomJS and ensure that get_price
returns the same as the backend returns when reading the 'price' field
on product.product.

Prices of products are displayed according to the selected
pricelist. To accomodate this the product_cache DomCache of the
ProductListWidget is now done per pricelist.

Additionally, this feature should speed up the loading of
product.product records. Now only stored product.product fields are
loaded. Before the non-stored computed 'price' field had to be loaded
for every product.product record.
2017-08-18 14:55:48 +02:00
Joren Van Onder 80f4230a4e [FIX] point_of_sale: end lines with semicolons 2017-08-18 14:55:48 +02:00
Joren Van Onder 757bf105ef [IMP] point_of_sale: user selection code style 2017-08-18 14:55:48 +02:00
Joren Van Onder f86fd1c249 [IMP] point_of_sale: show currently selected item in selection widget
Before this the user was unable to see what value was currently
selected in the selection widget (used for selecting users and fiscal
positions). This implements support for an optional 'is_selected'
function which gets an item from 'list' as a parameter and should
return true when the item is currently selected.

This also removes the fiscal position name from the fiscal position
button because there wasn't much room on the button to fit the name
and with this feature that information is redundant.
2017-08-18 14:55:48 +02:00
Nikunj Ladava 9e780ab711 [REF] website_twitter: remove modal xml from view
The twitter settings view contained a link which opened an inline modal
with a tutorial. As inline modals are not supposed to be supported by
the backend (the Dialog JS class should always be used), this is removed
and replaced by a link to the online Odoo twitter documentation.
2017-08-18 14:44:41 +02:00
Vandan Shah 886c07dabb [IMP] web_editor: add image filename at the end of URLs
When an image is added thanks to the media dialog, the URL that is used
was '/web/image/<id-of-the-attachment>'. Now the name of the image will
be added for SEO purposes ('/web/image/<id-of-the-attachment>/<name>').

Also protect URLs with quotes to allow spaces.
2017-08-18 11:41:28 +02:00
Denis Ledoux 22f7b79221 [MERGE] forward port of branch saas-17 up to b970bf865a 2017-08-18 10:44:22 +02:00
amoyaux b970bf865a [FIX] stock: unable to return SN in chained moves
Use case to reproduce the bug:
- Set multi location in settings
- Set warehouse's deliery method as pick/pack/ship
- Deliver a product to customer
- Process a return from customer to output.
- Create a return from output to pack ->
Unable to reserver product.

It happens because return moves where not linked together but have
the picking that created the return as origin.
Thus action_assign does not detect the return moves and can't
guess the real quantity available.

This commit add a behavior that will create links between
return move. It can be guess from parent move(the picking's move from which
the return is created) and its move dest/orig that have already
created other return. It also correct action assign because
the group by could retourn same line with return moves.
It add a test that check returns and links between them.
2017-08-17 17:49:09 +02:00
amoyaux 13f0615b80 [IMP] purchase : Decrease order quantity should not delete picking and moves
When deacreasing a quantity on a PO it will decrease the quantity
of an associated move. When the move's quantity reach 0, previously the
move was unlinked and aslo the picking if all moves inside were unlinked.

However the destination move(s) still exist with the quantity that has been
removed in the original move. It can confuse the end user which have a move without
origin.

This commit cancel the move/picking instead of unlink them. Thanks to this
the end user still have the link with the original moves and can guess from where
their destinations moves come from. It also remove the filter on PO in order
to display the canceled picking.
2017-08-17 17:49:03 +02:00
amoyaux 9054d082be [IMP] stock: picking and ml views improvements.
commit 0a960c08757a8ba5e1dc1dd36c17a35de8913975 introduced change about
reserved quantity that set it to 0 once the move is done.

This commit add views improvement. If the move lines are done
reserved quantity does not really matter and thus it is better
to not display it.

Modify the decorator on stock picking that change the font to red
if the quantity processed is greater than the reserved quantity.
This decorator does not trigger if the picking is in state done since
reserved quantity is always 0.
2017-08-17 17:16:34 +02:00
amoyaux 2a160329bb [FIX] stock : no more automatic backorder
When validating a stock picking there were 2 different cases:
(1) If all qty are equal to 0 it will display a wizard asking
if the user want to set the quantity done to the reserved quantity
for all moves. If the user accept it will automatically perform the
moves after setting the quantity done.
(2) If the user set a quantity on a move, it will check if there is
a need for a back order. If yes it will display a wizard asking if
a back order is needed or not.

However the check if a back order was needed or not was never perform
in case 1. If the quantity reserved was lower than the initial demand
a back order was automatically created.

This commit add the step 2 in the procedure of step 1 (after setting the
quantity done).
2017-08-17 17:16:21 +02:00
amoyaux 3c135d3123 [IMP] stock : reserved quantity should be 0 for done move
The quantity reserved for move was never modified once the move
is done. It is a nonsense to have a reserved quantity for a done
move.

This commit add a constraint that ensure the quantity of
move line to be 0 if it is in state done. Also it add a write
on move_line's 'action_done' function that set the reserved quantity
to 0 for all move line processed.

It does not introduce any change on the stock move itself since the
reserved quantity is the sum of all its move lines's reserved quantity.
2017-08-17 17:16:00 +02:00
amoyaux fafb0ed8c5 [IMP] mrp : Improve error message on cancel MO with consumed qty
Adding the step to do when the user want to delete the MO.
2017-08-17 16:18:18 +02:00
amoyaux 105ece056d [IMP] stock : improve immediate transfer message.
Improve the message for the end user.
2017-08-17 16:18:05 +02:00
Richard Mathot 2f3f7f2d25 [TYPO] *: susbcription -> subscription 2017-08-17 14:03:35 +02:00
dbh-odoo a032c6c056 [FIX] website_sale: fix issue when displaying transaction error at checkout 2017-08-17 13:52:31 +02:00
Xavier Morel f1181b631f [FIX] doc: table broken by 2972976962 2017-08-17 13:44:37 +02:00
qsm-odoo 6c9a56a65f [REF] web_editor: improve "Video" dialog design and behavior
Original design by @stefanorigano.
2017-08-17 12:41:15 +02:00
Hiral Bhavsar 56972f8b05 [IMP] website_quote: improve some labelling of quote template 2017-08-16 17:44:52 +02:00
Hiral Bhavsar c72da1369c [IMP] website_quote: simplify labelling of require_payment
As using tokens or not is not a template option it is simplified to know
wether only a signature is required or a payment.
2017-08-16 17:44:24 +02:00
Raphael Collet 8b49007a32 [IMP] avoid one query when recomputing a field (#18846)
Specifically, instead of reading fields on `recs.exists()`, simply read those
fields and catch `MissingError`.  This generates around 5% less queries.
2017-08-16 16:55:09 +02:00
Jérome Maes a2a37fe9c4 [MERGE] portal,project,website_*: move portal code
This merge mainly does 2 things:
- move frontend chatter feature from website_mail
into portal, since chatter is required for some
business model in the customer portal. This chatter
is still also responsible of displaying comments
for website object (slides, blog, ...)
- bring project customer portal into project,
and make project module depends on portal, like
it was already done for sale and account.
hr_timesheet now contains the dislaying of timesheet
on task in portal.

website_project is removed, and we do not use
website.published.mixin on project, since this
is only used to display its rating. projects are
not public object.
2017-08-16 16:09:28 +02:00
Jérome Maes 065539f056 [FIX] website_blog: make published button for comment visible 2017-08-16 15:30:10 +02:00
Jérome Maes 9dc173cc2e [FIX] ir_http: uniformize method signature to avoid error when catching error 2017-08-16 15:30:01 +02:00