summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/purchase_order.xml
diff options
context:
space:
mode:
authorHafidBuroiroh <hafidburoiroh09@gmail.com>2026-03-11 20:09:25 +0700
committerHafidBuroiroh <hafidburoiroh09@gmail.com>2026-03-11 20:09:25 +0700
commit715a60d3dce76a253afd2b119e0e800a230dd24d (patch)
treeba8bd1521c10ac78e45a6e6481b6d651a69fc606 /indoteknik_custom/views/purchase_order.xml
parent4a200ee4e0caf44e78273215b12c3655655f4273 (diff)
parente6b6691f518a7400babdbd4b95541fb3d07f154d (diff)
<hafid> naekin sorcing job
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 581690a1..c2a45c7a 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -230,11 +230,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">
@@ -467,6 +493,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"/>