Skip to content

Commit

Permalink
[FIX] temp model test name
Browse files Browse the repository at this point in the history
  • Loading branch information
mourad-ehm committed Nov 27, 2017
1 parent 1906fc8 commit 2cbe214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion base_exception/security/ir.model.access.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ access_exception_rule_manager,base.exception,model_exception_rule,base_exception
access_base_exception,base.exception,model_base_exception,base.group_user,1,0,0,0
access_base_exception_manager,base.exception,model_base_exception,base_exception.group_exception_rule_manager,1,1,1,1
access_base_exception_test_purchase,access_base_exception_test_purchase,model_base_exception_test_purchase,base.group_system,1,1,1,1
access_base_exception_test_model_line,access_base_exception_test_model_line,model_base_exception_test_model_line,base.group_system,1,1,1,1
access_base_exception_test_purchasel_line,access_base_exception_test_purchasel_line,model_base_exception_test_purchase_line,base.group_system,1,1,1,1
7 changes: 4 additions & 3 deletions base_exception/tests/test_tmp_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PurchaseTest(models.Model):
string="Status", readonly=True, default='draft')
active = fields.Boolean(default=True)
partner_id = fields.Many2one('res.partner', string='Partner')
line_ids = fields.One2many('base.exception.test.model.line', 'lead_id')
line_ids = fields.One2many('base.exception.test.purchase.line', 'lead_id')
amount_total = fields.Float(compute='_compute_amount_total', store=True)

@api.depends('line_ids')
Expand Down Expand Up @@ -62,10 +62,11 @@ def test_base_get_lines(self):


class LineTest(models.Model):
_name = "base.exception.test.model.line"
_name = "base.exception.test.purchase.line"
_description = "Base Ecxeption Test Model Line"

name = fields.Char()
lead_id = fields.Many2one('base.exception.test.model', ondelete='cascade')
lead_id = fields.Many2one('base.exception.test.purchase',
ondelete='cascade')
qty = fields.Float()
amount = fields.Float()

0 comments on commit 2cbe214

Please sign in to comment.