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

Migrate to 10.0 mig product variant supplierinfo #50

Merged
merged 2 commits into from
Apr 5, 2017

Conversation

mourad-ehm
Copy link

No description provided.

@pedrobaeza pedrobaeza mentioned this pull request Feb 13, 2017
14 tasks
@bealdav
Copy link
Member

bealdav commented Feb 13, 2017

👍

('product_id', '=', False),
('product_id', '=', product.id),
('company_id', '=', procurement.company_id.id),
company_supplier = self.env['product.supplierinfo'].search(
Copy link
Member

Choose a reason for hiding this comment

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

Why do you change this style? Please don't make the diff bigger only for stylistic reasons (squash your commits when restoring this to avoid several diffs).

Copy link
Author

@mourad-ehm mourad-ehm Feb 13, 2017

Choose a reason for hiding this comment

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

Hi @pedrobaeza, I changed this because I got a PEP 8 error (closing bracket does not match indentation)

Copy link
Member

Choose a reason for hiding this comment

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

But you only need to change... the closing bracket, not the rest.

Copy link
Author

Choose a reason for hiding this comment

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

OK

<xpath expr="//group[@name='pricing']/parent::group"
position="after">
<separator string="Vendors"/>
<group name="variant_uppliers" string="Variant Vendors">
Copy link
Member

Choose a reason for hiding this comment

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

s/variant_uppliers/variant_suppliers

@mourad-ehm mourad-ehm force-pushed the 10.0-mig-product_variant_supplierinfo branch from 82692a5 to 8254848 Compare February 13, 2017 11:44
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

Please squash your 3 commits in one.

@mourad-ehm mourad-ehm force-pushed the 10.0-mig-product_variant_supplierinfo branch from da2b539 to c61b396 Compare February 14, 2017 08:19
@mourad-ehm
Copy link
Author

Hi @pedrobaeza, could you merge this PR please ?

@pedrobaeza pedrobaeza merged commit ce0999a into OCA:10.0 Apr 5, 2017
@bealdav bealdav deleted the 10.0-mig-product_variant_supplierinfo branch April 5, 2017 15:08
@@ -7,24 +7,21 @@
<record id="product_normal_form_view_sellers" model="ir.ui.view">
<field name="name">product.product.form.sellers</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="inherit_id" ref="product.product_variant_easy_edit_view"/>
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it be better to add new fields in both views: product_variant_easy_edit_view and product_normal_form_view?
@pedrobaeza, @mourad-ehm, what's your point of view?

@@ -2,7 +2,7 @@
# © 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import models, fields, api
from odoo import api, fields, models


class ProductSupplierInfo(models.Model):

Choose a reason for hiding this comment

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

The field product_id should have been removed from this module, because it is native starting from v9 https://github.com/odoo/odoo/blob/9.0/addons/product/product.py#L1272 and still native on v10 https://github.com/odoo/odoo/blob/10.0/addons/product/models/product.py#L631 and the definition here is exactly the same as in the native product module.

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

6 participants