first commit
This commit is contained in:
22
modules/product/view/category_form.xml
Normal file
22
modules/product/view/category_form.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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="name"/>
|
||||
<field name="name"/>
|
||||
<label name="code"/>
|
||||
<field name="code"/>
|
||||
<group colspan="2" col="-1" id="checkboxes">
|
||||
<!-- Add here some checkboxes ! -->
|
||||
</group>
|
||||
|
||||
<label name="parent"/>
|
||||
<field name="parent" colspan="3"/>
|
||||
|
||||
<button name="add_products" colspan="6"/>
|
||||
<notebook colspan="6">
|
||||
<page string="Children" col="1" id="childs">
|
||||
<field name="childs"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
8
modules/product/view/category_list.xml
Normal file
8
modules/product/view/category_list.xml
Normal 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. -->
|
||||
<tree>
|
||||
<field name="code" expand="1" optional="1"/>
|
||||
<field name="rec_name" expand="2"/>
|
||||
<field name="name" tree_invisible="1"/>
|
||||
</tree>
|
||||
8
modules/product/view/category_product_form.xml
Normal file
8
modules/product/view/category_product_form.xml
Normal 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. -->
|
||||
<form col="2">
|
||||
<label name="rec_name"/>
|
||||
<field name="rec_name" readonly="1"/>
|
||||
<field name="templates" colspan="2"/>
|
||||
</form>
|
||||
9
modules/product/view/category_tree.xml
Normal file
9
modules/product/view/category_tree.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?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 keyword_open="1">
|
||||
<field name="code" expand="1" optional="1"/>
|
||||
<field name="name" expand="2"/>
|
||||
<field name="parent" tree_invisible="1"/>
|
||||
<field name="childs" tree_invisible="1"/>
|
||||
</tree>
|
||||
15
modules/product/view/configuration_form.xml
Normal file
15
modules/product/view/configuration_form.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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="default_cost_price_method"/>
|
||||
<field name="default_cost_price_method"/>
|
||||
<separator id="sequences" string="Sequences" colspan="4"/>
|
||||
<label name="template_sequence"/>
|
||||
<field name="template_sequence"/>
|
||||
<label name="product_sequence"/>
|
||||
<field name="product_sequence"/>
|
||||
|
||||
<label name="category_sequence"/>
|
||||
<field name="category_sequence"/>
|
||||
</form>
|
||||
13
modules/product/view/identifier_form.xml
Normal file
13
modules/product/view/identifier_form.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?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="product"/>
|
||||
<field name="product"/>
|
||||
<label name="sequence"/>
|
||||
<field name="sequence"/>
|
||||
<label name="type"/>
|
||||
<field name="type"/>
|
||||
<label name="code"/>
|
||||
<field name="code"/>
|
||||
</form>
|
||||
8
modules/product/view/identifier_list.xml
Normal file
8
modules/product/view/identifier_list.xml
Normal 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. -->
|
||||
<tree>
|
||||
<field name="product"/>
|
||||
<field name="type"/>
|
||||
<field name="code" expand="1"/>
|
||||
</tree>
|
||||
8
modules/product/view/identifier_list_sequence.xml
Normal file
8
modules/product/view/identifier_list_sequence.xml
Normal 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. -->
|
||||
<tree sequence="sequence">
|
||||
<field name="product"/>
|
||||
<field name="type"/>
|
||||
<field name="code" expand="1"/>
|
||||
</tree>
|
||||
33
modules/product/view/product_form.xml
Normal file
33
modules/product/view/product_form.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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="/form/field[@name='code']" position="replace">
|
||||
<group col="-1" name="code" string="">
|
||||
<field name="prefix_code"/>
|
||||
<field name="suffix_code"/>
|
||||
</group>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='active']" position="after">
|
||||
<label name="replaced_by"/>
|
||||
<field name="replaced_by" colspan="3"/>
|
||||
<newline/>
|
||||
</xpath>
|
||||
<xpath expr="/form/notebook/page[@id='general']/label[@name='type']"
|
||||
position="before">
|
||||
<label name="template"/>
|
||||
<field name="template" colspan="3"/>
|
||||
</xpath>
|
||||
<xpath expr="/form/notebook/page/field[@name='products']" position="replace">
|
||||
<group id="description" colspan="2" col="1" yexpand="1" yfill="1">
|
||||
<separator name="description"/>
|
||||
<field name="description"/>
|
||||
</group>
|
||||
</xpath>
|
||||
<xpath expr="/form/notebook/page[@id='general']" position="after">
|
||||
<page name="identifiers" col="1">
|
||||
<field name="identifiers" pre_validate="1"
|
||||
view_ids="product.identifier_view_list_sequence"/>
|
||||
</page>
|
||||
</xpath>
|
||||
</data>
|
||||
27
modules/product/view/product_form_simple.xml
Normal file
27
modules/product/view/product_form_simple.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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="code"/>
|
||||
<group col="-1" name="code" string="">
|
||||
<field name="prefix_code"/>
|
||||
<field name="suffix_code"/>
|
||||
</group>
|
||||
<label name="active"/>
|
||||
<field name="active"/>
|
||||
|
||||
<label name="template"/>
|
||||
<field name="template"/>
|
||||
<label name="position"/>
|
||||
<field name="position"/>
|
||||
|
||||
<label name="list_price"/>
|
||||
<field name="list_price"/>
|
||||
<newline/>
|
||||
|
||||
<label name="cost_price"/>
|
||||
<field name="cost_price"/>
|
||||
<field name="identifiers" colspan="4" pre_validate="1" view_ids="product.identifier_view_list_sequence"/>
|
||||
<separator name="description" colspan="4"/>
|
||||
<field name="description" colspan="4"/>
|
||||
</form>
|
||||
9
modules/product/view/product_replace_ask_form.xml
Normal file
9
modules/product/view/product_replace_ask_form.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?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="source" string="Product"/>
|
||||
<field name="source"/>
|
||||
<label name="destination" string="Replaced By"/>
|
||||
<field name="destination"/>
|
||||
</form>
|
||||
10
modules/product/view/product_tree.xml
Normal file
10
modules/product/view/product_tree.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?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='products']" position="replace">
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='list_price']" position="replace">
|
||||
<field name="list_price_used"/>
|
||||
</xpath>
|
||||
</data>
|
||||
6
modules/product/view/product_tree_simple.xml
Normal file
6
modules/product/view/product_tree_simple.xml
Normal 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="rec_name" expand="1"/>
|
||||
</tree>
|
||||
6
modules/product/view/product_tree_simple_sequence.xml
Normal file
6
modules/product/view/product_tree_simple_sequence.xml
Normal 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 sequence="position">
|
||||
<field name="rec_name" expand="1"/>
|
||||
</tree>
|
||||
38
modules/product/view/template_form.xml
Normal file
38
modules/product/view/template_form.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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="name"/>
|
||||
<field name="name" xexpand="1"/>
|
||||
<label name="code"/>
|
||||
<field name="code"/>
|
||||
<label name="active"/>
|
||||
<field name="active" xexpand="0" width="100"/>
|
||||
|
||||
<notebook colspan="6">
|
||||
<page string="General" id="general">
|
||||
<label name="type"/>
|
||||
<field name="type"/>
|
||||
<group colspan="2" col="-1" id="checkboxes">
|
||||
<label name="consumable"/>
|
||||
<field name="consumable" xexpand="0" width="25"/>
|
||||
</group>
|
||||
<label name="default_uom"/>
|
||||
<field name="default_uom" />
|
||||
<newline/>
|
||||
<label name="list_price"/>
|
||||
<field name="list_price"/>
|
||||
<newline/>
|
||||
<label name="cost_price"/>
|
||||
<field name="cost_price"/>
|
||||
<label name="cost_price_method"/>
|
||||
<field name="cost_price_method"/>
|
||||
<newline/>
|
||||
<field name="products" mode="form,tree" colspan="2"
|
||||
view_ids="product.product_view_form_simple,product.product_view_tree_simple_sequence"/>
|
||||
<group id="categories" colspan="2" col="2" yexpand="1" yfill="1">
|
||||
<field name="categories" colspan="2" yexpand="1" yfill="1" view_ids="product.category_view_list"/>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
12
modules/product/view/template_tree.xml
Normal file
12
modules/product/view/template_tree.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?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="code" expand="1"/>
|
||||
<field name="name" expand="2"/>
|
||||
<field name="list_price" optional="0"/>
|
||||
<field name="cost_price" optional="0"/>
|
||||
<field name="default_uom" optional="0"/>
|
||||
<field name="type" optional="0"/>
|
||||
<field name="products" optional="1"/>
|
||||
</tree>
|
||||
7
modules/product/view/uom_category_form.xml
Normal file
7
modules/product/view/uom_category_form.xml
Normal 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 col="6">
|
||||
<label name="name"/>
|
||||
<field name="name"/>
|
||||
</form>
|
||||
6
modules/product/view/uom_category_tree.xml
Normal file
6
modules/product/view/uom_category_tree.xml
Normal 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="name" expand="1"/>
|
||||
</tree>
|
||||
21
modules/product/view/uom_form.xml
Normal file
21
modules/product/view/uom_form.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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="4">
|
||||
<label name="name"/>
|
||||
<field name="name"/>
|
||||
<label name="category"/>
|
||||
<field name="category"/>
|
||||
<label name="symbol"/>
|
||||
<field name="symbol"/>
|
||||
<label name="active"/>
|
||||
<field name="active"/>
|
||||
<label name="factor"/>
|
||||
<field name="factor"/>
|
||||
<label name="rate"/>
|
||||
<field name="rate"/>
|
||||
<label name="rounding"/>
|
||||
<field name="rounding"/>
|
||||
<label name="digits"/>
|
||||
<field name="digits"/>
|
||||
</form>
|
||||
11
modules/product/view/uom_tree.xml
Normal file
11
modules/product/view/uom_tree.xml
Normal 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="name" expand="2"/>
|
||||
<field name="symbol" optional="0"/>
|
||||
<field name="category" expand="1" optional="0"/>
|
||||
<field name="factor" optional="1"/>
|
||||
<field name="rate" optional="1"/>
|
||||
<field name="rounding" optional="1"/>
|
||||
</tree>
|
||||
Reference in New Issue
Block a user