Skip to content

Conversation

@Wajih-Wanis
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Nov 3, 2025

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.

Copy link

@malb-odoo malb-odoo left a 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')"/>

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 👀

Suggested change
<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'"/>

@Wajih-Wanis Wajih-Wanis force-pushed the 18.0-rd-accounting-onboarding-due-date-invis-waoun branch from 769547a to 17d8537 Compare November 6, 2025 09:24
Copy link

@malb-odoo malb-odoo left a 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
@Wajih-Wanis Wajih-Wanis force-pushed the 18.0-rd-accounting-onboarding-due-date-invis-waoun branch from 17d8537 to 9dccff7 Compare November 7, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants