添加功能
This commit is contained in:
@@ -50,7 +50,7 @@ class PropertyBankStatements(models.Model):
|
||||
@api.depends('yes_amount', 'original_amount')
|
||||
def _compute_no_amount(self):
|
||||
for rec in self:
|
||||
rec.no_amount = rec.original_amount - rec.yes_amount
|
||||
rec.no_amount = max((rec.original_amount - rec.yes_amount), 0)
|
||||
|
||||
def update_lending_direction(self):
|
||||
bank_ids = self.env["property.bank.statements"].browse(
|
||||
|
||||
@@ -818,7 +818,7 @@ class InheritHrPayslip(models.Model):
|
||||
"name": "薪资明细",
|
||||
"view_mode": "tree",
|
||||
"views": [(False, "tree")],
|
||||
"domain": [("slip_id", "=", self.id), ("amount", "!=", 0)],
|
||||
"domain": [("slip_id", "=", self.id), ("total", "!=", 0)],
|
||||
"target": "new",
|
||||
"context": {
|
||||
"tree_view_ref": "yuthon_salary.view_hr_payslip_line_tree_custom",
|
||||
|
||||
@@ -849,7 +849,7 @@
|
||||
<tree string="薪资明细" create="false">
|
||||
<field name="name"/>
|
||||
<field name="category_id"/>
|
||||
<field name="amount" widget="monetary"/>
|
||||
<field name="total" widget="monetary"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user