Skip to content

Conversation

@isaako34
Copy link
Contributor

@isaako34 isaako34 commented May 30, 2024

Migrate the module barcodes_generator_product to V17.
This PR supersedes the PR#594

@isaako34 isaako34 force-pushed the 17.0-mig-barcodes_generator_product branch from 29753e8 to 52d0633 Compare May 30, 2024 05:30
@isaako34
Copy link
Contributor Author

@luisg123v Could you please review.

<field
name="groups_id"
eval="[
(4, ref('product.group_product_variant')),

Choose a reason for hiding this comment

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

Use the Command syntax

Same in demo/product.xml

class Tests(TransactionCase):
"""Tests 'Barcodes Generator for Products'"""

def setUp(self):

Choose a reason for hiding this comment

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

setUpClass

@isaako34 isaako34 force-pushed the 17.0-mig-barcodes_generator_product branch from 52d0633 to b81c11e Compare May 31, 2024 17:43
@isaako34
Copy link
Contributor Author

@luisg123v ready for review.

@isaako34 isaako34 requested a review from luisg123v May 31, 2024 17:58
@desdelinux
Copy link

Hi @luisg123v @pedrobaeza this is ready for review

Copy link

@luisg123v luisg123v left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@dalonsod
Copy link

dalonsod commented Jun 7, 2024

@isaako34 , could you make the following tasks?

Thanks for this migration!

@desdelinux
Copy link

@isaako34 , could you make the following tasks?

Thanks for this migration!

@isaako34 , could you make the following tasks?

Thanks for this migration!

Hi @dalonsod , I don't understand what you want to do with your second comment. The migration must have all the commit history

@luisg123v
Copy link

@desdelinux administrative commits (the ones done by bots) should be squashed, it's documented in the process on how bring history.

@isaako34 isaako34 force-pushed the 17.0-mig-barcodes_generator_product branch 2 times, most recently from e0844ed to ab3d3be Compare June 11, 2024 16:48
@rousseldenis
Copy link

/ocabot migration barcodes_generator_product

@OCA-git-bot
Copy link
Contributor

The migration issue (#555) has not been updated to reference the current pull request because a previous pull request (#594) is not closed.
Perhaps you should check that there is no duplicate work.
CC @jvandri

pedrobaeza and others added 6 commits June 11, 2024 18:46
Currently translated at 94.1% (16 of 17 strings)

Translation: stock-logistics-barcode-16.0/stock-logistics-barcode-16.0-barcodes_generator_product
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-16-0/stock-logistics-barcode-16-0-barcodes_generator_product/fr/
Currently translated at 100.0% (17 of 17 strings)

Translation: stock-logistics-barcode-16.0/stock-logistics-barcode-16.0-barcodes_generator_product
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-16-0/stock-logistics-barcode-16-0-barcodes_generator_product/it/
…le_id, to avoid an OWL error 'TypeError: record is undefined'.

Remark : It doesn't makes sense to edit barcode rule via product / template, as it should be managed via barcode nomenclature form view
@isaako34 isaako34 force-pushed the 17.0-mig-barcodes_generator_product branch 2 times, most recently from 0c098d0 to 377f8e6 Compare June 11, 2024 19:03
- Migrate views using the module `views_migration_v17`
- Remove the 'priority' field in views.
- Remove the 'replace' attribute from views and apply the 'after'
  attribute instead.
- Migrate setUp to setUpClass.
- Apply command syntax.
- Fix the unordered list in DESCRIPTION.md and README.rst files.
@isaako34 isaako34 force-pushed the 17.0-mig-barcodes_generator_product branch from 377f8e6 to 1399a74 Compare June 11, 2024 19:09
@isaako34 isaako34 requested a review from luisg123v June 11, 2024 19:10
Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

a minor remark inline. Otherwise, LGTM . Thanks !

Comment on lines +52 to +60

<field name="barcode" position="attributes">
<attribute name="invisible">True</attribute>
</field>
<field name="barcode" position="after">
<label for="barcode" />
<div name="div_barcode" class="o_row">
<field
name="barcode"
Copy link
Contributor

Choose a reason for hiding this comment

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

With this new design, barcode fields is in the form two times. AFAIK, it can generate trouble. Don't you think ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks ! I didn't know !

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks !

Copy link

@luisg123v luisg123v left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Hi @moylopp260,

Could you review/merge, please?

CC @desdelinux

@rousseldenis
Copy link

/ocabot migration barcodes_generator_product

@OCA-git-bot OCA-git-bot mentioned this pull request Jun 14, 2024
10 tasks
@desdelinux
Copy link

Hi @rousseldenis @moylop260 @pedrobaeza this is ready :)

could you review/merge, please?

@moylop260
Copy link

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-620-by-moylop260-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit a3fa837 into OCA:17.0 Jun 17, 2024
@OCA-git-bot
Copy link
Contributor

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

@luisg123v luisg123v deleted the 17.0-mig-barcodes_generator_product branch June 17, 2024 16:16
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.