mirror of
https://github.com/bringout/oca-ocb-vertical-industry.git
synced 2026-04-24 08:32:01 +02:00
19.0 vanilla
This commit is contained in:
parent
4607ccbd2e
commit
825ff6514e
487 changed files with 184979 additions and 195262 deletions
|
|
@ -5,7 +5,7 @@ from odoo import api, fields, models, _
|
|||
from odoo.tools import float_round
|
||||
|
||||
|
||||
class LunchCashMove(models.Model):
|
||||
class LunchCashmove(models.Model):
|
||||
""" Two types of cashmoves: payment (credit) or order (debit) """
|
||||
_name = 'lunch.cashmove'
|
||||
_description = 'Lunch Cashmove'
|
||||
|
|
@ -18,8 +18,9 @@ class LunchCashMove(models.Model):
|
|||
amount = fields.Float('Amount', required=True)
|
||||
description = fields.Text('Description')
|
||||
|
||||
def name_get(self):
|
||||
return [(cashmove.id, '%s %s' % (_('Lunch Cashmove'), '#%d' % cashmove.id)) for cashmove in self]
|
||||
def _compute_display_name(self):
|
||||
for cashmove in self:
|
||||
cashmove.display_name = '{} {}'.format(_('Lunch Cashmove'), '#%s' % (cashmove.id or "_"))
|
||||
|
||||
@api.model
|
||||
def get_wallet_balance(self, user, include_config=True):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue