|
|
@ -36,30 +36,34 @@ |
|
|
|
<field name="name"/> |
|
|
|
</h1> |
|
|
|
</div> |
|
|
|
<group string="General" colspan="2" col="4"> |
|
|
|
<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 string="General"> |
|
|
|
<group> |
|
|
|
<field name="reference" readonly="1"/> |
|
|
|
<field name="parent_agreement_id" |
|
|
|
domain="[('customer_id', '=', customer_id)]"/> |
|
|
|
<field name="is_template"/> |
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<field name="agreement_type_id" |
|
|
|
widget="selection" |
|
|
|
required="True"/> |
|
|
|
<field name="agreement_subtype_id" |
|
|
|
widget="selection" |
|
|
|
domain="[('agreement_type_id', '=', agreement_type_id)]"/> |
|
|
|
<field name="assigned_user_id" |
|
|
|
attrs="{'invisible': [('is_template', '=', True)], 'readonly':[('is_template', '=', True)]}"/> |
|
|
|
<field name="active" invisible="1"/> |
|
|
|
<field name="state" invisible="1"/> |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<group string="Description"> |
|
|
|
<field name="description" |
|
|
|
string="Description" |
|
|
|
required="True"/> |
|
|
|
required="True" |
|
|
|
nolabel="1"/> |
|
|
|
</group> |
|
|
|
<group name="customer_vendor_information"> |
|
|
|
<group name="parties" string="Parties"> |
|
|
|
<group name="customer_left" |
|
|
|
string="Customer Information"> |
|
|
|
string="Customer"> |
|
|
|
<div class="o_address_format"> |
|
|
|
<field name="customer_id" |
|
|
|
domain="[('customer', '=', True)]" |
|
|
@ -68,7 +72,7 @@ |
|
|
|
</div> |
|
|
|
</group> |
|
|
|
<group name="vendor_right" |
|
|
|
string="Vendor Information"> |
|
|
|
string="Vendor"> |
|
|
|
<div class="o_address_format"> |
|
|
|
<field name="vendor_id" |
|
|
|
domain="[('supplier', '=', True)]" |
|
|
@ -105,8 +109,9 @@ |
|
|
|
<field name="increase_type_id" widget="selection"/> |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<field name="special_terms"/> |
|
|
|
<group string="Special Terms"> |
|
|
|
<field name="special_terms" |
|
|
|
nolabel="1"/> |
|
|
|
</group> |
|
|
|
<notebook> |
|
|
|
<page name="structure" string="Structure"> |
|
|
@ -114,16 +119,20 @@ |
|
|
|
<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="2" default_order='section_sequence'> |
|
|
|
<field name="sections_ids" string="Contract Sections" context="{'default_agreement': active_id}"> |
|
|
|
<group string="Sections" default_order='section_sequence'> |
|
|
|
<field name="sections_ids" |
|
|
|
nolabel="1" |
|
|
|
context="{'default_agreement': active_id}"> |
|
|
|
<tree default_order='section_sequence'> |
|
|
|
<field name="section_sequence" widget="handle"/> |
|
|
|
<field name="name"/> |
|
|
|
</tree> |
|
|
|
</field> |
|
|
|
</group> |
|
|
|
<group colspan="2" col="2" default_order='section_id, clause_sequence'> |
|
|
|
<field name="clauses_ids" string="Contract Clauses" context="{'default_agreement': active_id}"> |
|
|
|
<group string="Clauses" default_order='section_id, clause_sequence'> |
|
|
|
<field name="clauses_ids" |
|
|
|
nolabel="1" |
|
|
|
context="{'default_agreement': active_id}"> |
|
|
|
<tree default_order='section_id, clause_sequence'> |
|
|
|
<field name="clause_sequence" widget="handle"/> |
|
|
|
<field name="section_id"/> |
|
|
@ -133,32 +142,39 @@ |
|
|
|
</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> |
|
|
|
<group string="Company"> |
|
|
|
<field name="company_signed_date"/> |
|
|
|
<field name="company_signed_user_id"/> |
|
|
|
<field name="signed_contract" filename="signed_contract_filename"/> |
|
|
|
<field name="signed_contract_filename" invisible="1"/> |
|
|
|
</group> |
|
|
|
<group string="Customer"> |
|
|
|
<field name="customer_signed_date"/> |
|
|
|
<field name="customer_signed_user_id" domain="[('parent_id', '=', customer_id)]"/> |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
</page> |
|
|
|
<page name="products" string="MRC and NRC Products"> |
|
|
|
<group string="Financial Details" colspan="2" col="4"> |
|
|
|
<field name="total_company_mrc"/> |
|
|
|
<field name="total_customer_mrc"/> |
|
|
|
<field name="total_company_nrc"/> |
|
|
|
<field name="total_customer_nrc"/> |
|
|
|
<field name="currency_id"/> |
|
|
|
<field name="contract_value" readonly="1"/> |
|
|
|
</group> |
|
|
|
<page name="products" string="Products/Services"> |
|
|
|
<group> |
|
|
|
<field name="sale_order_id" domain="[('partner_id', '=', customer_id)]"/> |
|
|
|
<field name="product_ids" nolabel="1"/> |
|
|
|
</group> |
|
|
|
<group string="Sales Order Lines"> |
|
|
|
<field name="order_lines_services_ids" nolabel="1" readonly="1"/> |
|
|
|
</page> |
|
|
|
<page name="costs" string="Costs"> |
|
|
|
<group string="Financial Details"> |
|
|
|
<group string="Company"> |
|
|
|
<field name="total_company_mrc"/> |
|
|
|
<field name="total_company_nrc"/> |
|
|
|
<field name="currency_id"/> |
|
|
|
<field name="contract_value" readonly="1"/> |
|
|
|
</group> |
|
|
|
<group string="Customer"> |
|
|
|
<field name="total_customer_mrc"/> |
|
|
|
<field name="total_customer_nrc"/> |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
</page> |
|
|
|
<page colspan="2" col="4" name="child_agreements" string="Child Agreements"> |
|
|
|
<page name="child_agreements" string="Child Agreements"> |
|
|
|
<field name="child_agreements_ids"> |
|
|
|
<tree default_order='version desc'> |
|
|
|
<field name="name"/> |
|
|
@ -167,7 +183,7 @@ |
|
|
|
</tree> |
|
|
|
</field> |
|
|
|
</page> |
|
|
|
<page colspan="2" col="4" name="old_versions" string="Revisions"> |
|
|
|
<page name="old_versions" string="Revisions"> |
|
|
|
<field name="previous_version_agreements_ids" string="Previouse Versions"> |
|
|
|
<tree default_order='version desc'> |
|
|
|
<field name="name"/> |
|
|
@ -176,17 +192,16 @@ |
|
|
|
</tree> |
|
|
|
</field> |
|
|
|
</page> |
|
|
|
<page colspan="2" col="4" name="peformance" string="Performance"> |
|
|
|
<page name="peformance" string="Performance"> |
|
|
|
<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"/> |
|
|
|
<group string="Administration"> |
|
|
|
<div> |
|
|
|
<p>Reviewed by <field name="reviewed_user_id" class="oe_inline"/> on <field name="reviewed_date" class="oe_inline"/>.</p> |
|
|
|
<p>Approved by <field name="approved_user_id" class="oe_inline"/> on <field name="approved_date" class="oe_inline"/>.</p> |
|
|
|
</div> |
|
|
|
</group> |
|
|
|
<footer> |
|
|
|
Version: <field name="version" readonly="True"/>.<field name="revision" readonly="True"/> |
|
|
|