[IMP] account: Improved bill dashboard payment status visibility
The condition to visualize the payment status on the dashboard of account moves has been improved (this dashboard can be accessed by clicking on the Vendor Bill Journal and removing the filter for example). The reason for this change is that for a lot of different entries the payment status is indicated as "Not paid" even though no payment is expected for those entries. Moreover, this status will not change even though a payment is registered, which is counter intuitive (for payment line PBNK for example). This commit therefore improves the condition to visualize The payment status. task-3091141 PR number-107329 closes odoo/odoo#107329 Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
This commit is contained in:
@@ -430,7 +430,7 @@
|
||||
decoration-danger="payment_state == 'not_paid'"
|
||||
decoration-warning="payment_state in ('partial', 'in_payment')"
|
||||
decoration-success="payment_state in ('paid', 'reversed')"
|
||||
attrs="{'invisible': ['|', ('payment_state', 'in', ('invoicing_legacy')), ('state', '!=', 'posted')]}"
|
||||
attrs="{'invisible': ['|', '|', ('payment_state', 'in', ('invoicing_legacy')), ('state', '!=', 'posted'), ('move_type', '=', 'entry')]}"
|
||||
optional="show"/>
|
||||
<field name="state" widget="badge" decoration-success="state == 'posted'" decoration-info="state == 'draft'" optional="show"/>
|
||||
<field name="move_type" invisible="context.get('default_move_type', True)"/>
|
||||
|
||||
Reference in New Issue
Block a user