Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4 Replies
4753 Tampilan

Why I can't use api extending res.partner?

Avatar
Buang

What have you tried? What is the error? Post some code and more information please.

Penulis

I tried to make something simple so I can understand how to do it. @api.one def convert_opportunity_to_customer(self): osv.except_osv('Warning!', '!!!!!!!!!!!!!!!!!!!!!') _logger.error(self, 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') raise Exception(self) # return True

Penulis

I do not get error it does not compute the method

Jawaban Terbai

Hi Simon,

Have you done the following imports:

from openerp.osv import osv
import logging
_logger = logging.getLogger(__name__)

Avatar
Buang
Jawaban Terbai

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mei 22
2277
0
Okt 20
3748
2
Jun 18
3516
1
Mei 22
2452
5
Okt 19
9519