add model purchase

This commit is contained in:
2023-04-02 01:18:16 -05:00
parent 48ef146c44
commit 95e6ed60f3
17 changed files with 448 additions and 40 deletions

7
view/pattern_form.xml Normal file
View File

@@ -0,0 +1,7 @@
<?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>
<label name="pattern"/>
<field name="pattern"/>
</form>

6
view/pattern_tree.xml Normal file
View File

@@ -0,0 +1,6 @@
<?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="pattern"/>
</tree>

12
view/purchase_form.xml Normal file
View File

@@ -0,0 +1,12 @@
<?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/field[@name='invoice_address']" position="after">
<label name="equipment_create"/>
<field name="equipment_create"/>
</xpath>
<xpath expr="//button[@name='process']" position="after">
<button name="create_equipments"/>
</xpath>
</data>

View File

@@ -0,0 +1,28 @@
<?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/notebook/page[@id='notes']" position="before">
<page string="Equipment" id="equipment">
<label name="address_equipment"/>
<field name="address_equipment"/>
<newline/>
<label name="serial_equipment"/>
<field name="serial_equipment"/>
<newline/>
<label name="software_version"/>
<field name="software_version"/>
<newline/>
<label name="health_register"/>
<field name="health_register"/>
<newline/>
<label name="refurbish"/>
<field name="refurbish"/>
</page>
</xpath>
<xpath
expr="/form/notebook/page[@id='general']/field[@name='product']" position="after">
<label name="product_equipment"/>
<field name="product_equipment"/>
</xpath>
</data>

View File

@@ -0,0 +1,8 @@
<?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. -->
<data>
<xpath expr="//field[@name='name']" position="after">
<field name="attributes_name" expand="1"/>
</xpath>
</data>

View File

@@ -11,7 +11,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="maintenance_activity"/>
</xpath>
<xpath expr="/form/notebook/page[@id='general']" position="after">
<page string="Features" id="features" col="-1">
<page string="Features" id="features" col="4">
<newline/>
<label name="mark_category"/>
<field name="mark_category"/>
@@ -52,7 +52,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="warranty" string="Months"/>
<newline/>
<label name="observation"/>
<field name="observation"/>
<field name="observation" xexpand="1"/>
</page>
</xpath>
<xpath expr="/form/notebook/page[@id='features']" position="after">
@@ -67,6 +67,9 @@ this repository contains the full copyright notices and license terms. -->
<label name="k_pattern"/>
<field name="k_pattern"/>
<newline/>
<label name="use_pattern"/>
<field name="use_pattern"/>
<newline/>
<label name="k_pattern_list"/>
<field name="k_pattern_list"/>
<newline/>

View File

@@ -0,0 +1,7 @@
<?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>
<label name="name_pattern"/>
<field name="name_pattern"/>
</form>

View File

@@ -0,0 +1,6 @@
<?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 editable="1">
<field name="name_pattern" expand="1"/>
</tree>