mirror of
https://github.com/bringout/oca-project.git
synced 2026-04-19 12:22:00 +02:00
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
75 lines
3.3 KiB
XML
75 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record model="ir.actions.act_window" id="action_project_task_moves">
|
|
<field name="name">Inventory Moves</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">stock.move.line</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field
|
|
name="domain"
|
|
>['|', ('move_id.raw_material_task_id', '=', active_id), ('move_id.task_id', '=', active_id)]</field>
|
|
</record>
|
|
<record id="view_stock_move_raw_tree" model="ir.ui.view">
|
|
<field name="name">stock.move.raw.tree</field>
|
|
<field name="model">stock.move</field>
|
|
<field name="priority">1000</field>
|
|
<field name="arch" type="xml">
|
|
<tree
|
|
editable="bottom"
|
|
default_order="sequence"
|
|
decoration-muted="state in ('done', 'cancel')"
|
|
decoration-warning="quantity_done - product_uom_qty > 0.0001"
|
|
decoration-success="state not in ('done', 'cancel') and quantity_done - product_uom_qty < 0.0001"
|
|
decoration-danger="state not in ('done', 'cancel') and reserved_availability < product_uom_qty and product_uom_qty - reserved_availability > 0.0001"
|
|
>
|
|
<field name="company_id" invisible="1" />
|
|
<field
|
|
name="product_id"
|
|
required="1"
|
|
attrs="{'readonly': [('state', '!=', 'draft')]}"
|
|
/>
|
|
<field name="sequence" invisible="1" />
|
|
<field name="location_id" optional="hide" readonly="1" force_save="1" />
|
|
<field
|
|
name="location_dest_id"
|
|
optional="hide"
|
|
readonly="1"
|
|
force_save="1"
|
|
/>
|
|
<field
|
|
name="picking_type_id"
|
|
optional="hide"
|
|
readonly="1"
|
|
force_save="1"
|
|
/>
|
|
<field name="name" invisible="1" />
|
|
<field name="state" invisible="1" />
|
|
<field
|
|
name="product_uom"
|
|
groups="uom.group_uom"
|
|
attrs="{'readonly': [('state', '!=', 'draft')]}"
|
|
/>
|
|
<field
|
|
name="product_uom_qty"
|
|
string="To Consume"
|
|
attrs="{'readonly': [('state', '!=', 'draft')]}"
|
|
/>
|
|
<button
|
|
name="action_task_product_forecast_report"
|
|
type="object"
|
|
icon="fa-area-chart"
|
|
title="Forecasted Report"
|
|
attrs="{'invisible': ['|', ('product_id', '=', False),('state', 'in', ['done', 'cancel'])]}"
|
|
/>
|
|
<field name="product_uom_category_id" invisible="1" />
|
|
<field
|
|
name="reserved_availability"
|
|
attrs="{'invisible': [('state', 'in', ('done', 'cancel'))]}"
|
|
string="Reserved"
|
|
/>
|
|
<field name="quantity_done" string="Consumed" readonly="1" />
|
|
<field name="group_id" invisible="1" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
</odoo>
|