~gbaconnier-c2c/magentoerpconnect/magentoerpconnectv6-c2c-product-links

« back to all changes in this revision

Viewing changes to product_links.py

  • Committer: Guewen Baconnier @ CampToCamp
  • Date: 2011-05-06 15:00:22 UTC
  • Revision ID: guewen.baconnier@camptocamp.com-20110506150022-edapbta33u9gkhku
[FIX] small code fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
#
19
19
##############################################################################
20
 
from addons.base_external_referentials.external_osv import external_osv
21
20
 
22
21
from osv import fields, osv
23
22
from tools.translate import _
28
27
    _inherit = 'product.link'
29
28
 
30
29
    _columns = {
31
 
        'product_id': fields.many2one('product.product', 'Source product', required=True),
32
 
        'linked_product_id': fields.many2one('product.product', 'Linked product', required=True),
33
30
        'position': fields.integer('Position'),
34
31
        'quantity': fields.integer('Quantity'),
35
32
    }