summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/purchase_order.xml
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views/purchase_order.xml')
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml40
1 files changed, 39 insertions, 1 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index 9651cdd6..56e74d46 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -229,11 +229,37 @@
<field name="purchase_order_lines"/>
</page>
</xpath>
- <xpath expr="//form/sheet/notebook/page[@name='purchase_delivery_invoice']" position="after">
+ <!-- <xpath expr="//form/sheet/notebook/page[@name='purchase_delivery_invoice']" position="after">
<page string="Matches SO" name="purchase_order_sales_matches_lines">
<field name="order_sales_match_line"/>
</page>
+ </xpath> -->
+ <xpath expr="//notebook" position="inside">
+ <page string="Forecast">
+ <field name="forecast_html" nolabel="1"/>
+ </page>
+ </xpath>
+
+ <xpath expr="//notebook" position="inside">
+ <page string="Forecast Coverage">
+
+ <field name="forecast_line_ids">
+
+ <tree decoration-danger="is_late" decoration-success="replenishment_filled">
+ <field name="product_id"/>
+ <field name="quantity"/>
+ <field name="sale_order"/>
+ <field name="sale_order_id"/>
+ <field name="receipt_date"/>
+ <field name="delivery_date"/>
+ <field name="replenishment_filled"/>
+ <field name="is_late"/>
+ </tree>
+
+ </field>
+ </page>
</xpath>
+
<xpath expr="//form/sheet/notebook/page[@name='purchase_delivery_invoice']" position="after">
<page string="Other Info" name="purchase_order_sales_matches_lines">
<group string="Return Doc">
@@ -466,6 +492,18 @@
</record>
</data>
<data>
+ <record id="cron_generate_po_forecast" model="ir.cron">
+ <field name="name">Generate PO Forecast Coverage</field>
+ <field name="model_id" ref="purchase.model_purchase_order"/>
+ <field name="state">code</field>
+ <field name="code">model.cron_generate_po_forecast()</field>
+ <field name="interval_number">7</field>
+ <field name="interval_type">minutes</field>
+ <field name="numbercall">-1</field>
+ <field name="active">True</field>
+ </record>
+ </data>
+ <data>
<record id="action_update_receipt_date_po" model="ir.actions.server">
<field name="name">Update Receipt Date</field>
<field name="model_id" ref="purchase.model_purchase_order"/>