Commit Graph
117975 Commits
Author SHA1 Message Date
William Henrotin 373eb4bf42 [REF] purchase_requisition: separate PO for different BO.
If two blanket order are active with the same vendor, we have to produce
two separate purchase orders even if the two products are ordered in the
same operation.
2018-02-01 15:11:15 +01:00
William Henrotin 8b5401864d [REF] purchase_requisition: multi-currency support
If the parameter multi currency is enabled, the field currency is added
in the purchase requisition form. The currency chosen will be the one by
default in the PO attached to the BO
2018-02-01 15:11:15 +01:00
William Henrotin 1c458d9e99 [REF] purchase_requisition: PO creation from blanket order
If a there is blanket order in 'ongoing' state and linked with the purchase
order's vendor, we can choose associate it to the PO to retrieve the contrat
price and impact the ordered quantity.

If a purchase order is created from a blanket order, the vendor is
linked to the BO reference. So we forbid its edition once its choose.
2018-02-01 15:11:15 +01:00
William Henroin e85838d358 [REF] purchase_requisition: adapt sequence of supplierinfo
When creating a blanket order, it will generate a supplier info for the
associated product. If there is already a supplier info for the same product
and same vendor, the sequence should be adapted to take the one created via
blanket order before the other(s) one(s).
2018-02-01 15:11:15 +01:00
William Henroin b3ac2d2f48 [REF] purchase_requisition: new stages workflow for blanket orders
The stages workflow of purchase tender is not suitable for blanket order.
the steps bid selection is use only with purchase tender. Now :
PT : draft -> confirmed -> bid selection -> closed
BO : draft -> ongoing -> closed
2018-02-01 15:11:15 +01:00
William Henroin 87af05ae76 [REF] purchase_requisition: blanket order generate sellerinfo
The blanket order is a contract between you and a supplier on a
different
price (usually lower than normal) for a big quantity of some specific
products.

The goal is to generate a supplier info for each product of the blanket
order and
remove them when the BO is either closed or cancel.
2018-02-01 15:11:15 +01:00
William Henroin 7fea2292ce [REF] purchase_requisition: requisition type editable only in draft state
Purchase requisitions have two different type available : purchase tender
and blanket order. As the behaviours between these two types are very different,
the type is now locked once the requisition is no more in draft state.
2018-02-01 15:11:14 +01:00
William Henrotin 8d0be4059a [REF] purchase_requisition: sequence handling
When creating a draft purchase agreement, a reference number was generated even if
we do not click the 'Save' button.
Now, the reference is filled with 'New' at the creation and overided with a proper
reference number after clicking on 'Save'. Also, the prefix depends now of the
requisition type. BOxxxxx for blanket orders, TExxxxx for call for tenders.
2018-02-01 15:11:14 +01:00
William Henrotin d8d925d366 [REF] purchase_requisition: vendor mandatory in blanket order
The vendor is now a mandatory field in the blanket order form
because it's directly linked to purchase orders. So Odoo needs
to know to which supplier the PO is addressed.
2018-02-01 15:11:14 +01:00
Aaron Bohy 02ec09cb1c [REF][IMP] *: mail js refactoring
This commit improves the JS code of the mail module,
which comes maily from the new coding guidelines
and the addition of "JS services".

JS services are important objects that do not fit
well in the component tree, such as chat_manager
or ajax.

The benefits of JS services are improved readability
of the code, reduced coupling, and more testable
modules. In particular, discuss was hard to

Summary of the changes:

- ClientAction has been renamed into Discuss
- Clear instantiation of chatManager
- New coding guidelines in most mail modules
- JS Services can interact with each other
- Chat Manager and Window Manager are services
- Window Manager renamed to Chat Window Manager
- bus.bus is now encapsulated in Bus Service (a service)
- The test infrastructure has been tweaked with JS Services
- Chat Mixin has been removed

A future improvement would be to translate some 'trigger' into 'trigger_up'.
2018-02-01 14:51:58 +01:00
Christophe Simonis 7d465aa56c [MERGE] forward port branch 10.0 up to 4c9bf7faae 2018-02-01 14:16:50 +01:00
Jeremy Kersten 942b9d1a3c [FIX] payment_sips: allow to customize key_version
Some sips provider don't use 2 as key_version.
E.g. mercanet uses '1' as production key.

Now we allow to override it in Ir Config Parameter for stable version.

Todo:
Need to make it customizable by end user into the configuration of acquirer.

Courtesy of BEK for reporting
2018-02-01 14:14:15 +01:00
Jeremy Kersten 70d638b690 [FIX] website: let the 404 exception catch by _handleException
Don't rewrite the wheel with serve_404.
It is the job of HandleException to do it.

In the same time, that will fix the status code that was
previously 200 instead of 404 in serve_404

This commit closes #22438
2018-02-01 14:13:32 +01:00
Jeremy Kersten 8b8de59122 [FIX] http_routing: raise NotFound when ModelConverter don't match
Before this commit, if you call a route with an missing ID, you
see an internal error 500 "Record not existing" (MissingError)

It has been intriduced by commit 9dc173cc2e

Now we catch the missing Error and return explicitely a 404 exception.
2018-02-01 14:13:32 +01:00
Jeremy Kersten 8a1cb4758d [FIX] web_editor: avoid useless 404 during test
removeSrcAttribute should avoid these rpc, but for some
unknown reasons, on firefox it works but not with chrome.

Because the purpose of the test is to check the url and
not the content, that works to use an existing route.

Courtesy of @kangol for the fix
2018-02-01 14:13:32 +01:00
Nicolas Lempereur 5af1223878 [FIX] web_editor: xml editor first level not shown
There is a slight visual inconsistency since: 9af8d5e6 the xml/less
editor for first level of descendants were just prefixed by an invisible
space.

opw-807624
closes #22704
2018-02-01 14:00:06 +01:00
Lucas Perais (lpe) 9fa597c7ec [FIX] web: sequence handlers on modal's one2many list
From a form view (say Bill of materials)
Edit the form
Click on a bom line
Click on the external button that makes the product form pop up
change the order of suppliers on that product

Before this commit, a JS traceback was raised
This was because the changing object was not present in the localData that the Model object holds
or more accurately, it was not the **right** model object that was targetted
and this was due to the propagation of the resequence event

After this commit, no error is thrown, and the resequencing works as expected

OPW 807196
2018-02-01 13:53:52 +01:00
Alexandre Kühn 0cd656b5af [IMP] mass_mailing: onboarding
Lots of small usability improvements on the mass_mailing app.
2018-02-01 13:34:29 +01:00
Christophe Simonis 4c9bf7faae [MERGE] forward port branch 9.0 up to cbaecc5cbb 2018-02-01 12:13:51 +01:00
Nicolas Lempereur 2014fabfba [FIX] web_editor: firefox editor hidden mass mail
When saving a modified mass mailing, the editor will do a number of
things to improve the mail readability accross mail client.

One of those is replacing font awesome icons by image, but firefox acts
differently than other browser. On a display:none iframe, doing
.css('color') or .height() on an element returns respectively
`undefined` and 0.

This caused an error when getting the color that we could solve by
doing a fallback for firefox like this:

 window.parent.getComputedStyle($font[0]).color

But to get the height() of an element, it seems we always need the
iframe displayed.

With this change, when the iframe is hidden and the browser is firefox,
the code try to display the iframe (with "visibility:hidden;height:1px")
when this part of the code happen.

note: backport of 10.0 13c326caaa

opw-807180
closes #22701
2018-02-01 11:40:42 +01:00
qsm-odoo 126850e9bd [IMP] web: update bootstrap to 3.3.7
Before this commit the bootstrap version we used was inconsistent.
Indeed, the javascript files were the 3.3.4 ones and the less files
were the 3.3.5 ones. This was due to a failed merged resolution in 9.0.
This should however not cause any issue as the difference between
3.3.x versions are very minor.

Basically, this commit is more of a fix than an improvement and may
even be backported if we find reasons to do so. This commit is mainly
made to prepare the transition to version 4.0.0, which requires to
switch our LESS files to SCSS first (and it will be easier to go by
bootstrap 3.3.7 with SCSS files first).
2018-02-01 11:03:05 +01:00
Goffin Simon 695bd75a13 [FIX] web: invalid domain in DomainSelector
Backport of this commit: c13c9e0b5c
Steps to reproduce the bug:

- install application MRP Maintenance
- open maintenance request form view, and from top right corner click Studio icon
- click on Equipment field while you are still in studio interface
- It will show left side studio panel, click Domain box and it will throw an error

opw:813594
2018-02-01 10:31:14 +01:00
Nicolas Martinelli eeebd4ad85 [FIX] web: kanban containment
Set up the following kanban columns:

| Col 1 | Col 2 | Col 3 | Col 4 | Col 5 | Col 6 | F |
|       |       |       |       |       |  Card |   |

<------- Screen width ---------->

Col x are unfolded columns.
F is a folded colum.

Moving the Card from Col 6 to F is impossible: the card won't go 'out of
the screen' on the right, which prevents its center to reach F.

Commit 5ba6d93810 deactivates the drag & drop on read-only fields.
In order to restrict the kanban cards displacements, the `containment`
attribute is used to either restrict the displacement:
- in `o_kanban_view` if draggable
- in the parent if not (to allow the resequence)

The class `o_kanban_view` is too restrictive: when movind the card to
the folded column F, the card must go out of `o_kanban_view`.

opw-803929
2018-02-01 10:12:46 +01:00
Jeremy Kersten e15a7b4c65 [FIX] http: JsonRequest return code error as status code
+ Manage 404 error, avoiding tb in log and respecting status code
in response request.
2018-02-01 09:47:25 +01:00
Lucas Perais (lpe) e6cccbf441 [FIX] web: less boolean_toogle
Before this commit, the boolean_toggle widget was rendered
but the less contained errors that prevented it from displaying correctly
This was due to commit 9dead7e3d3

After this commit, the widget displays correctly

There might be an issue in the future because of
field_utils.formatBoolean, when this function decides to pass the full options dict

OPW 80782
2018-02-01 09:32:46 +01:00
Swapnesh Shah c9ef5742bb [FIX] stock: scheduled date required
The field `scheduled_date` on `stock.picking` is used to set the field
`date_expected` on `stock.move`. Since `date_expected` is required, we
should make `scheduled_date` required as well.

Closes #22684
2018-02-01 08:44:48 +01:00
Odoo Translation Bot cbaecc5cbb [I18N] Update translation terms from Transifex 2018-02-01 02:40:21 +01:00
Tomas Alvarez 1d4a75d930 [CLA] add tomeyro to Vauxoo's CLA
Done at #21952
2018-01-31 17:00:01 +01:00
Géry Debongnie 31a99ed5b7 [IMP] web: add better message in column quick create
This commit add a help message in the column to indicate that pressing
escape will discard the current column creation. Note that some JS had
to be added to make the message disappear when the input is no longer
focused. The reason is that the create column widget may still be visible when
the input is no longer focused (for example, because the user clicked on
the fake records, or clicked on the example link)
2018-01-31 16:46:56 +01:00
Joren Van Onder 079a13a349 [IMP] analytic: in-depth refactoring
* analytic accounts can be shared among companies
* amount on analytic lines always refer to amount in company currency of which it belongs to
* add analytic groups (hierarchical way to classify analytic accounts)
* analytic tags:
- only present on analytic lines, not anymore on analytic accounts
- can be used to distribue/split an analytic lines among several analytic accounts
- enabled by a dedicated res.group
- added on several objects (vouchers, expenses, analytic defaults...) as well as in bank statement reconciliation widget (manual counterpart and account.reconcile.model)

* bunch of fixes made related to analytic

Was PR #22124. Was task 32386. Original work by tbe.
2018-01-31 15:53:04 +01:00
Gorash cd30db60e6 [IMP] web: allow to use m2m_tags outside a form view 2018-01-31 15:53:04 +01:00
Nicolas Lempereur 13c326caaa [FIX] web_editor: firefox editor hidden mass mail
When saving a modified mass mailing, the editor will do a number of
things to improve the mail readability accross mail client.

One of those is replacing font awesome icons by image, but firefox acts
differently than other browser. On a display:none iframe, doing
.css('color') or .height() on an element returns respectively
`undefined` and 0.

This caused an error when getting the color that we could solve by
doing a fallback for firefox like this:

 window.parent.getComputedStyle($font[0]).color

But to get the height() of an element, it seems we always need the
iframe displayed.

With this change, when the iframe is hidden and the browser is firefox,
the code try to display the iframe (with "visibility:hidden;height:1px")
when this part of the code happen.

opw-807180
closes #22639
2018-01-31 15:17:37 +01:00
Christophe Simonis 373c0c2e57 [FIX] base: allow server actions to en/decode base64
This is usefull when dealing with binary fields.
This was possible in previous versions in python 2 using
`str.encode('base64')`.
2018-01-31 15:00:25 +01:00
Nicolas Martinelli a4c7481f24 [FIX] web: auto-refresh of time
When a TZ mismatch is detected, the datetime value is displayed in the
widget. However, on MacOS, this forces the dropdown list to close at
each refresh of the value, which occurs every second.

The refresh interval is set to 1 minute in case of MacOS.

opw-804035
2018-01-31 14:40:23 +01:00
Nicolas Martinelli b97b6de12c [FIX] mrp: incorrect help
The help is completely incorrect and misleading.

opw-807178
2018-01-31 14:30:26 +01:00
Simon Lejeune a37932b9be [MERGE] stock, mrp, repair: traceability report improvements
- remove the upstream/downstream logic, always display the most recent
  move at the top and the least one at the end
- color in move in green, out move in red
- better integration with repair and mo
- when trying to drill down an untracked component, don't display all
  the possibilities
- few usability fixes overall

Closes #19737
task 36338
2018-01-31 14:15:42 +01:00
Haresh Shyara 68061e2517 [IMP] stock, mrp, repair: optimization traceability report based on stock move lines
- Optimized _lines() to fold/unfold mechanism and use stock move line in get lines.
- Merged into single method (make_dict_move and make_dict_head) to get parent & child traceability result
  and use unfolfable to make line unfoldable.
- Removed _get_produced_or_consumed_vals method and move mechanisam into _line method will do same for this.
- Make some methods private.
- Removed useless vals from dict.
2018-01-31 14:15:00 +01:00
Haresh Shyara 476ebd08d7 [IMP]stock: lot_serial number clickable on traceability report
- click on lot/serial number directly send to the traceability of that SN
2018-01-31 14:15:00 +01:00
Haresh Shyara 23ab8019c0 [IMP] stock: improve unbuild order traceability
- Traked component in case of consumed in.
- removed unused get_traceability method to move michanism into _lines()
2018-01-31 14:15:00 +01:00
Haresh Shyara 4d77748e76 [IMP] stock: set text color on report line
- Outgoing moves should be in red (if going out of the stock).
- Incoming moves should be in green (if entering the stock).
- Internal moves should be in black.
- No lines in bold anymore in the report.
2018-01-31 14:15:00 +01:00
Haresh Shyara 05305729ee [IMP] mrp: moved 'Traceability: Lots' menu into Master Data
- Renamed 'Traceability: Lots' to 'Lots/Serial Numbers'
2018-01-31 14:15:00 +01:00
Haresh Shyara 776457fee9 [IMP] stock: set text align left in PDF report header 2018-01-31 14:15:00 +01:00
Haresh Shyara 276e7ac769 [IMP] stock: scroll in traceability report 2018-01-31 14:15:00 +01:00
Haresh Shyara a88bb28ad5 [IMP] mrp: added production_id in vals when generate consumed move lines 2018-01-31 14:14:59 +01:00
Haresh Shyara 0a9c5c9aa5 [IMP] stock: open traceability report from picking
- Make lot/serial number is clickable to open traceability report
2018-01-31 14:14:59 +01:00
Haresh Shyara 827beb9662 [IMP] mrp: added stat button on MO to open Traceability Report
- Remove some reusable code in get_lines()
2018-01-31 14:14:59 +01:00
Haresh Shyara 523092e6f4 [REF] stock: renamed 'UP/Down Stream traceability' to 'Traceability Report 2018-01-31 14:14:59 +01:00
Haresh Shyara 8de1e54f65 [IMP] stock: added button on components to switch report on finished product 2018-01-31 14:14:59 +01:00
Haresh Shyara 387c441f7c [IMP] stock, mrp, repair: get linked consumed or produced lines for this operation
- When unfold down MO, Repair Order, Unbuild Order to display produced or consumed materials even product is trackable or not.
- Normal products(not trackable) are directly displayed with source and destination not foldable.
- Unfoldable line has no caret icon to unfold, so move it to margin-left 15px to make parellel.
- Invisible source and destination location on head lines if product trackable.
2018-01-31 14:14:59 +01:00
Haresh Shyara acd0254d48 [IMP] stock: clickable reference on traceability report
- make all references clickable for all model and remove unused code.
2018-01-31 14:14:59 +01:00