openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #07839
[Merge] lp:~nemry/partner-contact-management/7.0-8.0-compatibility into lp:partner-contact-management
Jonathan Nemry (Acsone) has proposed merging lp:~nemry/partner-contact-management/7.0-8.0-compatibility into lp:partner-contact-management.
Requested reviews:
Acsone OpenErp Team (acsone-openerp)
For more details, see:
https://code.launchpad.net/~nemry/partner-contact-management/7.0-8.0-compatibility/+merge/229460
[partner_firstname][CHG]
Change the way to import 'Model' to be odoo compliant and to avoid error under v80
--
https://code.launchpad.net/~nemry/partner-contact-management/7.0-8.0-compatibility/+merge/229460
Your team Partner and Contact Core Editors is subscribed to branch lp:partner-contact-management.
=== modified file 'partner_firstname/partner.py'
--- partner_firstname/partner.py 2014-06-10 20:56:38 +0000
+++ partner_firstname/partner.py 2014-08-04 14:01:48 +0000
@@ -17,11 +17,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
-from openerp.osv.orm import Model, fields
+from openerp.osv import orm, fields
from openerp.tools.translate import _
-class ResPartner(Model):
+class ResPartner(orm.Model):
"""Adds lastname and firstname, name become a stored function field"""
_inherit = 'res.partner'
Follow ups