This commit is contained in:
2026-03-20 14:36:43 +01:00
parent 73eeee0f72
commit 22c4766e66
3 changed files with 5 additions and 0 deletions

View File

@@ -563,6 +563,8 @@ class QualityAnalysis(ModelSQL,ModelView):
'on_change_with_attributes_name'
)
last_analysis_pricing = fields.Boolean("Used for pricing")
@fields.depends('product')
def on_change_with_attribute_set(self, name=None):
if self.product and self.product.template and self.product.template.attribute_set:

View File

@@ -5,4 +5,6 @@
<field name="date"/>
<label name="attributes"/>
<field name="attributes"/>
<label name="last_analysis_pricing"/>
<field name="last_analysis_pricing"/>
</form>

View File

@@ -2,4 +2,5 @@
<field name="reference"/>
<field name="date"/>
<field name="attributes_name"/>
<field name="last_analysis_pricing"/>
</tree>