-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
Migrate to 10.0 mig product variant supplierinfo #50
Conversation
👍 |
('product_id', '=', False), | ||
('product_id', '=', product.id), | ||
('company_id', '=', procurement.company_id.id), | ||
company_supplier = self.env['product.supplierinfo'].search( |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
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
82692a5
to
8254848
Compare
There was a problem hiding this 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.
da2b539
to
c61b396
Compare
Hi @pedrobaeza, could you merge this PR please ? |
@@ -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"/> |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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.
No description provided.