add wizard for contract management and creation of model contracts maangement

This commit is contained in:
2022-09-16 14:50:05 -05:00
parent 0c88126ae8
commit 9b09080ae8
17 changed files with 612 additions and 54 deletions

43
view/contract_form.xml Normal file
View File

@@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form col="6">
<label name="party"/>
<field name="party"/>
<label name="invoice_address"/>
<field name="invoice_address"/>
<label name="number"/>
<field name="number"/>
<label name="contact"/>
<field name="contact"/>
<label name="invoice_recurrence"/>
<field name="invoice_recurrence"/>
<newline/>
<label name="description"/>
<field name="description" colspan="3"/>
<label name="reference"/>
<field name="reference"/>
<newline/>
<separator id="validity" string="Validity" colspan="6"/>
<label name="start_date"/>
<field name="start_date"/>
<label name="end_date"/>
<field name="end_date"/>
<notebook colspan="6">
<page string="Contracts and Prorogues" id="contracts">
<separator id="current_contract" string="Current Contract" colspan="6"/>
<field name="contract"/>
<newline/>
<field name="prorogues"/>
</page>
<page string="Equipments" id="equipments">
<field name="equipments"/>
</page>
<page string="Other Info" id="other">
<label name="company"/>
<field name="company"/>
</page>
</notebook>
<label name="state"/>
<field name="state"/>
</form>

11
view/contract_list.xml Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="number"/>
<field name="party"/>
<field name="reference"/>
<field name="description"/>
<field name="start_date"/>
<field name="end_date"/>
</tree>

9
view/contract_tree.xml Normal file
View File

@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!--This file file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<tree>
<field name="number"/>
<field name="reference"/>
<field name="party"/>
<field name="start_date"/>
<field name="end_date"/>
</tree>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level
this repository contains the full copyright notices and license terms. -->
<form>
<group id="create_prorogue">
<label name="initial_contract"/>
<field name="initial_contract" colspan="3"/>
<label name="party"/>
<field name="party"/>
<label name="invoice_address"/>
<field name="invoice_address"/>
<label name="contact"/>
<field name="contact"/>
<newline/>
<label name="start_date"/>
<field name="start_date"/>
<label name="end_date"/>
<field name="end_date"/>
<label name="invoice_start_date"/>
<field name="invoice_start_date"/>>
<label name="invoice_recurrence"/>
<field name="invoice_recurrence"/>
</group>
<newline/>
<field name="equipments"/>
</form>

View File

@@ -1,27 +1,25 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level
this repository contains the full copyright notices and license terms. -->
<form col="2">
<image name="tryton-warning" xexpand="0" xfill="0"/>
<group col="4" id="create_subscription">
<label
string="Are you sure to create one subscription these/this sale(s)?"
id="create_subscription" colspan="2"
yalign="0.0" xalign="0.0" xexpand="1"/>
<newline/>
<form>
<group id="create_subscription">
<label name="initial_contract"/>
<field name="initial_contract"/>
<label name="party"/>
<field name="party"/>
<label name="contact"/>
<field name="contact"/>
<label name="invoice_address"/>
<field name="invoice_address"/>
<label name="invoice_recurrence"/>
<field name="invoice_recurrence"/>
<label name="start_date"/>
<field name="start_date"/>
<label name="end_date"/>
<field name="end_date"/>
<label name="invoice_recurrence"/>
<field name="invoice_recurrence"/>
<label name="invoice_start_date"/>
<field name="invoice_start_date"/>
<label name="service"/>
<field name="service"/>
<label name="quantity"/>
<field name="quantity"/>
<label name="unit_price"/>
<field name="unit_price"/>
</group>
<newline/>
<field name="equipments"/>
</form>

View File

@@ -1,6 +1,10 @@
<?xml version="1.0"?>
<!--This file file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<data>
<!--
<xpath expr="/form/group[@id='header']/field[@name='party']" position="before">
<field name="type"/>
</xpath> -->
<xpath
expr="/form/notebook/page[@id='subscription']" position="after">
<page string="Equipments" id="equipments_subscription">