Skip to content

Conversation

@jordi-josc
Copy link

@jordi-josc jordi-josc commented Jan 28, 2026

  • Delivery date in the header of account.move report
  • Change the logic of the field delivery_date to always display it and fill it with info when it's empty

TaskID - 5867738

@robodoo
Copy link

robodoo commented Jan 28, 2026

This PR targets the un-managed branch odoo-dev/odoo:19.0-l10n_es-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.

It's missing the part to display the delivery date on the move it self next to the due date. And also on post if the delivery date is empty, fill it with the invoice date 😄

Btw nice addition for the delivery date in the pdf but it wasn't mandatory 👀

@jordi-josc jordi-josc force-pushed the 19.0-add_delivery_date-josc branch from fec07d0 to 5fc6572 Compare January 30, 2026 10:01
@jordi-josc jordi-josc requested a review from malb-odoo January 30, 2026 10:02
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.

Care that the commit message is empty 👀
image

Comment on lines 33 to 38
@api.depends('state', 'invoice_date')
def _compute_delivery_date(self):
super()._compute_delivery_date()
for record in self:
if record.state == 'posted' and not record.delivery_date:
record.delivery_date = record.invoice_date

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's one way to do it but with a compute you will change enter that compute multiple time instead of just one when clicking the post button
Take a look at the action_post method or _post 👀

Also it's missing the part to display the delivery date on top of the form all the time 😄 Check the field show_delivery_date

Comment on lines 8 to 13
<xpath expr="//field[@name='delivery_date']" position="attributes">
<attribute name="invisible"></attribute>
</xpath>
<xpath expr="//page[@id='other_tab']//field[@name='delivery_date']" position="attributes">
<attribute name="readonly"></attribute>
</xpath>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed with the python overrides 😄

</t>
</div>
</xpath>
</template>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it wasn't very clear in the spec so won't block for that but the pdf wasn't suppose to be touched 😂

@jordi-josc jordi-josc force-pushed the 19.0-add_delivery_date-josc branch from 5fc6572 to 3b8c34f Compare January 30, 2026 11:01
- Delivery date in the header of account.move report
- Change the logic of the field delivery_date to always display it and fill it with info when it's empty
@jordi-josc jordi-josc force-pushed the 19.0-add_delivery_date-josc branch from 3b8c34f to fc9809e Compare January 30, 2026 11:15
@jordi-josc jordi-josc requested a review from malb-odoo January 30, 2026 11:16
@jordi-josc
Copy link
Author

I deleted the readonly xpath, I leave the invisible xpath because it the way the delivery date remains at the top of the form view.

Furthermore, I checked the method action_post and I think that's the same.

Finally, I changed the commit message :)

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.

Let's deploy thaaaat

for record in self:
if record.state == 'posted' and not record.delivery_date:
record.delivery_date = record.invoice_date

No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Care that you should avoid having those, you can set up you IDE to do it for you 😄 Won't block for that though ahah

@malb-odoo malb-odoo closed this Jan 30, 2026
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