Browse Source

[REM] appointment website multi

16.0
RemiFr82 11 months ago
parent
commit
fc9b79f4a2
  1. 1
      website_appointment_multi/__init__.py
  2. 38
      website_appointment_multi/__manifest__.py
  3. 1
      website_appointment_multi/models/__init__.py
  4. 6
      website_appointment_multi/models/appointment_type.py
  5. 15
      website_appointment_multi/views/appointment_type.xml

1
website_appointment_multi/__init__.py

@ -1 +0,0 @@
from . import models

38
website_appointment_multi/__manifest__.py

@ -1,38 +0,0 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Website appointment multi",
"version": "1.0.0",
"summary": """
You can choose on which website you publish your appointments types.
""",
"description": """
TO WRITE
""",
"author": "RemiFr82",
"contributors": "",
"website": "https://remifr82.me",
"license": "LGPL-3",
"category": "Marketing/Online Appointment",
# "price": 0,
# "currency": "EUR",
"application": False,
"installable": True,
"auto_install": False,
"pre_init_hook": "",
"post_init_hook": "",
"uninstall_hook": "",
"excludes": [],
"external_dependencies": [],
"depends": [
"website_appointment",
],
"data": [
"views/appointment_type.xml",
],
"css": [],
"images": [],
"js": [],
"test": [],
"demo": [],
"maintainer": "RemiFr82",
}

1
website_appointment_multi/models/__init__.py

@ -1 +0,0 @@
from . import appointment_type

6
website_appointment_multi/models/appointment_type.py

@ -1,6 +0,0 @@
from odoo import models, fields, api, _
class AppointmentType(models.Model):
_name = "appointment.type"
_inherit = ["appointment.type", "website.published.multi.mixin"]

15
website_appointment_multi/views/appointment_type.xml

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="appointment_type_view_form_inherit_website_multi" model="ir.ui.view">
<field name="name">appointment.type.view.form.inherit</field>
<field name="model">appointment.type</field>
<field name="inherit_id" ref="appointment.appointment_type_view_form" />
<field name="arch" type="xml">
<field name="staff_user_count" position="before">
<field name="website_id" options="{'no_create': True}" groups="website.group_multi_website" />
</field>
</field>
</record>
</odoo>
Loading…
Cancel
Save