First Commit

This commit is contained in:
2026-05-31 10:17:09 +07:00
commit 17a9c69379
4547 changed files with 1170384 additions and 0 deletions
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<menuitem
id="menu_grt_ifc_root"
name="IFC"
sequence="80"
groups="base.group_user"
/>
<menuitem
id="menu_grt_ifc_project"
name="IFC Projects"
parent="menu_grt_ifc_root"
action="action_grt_ifc_project"
sequence="10"
groups="base.group_user"
/>
</odoo>
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_grt_ifc_project_tree" model="ir.ui.view">
<field name="name">grt.ifc.project.tree</field>
<field name="model">grt.ifc.project</field>
<field name="arch" type="xml">
<list string="IFC Projects">
<field name="name"/>
<field name="company_id"/>
<field name="file_name"/>
<field name="schema_name"/>
<field name="entity_count"/>
<field name="product_count" optional="show"/>
<field name="assembly_count" optional="show"/>
<field name="part_count" optional="hide"/>
<field name="fastener_count" optional="hide"/>
<field name="state"/>
<field name="parsed_at"/>
</list>
</field>
</record>
<record id="view_grt_ifc_project_form" model="ir.ui.view">
<field name="name">grt.ifc.project.form</field>
<field name="model">grt.ifc.project</field>
<field name="arch" type="xml">
<form string="IFC Project">
<header>
<button name="action_parse_ifc"
string="Parse IFC"
type="object"
class="btn-primary"
invisible="state == 'parsed'"/>
<button name="action_load_sample_ifc"
string="Load Sample"
type="object"
class="btn-secondary"/>
<button name="action_reset_parse"
string="Reset"
type="object"
invisible="state == 'draft'"/>
<field name="state" widget="statusbar" statusbar_visible="draft,parsed,failed"/>
</header>
<sheet>
<group>
<group>
<field name="name"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="sample_file_key"/>
<field name="file_name"/>
<field name="file_data" filename="file_name"/>
</group>
<group>
<field name="schema_name" readonly="1"/>
<field name="entity_count" readonly="1"/>
<field name="parsed_at" readonly="1"/>
</group>
</group>
<group string="Parse Log">
<field name="parse_message" nolabel="1" readonly="1"/>
</group>
<group string="Product Engineering &amp; Manufacturing Data">
<field name="product_count"/>
<field name="assembly_count"/>
<field name="part_count"/>
<field name="fastener_count"/>
<field name="manufacturing_info" nolabel="1" readonly="1"/>
</group>
<notebook>
<page string="Bill of Materials" name="bom_page" invisible="state != 'parsed'">
<field name="bom_ids" readonly="1">
<list string="BOM">
<field name="level"/>
<field name="parent_id" optional="hide"/>
<field name="name"/>
<field name="global_id"/>
<field name="ifc_type" widget="badge"/>
<field name="relation_type" optional="show"/>
<field name="quantity" optional="show"/>
<field name="unit_name" optional="show"/>
</list>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="action_grt_ifc_project" model="ir.actions.act_window">
<field name="name">IFC Projects</field>
<field name="res_model">grt.ifc.project</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">Upload file IFC pertama Anda</p>
</field>
</record>
</odoo>