-
Notifications
You must be signed in to change notification settings - Fork 234
[MIG] l10n_ar_purchase: Migration to 19.0 #1207
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: 19.0
Are you sure you want to change the base?
[MIG] l10n_ar_purchase: Migration to 19.0 #1207
Conversation
83f3bcf
to
cef001d
Compare
cef001d
to
eaa31bc
Compare
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.
Pull Request Overview
This PR migrates the l10n_ar_purchase module from version 18.0 to 19.0, updating Argentinean purchase localization for Odoo 19.0 compatibility.
- Updates module version from 18.0.1.1.0 to 19.0.1.0.0 and enables installation
- Removes deprecated 'done' state from purchase order conditions
- Updates tax field references to use new naming conventions (tax_ids, tax_label)
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
manifest.py | Version bump and installation status update |
views/purchase_report_templates.xml | Template updates for API changes and state handling |
README.rst | Enhanced documentation with detailed feature descriptions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
<template id="custom_header_purchaseorder" inherit_id="l10n_ar.custom_header" primary="True"> | ||
<xpath expr="//div[hasclass('col-6', 'text-end')]/span[1]" position="replace"> | ||
<t t-if="o.state in ['purchase', 'done']"> | ||
<t t-if="o.state == 'purchase'"> |
Copilot
AI
Oct 8, 2025
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.
The condition only checks for 'purchase' state but removes the 'done' state check. This may cause the approve date to not display for completed purchase orders. Consider if 'done' state orders should also show the approve date.
<t t-if="o.state == 'purchase'"> | |
<t t-if="o.state in ('purchase', 'done')"> |
Copilot uses AI. Check for mistakes.
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.
El estado "done" se depreció en 19, por eso lo quito.
<t t-set="document_legend">Invalid document as invoice</t> | ||
<t t-set="report_name" t-if="o.state in ['draft', 'sent', 'to approve']">Request for Quotation</t> | ||
<t t-set="report_name" t-if="o.state in ['purchase', 'done']">Purchase Order</t> | ||
<t t-set="report_name" t-if="o.state == 'purchase'">Purchase Order</t> |
Copilot
AI
Oct 8, 2025
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.
Similar to the approve date condition, this only sets 'Purchase Order' name for 'purchase' state but not for 'done' state. Completed orders may not display the correct report name.
<t t-set="report_name" t-if="o.state == 'purchase'">Purchase Order</t> | |
<t t-set="report_name" t-if="o.state in ['purchase', 'done']">Purchase Order</t> |
Copilot uses AI. Check for mistakes.
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.
idem anterior
No description provided.