Skip to content

Commit

Permalink
Merge PR #704 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 9, 2023
2 parents a54b7dc + a6f2bf0 commit 988b803
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions base_export_manager/models/ir_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class IrExports(models.Model):
store=True,
inverse="_inverse_model_id",
compute="_compute_model_id",
compute_sudo=True,
domain=[("transient", "=", False)],
help="Database model to export.",
)
Expand Down
10 changes: 7 additions & 3 deletions base_export_manager/models/ir_exports_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class IrExportsLine(models.Model):
name = fields.Char(
store=True,
compute="_compute_name",
compute_sudo=True,
inverse="_inverse_name",
help="Field's technical name.",
)
Expand All @@ -33,13 +34,16 @@ class IrExportsLine(models.Model):
"First model",
readonly=True,
related="export_id.model_id",
related_sudo=True,
)
model2_id = fields.Many2one(
"ir.model", "Second model", compute="_compute_model2_id"
"ir.model", "Second model", compute="_compute_model2_id", compute_sudo=True
)
model3_id = fields.Many2one(
"ir.model", "Third model", compute="_compute_model3_id", compute_sudo=True
)
model3_id = fields.Many2one("ir.model", "Third model", compute="_compute_model3_id")
model4_id = fields.Many2one(
"ir.model", "Fourth model", compute="_compute_model4_id"
"ir.model", "Fourth model", compute="_compute_model4_id", compute_sudo=True
)
sequence = fields.Integer()
label = fields.Char(compute="_compute_label")
Expand Down

0 comments on commit 988b803

Please sign in to comment.