Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3325 Zobrazení

How can inherit CashBoxIn(CashBox)

the CashBox the class TransientModel .


when write this not work  :

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




Avatar
Zrušit
Nejlepší odpověď

Hi Maysa,

Try following code:

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


Avatar
Zrušit
Nejlepší odpověď

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
Zrušit