Skip to content

Porting 8.0 product_customer_code#122

Closed
hurrinico wants to merge 11 commits intoOCA:8.0from
hurrinico:rebase_product_attribute
Closed

Porting 8.0 product_customer_code#122
hurrinico wants to merge 11 commits intoOCA:8.0from
hurrinico:rebase_product_attribute

Conversation

@hurrinico
Copy link

I've made a fork of #38 and rebase it

@eLBati
Copy link
Member

eLBati commented Dec 23, 2015

Please see travis

product_customer_code/product.py:27:1: F401 '_' imported but unused
product_customer_code/product_customer_code.py:27:1: F401 '_' imported but unused

@hurrinico
Copy link
Author

@eLBati fixed

@eLBati
Copy link
Member

eLBati commented Dec 23, 2015

@hurrinico please consider suggestions made since #38 (diff)

Copy link
Member

Choose a reason for hiding this comment

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

Not imported python files should be removed

@hurrinico hurrinico force-pushed the rebase_product_attribute branch from 6265f4a to 00cfc24 Compare January 5, 2016 16:51
@hurrinico hurrinico force-pushed the rebase_product_attribute branch from 00cfc24 to dc57be4 Compare January 7, 2016 08:28
@hurrinico hurrinico changed the title Rebase of https://github.com/OCA/product-attribute/pull/38 Product Customer Code 8.0 Rebase of https://github.com/OCA/product-attribute/pull/38 Jan 13, 2016
@pedrobaeza
Copy link
Member

pedrobaeza commented Jan 19, 2016

I think a better path is to use product_supplierinfo_for_customer module as base for the customer code instead of creating a new model.

@eLBati
Copy link
Member

eLBati commented Apr 5, 2016

We are using product_customer_code in several 7.0 and 8.0 instances and I would prefer to keep the current structure, to avoid issues with the existing databases

@pedrobaeza
Copy link
Member

OK, but we should merge both concepts in v9.

@andhit-r
Copy link
Member

@hurrinico would you:

  1. Adjust README.rst according to latest OCA guideline
  2. Use simple header on every .py file

@mikevhe18
Copy link

I've made some changes to increase coverage/coveralls, then also adjustments to version 8 and OCA guidelines.

@coveralls
Copy link

coveralls commented May 18, 2016

Coverage Status

Coverage increased (+9.7%) to 80.938% when pulling d2793fa on hurrinico:rebase_product_attribute into 6a5bc1a on OCA:8.0.

@eLBati
Copy link
Member

eLBati commented May 18, 2016

@hurrinico @mikevhe18 please see failing checks

************* Module product_customer_code
product_customer_code/__init__.py:1: [W7908(missing-newline-extrafiles), ] views/product_product_view.xml Missing newline
************* Module product_customer_code.__openerp__
product_customer_code/__openerp__.py:5: [C8106(manifest-version-format), ] Wrong Version Format "1.0" in manifest file. Regex to match: "(\d+.\d+.\d+.\d+.\d+)"

@mikevhe18
Copy link

hello @hurrinico, i've fixed the code. Thanks in advance

@coveralls
Copy link

coveralls commented May 23, 2016

Coverage Status

Coverage increased (+9.7%) to 80.938% when pulling 28eccbf on hurrinico:rebase_product_attribute into 6a5bc1a on OCA:8.0.

@andhit-r
Copy link
Member

Tested functionality on runbot 👍

@mikevhe18
Copy link

👍

@andhit-r
Copy link
Member

andhit-r commented Jun 7, 2016

Hi @OCA/product-maintainers would you kindly review this PR? Many thanks

@mikevhe18
Copy link

Hello @pedrobaeza @eLBati, would you kindly review this PR again ?

@dcoopennet
Copy link

👍

This module does just like the product.supplierinfo but for customers instead. For instance it
allows to have different references for the same product according to the customer.

.. image:: product_customer_code/static/src/img/screenshot1.png
Copy link
Member

Choose a reason for hiding this comment

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

@eLBati
Copy link
Member

eLBati commented Jul 21, 2016

A few comments then LGTM 👍

@hurrinico hurrinico force-pushed the rebase_product_attribute branch from 7fb5059 to 5751224 Compare October 3, 2016 15:16
@hurrinico
Copy link
Author

@eLBati i've made the requested fix

@bealdav
Copy link
Member

bealdav commented Oct 3, 2016

tested LGTM for me 👍
off-topic Migration: in product.product view: 'Customer Code' tab name could replaced by 'Customer Infos' because other modules could extend custom informations (as name or any field)

@pedrobaeza
Copy link
Member

Please check Travis status. Do we need to have a specific task for this?

@eLBati
Copy link
Member

eLBati commented Oct 4, 2016

@pedrobaeza , @espo-tony is on the problem of duplicate key value violates unique constraint "product_template_uniq_prefix_code"

@espo-tony
Copy link

@pedrobaeza , @eLBati
Travis seems to raise an error while running a tes. More specifically, it returns a duplicate key value violates unique constraint "product_template_uniq_prefix_code" after invoking the copy method on the model product.product.

According to the tests and the analysis I performed, the issue doesn't look to depend on the module "product_customer_code". Instead, it looks like the duplication of a product.product record is not possible anymore because of a bug introduced by the modules 'product_code_builder' and 'product_code_builder_sequence'.

Please give a look to the PRs #181 , #182 for further informations on this bug and to review a possible solution to them (notice that solving those bugs, also the Travis errors remarked on this PR should be solved).

@hurrinico hurrinico changed the title Product Customer Code 8.0 Rebase of https://github.com/OCA/product-attribute/pull/38 Porting 8.0 product_customer_code Dec 23, 2016
@eLBati
Copy link
Member

eLBati commented May 30, 2017

For me this can be closed , as product_supplierinfo_for_customer is already available and overlapping with this.
See #236 (comment)

@hurrinico
Copy link
Author

IMHO this can be closed

@hurrinico hurrinico closed this Jun 23, 2017
ernestotejeda pushed a commit to Tecnativa/product-attribute that referenced this pull request Aug 22, 2019
* [REL] replace __openerp__ for __manifest__

* [REL] replace openerp imports for odoo

* [REL] some python3 exceptions

* [REL] replace openerp by odoo on xml files

* [REL] delete utf-8 line on python files

* [REL] some minor fixes for migration to v11

* [FIX] runbot link
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.

10 participants