first commit
This commit is contained in:
8
modules/sale_rental/view/party_form.xml
Normal file
8
modules/sale_rental/view/party_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. -->
|
||||
<data>
|
||||
<xpath expr="//group[@id='links']" position="inside">
|
||||
<link icon="tryton-sale-rental" name="sale_rental.act_sale_rental_party_relate" empty="hide"/>
|
||||
</xpath>
|
||||
</data>
|
||||
14
modules/sale_rental/view/product_category_form.xml
Normal file
14
modules/sale_rental/view/product_category_form.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?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/notebook/page[@id='accounting']/field[@name='account_expense']" position="after">
|
||||
<label name="account_rental"/>
|
||||
<field name="account_rental"/>
|
||||
<newline/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='supplier_taxes']" position="after">
|
||||
<field name="customer_rental_taxes" colspan="2"/>
|
||||
<newline/>
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -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. -->
|
||||
<tree>
|
||||
<field name="code" optional="0"/>
|
||||
<field name="name" expand="1"/>
|
||||
<field name="rental_price_uom" symbol="rental_unit"/>
|
||||
<field name="quantity" symbol="default_uom" optional="0"/>
|
||||
<field name="forecast_quantity" symbol="default_uom" optional="1"/>
|
||||
</tree>
|
||||
20
modules/sale_rental/view/product_rental_price_form.xml
Normal file
20
modules/sale_rental/view/product_rental_price_form.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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 cursor="duration">
|
||||
<label name="template"/>
|
||||
<field name="template" colspan="3"/>
|
||||
|
||||
<label name="product"/>
|
||||
<field name="product" colspan="3"/>
|
||||
|
||||
<label name="company"/>
|
||||
<field name="company"/>
|
||||
<label name="sequence"/>
|
||||
<field name="sequence"/>
|
||||
|
||||
<label name="duration"/>
|
||||
<field name="duration"/>
|
||||
<label name="price"/>
|
||||
<field name="price"/>
|
||||
</form>
|
||||
10
modules/sale_rental/view/product_rental_price_list.xml
Normal file
10
modules/sale_rental/view/product_rental_price_list.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. -->
|
||||
<tree>
|
||||
<field name="company" expand="1" optional="1"/>
|
||||
<field name="template" expand="2"/>
|
||||
<field name="product" expand="2"/>
|
||||
<field name="duration" expand="1"/>
|
||||
<field name="price"/>
|
||||
</tree>
|
||||
@@ -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. -->
|
||||
<tree sequence="sequence">
|
||||
<field name="company" expand="1" optional="1"/>
|
||||
<field name="template" expand="2"/>
|
||||
<field name="product" expand="2"/>
|
||||
<field name="duration" expand="1"/>
|
||||
<field name="price"/>
|
||||
</tree>
|
||||
20
modules/sale_rental/view/product_template_form.xml
Normal file
20
modules/sale_rental/view/product_template_form.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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="//page[@id='general']/group[@id='checkboxes']" position="inside">
|
||||
<label name="rentable"/>
|
||||
<field name="rentable" xexpand="0" width="25"/>
|
||||
</xpath>
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page string="Rental" id="rental">
|
||||
<label name="rental_unit"/>
|
||||
<field name="rental_unit"/>
|
||||
<label name="rental_per_day"/>
|
||||
<field name="rental_per_day"/>
|
||||
|
||||
<field name="rental_prices" colspan="4" view_ids="sale_rental.product_rental_price_view_list_sequence"/>
|
||||
</page>
|
||||
</xpath>
|
||||
</data>
|
||||
|
||||
8
modules/sale_rental/view/product_template_list.xml
Normal file
8
modules/sale_rental/view/product_template_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. -->
|
||||
<data>
|
||||
<xpath expr="//field[@name='type']" position="after">
|
||||
<field name="rentable" optional="1"/>
|
||||
</xpath>
|
||||
</data>
|
||||
9
modules/sale_rental/view/sale_configuration_form.xml
Normal file
9
modules/sale_rental/view/sale_configuration_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. -->
|
||||
<data>
|
||||
<xpath expr="/form/field[@name='sale_sequence']" position="after">
|
||||
<label name="rental_sequence"/>
|
||||
<field name="rental_sequence"/>
|
||||
</xpath>
|
||||
</data>
|
||||
72
modules/sale_rental/view/sale_rental_form.xml
Normal file
72
modules/sale_rental/view/sale_rental_form.xml
Normal file
@@ -0,0 +1,72 @@
|
||||
<?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="contact"/>
|
||||
<field name="contact"/>
|
||||
<label name="number"/>
|
||||
<field name="number"/>
|
||||
|
||||
<label name="invoice_party"/>
|
||||
<field name="invoice_party"/>
|
||||
<label name="invoice_address"/>
|
||||
<field name="invoice_address"/>
|
||||
<newline/>
|
||||
|
||||
<label name="description"/>
|
||||
<field name="description" colspan="3"/>
|
||||
<label name="reference"/>
|
||||
<field name="reference"/>
|
||||
|
||||
<notebook colspan="6">
|
||||
<page string="Rental" id="rental">
|
||||
<label name="payment_term"/>
|
||||
<field name="payment_term"/>
|
||||
<newline/>
|
||||
|
||||
<label name="warehouse"/>
|
||||
<field name="warehouse"/>
|
||||
<label name="currency"/>
|
||||
<field name="currency"/>
|
||||
|
||||
<field name="lines" colspan="4" view_ids="sale_rental.sale_rental_line_view_list_sequence"/>
|
||||
|
||||
<group col="2" colspan="2" id="states" yfill="1">
|
||||
<label name="state"/>
|
||||
<field name="state"/>
|
||||
</group>
|
||||
<group col="2" colspan="2" id="amount" yfill="1">
|
||||
<label name="untaxed_amount" xalign="1.0" xexpand="1" xfill="0"/>
|
||||
<field name="untaxed_amount" xalign="1.0" xexpand="0"/>
|
||||
<label name="tax_amount" xalign="1.0" xexpand="1" xfill="0"/>
|
||||
<field name="tax_amount" xalign="1.0" xexpand="0"/>
|
||||
<label name="total_amount" xalign="1.0" xexpand="1" xfill="0"/>
|
||||
<field name="total_amount" xalign="1.0" xexpand="0"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Other Info" id="other">
|
||||
<label name="company"/>
|
||||
<field name="company"/>
|
||||
<newline/>
|
||||
|
||||
<label name="quoted_by"/>
|
||||
<field name="quoted_by"/>
|
||||
<label name="confirmed_by"/>
|
||||
<field name="confirmed_by"/>
|
||||
</page>
|
||||
</notebook>
|
||||
<group id="links" col="-1" colspan="3">
|
||||
<link icon="tryton-account" name="sale_rental.act_account_invoice_form"/>
|
||||
</group>
|
||||
<group col="-1" colspan="3" id="buttons">
|
||||
<button name="cancel"/>
|
||||
<button name="draft"/>
|
||||
<button name="quote"/>
|
||||
<button name="confirm"/>
|
||||
<button name="pickup"/>
|
||||
<button name="return_"/>
|
||||
<button name="invoice"/>
|
||||
</group>
|
||||
</form>
|
||||
63
modules/sale_rental/view/sale_rental_line_form.xml
Normal file
63
modules/sale_rental/view/sale_rental_line_form.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<?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 cursor="product">
|
||||
<label name="rental"/>
|
||||
<field name="rental"/>
|
||||
<label name="sequence"/>
|
||||
<field name="sequence"/>
|
||||
|
||||
<notebook colspan="4">
|
||||
<page string="General" id="general">
|
||||
<label name="product"/>
|
||||
<field name="product" view_ids="sale_rental.product_product_view_list_sale_rental_line"/>
|
||||
<label name="per_day"/>
|
||||
<field name="per_day"/>
|
||||
|
||||
<label name="quantity"/>
|
||||
<field name="quantity"/>
|
||||
<label name="unit"/>
|
||||
<field name="unit"/>
|
||||
|
||||
<label name="planned_start_day"/>
|
||||
<field name="planned_start_day"/>
|
||||
<label name="planned_end_day"/>
|
||||
<field name="planned_end_day"/>
|
||||
|
||||
<label name="planned_start"/>
|
||||
<field name="planned_start"/>
|
||||
<label name="planned_end"/>
|
||||
<field name="planned_end"/>
|
||||
|
||||
<label name="planned_duration"/>
|
||||
<field name="planned_duration"/>
|
||||
<label name="planned_amount"/>
|
||||
<field name="planned_amount"/>
|
||||
|
||||
<label name="unit_price"/>
|
||||
<field name="unit_price"/>
|
||||
<label name="unit_price_unit" string="Per:"/>
|
||||
<field name="unit_price_unit"/>
|
||||
|
||||
<label name="actual_start"/>
|
||||
<field name="actual_start"/>
|
||||
<label name="actual_end"/>
|
||||
<field name="actual_end"/>
|
||||
|
||||
<label name="duration"/>
|
||||
<field name="duration"/>
|
||||
<label name="amount"/>
|
||||
<field name="amount"/>
|
||||
</page>
|
||||
<page string="Taxes" id="taxes">
|
||||
<field name="taxes" colspan="4"/>
|
||||
</page>
|
||||
<page string="Moves" id="moves" col="1">
|
||||
<field name="outgoing_moves"/>
|
||||
<field name="incoming_moves"/>
|
||||
</page>
|
||||
<page name="invoice_lines" col="1">
|
||||
<field name="invoice_lines"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
21
modules/sale_rental/view/sale_rental_line_list.xml
Normal file
21
modules/sale_rental/view/sale_rental_line_list.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. -->
|
||||
<tree>
|
||||
<field name="rental" expand="1"/>
|
||||
<field name="product" expand="1"/>
|
||||
<field name="start" widget="date"/>
|
||||
<field name="start" widget="time" string="Time"/>
|
||||
<field name="end" widget="date"/>
|
||||
<field name="end" widget="time" string="Time"/>
|
||||
<field name="duration" optional="0"/>
|
||||
<field name="quantity" symbol="unit"/>
|
||||
<field name="unit_price" symbol="currency">
|
||||
<suffix name="unit_price_unit" string="/"/>
|
||||
<suffix name="unit_price_unit"/>
|
||||
</field>
|
||||
<field name="taxes" optional="0"/>
|
||||
<field name="planned_amount" optional="0"/>
|
||||
<field name="amount" optional="0"/>
|
||||
<field name="rental_state" optional="0"/>
|
||||
</tree>
|
||||
21
modules/sale_rental/view/sale_rental_line_list_sequence.xml
Normal file
21
modules/sale_rental/view/sale_rental_line_list_sequence.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. -->
|
||||
<tree sequence="sequence">
|
||||
<field name="rental" expand="1"/>
|
||||
<field name="product" expand="1"/>
|
||||
<field name="start" widget="date"/>
|
||||
<field name="start" widget="time" string="Time"/>
|
||||
<field name="end" widget="date"/>
|
||||
<field name="end" widget="time" string="Time"/>
|
||||
<field name="duration" optional="0"/>
|
||||
<field name="quantity" symbol="unit"/>
|
||||
<field name="unit_price" symbol="currency">
|
||||
<suffix name="unit_price_unit" string="/"/>
|
||||
<suffix name="unit_price_unit"/>
|
||||
</field>
|
||||
<field name="taxes" optional="0"/>
|
||||
<field name="planned_amount" optional="0"/>
|
||||
<field name="amount" optional="0"/>
|
||||
<field name="rental_state" optional="0"/>
|
||||
</tree>
|
||||
13
modules/sale_rental/view/sale_rental_list.xml
Normal file
13
modules/sale_rental/view/sale_rental_list.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. -->
|
||||
<tree>
|
||||
<field name="company" expand="1" optional="1"/>
|
||||
<field name="number" expand="1"/>
|
||||
<field name="reference" expand="1" optional="1"/>
|
||||
<field name="party" expand="2"/>
|
||||
<field name="warehouse" optional="1"/>
|
||||
<field name="description" expand="1" optional="1"/>
|
||||
<field name="untaxed_amount" optional="0"/>
|
||||
<field name="state"/>
|
||||
</tree>
|
||||
@@ -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 col="2">
|
||||
<label name="start"/>
|
||||
<field name="start"/>
|
||||
|
||||
<field name="lines" colspan="2" view_ids="sale_rental.sale_rental_pickup_show_line_view_list" mode="tree" create="0"/>
|
||||
</form>
|
||||
@@ -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. -->
|
||||
<tree editable="1">
|
||||
<field name="parent" expand="2"/>
|
||||
<field name="rental_line" tree_invisible="1"/>
|
||||
<field name="product" expand="1"/>
|
||||
<field name="quantity" symbol="unit"/>
|
||||
<field name="quantity_picked" symbol="unit"/>
|
||||
</tree>
|
||||
@@ -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 col="2">
|
||||
<label name="end"/>
|
||||
<field name="end"/>
|
||||
|
||||
<field name="lines" colspan="2" view_ids="sale_rental.sale_rental_return_show_line_view_list" mode="tree" create="0"/>
|
||||
</form>
|
||||
@@ -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. -->
|
||||
<tree editable="1">
|
||||
<field name="parent" expand="2"/>
|
||||
<field name="rental_line" tree_invisible="1"/>
|
||||
<field name="product" expand="1"/>
|
||||
<field name="quantity" symbol="unit"/>
|
||||
<field name="quantity_returned" symbol="unit"/>
|
||||
</tree>
|
||||
15
modules/sale_rental/view/stock_location_form.xml
Normal file
15
modules/sale_rental/view/stock_location_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. -->
|
||||
<data>
|
||||
<xpath expr="/form/field[@name='picking_location']" position="after">
|
||||
<newline/>
|
||||
<label name="rental_location"/>
|
||||
<field name="rental_location"/>
|
||||
<newline/>
|
||||
<label name="rental_picking_location"/>
|
||||
<field name="rental_picking_location"/>
|
||||
<label name="rental_return_location"/>
|
||||
<field name="rental_return_location"/>
|
||||
</xpath>
|
||||
</data>
|
||||
11
modules/sale_rental/view/stock_move_form.xml
Normal file
11
modules/sale_rental/view/stock_move_form.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. -->
|
||||
<data>
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page id="sale_rental" string="Rental">
|
||||
<field name="sale_rental_lines_outgoing" colspan="4"/>
|
||||
<field name="sale_rental_lines_incoming" colspan="4"/>
|
||||
</page>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user