Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3095 มุมมอง

I created an object for show quants of each partner(locate of products that are in the user's hands)
and I set a view  for show this.(a form that have one field "partner_id", and have a action button for show quants)

class PRQuants(models.Model):
    _name = "product.requisition.emp.quants"
    _description = "Product Requisition Employee's Quants"
    _inherit = ['mail.thread']
    _order = 'partner_id'

    partner_id = fields.Many2one('res.partner', 'Partner')

now, I want when a user defined in system, and system create related partner automatic : for this partner create one form in my object automatically.(each user>each partner> have one 'product.requisition.emp.quants')


how can do this? (I think I have to change/edit res.partner 'create' function, with call this function in my module.but how?)


Thanks


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 20
4133
2
พ.ค. 17
9433
1
ธ.ค. 23
9028
0
เม.ย. 24
1893
2
ต.ค. 23
5569