module over-riding core model?

Posted in CategoryDevelopment
  • Bret Watson    ( User ) 3 months ago

    I'm writing a module to add in taxes for payments - here in Aust all incomes and expenses record sales tax, not just ones with formal invoices..

    However I seem to only be able to add the tax fields if I edit the core app, if I drop it into the module Models folder it doesn't over-ride the core payments model

    Am I right? or am I missing something? nWidart's doco doesn't suggest I can over-ride core models..

  • Denis Duliçi    ( Admin ) 3 months ago

    Hello Bret,

    I would suggest overriding the invoice page and your own model.


  • Bret Watson    ( User ) 3 months ago

    umm this is for payments, not invoices..

    So I'm adding tax_amount and tax_name to the payments table - it works fine if I modify the core model, but there appear to be no way to over-ride teh model from teh module..


    Actually it looks like all these should be in modules, that way it would be possible to replace out core functions without forking :)

Please login or register to leave a response.