Skip to content
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

18.0 mig account invoice start end dates #307

Open
wants to merge 69 commits into
base: 18.0
Choose a base branch
from

Conversation

fredericgrall
Copy link

No description provided.

alexis-via and others added 30 commits October 30, 2024 14:25
Extract a new module account_invoice_start_end_dates from account_cutoff_prepaid
…art_end_dates: fixing tests fixing product not found convert mline dates to string fixing flake8 account_invoice_start_end_dates: fixing tests fixing product not found convert mline dates to string fixing flake8 putting removed licences back fix tests fix flake8 fix pylint issues

[12.0-mig-account] fix unit tests

fixup! [12.0-mig-account] fix unit tests

fixup! fixup! [12.0-mig-account] fix unit tests
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-closing-12.0/account-closing-12.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-12-0/account-closing-12-0-account_invoice_start_end_dates/
Default value for cutoff date is end date of previous fiscal year
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-closing-13.0/account-closing-13.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-13-0/account-closing-13-0-account_invoice_start_end_dates/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-closing-13.0/account-closing-13.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-13-0/account-closing-13-0-account_invoice_start_end_dates/
Currently translated at 88.2% (15 of 17 strings)

Translation: account-closing-14.0/account-closing-14.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-14-0/account-closing-14-0-account_invoice_start_end_dates/fr_FR/
Currently translated at 100.0% (14 of 14 strings)

Translation: account-closing-14.0/account-closing-14.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-14-0/account-closing-14-0-account_invoice_start_end_dates/pt/
Currently translated at 100.0% (14 of 14 strings)

Translation: account-closing-14.0/account-closing-14.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-14-0/account-closing-14-0-account_invoice_start_end_dates/it/
mostafabarmshory and others added 26 commits October 30, 2024 14:25
Currently translated at 15.3% (2 of 13 strings)

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/fa/
Currently translated at 100.0% (13 of 13 strings)

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/fr/
Currently translated at 100.0% (13 of 13 strings)

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/fr_FR/
Currently translated at 100.0% (13 of 13 strings)

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/it/
Currently translated at 100.0% (13 of 13 strings)

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/it/
Currently translated at 100.0% (13 of 13 strings)

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/fr/
Remove deprecated POT files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/
Currently translated at 100.0% (13 of 13 strings)

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/es/
Currently translated at 92.3% (12 of 13 strings)

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/hr/
Currently translated at 100.0% (13 of 13 strings)

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/fr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-closing-16.0/account-closing-16.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-16-0/account-closing-16-0-account_invoice_start_end_dates/
Co-authored-by: Alexis de Lattre <alexis@via.ecp.fr>
Currently translated at 100.0% (13 of 13 strings)

Translation: account-closing-17.0/account-closing-17.0-account_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/account-closing-17-0/account-closing-17-0-account_invoice_start_end_dates/it/
Copy link

@xaviedoanhduy xaviedoanhduy left a comment

Choose a reason for hiding this comment

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

For being easily searchable and avoiding to duplicate efforts, please name the pull request following this pattern:
[18.0][MIG] <module>: Migration to 18.0.

and (not line.start_date or not line.end_date)
):
raise UserError(
_(

Choose a reason for hiding this comment

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

could you apply this change to _ and % similar to this PR?
odoo/odoo#52155

position="before"
>
<field name="must_have_dates" invisible="1" />
<field name="start_date" required="must_have_dates == True" />

Choose a reason for hiding this comment

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

Suggested change
<field name="start_date" required="must_have_dates == True" />
<field name="start_date" required="must_have_dates" />

why not take this opportunity to simplify the boolean expression above?

- Jeroen Evens \<<jeroen.evens@dynapps.be>\>
- [Trobz](https://trobz.com):
- Thao Le <thaolt@trobz.com>
- Frederic Grall \<<fgr@apik.cloud>>

Choose a reason for hiding this comment

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

can you add a new line

@xaviedoanhduy
Copy link

xaviedoanhduy commented Nov 8, 2024

could you squash 2 commit MIG to 18.0 in a single one and btw squash administrative commits?

https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate

expr="//field[@name='invoice_line_ids']/list/field[@name='quantity']"
position="before"
>
<field name="must_have_dates" invisible="1" />

Choose a reason for hiding this comment

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

Suggested change
<field name="must_have_dates" invisible="1" />
<field name="must_have_dates" column_invisible="1" />

image

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.