commit
26e50c2cf1
|
|
@ -161,6 +161,7 @@ class InternalTransaction(models.Model):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
record.trace_create_ids('internal_transaction_id', record, sent)
|
record.trace_create_ids('internal_transaction_id', record, sent)
|
||||||
partner_ids = []
|
partner_ids = []
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@
|
||||||
('state', 'in', ['to_approve', 'send'])
|
('state', 'in', ['to_approve', 'send'])
|
||||||
]"/>
|
]"/>
|
||||||
<filter string="Favorite" name="favorite" domain="[('is_favorite','=','1')]"/>
|
<filter string="Favorite" name="favorite" domain="[('is_favorite','=','1')]"/>
|
||||||
<filter string="Subject Type" name="subject_type" domain="[('subject_type_id','=',False)]"/>
|
<filter string="Subject Type" name="subject_type" domain="[('subject_type_id','=',False)]"/>
|
||||||
<filter string="State" name="state" domain="[('state', 'in', ('complete','draft'))]"/>
|
<filter string="State" name="state" domain="[('state', 'in', ('complete','draft'))]"/>
|
||||||
<group expand="1" string="Group By">
|
<group expand="1" string="Group By">
|
||||||
<filter string="State" name="group_by_state" context="{'group_by':'state'}"/>
|
<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'}"/>
|
||||||
|
|
@ -99,14 +99,25 @@
|
||||||
confirm="Are you sure you want to approve transaction ?"/>
|
confirm="Are you sure you want to approve transaction ?"/>
|
||||||
<button attrs="{'invisible':['|',('current_is_manager','=',False),('state','!=','to_approve')]}"
|
<button attrs="{'invisible':['|',('current_is_manager','=',False),('state','!=','to_approve')]}"
|
||||||
type="object" name="action_reject_internal" string="Reject" class="oe_highlight"/>
|
type="object" name="action_reject_internal" string="Reject" class="oe_highlight"/>
|
||||||
<button attrs="{'invisible':['|',('current_is_manager','=',False),('state','!=','to_approve')]}"
|
|
||||||
type="object" name="action_return_internal" string="Return" class="oe_highlight"/>
|
<!-- <button attrs="{'invisible':['|',('current_is_manager','=',False),('state','!=','to_approve')]}"-->
|
||||||
<button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['send','reply'])]}"
|
<!-- type="object" name="action_return_internal" string="Return" class="oe_highlight"/>-->
|
||||||
type="object" name="action_forward_internal" string="Forward" class="oe_highlight"/>
|
<!-- <button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['send','reply'])]}"-->
|
||||||
<button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['send','reply'])]}"
|
<!-- type="object" name="action_forward_internal" string="Forward" class="oe_highlight"/>-->
|
||||||
type="object" name="action_reply_internal" string="Reply" class="oe_highlight"/>
|
<!-- <button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['send','reply'])]}"-->
|
||||||
<button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['send','reply'])]}"
|
<!-- type="object" name="action_reply_internal" string="Reply" class="oe_highlight"/>-->
|
||||||
type="object" name="action_archive_internal" string="Archive" class="oe_highlight"/>
|
<!-- <button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['send','reply'])]}"-->
|
||||||
|
<!-- type="object" name="action_archive_internal" string="Archive" class="oe_highlight"/>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<button attrs="{'invisible':['|',('current_is_manager','=',False),('state','!=','to_approve')]}" type="object" name="action_return_internal" string="Return" class="oe_highlight"/>
|
||||||
|
<button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['closed','canceled'])]}" type="object" name="action_forward_internal" string="Forward" class="oe_highlight"/>
|
||||||
|
<button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['closed','canceled'])]}" type="object" name="action_reply_internal" string="Reply" class="oe_highlight"/>
|
||||||
|
<button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['closed','canceled'])]}" type="object" name="action_archive_internal" string="Archive" class="oe_highlight"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<button states="closed" type="object" name="action_reopen_internal" string="Reopen"
|
<button states="closed" type="object" name="action_reopen_internal" string="Reopen"
|
||||||
class="oe_highlight" groups="exp_transaction_documents.group_reopen_transaction,exp_transaction_documents.group_transaction_manager" confirm="Are you sure you want to reopen transaction ?"/>
|
class="oe_highlight" groups="exp_transaction_documents.group_reopen_transaction,exp_transaction_documents.group_transaction_manager" confirm="Are you sure you want to reopen transaction ?"/>
|
||||||
<button states="canceled" type="object" name="set_to_draft" string="Restore"
|
<button states="canceled" type="object" name="set_to_draft" string="Restore"
|
||||||
|
|
@ -123,11 +134,11 @@
|
||||||
<field name="response_time_str"/>
|
<field name="response_time_str"/>
|
||||||
<field name="response_days"/>
|
<field name="response_days"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//field[@name='tran_tag']" position="after">
|
<xpath expr="//field[@name='tran_tag']" position="after">
|
||||||
<field name="to_delegate" readonly="1" force_save="1"/>
|
<field name="to_delegate" readonly="1" force_save="1"/>
|
||||||
<!-- <field name="delegate_employee_id"/>-->
|
<!-- <field name="delegate_employee_id"/>-->
|
||||||
<!-- <field name="from_date"/>-->
|
<!-- <field name="from_date"/>-->
|
||||||
<!-- <field name="to_date"/>-->
|
<!-- <field name="to_date"/>-->
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
@ -202,9 +213,9 @@
|
||||||
<xpath expr="//field[@name='to_ids']" position="after">
|
<xpath expr="//field[@name='to_ids']" position="after">
|
||||||
<field name="partner_id"/>
|
<field name="partner_id"/>
|
||||||
<field name="to_delegate" readonly="1" force_save="1"/>
|
<field name="to_delegate" readonly="1" force_save="1"/>
|
||||||
<!-- <field name="delegate_employee_id"/>-->
|
<!-- <field name="delegate_employee_id"/>-->
|
||||||
<!-- <field name="from_date"/>-->
|
<!-- <field name="from_date"/>-->
|
||||||
<!-- <field name="to_date"/>-->
|
<!-- <field name="to_date"/>-->
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//field[@name='to_ids']" position="before">
|
<xpath expr="//field[@name='to_ids']" position="before">
|
||||||
<field name="type_sender" attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
<field name="type_sender" attrs="{'readonly':[('state','not in', ['draft'])]}"/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue