Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
okt. 24
1260
0
okt. 24
842
1
mar. 15
6685
4
maj 16
7863
3
maj 16
4328