Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
4792 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Tác giả

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

Tác giả

I do not get error it does not compute the method

Câu trả lời hay nhất

Hi Simon,

Have you done the following imports:

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Simon,

You can definitely extend the model and its methods!

What errors did you receive?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 22
2323
0
thg 10 20
3803
2
thg 6 18
3584
1
thg 5 22
2510
5
thg 10 19
9556