Skip to content

Conversation

@xmo-odoo
Copy link
Collaborator

@xmo-odoo xmo-odoo commented Dec 6, 2021

Somewhat related to odoo/odoo#74604 as these are issues I found while fixing the other one (and the first commit is quite literally support for a change in odoo/odoo#74604).

Allows us to properly link to pillow's docs from docstrings using the
python domain.
* remove the documentation for `_auto`, `abstract`, and `_transient`
  as that's redundant with `Model`
* add documentation for transients' dedicated attributes (and main
  method whose docstring explains what actually occurs)
@xmo-odoo xmo-odoo requested a review from AntoineVDV December 6, 2021 14:41
@xmo-odoo xmo-odoo requested a review from a team as a code owner December 6, 2021 14:41
@robodoo
Copy link
Collaborator

robodoo commented Dec 6, 2021

@xmo-odoo
Copy link
Collaborator Author

xmo-odoo commented Dec 6, 2021

Also hit a weird issue but didn't manage to debug it and ended up ignoring it: since 2.4 py:attribute is supposed to have a type field.

It works fine when creating a new sphix project, but in the odoo doc project it fails and weirdly it seems to fail during parsing (the content which reaches the translator is not correct) but I didn't find any place where we'd override the parsing, only the translation?

@xmo-odoo
Copy link
Collaborator Author

xmo-odoo commented Dec 6, 2021

Also the CI says it doesn't find "build succeeded" in the log file, but when looking at the logfile it's right there O_o

copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 4 warnings.

The HTML pages are in ../logs/build/html.
Build finished.

@Feyensv
Copy link
Collaborator

Feyensv commented Dec 6, 2021

It doesn't like the "4 warnings" part :P

@xmo-odoo
Copy link
Collaborator Author

xmo-odoo commented Dec 7, 2021

It doesn't like the "4 warnings" part :P

Oh I'd missed that there were actual warnings during the build, I only saw the ones at the top and figured they had nothing to do with me.

It's probably unhappy because those are docstrings I fixed in odoo/odoo#74604 and it always (I assume) builds based on the current master.

Copy link
Collaborator

@AntoineVDV AntoineVDV left a comment

Choose a reason for hiding this comment

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

LGTM (except for the typo).

I'm flagging the PR as a draft until the odoo/odoo counterpart to ease the follow-up.

@robodoo delegate+

@AntoineVDV AntoineVDV marked this pull request as draft December 7, 2021 13:40
- reset the `currentmodule` so the fields are not attributed to
  `odoo.fields`, also prefix the field names (for a similar reason)
- expand `active` with the documentation of the related methods
@xmo-odoo xmo-odoo force-pushed the master-orm-apidoc-fixes-xmo branch from 30c89c7 to 1f1fee8 Compare December 9, 2021 12:15
@xmo-odoo
Copy link
Collaborator Author

@robodoo r+

@xmo-odoo xmo-odoo marked this pull request as ready for review December 10, 2021 08:11
@xmo-odoo
Copy link
Collaborator Author

@robodoo r+

@robodoo
Copy link
Collaborator

robodoo commented Dec 10, 2021

I'm sorry, @xmo-odoo. Draft PRs can not be approved.

@xmo-odoo
Copy link
Collaborator Author

@robodoo rebase-ff

@robodoo
Copy link
Collaborator

robodoo commented Dec 10, 2021

Merge method set to rebase and fast-forward

robodoo pushed a commit that referenced this pull request Dec 10, 2021
Allows us to properly link to pillow's docs from docstrings using the
python domain.

Part-of: #1352
robodoo pushed a commit that referenced this pull request Dec 10, 2021
* remove the documentation for `_auto`, `abstract`, and `_transient`
  as that's redundant with `Model`
* add documentation for transients' dedicated attributes (and main
  method whose docstring explains what actually occurs)

Part-of: #1352
robodoo pushed a commit that referenced this pull request Dec 10, 2021
- reset the `currentmodule` so the fields are not attributed to
  `odoo.fields`, also prefix the field names (for a similar reason)
- expand `active` with the documentation of the related methods

closes #1352

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
@robodoo robodoo closed this Dec 10, 2021
@robodoo robodoo temporarily deployed to merge December 10, 2021 08:16 Inactive
@robodoo robodoo added the 15.2 label Dec 10, 2021
@fw-bot fw-bot deleted the master-orm-apidoc-fixes-xmo branch December 24, 2021 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants