summaryrefslogtreecommitdiff
path: root/addons/mrp/static/src/xml
AgeCommit message (Collapse)Author
2021-04-19[FIX] mrp: print bom structure per variantsWilliam Henrotin
Commit 044c5c2c81d0b3dd8b4abb8df34f6b1cb0a6e122 removed the context key `variant` of the bom structure report. This implies to always print every variant in case a BoM has no product_id. This commit fix this issue to print only the variant selected in the report. It also adds a new button to print the report with all variants in case for some customers this behavior was "not a bug but a feature". Task : 2504524 closes odoo/odoo#69441 Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2020-03-04[IMP] mrp: mrp_documentAnkita Raval
Purpose: Modernizes and facilitates files upload in manufacturing app. In this Commit: - Show the image in Kanban. - Allow to access a preview of the file when clicking on it in the Kanban view. - Add a 'Edit', 'Delete' and 'Download' in kanban card dropdown menu. - Add Upload button in control panel to upload document which will create new record of `mrp.document` and also add a testcase for it. task-1960733 closes odoo/odoo#42168 Related: odoo/enterprise#8977 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-12-30[IMP] mrp: add extra information about schedulingryv-odoo
Add scheduling information (icon) with popover to show info/warning/error about the scheduling of workorder. Four extra pieces of information is given (level change the color of the icon): - Info level; If previous WO and pending state, show sheduling info of the previous WO - Warning level; info if the WO is late - Error level; if conflit with other WO (same workcenter in same time) - Error level; if previous WO is planned after the current one Also, add a button (in the popover) to replan correctly all WO of the MO of the current WO (only if it is not in ready/progress and error(s) is detected). It is done via a JSON data compute field ('json_popover') in the workorder and the popover_widget of stock. It is allowing use to make computation in batch and avoid to add lot of fields. task-2082261 closes odoo/odoo#41950 Related: odoo/enterprise#7296 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-11[FIX] mrp: buttons on BoM structuresvs-odoo
Same size, smaller, better placed buttons. X-original-commit: 280bd7c4dcd831904f33206a7c2bb084f97dc069
2019-06-11[FIX] mrp: bom structure reportAnkita Raval
The "BoM Structure report" should not include the cost of the products as it is often shared with third parties. We now only display the cost on the "BoM Structure and Cost report" and remove the "BoM Cost report" as it is redundant with the former. Task Id: 1969709 closes odoo/odoo#33323 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-05-16[IMP] mrp: improve labels for print buttons on bom structure reportVarun Raval
Task ID: 1998237 closes odoo/odoo#33411 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2018-10-08[FIX] mrp: print bomstructure report with float quantitySwapnesh Shah
Usecase to reproduce (chrome): - Create a BoM with float quantity in component - Print the BoM cost and structure report When using a type="number" on firefox it is not possible to use a decimal. However on chrome there is no restriction and a decimal could be use. It makes senses to be able to work with decimal (e.g. the UoM is in kg) It also exists an explicit cast to integer since data are received as string from the javascript. However since quantity displayed could be decimal, the cast should be adapted to float. Closes #27464 Fixes #27437 closes odoo/odoo#27522
2018-08-14[MERGE] forward port branch saas-11.4 up to dabe59df9c8Christophe Simonis
2018-08-10[FIX] mrp: see full name of 'report' option in BoM 'Structure & Cost' reportPrakash Prajapati
Before this commit, when we opened the report "Structure & Cost" of a Bill of Materials of a product without any variant, the dropdown option selection 'report' had the current selection name cut. For instance, the selection "BoM Structure & Cost" was displayed as "BoM Structure". This was due to each option having a width determined by the bootstrap classname `col-md-4`, independently on the number of options that are available. There are either 2 or 3 options at the top of this report, depending on whether the product of the BoM has variants or not. When there are 3 options, there is not problem. However, with 2 options (i.e., without variants), each option available horizontal space is reduced, so that the 'report' option is shrunk, which cuts the text selection as a result. This commit fixes this problem when there are 2 options (= "no variant"), so that the 'report' option uses more horizontal space. Task-ID 1864490 Closes #25643
2018-07-27[REF] *: BS4, adapt col-related classesqsm-odoo
col-lg-* -> col-xl-* col-md-* -> col-lg-* col-sm-* -> col-md-* col-xs-* -> col-* col-lg-offset-* -> offset-xl-* col-md-offset-* -> offset-lg-* col-sm-offset-* -> offset-md-* col-xs-offset-* -> offset-* col-lg-pull-* -> order-xl-1 col-md-pull-* -> order-lg-1 col-sm-pull-* -> order-md-1 col-xs-pull-* -> order-1 col-lg-push-* -> order-xl-2 col-md-push-* -> order-lg-2 col-sm-push-* -> order-md-2 col-xs-push-* -> order-2
2018-07-27[REF] *: BS4, remove the use of btn-smqsm-odoo
Odoo made the bad choice of using the 'btn-sm' class for every button instead of configuring the padding for default 'btn' to be smaller. In BS4, the style of btn-sm is actually more complex, lowering the font-size too. Also, btn-xs was removed so we would not have the possibility to display smaller button than our default ones. This commit removes btn-sm wherever it was used. Unfortunately, this might remove it at some places where it made sense but this can be restored in a second time.
2018-04-06[IMP] mrp: add new bom and cost reportHiral Bhavsar
Add a new report in order to display: - bom structure and cost - bom structure - bom cost The user is allowed to print multiple bom reports at once. Print the report dynamically depending what have been unfolded. In html the rendering is lazy, when unfolding the client make a request to the server in order to get the html that will be append to the DOM. For the pdf the kwargs unfolded could be used in order to render everything at once. With the help of: Dhaval Suthar <dut@odoo.com> Jigar Patel <jat@openerp.com> task-36741
2018-02-12[MOV] web, mrp: move `pdf_viewer` widgetMartin Geubelle
This widget is generic enough to be used in other modules than mrp so we move it in the web module. Closes #22569
2017-05-24[FIX] mrp: correctly replace inputs in pdf_viewer widgetMartin Geubelle
In the extended template `HiddenInputFile` there are actually two inputs (one for image only and another one). This widget needs to replace both of them otherwise the file selector will be opened twice.
2017-05-04[REF] web, *: restore views designqsm-odoo
Since the new views merge, a lot of design elements were broken. This was particularly impacting the fields in the editable list view; indeed the editable list view is not using an inline form view anymore so the fields in the list were not properly styled as the LESS was still defined assuming the form view environment (for example the invalid fields were red for o2m fields in form view but not in editable list view even though they got the right CSS class). This commit refactor the LESS following these rules: - No more division of non-layout and layout rules. Dividing LESS rules in x_layout.less and x.less was a mistake. Many rules can be considered to be layout and not layout at the same time, developers always have to switch from one file part to the other, many CSS selectors (and rules!) are duplicated for nothing, ... - Field style is extracted from x_view.less and put in the new fields.less file. As before, the fields_extra.less will contain the rules specific to community so that the enterprise repo can override those by replacing the whole file. - Many classes have been renamed so that o_form_x_y becomes o_x_y as many classes can now be applied outside of form view. These classes should not be used in templates anyway. The commit also changes the DOM of fields so that it is more minimalist (no useless parent div, etc). Input elements are not automatically styled anymore, they have to get the o_input class explicitely. This allows to fix lots of small style bugs of previous versions (required monetary field had not the proper style, readonly m2m tags appeared as editable, ...). This also improves the LESS code. The editable list view should also completely stop flickering on chrome and firefox. The commit also removes the orange outline on list view dirty cells. The commit also removes deprecated static xml, LESS and other code. Notice there are still styles to restore/fix and LESS to improve.
2017-04-27[FIX] mrp: reintroduce pdf_viewer field widgetMartin Geubelle
This field widget has been adapted to the new views. This commit also introduces some tests.
2016-09-30[ADD] MRP: Add pdf viewer widget to view 'pdf' work instruction of workorder.Ravi Gadhia