Skip to content

Commit

Permalink
[IMP] mrp_subcontracting_partner_management: Change the string of the…
Browse files Browse the repository at this point in the history
… is_subcontractor_partner field.

Avoid warning for multiple fields with the same string
Two fields (is_subcontractor_partner, is_subcontractor) of res.partner() have the same label: Subcontractor.
  • Loading branch information
victoralmau committed Aug 30, 2024
1 parent 49a41be commit ae0f56e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class ResPartner(models.Model):
_inherit = "res.partner"

is_subcontractor_partner = fields.Boolean(string="Subcontractor")
is_subcontractor_partner = fields.Boolean(string="Is subcontractor")
subcontracted_created_location_id = fields.Many2one(
comodel_name="stock.location", copy=False
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<field name="property_supplier_payment_term_id" position="before">
<field
name="is_subcontractor_partner"
string="Subcontractor"
attrs="{'invisible': [('is_company', '=', False)]}"
/>
</field>
Expand Down

0 comments on commit ae0f56e

Please sign in to comment.