Merge pull request #4331 from expsa/dev_odex25_accounting

Dev odex25 accounting
This commit is contained in:
SamirLADOUI-sa 2025-08-25 11:25:14 +01:00 committed by GitHub
commit 47249cbd16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -20,9 +20,10 @@
<attribute name="attrs">{'invisible' : [('state' , 'not in' , ('wait_for_send','waiting'))]}</attribute>
</xpath>
<xpath expr="//button[@id='prc_request_refuse']" position="after">
<field name="has_approve_reject_permission" invisible="1" />
<button name="action_refuse" type="object" string="Refuse" id="ieb_request_refuse"
groups="purchase_requisition_custom.group_direct_manger"
attrs="{'invisible' : [('state' , '!=' , 'direct_manager')]}"/>
attrs="{'invisible' : ['|', ('state' , '!=' , 'direct_manager'), ('has_approve_reject_permission', '!=', True)]}"/>
</xpath>
<xpath expr="//field[@name='date']" position="after">