odoo-shopinvader icon indicating copy to clipboard operation
odoo-shopinvader copied to clipboard

[14.0][ADD] shopinvader_l10n_fr

Open ivantodorovich opened this issue 3 years ago • 17 comments

New module to implement l10n_fr for shopinvader.

  • Expose siret fields on address and customer services.

ivantodorovich avatar Feb 01 '22 16:02 ivantodorovich

Tests are :red_circle: . As you are there, can you turn off logging of requests for vcr.py on elasticsearch tests?

simahawk avatar Feb 02 '22 06:02 simahawk

So, tests are red becase installing l10n_fr coa breaks everything up. I guess this is normal, tests are meant to run without localizations installed.

As for how to solve it, I tried to set it as a rebel module but it seems manifestoo -d . check-licenses doesn't like that.

I'm wondering:

  • Does it make sense that we merge this module here? I don't expect we'll have much shopinvader-l10n modules but maybe we need separate localization based repositories for them, like we have in OCA?
  • In any case, @sbidoul any idea what's going on with manifestoo here? It seems not to like rebel modules

ivantodorovich avatar Feb 02 '22 14:02 ivantodorovich

what's going on with manifestoo here? It seems not to like rebel modules

I suppose we need to pass INCLUDE and EXCLUDE the license and dev status checks. The docs for the select options is here. That will need to be done in the OCA template too.

sbidoul avatar Feb 02 '22 15:02 sbidoul

Or maybe we should put the license and dev status checks in separate jobs.

sbidoul avatar Feb 02 '22 20:02 sbidoul

Thanks @sbidoul

This seems to work. I don't really like the multi line script though.

- name: Check licenses
  run: |
    if [ -n "$INCLUDE" ]
    then manifestoo --select-include "$INCLUDE" check-licenses
    else manifestoo -d . --select-exclude "$EXCLUDE" check-licenses
    fi

- name: Check development status
  run: |
    if [ -n "$INCLUDE" ]
    then manifestoo --select-include "$INCLUDE" check-dev-status --default-dev-status=Beta
    else manifestoo -d . --select-exclude "$EXCLUDE" check-dev-status --default-dev-status=Beta
    fi

Maybe we could do this in oca-ci with a oca_run_manifestoo bin, to keep the github action cleaner.

Then it'd be like this:

- name: Check licenses
  run: oca_run_manifestoo check-licenses
- name: Check development status
  run: oca_run_manifestoo check-dev-status --default-dev-status=Beta

What do you think?

ivantodorovich avatar Feb 02 '22 20:02 ivantodorovich

@ivantodorovich what's next?

simahawk avatar Apr 07 '22 09:04 simahawk

@ivantodorovich what's next?

I'd go for adding a oca_run_manifestoo bin in oca-ci image, as mentioned here: https://github.com/shopinvader/odoo-shopinvader/pull/1223#issuecomment-1028332582

Then we could change the repo templates to use it

Would you be ok with it @sbidoul ?

ivantodorovich avatar Apr 07 '22 10:04 ivantodorovich

This was resolved in https://github.com/OCA/oca-ci/pull/24 and https://github.com/OCA/oca-ci/pull/25. It should be green now.

sbidoul avatar Apr 07 '22 11:04 sbidoul

Cool! Let's see if it passes🤞🏻

ivantodorovich avatar Apr 07 '22 11:04 ivantodorovich

Yay! it's green 🍏 thanks a lot @sbidoul !

ivantodorovich avatar Apr 07 '22 11:04 ivantodorovich

LGTM (code review) /ocabot merge patch

sebastienbeau avatar Jun 14 '23 08:06 sebastienbeau

@sebastienbeau The merge process could not start, because command git push origin 14.0-ocabot-merge-pr-1223-by-sebastienbeau-bump-patch failed with output:

To https://github.com/shopinvader/odoo-shopinvader
 ! [remote rejected]   14.0-ocabot-merge-pr-1223-by-sebastienbeau-bump-patch -> 14.0-ocabot-merge-pr-1223-by-sebastienbeau-bump-patch (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/test.yml` without `workflow` scope)
error: failed to push some refs to 'https://***@github.com/shopinvader/odoo-shopinvader'

shopinvader-git-bot avatar Jun 14 '23 08:06 shopinvader-git-bot

@ivantodorovich Can you rebase so I can merge it

sebastienbeau avatar Jun 14 '23 18:06 sebastienbeau

This is ready @sebastienbeau

ivantodorovich avatar Jun 21 '23 17:06 ivantodorovich

/ocabot merge patch

Thanks

sebastienbeau avatar Jun 21 '23 19:06 sebastienbeau

@sebastienbeau The merge process could not start, because command git push origin 14.0-ocabot-merge-pr-1223-by-sebastienbeau-bump-patch failed with output:

To https://github.com/shopinvader/odoo-shopinvader
 ! [remote rejected]   14.0-ocabot-merge-pr-1223-by-sebastienbeau-bump-patch -> 14.0-ocabot-merge-pr-1223-by-sebastienbeau-bump-patch (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/test.yml` without `workflow` scope)
error: failed to push some refs to 'https://***@github.com/shopinvader/odoo-shopinvader'

shopinvader-git-bot avatar Jun 21 '23 19:06 shopinvader-git-bot

FTR the issue seems to be related to the permissions given on the bot's github token

ivantodorovich avatar Jun 21 '23 21:06 ivantodorovich

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[bot] avatar Apr 28 '24 12:04 github-actions[bot]