-
Notifications
You must be signed in to change notification settings - Fork 116
[IMP] account: due date invisible on canceled invoices #4846
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
base: 18.0-rd-accounting-onboarding-malb
Are you sure you want to change the base?
[IMP] account: due date invisible on canceled invoices #4846
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 could be a bit more elaborate and one small nitpick 😄
| <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 (state == '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.
no need for the parenthesis 👀
| <field name="invoice_date_due" widget="remaining_days" optional="show" invisible="( payment_state in ('paid', 'in_payment', 'reversed')) or (state == 'cancel')"/> | |
| <field name="invoice_date_due" widget="remaining_days" optional="show" invisible="payment_state in ('paid', 'in_payment', 'reversed') or state == 'cancel'"/> |
769547a to
17d8537
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.
Squash the commits and also let's add a nice description to the squashed commit 😄 Let's follow the guidelines
invoices that are cancelled still show the due date on the list view which is counterintuitive as a canceled invoice won't be paid so it should not have a due date, thus this change to hide the due date on canceled invoices task: 5231334
17d8537 to
9dccff7
Compare
No description provided.