-
Notifications
You must be signed in to change notification settings - Fork 116
[IMP] account: hide the invoice due date if the invoice is cancelled in list view #4849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] account: hide the invoice due date if the invoice is cancelled in list view #4849
Conversation
|
This PR targets the un-managed branch odoo-dev/odoo:18.0-rd-accounting-onboarding-malb, it needs to be retargeted before it can be merged. |
malb-odoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message need to be changed to fit the guideline and one small change that could be done 😄
| <field name="invoice_date" optional="show" column_invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund', 'out_receipt')" readonly="state != 'draft'" string="Invoice Date" decoration-warning="abnormal_date_warning"/> | ||
| <field name="date" optional="hide" string="Accounting Date" readonly="state in ['cancel', 'posted']"/> | ||
| <field name="invoice_date_due" widget="remaining_days" optional="show" invisible="payment_state in ('paid', 'in_payment', 'reversed')"/> | ||
| <field name="invoice_date_due" widget="remaining_days" optional="show" invisible="payment_state in ('paid', 'in_payment', 'reversed') or status_in_payment == 'cancel'"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using status_in_payment that depends on the state, you can use state directly 😄
37e179c to
622cab3
Compare
malb-odoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message don't follow the guidelines 👀 and care you have a typo in the title ahah
…in list view for cancelled invoices, the due date was still showing even though it is not relevant anymore as no payment is expected task id: 5231295
622cab3 to
80918e0
Compare
|
Same for the task, do task-..... otherwise you could have the case that have here where the number is actually link to something ahah |
for cancelled invoices, the due date was still showing even though it is not relevant anymore as no payment is expected