Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
141 additions
and
148 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- encoding: utf-8 -*- | ||
##################################################################################### | ||
# # # | ||
# product_brand for Odoo # # | ||
# Copyright (C) 2009 NetAndCo (<http://www.netandco.net>). # # | ||
# Copyright (C) 2011 Akretion Benoît Guillot <benoit.guillot@akretion.com> # # | ||
# Copyright (C) 2014 prisnet.ch Seraphine Lantible <s.lantible@gmail.com> # # | ||
# Contributors # | ||
# Mathieu Lemercier, mathieu@netandco.net, # # | ||
# Franck Bret, franck@netandco.net # # | ||
# Seraphine Lantible, info@prisnet.ch, s.lantible@gmail.com, http://www.prisnet.ch # | ||
# # # | ||
# This program is free software: you can redistribute it and/or modify # # | ||
# it under the terms of the GNU Affero General Public License as # # | ||
# published by the Free Software Foundation, either version 3 of the # # | ||
# License, or (at your option) any later version. # # | ||
# # # | ||
# This program is distributed in the hope that it will be useful, # # | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of # # | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # | ||
# GNU Affero General Public License for more details. # # | ||
# # # | ||
# You should have received a copy of the GNU Affero General Public License # # | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. # # | ||
# # # | ||
##################################################################################### | ||
##################################################################################### | ||
# Product Brand is an Openobject module wich enable Brand management for products # | ||
##################################################################################### | ||
import product_brand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# -*- encoding: utf-8 -*- | ||
##################################################################################### | ||
# # # | ||
# product_brand for Odoo # # | ||
# Copyright (C) 2009 NetAndCo (<http://www.netandco.net>). # # | ||
# Copyright (C) 2011 Akretion Benoît Guillot <benoit.guillot@akretion.com> # # | ||
# Copyright (C) 2014 prisnet.ch Seraphine Lantible <s.lantible@gmail.com> # # | ||
# Contributors # | ||
# Mathieu Lemercier, mathieu@netandco.net, # # | ||
# Franck Bret, franck@netandco.net # # | ||
# Seraphine Lantible, info@prisnet.ch, s.lantible@gmail.com, http://www.prisnet.ch # | ||
# # # | ||
# This program is free software: you can redistribute it and/or modify # # | ||
# it under the terms of the GNU Affero General Public License as # # | ||
# published by the Free Software Foundation, either version 3 of the # # | ||
# License, or (at your option) any later version. # # | ||
# # # | ||
# This program is distributed in the hope that it will be useful, # # | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of # # | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # | ||
# GNU Affero General Public License for more details. # # | ||
# # # | ||
# You should have received a copy of the GNU Affero General Public License # # | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. # # | ||
# # # | ||
##################################################################################### | ||
##################################################################################### | ||
# Product Brand is an Openobject module wich enable Brand management for products # | ||
##################################################################################### | ||
{ | ||
'name': 'Product Brand Manager', | ||
'version': '0.1', | ||
'category': 'Product', | ||
'summary' : ' brand', | ||
'description': """ | ||
Product Brand Manager | ||
===================== | ||
This module allows your user to easily manage product brands. You can | ||
define brands, attach a logo and a description to them. It also allows to | ||
attach a partner to a brand. Once installed, check the menu | ||
Product/configuration/brand | ||
To do / To come: | ||
- A view to seeing products by brand. | ||
""", | ||
'author': 'Prisnet Telecommunications SA ', | ||
'website': 'http://www.prisnet.ch ', | ||
'depends': ['product'], | ||
'data': [ | ||
'product_brand_view.xml', | ||
'security/ir.model.access.csv' | ||
], | ||
'installable': True, | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# -*- encoding: utf-8 -*- | ||
##################################################################################### | ||
# # # | ||
# product_brand for Odoo # # | ||
# Copyright (C) 2009 NetAndCo (<http://www.netandco.net>). # # | ||
# Copyright (C) 2011 Akretion Benoît Guillot <benoit.guillot@akretion.com> # # | ||
# Copyright (C) 2014 prisnet.ch Seraphine Lantible <s.lantible@gmail.com> # # | ||
# Contributors # | ||
# Mathieu Lemercier, mathieu@netandco.net, # # | ||
# Franck Bret, franck@netandco.net # # | ||
# Seraphine Lantible, info@prisnet.ch, s.lantible@gmail.com, http://www.prisnet.ch # | ||
# # # | ||
# This program is free software: you can redistribute it and/or modify # # | ||
# it under the terms of the GNU Affero General Public License as # # | ||
# published by the Free Software Foundation, either version 3 of the # # | ||
# License, or (at your option) any later version. # # | ||
# # # | ||
# This program is distributed in the hope that it will be useful, # # | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of # # | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # | ||
# GNU Affero General Public License for more details. # # | ||
# # # | ||
# You should have received a copy of the GNU Affero General Public License # # | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. # # | ||
# # # | ||
##################################################################################### | ||
##################################################################################### | ||
# Product Brand is an Openobject module wich enable Brand management for products # | ||
##################################################################################### | ||
from openerp.osv import orm, fields | ||
|
||
|
||
class product_brand(orm.Model): | ||
_name = 'product.brand' | ||
_columns = { | ||
'name': fields.char('Brand Name'), | ||
'description': fields.text('Description', translate=True), | ||
'partner_id': fields.many2one('res.partner','partner', help='Select a partner for this brand if it exists.', ondelete='restrict'), | ||
'logo': fields.binary('Logo File') | ||
} | ||
|
||
|
||
class product_template(orm.Model): | ||
_inherit = 'product.template' | ||
_columns = { | ||
'product_brand_id': fields.many2one('product.brand','Brand', help='Select a brand for this product.') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.