Se rendre au contenu
Menu
Cette question a été signalée

How could I inherit from this class, I need to override some methods.


from .dhl_request import DHLProvider

from odoo.tools.zeep.helpers import serialize_object

from odoo import api, models, fields, _

from odoo.exceptions import UserError

from odoo.tools import float_repr

from odoo.tools.safe_eval import const_eval


class Providerdhl(models.Model):

    _inherit = 'delivery.carrier'


    def dhl_send_shipping(self, pickings):


I tried this.


from .dhl_request import CustomDHLProviderfrom odoo import models, fields, _

class Providerdhl(models.Model): 

    _inherit = 'provider.dhl'

    def dhl_send_shipping(self, pickings):


but since it is not a model I cannot inherit with _inherit

Avatar
Ignorer
Publications associées Réponses Vues Activité
3
oct. 24
1260
0
oct. 24
842
1
mars 15
6685
4
mai 16
7863
3
mai 16
4328