Merge pull request #6242 from expsa/ytt
[IMP] odex_benefit: IMP benefit
This commit is contained in:
commit
d074ecf06e
|
|
@ -564,7 +564,7 @@
|
||||||
'|',
|
'|',
|
||||||
'&','&',
|
'&','&',
|
||||||
('is_seasonal','=',False),
|
('is_seasonal','=',False),
|
||||||
('state','=','accounting_approve'),
|
('state','in',['accounting_approve','return_to_bank','family_received_device','send_request_to_supplier']),
|
||||||
('payment_order_state','=','none'),
|
('payment_order_state','=','none'),
|
||||||
'&','&','&',
|
'&','&','&',
|
||||||
('is_seasonal','=',True),
|
('is_seasonal','=',True),
|
||||||
|
|
|
||||||
|
|
@ -105,11 +105,13 @@
|
||||||
states="accounting_approve"/>
|
states="accounting_approve"/>
|
||||||
<button name="action_first_refuse" type="object"
|
<button name="action_first_refuse" type="object"
|
||||||
string="Return the request to the specialist" class="btn btn-warning"
|
string="Return the request to the specialist" class="btn btn-warning"
|
||||||
states="accounting_approve"
|
groups="odex_benefit.group_benefit_payment_accountant_accept"
|
||||||
|
attrs="{'invisible': ['|','|',('state', '!=', 'accounting_approve'),('payment_order_count','!=',0),('total_moves', '!=', 0)]}"
|
||||||
/>
|
/>
|
||||||
<button name="action_refuse" type="object"
|
<button name="action_refuse" type="object"
|
||||||
string="Refuse" class="btn btn-danger"
|
string="Refuse" class="btn btn-danger"
|
||||||
states="accounting_approve"
|
groups="odex_benefit.group_benefit_payment_accountant_accept"
|
||||||
|
attrs="{'invisible': ['|','|',('state', '!=', 'accounting_approve'),('payment_order_count','!=',0),('total_moves', '!=', 0)]}"
|
||||||
/>
|
/>
|
||||||
<button name="action_processed" type="object"
|
<button name="action_processed" type="object"
|
||||||
string="Processed" class="oe_highlight"
|
string="Processed" class="oe_highlight"
|
||||||
|
|
@ -177,7 +179,8 @@
|
||||||
<button name="action_open_related_move_records"
|
<button name="action_open_related_move_records"
|
||||||
class="oe_stat_button"
|
class="oe_stat_button"
|
||||||
icon="fa-file-text-o"
|
icon="fa-file-text-o"
|
||||||
type="object" attrs="{'invisible': ['|',('total_moves', '=', 0),('payment_order_count','!=','0')]}">
|
type="object"
|
||||||
|
attrs="{'invisible': ['|',('total_moves', '=', 0),('payment_order_count','!=','0')]}">
|
||||||
<field name="total_moves" widget="statinfo" string="Total Moves"/>
|
<field name="total_moves" widget="statinfo" string="Total Moves"/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -276,7 +279,7 @@
|
||||||
('exception', '=', False),
|
('exception', '=', False),
|
||||||
'|',
|
'|',
|
||||||
'&',
|
'&',
|
||||||
('state', 'not in', ['draft', 'researcher', 'waiting_approve', 'first_approve', 'gm_assistant', 'accounting_approve']),
|
('state', 'not in', ['draft', 'researcher']),
|
||||||
('service_type', 'in', ['marriage', 'eid_gift', 'winter_clothing', 'ramadan_basket']),
|
('service_type', 'in', ['marriage', 'eid_gift', 'winter_clothing', 'ramadan_basket']),
|
||||||
('service_type', 'in', ['electrical_devices', 'home_furnishing', 'rent'])
|
('service_type', 'in', ['electrical_devices', 'home_furnishing', 'rent'])
|
||||||
]
|
]
|
||||||
|
|
@ -320,7 +323,7 @@
|
||||||
<page string="Services Attachments Settings"
|
<page string="Services Attachments Settings"
|
||||||
attrs="{'invisible':[('required_attach','=',False)]}">
|
attrs="{'invisible':[('required_attach','=',False)]}">
|
||||||
<field name="attachment_lines" widget="one2many_list">
|
<field name="attachment_lines" widget="one2many_list">
|
||||||
<tree editable="bottom" delete="0">
|
<tree editable="bottom">
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="service_attach" widget="many2many_attachment_preview"/>
|
<field name="service_attach" widget="many2many_attachment_preview"/>
|
||||||
<field name="write_uid"/>
|
<field name="write_uid"/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue