Skip to Content
Menu
This question has been flagged
2 Replies
2940 Views

How can inherit CashBoxIn(CashBox)

the CashBox the class TransientModel .


when write this not work  :

class CashBoxNew(CashBox):
_inherit = 'cash.box.in'




Avatar
Discard
Best Answer

Hi Maysa,

Try following code:

from odoo.addons.point_of_sale.wizard.pos_box import PosBox
class PosBoxIn(PosBox):
_inherit = 'cash.box.in'


Avatar
Discard
Best Answer

I did this: 

from odoo.addons.account.wizard.pos_box import CashBox

class CashBoxIn(CashBox):
_inherit = 'cash.box.in'

Thank you so much Sudhir!

Avatar
Discard