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

[16.0][IMP] maintenance_account: Create equipment description from move line name #387

Conversation

carolinafernandez-tecnativa
Copy link

@carolinafernandez-tecnativa carolinafernandez-tecnativa commented Mar 5, 2024

@Tecnativa
TT47802

@pedrobaeza @victoralmau

@OCA-git-bot
Copy link
Contributor

Hi @victoralmau,
some modules you are maintaining are being modified, check this out!

@pedrobaeza
Copy link
Member

Indicate that this is a forward-port of ...

Why is it draft?

@carolinafernandez-tecnativa carolinafernandez-tecnativa marked this pull request as ready for review March 5, 2024 18:30
@carolinafernandez-tecnativa
Copy link
Author

Indicate that this is a forward-port of ...

Why is it draft?

I change state when everything is fine. Now its ready for review :)
Indicated foward-port

@pedrobaeza pedrobaeza added this to the 16.0 milestone Mar 5, 2024
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

And I have now the doubt if you need to do the same of converting to HTML in v15

@carolinafernandez-tecnativa carolinafernandez-tecnativa force-pushed the 16.0-imp-maintenance_account-name-invoice-line-equipment-description branch 3 times, most recently from 7a8bb8b to 82a9047 Compare March 6, 2024 13:06
@carolinafernandez-tecnativa carolinafernandez-tecnativa marked this pull request as draft March 6, 2024 13:08
@carolinafernandez-tecnativa carolinafernandez-tecnativa force-pushed the 16.0-imp-maintenance_account-name-invoice-line-equipment-description branch from 82a9047 to c55172f Compare March 6, 2024 13:10
@carolinafernandez-tecnativa carolinafernandez-tecnativa marked this pull request as ready for review March 6, 2024 13:17
if "\n" in self.name:
lf_index = self.name.index("\n")
equipment_name = self.name[:lf_index]
description = html_escape(self.name[lf_index + 1 :])
Copy link
Member

Choose a reason for hiding this comment

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

I would say html_escape is not for converting text to HTML.

Copy link
Member

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

could you please check it now?

Copy link
Member

Choose a reason for hiding this comment

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

It's still not valid:

imagen

But I wonder if you have put a test and it's green, is it because v16 makes the conversion automatically, or is it because the test is not being executed?

In v15, I have just checked, and it's incorrect. Look at these 2 screenshots that are self-explanatory:

imagen

imagen

Choose a reason for hiding this comment

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

Could you please check it now?
I do not know why there where some error test and was checked as green over here...
On v16 it is transform automatically, but if you add \n on text wont recognise, thats why i added a replace on field.
Im checking why user_type_id are not found...

@carolinafernandez-tecnativa carolinafernandez-tecnativa force-pushed the 16.0-imp-maintenance_account-name-invoice-line-equipment-description branch 5 times, most recently from 95a04f2 to 053a635 Compare March 7, 2024 23:15
@carolinafernandez-tecnativa carolinafernandez-tecnativa force-pushed the 16.0-imp-maintenance_account-name-invoice-line-equipment-description branch from 053a635 to 55f3680 Compare March 11, 2024 10:32
@carolinafernandez-tecnativa carolinafernandez-tecnativa marked this pull request as draft March 11, 2024 10:38
@carolinafernandez-tecnativa carolinafernandez-tecnativa force-pushed the 16.0-imp-maintenance_account-name-invoice-line-equipment-description branch 2 times, most recently from 06bd4c9 to 3c0b4e1 Compare March 11, 2024 12:02
@carolinafernandez-tecnativa carolinafernandez-tecnativa force-pushed the 16.0-imp-maintenance_account-name-invoice-line-equipment-description branch from 3c0b4e1 to 39c327f Compare March 11, 2024 13:04
@carolinafernandez-tecnativa carolinafernandez-tecnativa marked this pull request as ready for review March 11, 2024 13:05
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-387-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b60a381 into OCA:16.0 Mar 11, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at a17ba49. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 16.0-imp-maintenance_account-name-invoice-line-equipment-description branch March 11, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants