Merge pull request #3772 from expsa/modify_trans

internal button vies
This commit is contained in:
eslamtalaat744 2025-07-07 00:24:06 +03:00 committed by GitHub
commit 26e50c2cf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 29 additions and 17 deletions

View File

@ -161,6 +161,7 @@ class InternalTransaction(models.Model):
record.trace_create_ids('internal_transaction_id', record, sent)
partner_ids = []

View File

@ -21,8 +21,8 @@
('state', 'in', ['to_approve', 'send'])
]"/>
<filter string="Favorite" name="favorite" domain="[('is_favorite','=','1')]"/>
<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'))]"/>
<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'}"/>
@ -99,14 +99,25 @@
confirm="Are you sure you want to approve transaction ?"/>
<button attrs="{'invisible':['|',('current_is_manager','=',False),('state','!=','to_approve')]}"
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_forward_user','=',False),('state','not in',['send','reply'])]}"
type="object" name="action_forward_internal" string="Forward" class="oe_highlight"/>
<button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['send','reply'])]}"
type="object" name="action_reply_internal" string="Reply" 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',['send','reply'])]}"-->
<!-- type="object" name="action_forward_internal" string="Forward" class="oe_highlight"/>-->
<!-- <button attrs="{'invisible':['|',('current_is_forward_user','=',False),('state','not in',['send','reply'])]}"-->
<!-- type="object" name="action_reply_internal" string="Reply" 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"
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"
@ -123,11 +134,11 @@
<field name="response_time_str"/>
<field name="response_days"/>
</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="delegate_employee_id"/>-->
<!-- <field name="from_date"/>-->
<!-- <field name="to_date"/>-->
<!-- <field name="delegate_employee_id"/>-->
<!-- <field name="from_date"/>-->
<!-- <field name="to_date"/>-->
</xpath>
</field>
</record>
@ -202,9 +213,9 @@
<xpath expr="//field[@name='to_ids']" position="after">
<field name="partner_id"/>
<field name="to_delegate" readonly="1" force_save="1"/>
<!-- <field name="delegate_employee_id"/>-->
<!-- <field name="from_date"/>-->
<!-- <field name="to_date"/>-->
<!-- <field name="delegate_employee_id"/>-->
<!-- <field name="from_date"/>-->
<!-- <field name="to_date"/>-->
</xpath>
<xpath expr="//field[@name='to_ids']" position="before">
<field name="type_sender" attrs="{'readonly':[('state','not in', ['draft'])]}"/>