updata internal.transaction and outgoing.transaction
This commit is contained in:
parent
904f4f8a16
commit
bf67acd4de
|
|
@ -182,7 +182,7 @@
|
|||
<field name="partner_id"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='to_ids']" position="before">
|
||||
<field name="type_sender"/>
|
||||
<field name="type_sender" attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -14,13 +14,14 @@
|
|||
<field name="tran_tag" string="tag" filter_domain="[('tran_tag','ilike',self)]"/>
|
||||
<field name="is_reade"/>
|
||||
<field name="is_favorite"/>
|
||||
<filter string="Subject Type" name="subject_type" domain="[('subject_type_id','=',False)]"/>
|
||||
<filter string="State" name="state" domain="[('state', 'in',('complete','draft'))]"/>
|
||||
<filter string="Subject Type" name="subject_type" domain="[('subject_type_id','=',False)]"/>
|
||||
<filter string="State" name="state" domain="[('state', 'in',('complete','draft'))]"/>
|
||||
<filter string="Unread Transaction" name="unread" domain="[('is_reade','=',False)]"/>
|
||||
<filter string="Favorite" name="favorite" domain="[('is_favorite','=','1')]"/>
|
||||
<group expand="1" string="Group By">
|
||||
<filter string="State" name="group_by_state" context="{'group_by':'state'}"/>
|
||||
<filter string="Subject Type" name="group_by_subject_type" context="{'group_by':'subject_type_id'}"/>
|
||||
<filter string="Subject Type" name="group_by_subject_type"
|
||||
context="{'group_by':'subject_type_id'}"/>
|
||||
</group>
|
||||
<!-- <group expand="0" string="Group By">-->
|
||||
<!-- <filter name="group_manager" string="Manager" domain="[]" context="{'group_by':'parent_id'}"/>-->
|
||||
|
|
@ -141,26 +142,30 @@
|
|||
</header>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='to_ids']" position="before">
|
||||
<field name='company_name'/>
|
||||
<field name="is_partner" widget="boolean_toggle"/>
|
||||
<field name='company_name' attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
||||
<field name="is_partner" widget="boolean_toggle"
|
||||
attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
||||
<field name="partner_id"
|
||||
attrs="{'invisible':[('is_partner','!=',True)],'required':[('is_partner','=',True)]}"/>
|
||||
attrs="{'invisible': [('is_partner', '!=', True)],'required': [('is_partner', '=', True)],'readonly': [('state', 'not in', ['draft'])]}"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='to_ids']" position="attributes">
|
||||
<attribute name="attrs">
|
||||
{'invisible':[('is_partner','!=',False)],'required':[('is_partner','=',False)]}
|
||||
</attribute>
|
||||
<attribute name="widget"></attribute>
|
||||
<attribute name="widget"></attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='important_id']" position="after">
|
||||
<field name="tran_tag" widget="many2many_tags"
|
||||
options="{'no_create':True}"/>
|
||||
options="{'no_create':True}" attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
||||
<field name="tran_tag_unit" widget="many2many_tags"
|
||||
options="{'no_create':True}"/>
|
||||
<field name="project_id" widget="many2many_tags" />
|
||||
<field name="sale_order_id"/>
|
||||
<field name="send_date" attrs="{'invisible':[('state','=','draft')]}"/>
|
||||
<field name="send_attach" widget="many2many_binary" attrs="{'invisible':[('state','=','draft')]}"/>
|
||||
options="{'no_create':True}" attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
||||
<field name="project_id" widget="many2many_tags"
|
||||
attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
||||
<field name="sale_order_id" attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
||||
<field name="send_date"
|
||||
attrs="{'invisible': [('state', '=', 'draft')], 'readonly': [('state', 'not in', ['draft'])]}"/>
|
||||
<field name="send_attach" widget="many2many_binary"
|
||||
attrs="{'invisible': [('state', '=', 'draft')], 'readonly': [('state', 'not in', ['draft'])]}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -172,7 +177,7 @@
|
|||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
if records:
|
||||
action = records.action_read()
|
||||
action = records.action_read()
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_unread_out_transaction_from" model="ir.actions.server">
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
attrs="{'required':True,'readonly':[('state','not in', ['draft'])]}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="transaction_date" attrs="{'required':True}"/>
|
||||
<field name="transaction_date" attrs="{'required':True,'readonly':[('state','not in', ['draft'])]}"/>
|
||||
<field name="transaction_date_hijri"/>
|
||||
<field name="receive_id" invisible="1"/>
|
||||
<field name="receive_manger_id" invisible="1"/>
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
attrs="{'required':True,'readonly':[('state','not in', ['draft'])]}"
|
||||
domain="[('type', 'in', ['unit','employee'])]" options="{'no_create':True,'no_open':True}"/>
|
||||
<field name="tran_tag" widget="many2many_tags"
|
||||
options="{'no_create':True}"/>
|
||||
options="{'no_create':True}" attrs="{'required':True,'readonly':[('state','not in', ['draft'])]}"/>
|
||||
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='important_id']" position="after">
|
||||
|
|
@ -244,7 +244,7 @@
|
|||
</page>
|
||||
<page string="Transaction Details">
|
||||
<separator string="Transaction Details"/>
|
||||
<field name="body" widget="text_html"/>
|
||||
<field name="body" widget="text_html" attrs="{'readonly':[('state','not in',['draft'])]}"/>
|
||||
<group>
|
||||
<field name="attachment_ids" attrs="{'readonly':[('state','not in',['draft'])]}">
|
||||
<tree string="Attachments" editable="bottom">
|
||||
|
|
@ -296,7 +296,7 @@
|
|||
<field name="to_ids" options="{'no_create':True,'no_open':True}"
|
||||
attrs="{'required':True,'readonly':[('state','not in', ['draft'])]}"
|
||||
domain="[('type', '=', 'external')]"/>
|
||||
<field name="to_name"/>
|
||||
<field name="to_name" attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
||||
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='transaction_date_hijri']" position="after">
|
||||
|
|
@ -357,7 +357,7 @@
|
|||
</page>
|
||||
<page string="Transaction Details">
|
||||
<separator string="Transaction Details"/>
|
||||
<field name="body" widget="text_html"/>
|
||||
<field name="body" widget="text_html" attrs="{'readonly':[('state','not in',['draft'])]}"/>
|
||||
<group>
|
||||
<field name="attachment_ids" attrs="{'readonly':[('state','not in',['draft'])]}">
|
||||
<tree string="Attachments" editable="bottom">
|
||||
|
|
|
|||
Loading…
Reference in New Issue