Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
7658 Zobrazení

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.

Avatar
Zrušit

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

Nejlepší odpověď

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

See question, 8503 for more.

Avatar
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
2
čvn 16
5080
2
dub 25
3105
1
srp 20
5378
1
kvě 19
5066
2
pro 18
27423