diff --git a/nfu_ecommerce/README.rst b/nfu_ecommerce/README.rst index af6a9a5..3cc0636 100644 --- a/nfu_ecommerce/README.rst +++ b/nfu_ecommerce/README.rst @@ -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 =========== diff --git a/nfu_ecommerce/models/product_template.py b/nfu_ecommerce/models/product_template.py index 9ea29dc..f6fe7fd 100644 --- a/nfu_ecommerce/models/product_template.py +++ b/nfu_ecommerce/models/product_template.py @@ -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 diff --git a/nfu_ecommerce/readme/HISTORY.rst b/nfu_ecommerce/readme/HISTORY.rst index dbcabc5..11c32a8 100644 --- a/nfu_ecommerce/readme/HISTORY.rst +++ b/nfu_ecommerce/readme/HISTORY.rst @@ -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 \ No newline at end of file +:1.1.1: Pass arguments to super again +:1.1.1: Make publish on website multi company \ No newline at end of file diff --git a/nfu_ecommerce/static/description/index.html b/nfu_ecommerce/static/description/index.html index b3946cc..29cd34d 100644 --- a/nfu_ecommerce/static/description/index.html +++ b/nfu_ecommerce/static/description/index.html @@ -399,7 +399,9 @@ and after the current order.

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 diff --git a/nfu_product/README.rst b/nfu_product/README.rst new file mode 100644 index 0000000..aa2abdf --- /dev/null +++ b/nfu_product/README.rst @@ -0,0 +1,66 @@ +=========== +NFU Product +=========== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:1b38428d6cd06a0605518e76e4c89cb55b01114d59a8a1ef38ebcc5129c57305 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-bruecksen%2Fife_nfu-lightgray.png?logo=github + :target: https://github.com/bruecksen/ife_nfu/tree/16.0/nfu_product + :alt: bruecksen/ife_nfu + +|badge1| |badge2| |badge3| + +* Remove company_id and add company_ids to views + +**Table of contents** + +.. contents:: + :local: + +Changelog +========= + +* 1.0.0: Initial module. + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* BAKEUP + +Contributors +~~~~~~~~~~~~ + +* Niels Göttsch + +Maintainers +~~~~~~~~~~~ + +This module is part of the `bruecksen/ife_nfu `_ project on GitHub. + +You are welcome to contribute. diff --git a/nfu_product/__init__.py b/nfu_product/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/nfu_product/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/nfu_product/__manifest__.py b/nfu_product/__manifest__.py new file mode 100644 index 0000000..3a42650 --- /dev/null +++ b/nfu_product/__manifest__.py @@ -0,0 +1,11 @@ +{ + "name": "NFU Product", + "summary": "Product Customizations for the NFU Project", + "author": "BAKEUP", + "website": "https://www.bakeup.org", + "category": "product", + "version": "16.0.1.0.0", + "depends": ["product", "product_multi_company"], + "data": ["views/product_product_views.xml", "views/product_template_views.xml"], + "license": "LGPL-3", +} diff --git a/nfu_product/models/__init__.py b/nfu_product/models/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/nfu_product/readme/CONTRIBUTORS.rst b/nfu_product/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..67dfdea --- /dev/null +++ b/nfu_product/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Niels Göttsch diff --git a/nfu_product/readme/DESCRIPTION.rst b/nfu_product/readme/DESCRIPTION.rst new file mode 100644 index 0000000..88b0bdf --- /dev/null +++ b/nfu_product/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +* Remove company_id and add company_ids to views \ No newline at end of file diff --git a/nfu_product/readme/HISTORY.rst b/nfu_product/readme/HISTORY.rst new file mode 100644 index 0000000..8e4bb94 --- /dev/null +++ b/nfu_product/readme/HISTORY.rst @@ -0,0 +1,2 @@ +* 1.0.0: Initial module. + diff --git a/nfu_product/static/description/icon.png b/nfu_product/static/description/icon.png new file mode 100644 index 0000000..1267712 Binary files /dev/null and b/nfu_product/static/description/icon.png differ diff --git a/nfu_product/static/description/index.html b/nfu_product/static/description/index.html new file mode 100644 index 0000000..67ecc26 --- /dev/null +++ b/nfu_product/static/description/index.html @@ -0,0 +1,425 @@ + + + + + +NFU Product + + + +
+

NFU Product

+ + +

Beta License: LGPL-3 bruecksen/ife_nfu

+
    +
  • Remove company_id and add company_ids to views
  • +
+

Table of contents

+ +
+

Changelog

+
    +
  • 1.0.0: Initial module.
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • BAKEUP
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the bruecksen/ife_nfu project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/nfu_product/views/product_product_views.xml b/nfu_product/views/product_product_views.xml new file mode 100644 index 0000000..5ef9904 --- /dev/null +++ b/nfu_product/views/product_product_views.xml @@ -0,0 +1,22 @@ + + + + product.product.tree.inherit.companies + product.product + + + + 1 + + + + + + + diff --git a/nfu_product/views/product_template_views.xml b/nfu_product/views/product_template_views.xml new file mode 100644 index 0000000..4771eb9 --- /dev/null +++ b/nfu_product/views/product_template_views.xml @@ -0,0 +1,22 @@ + + + + product.template.product.tree.inherit.companies + product.template + + + + 1 + + + + + + +