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

[FIX] account,l10n_{au,in,gcc_invoice}: distinguish credit note titles #106692

Closed

Conversation

dylankiss
Copy link
Contributor

@dylankiss dylankiss commented Nov 28, 2022

Currently we distinguish customer invoice titles based on the state they are in: draft, posted or cancelled. For the customer credit notes we did not have this dinstinction.

This fix makes sure that the title of a credit note is also adapted based on its state.

task-3067251

Retarget of #106262
Related: https://github.com/odoo/enterprise/pull/34464


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo
Copy link
Contributor

robodoo commented Nov 28, 2022

@C3POdoo C3POdoo requested a review from a team November 28, 2022 13:58
@dylankiss dylankiss removed the request for review from a team November 28, 2022 13:59
@C3POdoo C3POdoo added the RD research & development, internal work label Nov 28, 2022
Copy link
Contributor

@epictete epictete left a comment

Choose a reason for hiding this comment

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

Small detail but we might as well be thorough/consistent 😉

Comment on lines 77 to 82
<span t-if="o.move_type == 'out_refund' and o.state == 'draft'">
إشعار خصم المسودة
</span>
<span t-if="o.move_type == 'out_refund' and o.state == 'cancel'">
إشعار خصم ملغاة
</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<span t-if="o.move_type == 'out_refund' and o.state == 'draft'">
إشعار خصم المسودة
</span>
<span t-if="o.move_type == 'out_refund' and o.state == 'cancel'">
إشعار خصم ملغاة
</span>
<span t-elif="o.move_type == 'out_refund' and o.state == 'draft'">
إشعار خصم المسودة
</span>
<span t-elif="o.move_type == 'out_refund' and o.state == 'cancel'">
إشعار خصم ملغاة
</span>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@epictete Absolutely. Thought I'd done it, but Monday brain ... 😄 There you go!

Currently we distinguish customer invoice titles based on the state they are in: draft, posted or cancelled.
For the customer credit notes we did not have this dinstinction.

This fix makes sure that the title of a credit note is also adapted based on its state.

[task-3067251](https://www.odoo.com/web#id=3067251&cids=1&menu_id=4720&action=4043&model=project.task&view_type=form)
@dylankiss dylankiss force-pushed the master-credit_note_titles-dyki branch from dc2624e to a58b979 Compare November 29, 2022 10:34
@epictete
Copy link
Contributor

@robodoo r+

@robodoo
Copy link
Contributor

robodoo commented Nov 29, 2022

@dylankiss @epictete linked pull request(s) odoo/enterprise#34464 not ready. Linked PRs are not staged until all of them are ready.

robodoo pushed a commit that referenced this pull request Nov 29, 2022
Currently we distinguish customer invoice titles based on the state they are in: draft, posted or cancelled.
For the customer credit notes we did not have this dinstinction.

This fix makes sure that the title of a credit note is also adapted based on its state.

[task-3067251](https://www.odoo.com/web#id=3067251&cids=1&menu_id=4720&action=4043&model=project.task&view_type=form)

closes #106692

Related: odoo/enterprise#34464
Signed-off-by: John Laterre (jol) <jol@odoo.com>
@robodoo robodoo temporarily deployed to merge November 29, 2022 16:22 Inactive
@robodoo robodoo closed this Nov 29, 2022
@robodoo robodoo added the 16.1 label Nov 29, 2022
@fw-bot fw-bot deleted the master-credit_note_titles-dyki branch December 13, 2022 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
16.1 RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants