|
|
@ -27,7 +27,7 @@ |
|
|
|
<header> |
|
|
|
<button string="New Version" type="object" name="create_new_version" class="oe_highlight" attrs="{'invisible': [('state', '=', 'active')]}"/> |
|
|
|
<button string="New Agreement" type="object" name="create_new_agreement" class="oe_highlight" attrs="{'invisible': [('is_template', '=', False)]}"/> |
|
|
|
<field name="state" widget="statusbar" clickable="True" options="{'fold_field': 'fold'}"/> |
|
|
|
<field name="stage_id" widget="statusbar" clickable="True" options="{'fold_field': 'fold'}"/> |
|
|
|
</header> |
|
|
|
<sheet> |
|
|
|
<div class="oe_title"> |
|
|
@ -37,36 +37,43 @@ |
|
|
|
</h1> |
|
|
|
</div> |
|
|
|
<group string="General" colspan="2" col="4"> |
|
|
|
<field name="contract_id" string="Internal ID"/> |
|
|
|
<field name="stage_id" widget="selection" requried="True"/> |
|
|
|
<field name="parent_agreement_id" domain="[('customer_id', '=', customer_id)]"/> |
|
|
|
<field name="agreement_type_id" widget="selection" requried="True"/> |
|
|
|
<field name="assigned_user_id" attrs="{'invisible': [('is_template', '=', True)], 'readonly':[('is_template', '=', True)]}"/> |
|
|
|
<field name="agreement_subtype_id" widget="selection" domain="[('agreement_type_id', '=', agreement_type_id)]"/> |
|
|
|
<field name="active" invisible="1"/> |
|
|
|
<field name="contract_id" |
|
|
|
string="Internal ID"/> |
|
|
|
<field name="parent_agreement_id" |
|
|
|
domain="[('customer_id', '=', customer_id)]"/> |
|
|
|
<field name="agreement_type_id" |
|
|
|
widget="selection" |
|
|
|
required="True"/> |
|
|
|
<field name="assigned_user_id" |
|
|
|
attrs="{'invisible': [('is_template', '=', True)], 'readonly':[('is_template', '=', True)]}"/> |
|
|
|
<field name="agreement_subtype_id" |
|
|
|
widget="selection" |
|
|
|
domain="[('agreement_type_id', '=', agreement_type_id)]"/> |
|
|
|
<field name="active" invisible="1"/> |
|
|
|
<field name="state" invisible="1"/> |
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<field name="description" string="Description" requried="True"/> |
|
|
|
<field name="description" |
|
|
|
string="Description" |
|
|
|
required="True"/> |
|
|
|
</group> |
|
|
|
<group name="customer_vendor_information"> |
|
|
|
<group name="customer_left" string="Customer Information"> |
|
|
|
<group name="customer_left" |
|
|
|
string="Customer Information"> |
|
|
|
<div class="o_address_format"> |
|
|
|
<field name="customer_id" domain="[('customer', '=', True)]"/> |
|
|
|
<field name="customer_street" placeholder="Street..." class="o_address_street" readonly="1"/> |
|
|
|
<field name="customer_street2" placeholder="Street 2..." class="o_address_street" readonly="1"/> |
|
|
|
<field name="customer_city" placeholder="City" class="o_address_city" readonly="1"/> |
|
|
|
<field name="customer_state_id" class="o_address_state" placeholder="State" options="{"no_open": True}" readonly="1"/> |
|
|
|
<field name="customer_zip" placeholder="ZIP" class="o_address_zip" readonly="1"/> |
|
|
|
<field name="customer_id" |
|
|
|
domain="[('customer', '=', True)]" |
|
|
|
context="{'show_address': 1}" |
|
|
|
options="{"always_reload": True}"/> |
|
|
|
</div> |
|
|
|
</group> |
|
|
|
<group name="vendor_right" string="Vendor Information"> |
|
|
|
<group name="vendor_right" |
|
|
|
string="Vendor Information"> |
|
|
|
<div class="o_address_format"> |
|
|
|
<field name="vendor_id" domain="[('supplier', '=', True)]"/> |
|
|
|
<field name="vendor_street" placeholder="Street..." class="o_address_street" readonly="1"/> |
|
|
|
<field name="vendor_street2" placeholder="Street 2..." class="o_address_street" readonly="1"/> |
|
|
|
<field name="vendor_city" placeholder="City" class="o_address_city" readonly="1"/> |
|
|
|
<field name="vendor_state_id" class="o_address_state" placeholder="State" options="{"no_open": True}" readonly="1"/> |
|
|
|
<field name="vendor_zip" placeholder="ZIP" class="o_address_zip" readonly="1"/> |
|
|
|
<field name="vendor_id" |
|
|
|
domain="[('supplier', '=', True)]" |
|
|
|
context="{'show_address': 1}" |
|
|
|
options="{"always_reload": True}"/> |
|
|
|
</div> |
|
|
|
</group> |
|
|
|
<group name="contact_left" string="Primary Contact"> |
|
|
@ -82,8 +89,8 @@ |
|
|
|
</group> |
|
|
|
<group name="term_information"> |
|
|
|
<group name="termdates_left" string="Term Dates"> |
|
|
|
<field name="start_date" requried="True" attrs="{'required': [('is_template', '=', False)], 'readonly':[('is_template', '=', True)]}"/> |
|
|
|
<field name="end_date" requried="True" attrs="{'required': [('is_template', '=', False)], 'readonly':[('is_template', '=', True)]}"/> |
|
|
|
<field name="start_date" required="True" attrs="{'required': [('is_template', '=', False)], 'readonly':[('is_template', '=', True)]}"/> |
|
|
|
<field name="end_date" required="True" attrs="{'required': [('is_template', '=', False)], 'readonly':[('is_template', '=', True)]}"/> |
|
|
|
<field name="expiration_notice"/> |
|
|
|
<field name="change_notice"/> |
|
|
|
<field name="notification_address_id" domain="['|',('parent_id','=',customer_id),('parent_id','=',vendor_id)]"/> |
|
|
@ -99,22 +106,14 @@ |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<field name="special_terms"/> |
|
|
|
<field name="special_terms"/> |
|
|
|
</group> |
|
|
|
<notebook> |
|
|
|
<page name="contract_document" string="Contract Document"> |
|
|
|
<page name="structure" string="Structure"> |
|
|
|
<div> |
|
|
|
<button name="%(partner_agreement_contract_document_preview)d" string="Preview" type="action" class="oe_highlight"/> |
|
|
|
<button name="%(partner_agreement_contract_document)d" string="Print" type="action" class="oe_highlight"/> |
|
|
|
</div> |
|
|
|
<group colspan="2" col="4"> |
|
|
|
<field name="customer_signed_date"/> |
|
|
|
<field name="company_signed_date"/> |
|
|
|
<field name="customer_signed_user_id" domain="[('parent_id', '=', customer_id)]"/> |
|
|
|
<field name="company_signed_user_id"/> |
|
|
|
<field name="signed_contract" filename="signed_contract_filename"/> |
|
|
|
<field name="signed_contract_filename" invisible="1"/> |
|
|
|
</group> |
|
|
|
<group colspan="2" col="2" default_order='section_sequence'> |
|
|
|
<field name="sections_ids" string="Contract Sections" context="{'default_agreement': active_id}"> |
|
|
|
<tree default_order='section_sequence'> |
|
|
@ -133,6 +132,16 @@ |
|
|
|
</field> |
|
|
|
</group> |
|
|
|
</page> |
|
|
|
<page name="signature" string="Signatures"> |
|
|
|
<group colspan="2" col="4"> |
|
|
|
<field name="customer_signed_date"/> |
|
|
|
<field name="company_signed_date"/> |
|
|
|
<field name="customer_signed_user_id" domain="[('parent_id', '=', customer_id)]"/> |
|
|
|
<field name="company_signed_user_id"/> |
|
|
|
<field name="signed_contract" filename="signed_contract_filename"/> |
|
|
|
<field name="signed_contract_filename" invisible="1"/> |
|
|
|
</group> |
|
|
|
</page> |
|
|
|
<page name="products" string="MRC and NRC Products"> |
|
|
|
<group string="Financial Details" colspan="2" col="4"> |
|
|
|
<field name="total_company_mrc"/> |
|
|
@ -143,10 +152,10 @@ |
|
|
|
<field name="contract_value" readonly="1"/> |
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<field name="sale_order_id" domain="[('partner_id', '=', customer_id)]"/> |
|
|
|
<field name="sale_order_id" domain="[('partner_id', '=', customer_id)]"/> |
|
|
|
</group> |
|
|
|
<group string="Sales Order Lines"> |
|
|
|
<field name="order_lines_services_ids" nolabel="1" readonly="1"/> |
|
|
|
<field name="order_lines_services_ids" nolabel="1" readonly="1"/> |
|
|
|
</group> |
|
|
|
</page> |
|
|
|
<page colspan="2" col="4" name="child_agreements" string="Child Agreements"> |
|
|
@ -168,16 +177,16 @@ |
|
|
|
</field> |
|
|
|
</page> |
|
|
|
<page colspan="2" col="4" name="peformance" string="Performance"> |
|
|
|
<p>This section is a place where finincial records will show the current performance of this agreement. </p> |
|
|
|
<p>This section is a place where financial records will show the current performance of this agreement.</p> |
|
|
|
<p>Perhaps include invoices with total vs costs? </p> |
|
|
|
</page> |
|
|
|
</notebook> |
|
|
|
<group colspan="2" col="4" string="Administration"> |
|
|
|
<field name="reviewed_date"/> |
|
|
|
<field name="approved_date"/> |
|
|
|
<field name="reviewed_user_id"/> |
|
|
|
<field name="approved_user_id"/> |
|
|
|
<field name="is_template"/> |
|
|
|
<field name="reviewed_date"/> |
|
|
|
<field name="approved_date"/> |
|
|
|
<field name="reviewed_user_id"/> |
|
|
|
<field name="approved_user_id"/> |
|
|
|
<field name="is_template"/> |
|
|
|
</group> |
|
|
|
<footer> |
|
|
|
Version: <field name="version" readonly="True"/>.<field name="revision" readonly="True"/> |
|
|
@ -237,14 +246,14 @@ |
|
|
|
</div> |
|
|
|
<div class="o_kanban_record_bottom"> |
|
|
|
<div class="oe_kanban_bottom_left"> |
|
|
|
V: <field name="version"/> |
|
|
|
</div> |
|
|
|
<div class="oe_kanban_bottom_right"> |
|
|
|
<img t-att-src="kanban_image('res.users', 'image_small', record.assigned_user_id.raw_value)" t-att-title="record.assigned_user_id.value" width="36" height="36" class="oe_kanban_avatar"/> |
|
|
|
V: <field name="version"/> |
|
|
|
</div> |
|
|
|
<div class="oe_kanban_bottom_right"> |
|
|
|
<img t-att-src="kanban_image('res.users', 'image_small', record.assigned_user_id.raw_value)" t-att-title="record.assigned_user_id.value" width="36" height="36" class="oe_kanban_avatar"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="oe_clear"/> |
|
|
|
<div class="oe_clear"/> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</templates> |
|
|
@ -281,17 +290,24 @@ |
|
|
|
</record> |
|
|
|
|
|
|
|
<!-- actions opening views on models --> |
|
|
|
<record model="ir.actions.act_window" id="partner_agreement_agreement"> |
|
|
|
<record model="ir.actions.act_window" id="agreement_dashboard_agreement"> |
|
|
|
<field name="name">Agreements</field> |
|
|
|
<field name="res_model">agreement</field> |
|
|
|
<field name="context">{"search_default_filter_non_template":1}</field> |
|
|
|
<field name="domain">[('is_template', '=', False)]</field> |
|
|
|
<field name="view_mode">kanban,tree,form</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="partner_agreement_agreement_templates"> |
|
|
|
<record model="ir.actions.act_window" id="agreement_operations_agreement"> |
|
|
|
<field name="name">Agreements</field> |
|
|
|
<field name="res_model">agreement</field> |
|
|
|
<field name="context">{"search_default_filter_templates":1}</field> |
|
|
|
<field name="domain">[('is_template', '=', False)]</field> |
|
|
|
<field name="view_mode">tree,form</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="partner_agreement_agreement_templates"> |
|
|
|
<field name="name">Templates</field> |
|
|
|
<field name="res_model">agreement</field> |
|
|
|
<field name="domain">[('is_template', '=', True)]</field> |
|
|
|
<field name="view_mode">tree,kanban,form</field> |
|
|
|
</record> |
|
|
|
|
|
|
|