[117][FIX] nfu_ecommerce: make publish on website multi company

This commit is contained in:
Niels Göttsch 2025-02-25 16:33:19 +01:00
parent cc6a2d9ea0
commit 1677796ce7
No known key found for this signature in database
GPG key ID: DD0505A66DB26CD4
4 changed files with 12 additions and 4 deletions

View file

@ -38,7 +38,8 @@ Changelog
:0.0.1: Initial module.
:1.0.0: Live
:1.1.0: Add Open Packagings Filter and fix rounding issue
:1.1.1: Pass arguemnts to super again
:1.1.1: Pass arguments to super again
:1.1.1: Make publish on website multi company
Bug Tracker
===========

View file

@ -1,9 +1,13 @@
from odoo import models
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
is_published = fields.Boolean(
copy=False, default=lambda self: self._default_is_published(), index=True, company_dependent=True
)
def action_publish_on_website(self):
for product in self:
product.is_published = True

View file

@ -1,4 +1,5 @@
:0.0.1: Initial module.
:1.0.0: Live
:1.1.0: Add Open Packagings Filter and fix rounding issue
:1.1.1: Pass arguemnts to super again
:1.1.1: Pass arguments to super again
:1.1.1: Make publish on website multi company

View file

@ -399,7 +399,9 @@ and after the current order.</p>
</tr>
<tr class="field"><th class="field-name">1.1.0:</th><td class="field-body">Add Open Packagings Filter and fix rounding issue</td>
</tr>
<tr class="field"><th class="field-name">1.1.1:</th><td class="field-body">Pass arguemnts to super again</td>
<tr class="field"><th class="field-name">1.1.1:</th><td class="field-body">Pass arguments to super again</td>
</tr>
<tr class="field"><th class="field-name">1.1.1:</th><td class="field-body">Make publish on website multi company</td>
</tr>
</tbody>
</table>