跳至內容
選單
此問題已被標幟
1 回覆
7583 瀏覽次數

We were looking to run a Python Script whenever a product is edited. We were thinking to hook this to the "Save" button on the product form, but can't seem to access it since it is a 'core' button.

頭像
捨棄

Key component of OpenERP is ORM. Predefined attributes/ORM method(create, wirte, unlink, etc) are defined out there. There are good reference to start learning https://doc.openerp.com/6.0/developer/2_5_Objects_Fields_Methods/methods/ https://www.openerp.com/files/memento/OpenERP_Technical_Memento_latest.pdf

最佳答案

Create a new module that will inherent the save method of product.product.

See question, 8503 for more.

頭像
捨棄

from where th creation of the product is handled(by which method of the product.py module) ???

相關帖文 回覆 瀏覽次數 活動
2
6月 16
4993
2
4月 25
3012
1
8月 20
5250
1
5月 19
4951
2
12月 18
27274