Skip to content

Commit

Permalink
[IMP] add fields channel_type and company_id on sale.channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Mombereau committed Jan 22, 2025
1 parent 75e88fa commit 00ecf81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sale_channel/models/sale_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ class SaleChannel(models.Model):
string="Sequence",
help="If define sale order will use this sequence for it's name",
)
company_id = fields.Many2one("res.company", default=lambda self: self.env.company)
channel_type = fields.Selection(
[],
help="Allows to use specific fields and actions for a specific channel's type",
)
5 changes: 5 additions & 0 deletions sale_channel/views/sale_channel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
<field name="active" invisible="1" />
<field name="partner_id" />
<field name="sequence_id" />
<field name="channel_type" />
<field
name="company_id"
groups="base.group_multi_company"
/>
</group>
</sheet>
</form>
Expand Down

0 comments on commit 00ecf81

Please sign in to comment.