mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_subcontracting_partner_management: Change the string of the 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.
This commit is contained in:
@@ -6,7 +6,7 @@ from odoo import api, fields, models
|
||||
class ResPartner(models.Model):
|
||||
_inherit = "res.partner"
|
||||
|
||||
is_subcontractor_partner = fields.Boolean(string="Subcontractor")
|
||||
is_subcontractor_partner = fields.Boolean(string="Subcontractor partner")
|
||||
subcontracted_created_location_id = fields.Many2one(
|
||||
comodel_name="stock.location", copy=False
|
||||
)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user