On 23.0 the generic CommonObject methods (setPaymentMethods, setBankAccount, ...) build the trigger name from $this->TRIGGER_PREFIX, falling back to get_class() when it is empty. Facture does not declare it, so it fires FACTURE_MODIFY instead of the BILL_* events the class uses everywhere else (BILL_CREATE, BILL_MODIFY, ...). Modules listening on BILL_MODIFY miss those changes. Declare public $TRIGGER_PREFIX = 'BILL', like the other objects do (Holiday='HOLIDAY', Workstation='WORKSTATION', BOM='BOM'). Signed-off-by: Dolicraft <contact@dolicraft.com> Co-authored-by: Dolicraft <contact@dolicraft.com>
This commit is contained in:
parent
af6c24c0ce
commit
7a82187acd
1 changed files with 5 additions and 0 deletions
|
|
@ -72,6 +72,11 @@ class Facture extends CommonInvoice
|
|||
*/
|
||||
public $element = 'facture';
|
||||
|
||||
/**
|
||||
* @var string Prefix used to build trigger event names in generic CommonObject methods (BILL_MODIFY, ...)
|
||||
*/
|
||||
public $TRIGGER_PREFIX = 'BILL';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue