Skip to content

[WIP] [14.0] [MIG] document_url - #304

Closed
DavidBForgeFlow wants to merge 28 commits into
OCA:14.0from
ForgeFlow:14.0-mig-document_url
Closed

[WIP] [14.0] [MIG] document_url#304
DavidBForgeFlow wants to merge 28 commits into
OCA:14.0from
ForgeFlow:14.0-mig-document_url

Conversation

@DavidBForgeFlow

Copy link
Copy Markdown
Contributor

Standard migration to v14.

pedrobaeza and others added 27 commits September 1, 2021 13:48
[MIG] document_url

* bump version to 9.0.1.0.0 and make it installable
* Update JS structure
* Add css in order to be compliant with odoo style
* Add a README.rst and OCA conventions
* Improve selector
* add fr.po for fr translation
* open link with target='_blank'
Without this patch, when you hover on the menu item, its background color does not change, and its cursor is a text one.

With this patch, the menu item styling matches those available in all surrounding menus.
Replace char © by word Copyright
Change format in usage description
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-12.0/knowledge-12.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-12-0/knowledge-12-0-document_url/
Currently translated at 100.0% (14 of 14 strings)

Translation: knowledge-12.0/knowledge-12.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-12-0/knowledge-12-0-document_url/hr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-13.0/knowledge-13.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-13-0/knowledge-13-0-document_url/
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @DavidBForgeFlow! Thank you very much for this contribution. As the addon you are improving does not have a declared maintainer, I take the opportunity to mention that you can consider adopting it. To do so, please read the maintainer role description, and, if interested, create a pull request to add your GitHub login to the maintainers key of the addon manifest.

@CasVissers-360ERP

Copy link
Copy Markdown

@DavidBForgeFlow Tried it on runbot but not working, WIP?
https://drive.google.com/file/d/1KG2F5Veaqok3EwoHBGGJavGzq6F2rlz0/view

@victoralmau victoralmau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In addition, it will be necessary to change the javascript to adapt it to v14 and to extend the AttachmentBox component so that it works correctly.

Comment on lines +4 to +17
<templates id="template" xml:space="preserve">
<t t-extend="mail.AttachmentBox">
<t t-jquery="button.o_AttachmentBox_buttonAdd" t-operation="after">
<button
type="button"
class="o_add_url_button btn btn-link"
t-on-click="_onClickAdd"
>
<i class="fa fa-plus-square" />
Add URL
</button>
</t>
</t>
</templates>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
<templates id="template" xml:space="preserve">
<t t-extend="mail.AttachmentBox">
<t t-jquery="button.o_AttachmentBox_buttonAdd" t-operation="after">
<button
type="button"
class="o_add_url_button btn btn-link"
t-on-click="_onClickAdd"
>
<i class="fa fa-plus-square" />
Add URL
</button>
</t>
</t>
</templates>
<templates xml:space="preserve">
<t t-inherit="mail.AttachmentBox" t-inherit-mode="extension" owl="1">
<xpath expr="//button[hasclass('o_AttachmentBox_buttonAdd')]" position="after">
<button
type="button"
class="o_add_url_button btn btn-link"
t-on-click="_onAddUrl"
>
<i class="fa fa-plus-square" />
Add URL
</button>
</xpath>
</t>
</templates>

I think this change is necessary to show the "Add URL" button.

@pedrobaeza

Copy link
Copy Markdown
Member

I think you can supersede, @victoralmau, as the contributor seems unresponsive.

@MiquelRForgeFlow

MiquelRForgeFlow commented Nov 8, 2021

Copy link
Copy Markdown
Contributor

This PR should be closed, as @DavidBForgeFlow is no longer active and the PR was clearly superseded.

@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 16, 2022
@pedrobaeza pedrobaeza closed this Oct 16, 2022
@MiquelRForgeFlow
MiquelRForgeFlow deleted the 14.0-mig-document_url branch October 17, 2022 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.