You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

78 lines
3.5 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_pest_request_tree" model="ir.ui.view">
<field name="name">pest.request.tree</field>
<field name="model">pest.request</field>
<field name="arch" type="xml">
<tree>
<field name="reference"/>
<field name="farmer_id"/>
<field name="crop_id"/>
<field name="location_id"/>
<field name="disease"/>
<field name="total_cost"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="view_pest_request_form" model="ir.ui.view">
<field name="name">pest.request.form</field>
<field name="model">pest.request</field>
<field name="arch" type="xml">
<form>
<header>
<button id="button_draft" name="action_draft" string="Draft"
type="object" class="oe_highlight"
states="rejected,approve"/>
<button id="button_pending" name="action_pending"
string="Submit" type="object" class="btn-primary"
states="draft"/>
<button id="button_approved" name="action_approved"
string="Approved"
class="btn-primary"
type="object" states="pending"
groups="agriculture_management_odoo.group_agriculture_admin"/>
<button id="button_rejected" name="action_rejected"
string="Reject"
class="btn-primary"
type="object" states="pending"
groups="agriculture_management_odoo.group_agriculture_admin"/>
<field name="state" widget="statusbar"
statusbar_visible="draft"/>
</header>
<sheet>
<h1>
<field name="reference"/>
</h1>
<group>
<group>
<field name="farmer_id"/>
<field name="crop_id"/>
<field name="disease"/>
<field name="pest_id"/>
<field name="currency_id" invisible="1"/>
<field name="total_cost" widget='monetary'
options="{'currency_field': 'currency_id'}"
optional="show"/>
</group>
<group>
<field name="request_date"/>
<field name="location_id"/>
<field name="pest_quantity"/>
<field name="pest_cost" widget='monetary'
options="{'currency_field': 'currency_id'}"
optional="show"/>
</group>
</group>
<field name="note" placeholder="Pesticide Description"/>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="activity_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
</odoo>