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

[MIG][10.0] product_brand #191

Merged
merged 10 commits into from
Dec 28, 2016
Merged

Conversation

loxamir
Copy link

@loxamir loxamir commented Oct 20, 2016

Migrate product_brand to V10

@oca-clabot
Copy link

Hey @loxamir, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/website.cla
Here is a list of the users:

  • Marcelo Pickler (no github login found)

Appreciation of efforts,
OCA CLAbot

@loxamir
Copy link
Author

loxamir commented Oct 20, 2016

I Confirm I have signed the odoo CLA and send it by email

@gurneyalex gurneyalex changed the title [IMP] Migrate to v10 [MIG][10.0] product_brand Oct 24, 2016
@pedrobaeza pedrobaeza mentioned this pull request Oct 24, 2016
35 tasks
[FIX] Author field meet limitation for type character varying(128)
Set sale as depence instead of product
@loxamir
Copy link
Author

loxamir commented Oct 25, 2016

everything is green now 😀

Copy link
Contributor

@leemannd leemannd left a comment

Choose a reason for hiding this comment

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

Thank you for your port. There are only a few things missing (see comments).
Also you can replace 'openerp' in imports on models file with 'odoo'

@@ -207,7 +207,7 @@
name="Product Brands"
id="menu_product_brand"
action="action_product_brand"
parent="base.menu_product"/>
parent="sale.prod_config_main"/>

</data>
</openerp>
Copy link
Contributor

Choose a reason for hiding this comment

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

s/openerp/odoo/

@@ -207,7 +207,7 @@
name="Product Brands"
id="menu_product_brand"
action="action_product_brand"
parent="base.menu_product"/>
parent="sale.prod_config_main"/>

</data>
Copy link
Contributor

Choose a reason for hiding this comment

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

can be removed

Copy link
Author

Choose a reason for hiding this comment

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

what can be removed?

Copy link
Member

Choose a reason for hiding this comment

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

<data> tag

'category': 'Product',
'summary': "Product Brand Manager",
'author': 'NetAndCo, Akretion, Prisnet Telecommunications SA'
', MONK Software, Odoo Community Association (OCA)'
', SerpentCS Pvt. Ltd.',
'license': 'AGPL-3',
'depends': ['product'],
'depends': [
'sale',
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure it is correct? Aren't you inheriting views from product.template and product.template class?

Copy link

Choose a reason for hiding this comment

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

sale depends on procurement which depends on product, so it should be ok.

Copy link
Member

Choose a reason for hiding this comment

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

But why do you need so high-level dependency?

Copy link

@LeartS LeartS Dec 13, 2016

Choose a reason for hiding this comment

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

He uses it for the menu positioning, he uses sale.prod_config_main as parent menu.
I'm not sure if there is a good lower-level menu to use as reference for positioning, do you have any proposals?

Copy link
Author

Choose a reason for hiding this comment

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

I just depend on sale because of the menu item to keep it in the same place as older versions, if somebody have a better place, I will be glad to position the menu there and change that dependency

Copy link
Member

Choose a reason for hiding this comment

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

OK, I see there's no better option here and I agree that brands are very related with sales.

Copy link

@LeartS LeartS left a comment

Choose a reason for hiding this comment

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

@loxamir Some things could be improved, but nothing blocking, IMO better to have it this way for now that not having it in v10.

The 'sale' dependency is strong, but I don't think there are a lot of people that would be interested in this module without the sale module installed

It would be great to improve the UI of the form view, fixing the smart button alignment:
screenshot from 2016-12-13 17-05-38

@pedrobaeza
Copy link
Member

@loxamir, please attend the comments and I'll merge the PR.

Thanks for your contribution!

@lasley
Copy link

lasley commented Dec 26, 2016

@loxamir - do you plan on continuing with this PR?

@loxamir
Copy link
Author

loxamir commented Dec 27, 2016

I make my contribution, what should I do now?

@pedrobaeza
Copy link
Member

You need to correct the comments we have made.

@loxamir
Copy link
Author

loxamir commented Dec 27, 2016

I have made all the changes requested in comments except UI improvement which I let for anyone else do that

Copy link

@lasley lasley left a comment

Choose a reason for hiding this comment

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

Thanks @loxamir - would you mind adding the view improvement note to the roadmap so we don't lose it going forward?

@pedrobaeza
Copy link
Member

And please squash your commits together

@loxamir
Copy link
Author

loxamir commented Dec 27, 2016

@lasley how can I do that?

@lasley
Copy link

lasley commented Dec 27, 2016

@loxamir - There is a RoadMap section in the Readme, just add a bullet so we don't lose the bug note:

* Fix smart button alignment in brand form view

The squashing Pedro refers to is like this. We can do it for you too, but it's good for you to know how IMO. Squashing makes for way better commit histories, and works great in personal projects too.

@@ -35,7 +35,7 @@ For further information, please visit:
Known issues / Roadmap
======================

* Add a field with brands assiciated to a Customer or Supplier on
* Add a field with brands associated to a Customer or Supplier on
the Customers/Suppliers Form View.
Copy link

Choose a reason for hiding this comment

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

Add the bullet here 😄

Copy link
Author

Choose a reason for hiding this comment

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

done, thanks @lasley

loxamir and others added 3 commits December 27, 2016 14:55
FIX typo

Update __manifest__.py

[FIX] Author field meet limitation for type character varying(128)

[FIX] Wrong depence

Set sale as depence instead of product

s/openerp/odoo

Removed <data> tag

Add view fix to roadmap
@loxamir
Copy link
Author

loxamir commented Dec 28, 2016

I have made the squash, what more should I do?

@lasley
Copy link

lasley commented Dec 28, 2016

HI @loxamir - doesn't look like the squash went through, that should have reduced the commit count to 1 - we're still at 10. Not a big deal though, we can just squash on merge.

Thanks for the submission, I look forward to seeing you around OCA! I don't have write access in this repo, but someone that does will squash & merge this soon.

@pedrobaeza
Copy link
Member

OK, squashing on merge then

@pedrobaeza pedrobaeza merged commit 7deb190 into OCA:10.0 Dec 28, 2016
@loxamir
Copy link
Author

loxamir commented Dec 28, 2016

thanks @lasley @pedrobaeza and all other that help me make this contribution 👍
I will be better on the next :)

jeanpaulrobineau pushed a commit to apertoso/product-attribute that referenced this pull request Oct 31, 2017
Daniel-CA pushed a commit to Daniel-CA/product-attribute that referenced this pull request Mar 15, 2018
Daniel-CA pushed a commit to Daniel-CA/product-attribute that referenced this pull request Mar 19, 2018
Daniel-CA pushed a commit to Daniel-CA/product-attribute that referenced this pull request Mar 19, 2018
Daniel-CA pushed a commit to Daniel-CA/product-attribute that referenced this pull request Mar 19, 2018
Daniel-CA pushed a commit to Daniel-CA/product-attribute that referenced this pull request Mar 19, 2018
Daniel-CA pushed a commit to Daniel-CA/product-attribute that referenced this pull request Mar 19, 2018
pedrobaeza pushed a commit to Daniel-CA/product-attribute that referenced this pull request Apr 4, 2018
pedrobaeza pushed a commit to Daniel-CA/product-attribute that referenced this pull request Apr 4, 2018
ghost pushed a commit to camptocamp/product-attribute that referenced this pull request Jul 23, 2018
ghost pushed a commit to camptocamp/product-attribute that referenced this pull request Jul 23, 2018
ghost pushed a commit to camptocamp/product-attribute that referenced this pull request Jul 23, 2018
ThomasBinsfeld pushed a commit to acsone/product-attribute that referenced this pull request Oct 2, 2018
ThomasBinsfeld pushed a commit to acsone/product-attribute that referenced this pull request Oct 25, 2018
ernestotejeda pushed a commit to Tecnativa/product-attribute that referenced this pull request Aug 22, 2019
smurf-U pushed a commit to smurf-U/product-attribute that referenced this pull request Oct 15, 2019
filoquin pushed a commit to filoquin/product-attribute that referenced this pull request Apr 23, 2020
HviorForgeFlow pushed a commit to ForgeFlow/product-attribute that referenced this pull request Jun 22, 2020
BT-dherreros pushed a commit to BT-dherreros/product-attribute that referenced this pull request Jan 25, 2021
BT-dherreros pushed a commit to BT-dherreros/product-attribute that referenced this pull request Jan 25, 2021
xavier-bouquiaux pushed a commit to acsone/product-attribute that referenced this pull request Apr 13, 2021
xavier-bouquiaux pushed a commit to acsone/product-attribute that referenced this pull request Apr 13, 2021
ygcarvalh pushed a commit to kmee/product-attribute that referenced this pull request May 31, 2021
stefsava pushed a commit to stefsava/product-attribute that referenced this pull request Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants