update chatter area

This commit is contained in:
esraa 2024-10-23 14:50:56 +03:00
parent 67c2efeeb4
commit a524284e41
11 changed files with 374 additions and 320 deletions

View File

@ -10,7 +10,8 @@
<button name="action_approve" string="Approve" states="draft" type="object"/> <button name="action_approve" string="Approve" states="draft" type="object"/>
<button name="action_cancel" string="Cancel Reservation" states="approve" type="object" <button name="action_cancel" string="Cancel Reservation" states="approve" type="object"
confirm="Are you sure you want to cancel the reservation?!. Please be aware if you cancel the unit will be return Available"/> confirm="Are you sure you want to cancel the reservation?!. Please be aware if you cancel the unit will be return Available"/>
<button name="action_create_sale" string="Create Sale Request" attrs="{'invisible':[('sale_creation', '!=',True)]}" type="object"/> <button name="action_create_sale" string="Create Sale Request"
attrs="{'invisible':[('sale_creation', '!=',True)]}" type="object"/>
<field name="state" widget="statusbar"/> <field name="state" widget="statusbar"/>
</header> </header>
<sheet> <sheet>
@ -31,22 +32,29 @@
<field name="name" readonly="1" force_save="1"/> <field name="name" readonly="1" force_save="1"/>
<field name="search_type" readonly="1" required="1"/> <field name="search_type" readonly="1" required="1"/>
<field name="property_id" attrs="{'readonly':[('state', '!=', 'draft')]}" required="1"/> <field name="property_id" attrs="{'readonly':[('state', '!=', 'draft')]}" required="1"/>
<field name="unit_id" domain="[('property_id', '=', property_id),('state', '=', 'available'),('action_type', '=', 'sale')]" attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('search_type', '!=', 'unit')],'required':[('search_type', '=', 'unit')]}"/> <field name="unit_id"
<field name="marketer_user_id" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> domain="[('property_id', '=', property_id),('state', '=', 'available'),('action_type', '=', 'sale')]"
attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('search_type', '!=', 'unit')],'required':[('search_type', '=', 'unit')]}"/>
<field name="marketer_user_id"
attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="user_id" readonly="1" force_save="1"/> <field name="user_id" readonly="1" force_save="1"/>
</group> </group>
<group> <group>
<field name="request_date" readonly="1" force_save="1"/> <field name="request_date" readonly="1" force_save="1"/>
<field name="end_date" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> <field name="end_date"
attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="total_days" readonly="1" force_save="1"/> <field name="total_days" readonly="1" force_save="1"/>
<field name="agent_id" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> <field name="agent_id"
attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="sale_creation" invisible="1"/> <field name="sale_creation" invisible="1"/>
</group> </group>
</group> </group>
<group string="Client Information" name="client"> <group string="Client Information" name="client">
<group> <group>
<field name="title" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> <field name="title"
<field name="partner_id" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="partner_id"
attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="phone" readonly="1" force_save="1"/> <field name="phone" readonly="1" force_save="1"/>
<field name="date_of_birth" readonly="1" force_save="1"/> <field name="date_of_birth" readonly="1" force_save="1"/>
<field name="email" readonly="1" force_save="1"/> <field name="email" readonly="1" force_save="1"/>
@ -57,29 +65,40 @@
<field name="country_id" readonly="1" force_save="1"/> <field name="country_id" readonly="1" force_save="1"/>
<field name="street" readonly="1" force_save="1"/> <field name="street" readonly="1" force_save="1"/>
<field name="identification_number"/> <field name="identification_number"/>
<field name="tax_exemption" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> <field name="tax_exemption"
attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
</group> </group>
</group> </group>
<group string="Finance Details" name="finance"> <group string="Finance Details" name="finance">
<group> <group>
<field name="reserve_type" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> <field name="reserve_type"
<field name="payment_type" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="client_check_number" attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('payment_type', '!=', 'bank')],'required':[('payment_type', '=', 'bank')]}"/> <field name="payment_type"
attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="client_check_number"
attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('payment_type', '!=', 'bank')],'required':[('payment_type', '=', 'bank')]}"/>
<field name="price" readonly="1" force_save="1"/> <field name="price" readonly="1" force_save="1"/>
<field name="final_price" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> <field name="final_price"
attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="total_price" readonly="1" force_save="1"/> <field name="total_price" readonly="1" force_save="1"/>
</group> </group>
<group> <group>
<field name="bank_id" attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('payment_type', '!=', 'bank')],'required':[('payment_type', '=', 'bank')]}"/> <field name="bank_id"
<field name="payment_amount" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('payment_type', '!=', 'bank')],'required':[('payment_type', '=', 'bank')]}"/>
<field name="client_check" attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('payment_type', '!=', 'bank')],'required':[('payment_type', '=', 'bank')]}"/> <field name="payment_amount"
<field name="receive_check" attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('payment_type', '!=', 'bank')],'required':[('payment_type', '=', 'bank')]}"/> attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="discount" attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/> <field name="client_check"
attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('payment_type', '!=', 'bank')],'required':[('payment_type', '=', 'bank')]}"/>
<field name="receive_check"
attrs="{'readonly':[('state', '!=', 'draft')],'invisible':[('payment_type', '!=', 'bank')],'required':[('payment_type', '=', 'bank')]}"/>
<field name="discount"
attrs="{'readonly':[('state', '!=', 'draft')],'required':[('state', '=', 'draft')]}"/>
<field name="move_id" readonly="1"/> <field name="move_id" readonly="1"/>
</group> </group>
</group> </group>
</sheet> </sheet>
<div class="oe_chatter"> <div class="oe_chatter">
<field name="activity_ids" widget="mail_activity"/>
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
</div> </div>

View File

@ -9,7 +9,8 @@
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
<field name="domain">[('is_engineering_office','=',True)]</field> <field name="domain">[('is_engineering_office','=',True)]</field>
<field name="context">{'search_default_is_engineering_office': True, <field name="context">{'search_default_is_engineering_office': True,
'default_is_engineering_office': True}</field> 'default_is_engineering_office': True}
</field>
<field name="help" type="html"> <field name="help" type="html">
<p class="oe_view_nocontent_create"> <p class="oe_view_nocontent_create">
Click to create a Engineering Office. Click to create a Engineering Office.
@ -31,11 +32,13 @@
<group> <group>
<group> <group>
<field name="project_id" readonly="1"/> <field name="project_id" readonly="1"/>
<field name="engineering_office_id" readonly="1" domain="[('is_engineering_office','=',True)]"/> <field name="engineering_office_id" readonly="1"
domain="[('is_engineering_office','=',True)]"/>
</group> </group>
<group> <group>
<field name="name"/> <field name="name"/>
<field name="percent" /><h5>-</h5> <field name="percent"/>
<h5>-</h5>
<field name="due_date" required="1"/> <field name="due_date" required="1"/>
<field name="paid" readonly="1"/> <field name="paid" readonly="1"/>
<field name="paid_date" readonly="1"/> <field name="paid_date" readonly="1"/>
@ -44,6 +47,7 @@
</group> </group>
</sheet> </sheet>
<div class="oe_chatter"> <div class="oe_chatter">
<field name="activity_ids" widget="mail_activity"/>
<field name="message_follower_ids" widget="mail_followers"/> <field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
</div> </div>
@ -105,7 +109,6 @@
action="view_engineering_office_line_action" sequence="2"/> action="view_engineering_office_line_action" sequence="2"/>
</odoo> </odoo>

View File

@ -26,6 +26,7 @@
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/> <field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="activity_ids" widget="mail_activity"/>
</div> </div>
</form> </form>
</field> </field>

View File

@ -33,7 +33,8 @@
<field name="date" attrs="{'readonly':[('state','!=','draft')]}" required="1"/> <field name="date" attrs="{'readonly':[('state','!=','draft')]}" required="1"/>
<field name="contract_state" attrs="{'readonly':[('state','!=','draft')]}" <field name="contract_state" attrs="{'readonly':[('state','!=','draft')]}"
required="1"/> required="1"/>
<field name="contract_id" domain="[('state', '=', 'confirm')]" attrs="{'readonly':[('state','!=','draft')]}" required="1"/> <field name="contract_id" domain="[('state', '=', 'confirm')]"
attrs="{'readonly':[('state','!=','draft')]}" required="1"/>
<field name="property_id" attrs="{'readonly':[('state','!=','draft')]}" readonly="1"/> <field name="property_id" attrs="{'readonly':[('state','!=','draft')]}" readonly="1"/>
<field name="unit_ids" widget="many2many_tags" readonly="1"/> <field name="unit_ids" widget="many2many_tags" readonly="1"/>
<field name="evacuation_date" attrs="{'readonly':[('state','!=','draft')]}" <field name="evacuation_date" attrs="{'readonly':[('state','!=','draft')]}"
@ -107,6 +108,7 @@
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/> <field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="activity_ids" widget="mail_activity"/>
</div> </div>
</form> </form>
</field> </field>
@ -147,7 +149,6 @@
</record> </record>
<!-- ################################# Maintenance Part ##################################################### --> <!-- ################################# Maintenance Part ##################################################### -->
<record id="property_management_maintenance_form" model="ir.ui.view"> <record id="property_management_maintenance_form" model="ir.ui.view">
<field name="name">Property Maintenance</field> <field name="name">Property Maintenance</field>
@ -205,8 +206,11 @@
<field name="total_amount" readonly="1"/> <field name="total_amount" readonly="1"/>
<field name="company_id" readonly="1"/> <field name="company_id" readonly="1"/>
<field name="user_id" readonly="1"/> <field name="user_id" readonly="1"/>
<field name="invoice_id" readonly="1" attrs="{'invisible':[('invoice_id', '=',False)]}"/> <field name="invoice_id" readonly="1"
<field name="request_id" context="{'form_view_ref': 'request_from_warehouse.view_order_form_inhert_request'}" readonly="1" attrs="{'invisible':[('request_id', '=',False)]}"/> attrs="{'invisible':[('invoice_id', '=',False)]}"/>
<field name="request_id"
context="{'form_view_ref': 'request_from_warehouse.view_order_form_inhert_request'}"
readonly="1" attrs="{'invisible':[('request_id', '=',False)]}"/>
</group> </group>
</group> </group>
<group> <group>
@ -232,6 +236,7 @@
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/> <field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="activity_ids" widget="mail_activity"/>
</div> </div>
</form> </form>
</field> </field>
@ -275,7 +280,5 @@
</record> </record>
</data> </data>
</odoo> </odoo>

View File

@ -59,6 +59,7 @@
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="activity_ids" widget="mail_activity"/>
</div> </div>
</form> </form>
</field> </field>
@ -68,7 +69,9 @@
<field name="name">Rent Payment List</field> <field name="name">Rent Payment List</field>
<field name="model">rent.payment</field> <field name="model">rent.payment</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree create="false" decoration-warning="state == 'due'" decoration-info="state == 'invoice'" decoration-danger="state == 'cancel'" decoration-muted="state == 'canceled'" decoration-success="state == 'paid'"> <tree create="false" decoration-warning="state == 'due'" decoration-info="state == 'invoice'"
decoration-danger="state == 'cancel'" decoration-muted="state == 'canceled'"
decoration-success="state == 'paid'">
<field name="name"/> <field name="name"/>
<field name="code"/> <field name="code"/>
<field name="contract_id"/> <field name="contract_id"/>
@ -103,9 +106,12 @@
<filter string="Not due" name="not_due_payment" domain="[('state','=','draft')]"/> <filter string="Not due" name="not_due_payment" domain="[('state','=','draft')]"/>
<filter string="Paid" name="paid_payment" domain="[('state','=','paid')]"/> <filter string="Paid" name="paid_payment" domain="[('state','=','paid')]"/>
<filter string="Cancelled" name="cancel_payment" domain="[('state','=','cancel')]"/> <filter string="Cancelled" name="cancel_payment" domain="[('state','=','cancel')]"/>
<filter string="Collected From Company" name="collected_from_company" domain="[('collected_from_company','=',True)]"/> <filter string="Collected From Company" name="collected_from_company"
<filter string="Invoice Commission" name="invoice_commission_id" domain="[('collected_from_company','=',True),('invoice_commission_id','!=',False)]"/> domain="[('collected_from_company','=',True)]"/>
<filter string="NOT Invoice Commission " name="no_invoice_commission_id" domain="[('collected_from_company','=',True),('invoice_commission_id','=',False)]"/> <filter string="Invoice Commission" name="invoice_commission_id"
domain="[('collected_from_company','=',True),('invoice_commission_id','!=',False)]"/>
<filter string="NOT Invoice Commission " name="no_invoice_commission_id"
domain="[('collected_from_company','=',True),('invoice_commission_id','=',False)]"/>
<separator/> <separator/>
<filter name="payment_state" string="Not Canceled Payment" domain="[('state','!=','cancel')]"/> <filter name="payment_state" string="Not Canceled Payment" domain="[('state','!=','cancel')]"/>
@ -113,7 +119,8 @@
<group expand="0" string="Group By"> <group expand="0" string="Group By">
<filter string="Status" name="state" domain="[]" context="{'group_by': 'state'}"/> <filter string="Status" name="state" domain="[]" context="{'group_by': 'state'}"/>
<filter string="Collected From Company" name="collected_from_company" domain="[]" context="{'group_by': 'collected_from_company'}"/> <filter string="Collected From Company" name="collected_from_company" domain="[]"
context="{'group_by': 'collected_from_company'}"/>
<filter string="Renter" name="partner_id" domain="[]" context="{'group_by': 'partner_id'}"/> <filter string="Renter" name="partner_id" domain="[]" context="{'group_by': 'partner_id'}"/>
<filter name="group_contract_id" string="Rental Contract" domain="[]" <filter name="group_contract_id" string="Rental Contract" domain="[]"
context="{'group_by':'contract_id'}"/> context="{'group_by':'contract_id'}"/>
@ -125,7 +132,5 @@
</record> </record>
</data> </data>
</odoo> </odoo>

View File

@ -8,7 +8,8 @@
<field name="inherit_id" ref="base.view_partner_form"/> <field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='category_id']" position="after"> <xpath expr="//field[@name='category_id']" position="after">
<field groups='property_management.group_property_user,property_management.group_property_manager' name="is_tenant"/> <field groups='property_management.group_property_user,property_management.group_property_manager'
name="is_tenant"/>
<!-- <field name="is_property_evaluator"/>--> <!-- <field name="is_property_evaluator"/>-->
</xpath> </xpath>
</field> </field>
@ -22,7 +23,8 @@
<field name="phone"/> <field name="phone"/>
<field name="email"/> <field name="email"/>
<field name="is_tenant"/> <field name="is_tenant"/>
<filter string="Tenants" name="tenant_filter" domain="[('is_tenant', '=', True)]" context="{'group_by': 'is_tenant'}"/> <filter string="Tenants" name="tenant_filter" domain="[('is_tenant', '=', True)]"
context="{'group_by': 'is_tenant'}"/>
</search> </search>
</field> </field>
</record> </record>
@ -64,7 +66,8 @@
</header> </header>
<sheet> <sheet>
<field name="is_today_end_date" invisible="1"/> <!-- Add this line --> <field name="is_today_end_date" invisible="1"/> <!-- Add this line -->
<widget name="web_ribbon" title="Expired" bg_color="bg-danger" attrs="{'invisible': [('is_today_end_date', '!=', True)]}"/> <widget name="web_ribbon" title="Expired" bg_color="bg-danger"
attrs="{'invisible': [('is_today_end_date', '!=', True)]}"/>
<h1> <h1>
<field name="seq" readonly="1"/> <field name="seq" readonly="1"/>
</h1> </h1>
@ -163,10 +166,12 @@
<field name="identification_issue_date" readonly="1"/> <field name="identification_issue_date" readonly="1"/>
<field name="identification_expiry_date" readonly="1"/> <field name="identification_expiry_date" readonly="1"/>
</group> </group>
<button name="check_line" attrs="{'invisible':[('state', '!=', 'draft')]}" icon="fa-gears" type="object" string="Generate Payment"/> <button name="check_line" attrs="{'invisible':[('state', '!=', 'draft')]}" icon="fa-gears"
type="object" string="Generate Payment"/>
<notebook> <notebook>
<page string="Rent Payment"> <page string="Rent Payment">
<field name="annual_raise_ids" context="{'contract_id': active_id}" attrs="{'readonly':[('state', '!=', 'draft')]}"> <field name="annual_raise_ids" context="{'contract_id': active_id}"
attrs="{'readonly':[('state', '!=', 'draft')]}">
<tree editable="bottom"> <tree editable="bottom">
<field name="year" required="1"/> <field name="year" required="1"/>
<field name="raise_type" required="1"/> <field name="raise_type" required="1"/>
@ -249,10 +254,14 @@
</page> </page>
<page string="Accounting"> <page string="Accounting">
<group col="4" colspan="2"> <group col="4" colspan="2">
<field name="journal_id" attrs="{'readonly':[('state','!=','draft')]}" required="1"/> <field name="journal_id" attrs="{'readonly':[('state','!=','draft')]}"
<field name="debit_account_id" attrs="{'readonly':[('state','!=','draft')]}" required="1"/> required="1"/>
<field name="accrued_account_id" attrs="{'readonly':[('state','!=','draft')]}" required="1" options="{'no_create': True, 'no_open': True}"/> <field name="debit_account_id" attrs="{'readonly':[('state','!=','draft')]}"
<field name="revenue_account_id" attrs="{'readonly':[('state','!=','draft')]}" required="1"/> required="1"/>
<field name="accrued_account_id" attrs="{'readonly':[('state','!=','draft')]}"
required="1" options="{'no_create': True, 'no_open': True}"/>
<field name="revenue_account_id" attrs="{'readonly':[('state','!=','draft')]}"
required="1"/>
</group> </group>
</page> </page>
<page string="Note"> <page string="Note">
@ -262,6 +271,7 @@
</notebook> </notebook>
</sheet> </sheet>
<div class="oe_chatter"> <div class="oe_chatter">
<field name="activity_ids" widget="mail_activity"/>
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
</div> </div>
@ -312,7 +322,8 @@
<filter string="Draft" name="draft" domain="[('state','=','draft')]"/> <filter string="Draft" name="draft" domain="[('state','=','draft')]"/>
<separator/> <separator/>
<filter name="expired_contracts" string="Expired" domain="[('date_to', '&lt;', context_today().strftime('%Y-%m-%d'))]"/> <filter name="expired_contracts" string="Expired"
domain="[('date_to', '&lt;', context_today().strftime('%Y-%m-%d'))]"/>
<separator/> <separator/>
<filter string="Review" name="review" domain="[('state','in',('submit','review') )]"/> <filter string="Review" name="review" domain="[('state','in',('submit','review') )]"/>
<separator/> <separator/>

View File

@ -17,10 +17,12 @@
/> />
<button name="action_reset" groups="property_management.group_property_manager" string="Set To Draft" type="object" states="submit,review,cancel" <button name="action_reset" groups="property_management.group_property_manager"
string="Set To Draft" type="object" states="submit,review,cancel"
/> />
<button name="action_cancel" groups="property_management.group_property_manager" string="Cancel" type="object" states="submit,review,draft" <button name="action_cancel" groups="property_management.group_property_manager" string="Cancel"
type="object" states="submit,review,draft"
/> />
<field name="state" widget="statusbar"/> <field name="state" widget="statusbar"/>
@ -32,7 +34,8 @@
<group> <group>
<group string="Contract Info"> <group string="Contract Info">
<field name="contract_id" domain="[('state','=', 'confirm')]" required="1" attrs="{'readonly':[('state','!=','draft')]}"/> <field name="contract_id" domain="[('state','=', 'confirm')]" required="1"
attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="date_from" readonly="1" attrs="{'readonly':[('state','!=','draft')]}"/> <field name="date_from" readonly="1" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="date_to" readonly="1" attrs="{'readonly':[('state','!=','draft')]}"/> <field name="date_to" readonly="1" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="date" required="1" attrs="{'readonly':[('state','!=','draft')]}"/> <field name="date" required="1" attrs="{'readonly':[('state','!=','draft')]}"/>
@ -54,6 +57,7 @@
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="activity_ids" widget="mail_activity"/>
</div> </div>
</form> </form>
</field> </field>
@ -107,5 +111,4 @@
</record> </record>
</odoo> </odoo>

View File

@ -25,7 +25,8 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form> <form>
<header> <header>
<button string="Get Satisfied Properties" name="get_satisfied_property" type="object" states="draft"/> <button string="Get Satisfied Properties" name="get_satisfied_property" type="object"
states="draft"/>
<button name="action_register" string="Register" states="draft" type="object"/> <button name="action_register" string="Register" states="draft" type="object"/>
<button name="action_approve" string="Approve" states="register" type="object"/> <button name="action_approve" string="Approve" states="register" type="object"/>
<button name="action_draft" string="Set To Draft" states="register" type="object"/> <button name="action_draft" string="Set To Draft" states="register" type="object"/>
@ -39,8 +40,10 @@
<field name="name" readonly="1" force_save="1"/> <field name="name" readonly="1" force_save="1"/>
<field name="action_type" required="1"/> <field name="action_type" required="1"/>
<field name="search_type" required="1"/> <field name="search_type" required="1"/>
<field name="property_type_ids" widget="many2many_tags" attrs="{'invisible': [('search_type', '!=', 'property')], 'required': [('search_type', '=', 'property')]}"/> <field name="property_type_ids" widget="many2many_tags"
<field name="unit_type_id" attrs="{'invisible': [('search_type', '!=', 'unit')], 'required': [('search_type', '=', 'unit')]}"/> attrs="{'invisible': [('search_type', '!=', 'property')], 'required': [('search_type', '=', 'property')]}"/>
<field name="unit_type_id"
attrs="{'invisible': [('search_type', '!=', 'unit')], 'required': [('search_type', '=', 'unit')]}"/>
<field name="city_id"/> <field name="city_id"/>
<field name="user_id" readonly="1" force_save="1"/> <field name="user_id" readonly="1" force_save="1"/>
<field name="district" widget="many2many_tags" domain="[('city_id','=',city_id)]"/> <field name="district" widget="many2many_tags" domain="[('city_id','=',city_id)]"/>
@ -101,7 +104,8 @@
<field name="price" readonly="1"/> <field name="price" readonly="1"/>
<field name="size" readonly="1"/> <field name="size" readonly="1"/>
<field name="room" readonly="1"/> <field name="room" readonly="1"/>
<button name="create_sale_request" type="object" string="Create Sale Request" class="oe_highlight" <button name="create_sale_request" type="object" string="Create Sale Request"
class="oe_highlight"
attrs="{'invisible':['|','|',('flag', '=', True),('state','!=','register'),('parent.action_type','!=','sale')]}"/> attrs="{'invisible':['|','|',('flag', '=', True),('state','!=','register'),('parent.action_type','!=','sale')]}"/>
<field name="flag" readonly="1" force_save="1"/> <field name="flag" readonly="1" force_save="1"/>
<field name="sale_contract_id" readonly="1" <field name="sale_contract_id" readonly="1"
@ -116,6 +120,7 @@
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="activity_ids" widget="mail_activity"/>
</div> </div>
</form> </form>
</field> </field>
@ -133,7 +138,8 @@
<menuitem id="menu_real_estate_marketing" <menuitem id="menu_real_estate_marketing"
name="Real Estate Marketing" name="Real Estate Marketing"
sequence="4" sequence="4"
groups="real_estate_marketing.group_marketer_normal_user" web_icon="real_estate_marketing,static/description/icon.png"/> groups="real_estate_marketing.group_marketer_normal_user"
web_icon="real_estate_marketing,static/description/icon.png"/>
<menuitem id="menu_client_requirement" sequence="1" <menuitem id="menu_client_requirement" sequence="1"

View File

@ -108,6 +108,7 @@
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/> <field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="activity_ids" widget="mail_activity"/>
</div> </div>
</form> </form>
</field> </field>

View File

@ -70,6 +70,7 @@
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/> <field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="activity_ids" widget="mail_activity"/>
</div> </div>
</form> </form>
</field> </field>

View File

@ -48,6 +48,7 @@
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/> <field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/> <field name="message_ids" widget="mail_thread"/>
<field name="activity_ids" widget="mail_activity"/>
</div> </div>
</form> </form>
</field> </field>