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

[9.0] [MIG] product dimension #159

Merged
merged 6 commits into from
Aug 29, 2016
Merged

Conversation

leemannd
Copy link
Contributor

@leemannd leemannd commented May 26, 2016

  • Added commits from 8.0
  • Port from 8.0 to 9.0

@leemannd leemannd changed the title [WIP] 9.0 product dimension [WIP] [9.0] [MIG] product dimension May 26, 2016
@leemannd leemannd changed the title [WIP] [9.0] [MIG] product dimension [9.0] [MIG] product dimension May 26, 2016
help='UoM for length, height, width')


class Product_template(models.Model):

Choose a reason for hiding this comment

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

class ProductTemplate(models.Model):

@coveralls
Copy link

coveralls commented May 26, 2016

Coverage Status

Coverage decreased (-1.06%) to 95.238% when pulling 638c8db on leemannd:9.0-product_dimension into 37639d9 on OCA:9.0.

@leemannd
Copy link
Contributor Author

@pedrobaeza If it's ok for you.

@leemannd
Copy link
Contributor Author

@idncom Here is a proposition of port that should fit your needs

@leemannd leemannd mentioned this pull request May 27, 2016
37 tasks
@flotho
Copy link
Member

flotho commented Jul 5, 2016

Hi @pedrobaeza, @guewen , any chance to be merged?


length = fields.Float()
height = fields.Float()
width = fields.Float()
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if we want to have a decimal precision here (this is really a question).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gurneyalex I see no harm in putting decimal precision. For the moment all the only I know that has dimensional fields using float without decimal precision (not ported: https://github.com/OCA/product-attribute/blob/9.0/product_size/product_size.py#L57) .

Copy link
Member

Choose a reason for hiding this comment

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

@leemannd let's keep it that way for now. Can be added later or in a separate module.

@gurneyalex
Copy link
Member

one small interrogation, but 👍

thanks for porting.

@gurneyalex
Copy link
Member

@flotho I suggest you make a review of the module and state it in this discussion: it will speed up the process...

@mdietrichc2c
Copy link

👍

@pedrobaeza
Copy link
Member

Please squash together all the commits that come from the same person. We have for example 3 commits with the exact same title. Other from @leemannd with only patches from comments. When done, I'll merge.

jjscarafia and others added 4 commits August 29, 2016 12:07
REF remove executable permission

ADD missing tag images

Conflicts:
	product_dimension/__openerp__.py
FIX remove oldname in field height

ADD onchange calculate volume on product template
…also with other languages than english

Conflicts:
	product_dimension/product.py
@leemannd
Copy link
Contributor Author

@pedrobaeza Hello, the commit history should be better now.

@pedrobaeza pedrobaeza merged commit caf7b51 into OCA:9.0 Aug 29, 2016
@panos-ch
Copy link

panos-ch commented Sep 7, 2016

The module works OK with products with no attributes. Please consider making it work with products that include attributes and also be able to add dimensions to the different variants of the product.

@leemannd
Copy link
Contributor Author

@panos-ch Hello, I'm seeing your feedback now. Can you be more specific? With which kind of attributes? With another module installed?

@leemannd leemannd deleted the 9.0-product_dimension branch October 26, 2016 18:59
@panos-ch
Copy link

@leemannd Hi, no other modules are installed. The dimension fields are not displayed for product templates that have variants. Also, it would be nice to expand the module to work at a product variant level. I can add some screenshots if it's not clear

@leemannd
Copy link
Contributor Author

@panos-ch For now, I haven't used variants. For the moment I don't have the time to expand it. Maybe you could do a PR or an Issue with detailed informations?

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