Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions mrp_bom_forecast_view/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

{
'name': 'BoM Clean Forecast Overview',
'version': '1.0',
'depends': [
'base',
'mrp'
],
'author': 'Sanket Tank',
'category': 'Manufacturing/Manufacturing',
'description': '''
This module will modify current BoM Overview and make it clean and optimist.
''',
'assets': {
'web.assets_backend': [
'mrp_bom_forecast_view/static/src/**/*',
],
},
'license': 'LGPL-3',
'installable': True,
'application': True
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="mrp.clean_forecast_view" t-inherit="mrp.BomOverviewTable" t-inherit-mode="extension">

<!-- Remove py-lg-5 class -->
<xpath expr="//div[contains(@class, 'o_mrp_bom_report_page')]" position="attributes">
<attribute name="class">o_mrp_bom_report_page py-3 px-0 overflow-auto border-bottom bg-view</attribute>
</xpath>

<!-- Completely remove d-flex mb-5 div -->
<xpath expr="//div[@class='d-flex mb-5']" position="replace"/>

<!-- Completely remove availabilities column -->
<xpath expr="//th[@t-if='showAvailabilities'][@title='Reception time estimation.']" position="replace"/>
<xpath expr="//td[@t-if='showAvailabilities'][position()=3]" position="replace"/>

</t>
</templates>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

<t t-name="mrp.clean_forecast_view_line" t-inherit="mrp.BomOverviewLine" t-inherit-mode="extension">

<!-- Remove the Availability State / Forecast column -->
<xpath expr="//td[@t-if='showAvailabilities' and contains(@class, 'text-center')]" position="replace"/>

</t>
</templates>