Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Oct 16, 2024
1 parent dc9b4cb commit 846f038
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# generated from manifests external_dependencies
fastexcel
polars
18 changes: 13 additions & 5 deletions sheet_dataframe_process/models/file_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,23 @@ class FileConfig(models.Model):
_rec_name = "model_id"

model_id = fields.Many2one(
comodel_name="ir.model",
required=True,
ondelete="cascade"
comodel_name="ir.model", required=True, ondelete="cascade"
)
code = fields.Char(help="Allow to browse between several identical models")
action = fields.Selection(selection=[("display", "Display"), ("dataframe", "Dataframe"), ("import", "Import (Not yet implemented)")], default="display", help="Some other behaviors can be implemented")
action = fields.Selection(
selection=[
("display", "Display"),
("dataframe", "Dataframe"),
("import", "Import (Not yet implemented)"),
],
default="display",
help="Some other behaviors can be implemented",
)
partner_ids = fields.Many2many(comodel_name="res.partner")
field_ids = fields.One2many(comodel_name="file.field", inverse_name="config_id")
field_match_ids = fields.One2many(comodel_name="file.partner.field", inverse_name="config_id")
field_match_ids = fields.One2many(
comodel_name="file.partner.field", inverse_name="config_id"
)

def populate_match_lines(self):
self.ensure_one()
Expand Down
2 changes: 1 addition & 1 deletion sheet_dataframe_process/models/file_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FileField(models.Model):
comodel_name="ir.model.fields",
ondelete="cascade",
required=True,
domain="[('model_id', '=', model_id)]"
domain="[('model_id', '=', model_id)]",
# [('model_id', '=', model_id)]
)
model_id = fields.Many2one(
Expand Down
7 changes: 1 addition & 6 deletions sheet_dataframe_process/wizards/sheet_dataframe.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@
<field name="sample" nolabel="1" />
</group>
<footer>
<button
name="apply"
string="Apply"
type="object"
class="btn-primary"
/>
<button name="apply" string="Apply" type="object" class="btn-primary" />
<button string="Cancel" class="btn-default" special="cancel" />
</footer>
</form>
Expand Down

0 comments on commit 846f038

Please sign in to comment.