forked from Yaltik/golem
[IMP]GOLEM Activity Places Extended migration from sessions to new pure activities : end
This commit is contained in:
parent
053f58891e
commit
0958c7777f
@ -16,8 +16,8 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
{
|
||||
'name': 'GOLEM Activity Sessions Places',
|
||||
'summary': 'GOLEM Activities Session avdanced places management',
|
||||
'name': 'GOLEM Activity Places',
|
||||
'summary': 'GOLEM Activity avdanced places management',
|
||||
'description': ''' Management of minimum places, overbook and max
|
||||
overbook... ''',
|
||||
'version': '0.1',
|
||||
@ -27,6 +27,6 @@
|
||||
'application': False,
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
'depends': ['golem_activity_session_registration'],
|
||||
'depends': ['golem_activity_registration'],
|
||||
'data': ['views/golem_activity_view.xml']
|
||||
}
|
||||
|
@ -1,13 +1,13 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * golem_activity_session_place
|
||||
# * golem_activity_place
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-03 15:21+0000\n"
|
||||
"PO-Revision-Date: 2016-08-03 15:21+0000\n"
|
||||
"POT-Creation-Date: 2016-10-10 16:26+0000\n"
|
||||
"PO-Revision-Date: 2016-10-10 16:26+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@ -15,25 +15,45 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. module: golem_activity_session_place
|
||||
#: view:golem.activity.session:golem_activity_session_place.searches
|
||||
msgid "Full"
|
||||
msgstr "Plein"
|
||||
#. module: golem_activity_place
|
||||
#: field:golem.activity,is_overbooked:0
|
||||
msgid "Allow overbook?"
|
||||
msgstr "Autoriser la surcharge ?"
|
||||
|
||||
#. module: golem_activity_session_place
|
||||
#: model:ir.model,name:golem_activity_session_place.model_golem_activity_session
|
||||
msgid "GOLEM Activities Sessions"
|
||||
msgstr "Séances des activités"
|
||||
#. module: golem_activity_place
|
||||
#: model:ir.model,name:golem_activity_place.model_golem_activity
|
||||
msgid "GOLEM Activity"
|
||||
msgstr "Activité"
|
||||
|
||||
#. module: golem_activity_session_place
|
||||
#: code:addons/golem_activity_session_place/models/golem_activity_session.py:52
|
||||
#. module: golem_activity_place
|
||||
#: field:golem.activity,places_min:0
|
||||
msgid "Minimum places"
|
||||
msgstr "Places minimum"
|
||||
|
||||
#. module: golem_activity_place
|
||||
#: help:golem.activity,places_min:0
|
||||
msgid "Minimum places to maintain the activity"
|
||||
msgstr "Nombre de places minimales pour maintenir l'activité"
|
||||
|
||||
#. module: golem_activity_place
|
||||
#: code:addons/golem_activity_place/models/golem_activity.py:51
|
||||
#, python-format
|
||||
msgid "Number of places cannot be negative."
|
||||
msgstr "Le nombre de places ne peut pas être négatif"
|
||||
|
||||
#. module: golem_activity_session_place
|
||||
#: code:addons/golem_activity_session_place/models/golem_activity_session.py:55
|
||||
#. module: golem_activity_place
|
||||
#: code:addons/golem_activity_place/models/golem_activity.py:54
|
||||
#, python-format
|
||||
msgid "Overbooked places cannot be inferior than places"
|
||||
msgstr "Le nombre de places avec surcharge ne peut être inférieur aux places"
|
||||
msgstr "Le nombre de places avec surcharge ne peut être inférieur aux place
|
||||
|
||||
#. module: golem_activity_place
|
||||
#: field:golem.activity,places_overbooked:0
|
||||
msgid "Places with overbook"
|
||||
msgstr "Places avec surcharge"
|
||||
|
||||
#. module: golem_activity_place
|
||||
#: view:golem.activity:golem_activity_place.tree
|
||||
msgid "darkgrey: places_used < places_min; red: places_remain == 0; orange: places_remain <= 4;"
|
||||
msgstr "darkgrey: places_used < places_min; red: places_remain == 0; orange: places_remain <= 4;"
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * golem_activity_session_place
|
||||
# * golem_activity_place
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-03 15:20+0000\n"
|
||||
"PO-Revision-Date: 2016-08-03 15:20+0000\n"
|
||||
"POT-Creation-Date: 2016-10-10 16:25+0000\n"
|
||||
"PO-Revision-Date: 2016-10-10 16:25+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@ -15,25 +15,45 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: golem_activity_session_place
|
||||
#: view:golem.activity.session:golem_activity_session_place.searches
|
||||
msgid "Full"
|
||||
#. module: golem_activity_place
|
||||
#: field:golem.activity,is_overbooked:0
|
||||
msgid "Allow overbook?"
|
||||
msgstr ""
|
||||
|
||||
#. module: golem_activity_session_place
|
||||
#: model:ir.model,name:golem_activity_session_place.model_golem_activity_session
|
||||
msgid "GOLEM Activities Sessions"
|
||||
#. module: golem_activity_place
|
||||
#: model:ir.model,name:golem_activity_place.model_golem_activity
|
||||
msgid "GOLEM Activity"
|
||||
msgstr ""
|
||||
|
||||
#. module: golem_activity_session_place
|
||||
#: code:addons/golem_activity_session_place/models/golem_activity_session.py:52
|
||||
#. module: golem_activity_place
|
||||
#: field:golem.activity,places_min:0
|
||||
msgid "Minimum places"
|
||||
msgstr ""
|
||||
|
||||
#. module: golem_activity_place
|
||||
#: help:golem.activity,places_min:0
|
||||
msgid "Minimum places to maintain the activity"
|
||||
msgstr ""
|
||||
|
||||
#. module: golem_activity_place
|
||||
#: code:addons/golem_activity_place/models/golem_activity.py:51
|
||||
#, python-format
|
||||
msgid "Number of places cannot be negative."
|
||||
msgstr ""
|
||||
|
||||
#. module: golem_activity_session_place
|
||||
#: code:addons/golem_activity_session_place/models/golem_activity_session.py:55
|
||||
#. module: golem_activity_place
|
||||
#: code:addons/golem_activity_place/models/golem_activity.py:54
|
||||
#, python-format
|
||||
msgid "Overbooked places cannot be inferior than places"
|
||||
msgstr ""
|
||||
|
||||
#. module: golem_activity_place
|
||||
#: field:golem.activity,places_overbooked:0
|
||||
msgid "Places with overbook"
|
||||
msgstr ""
|
||||
|
||||
#. module: golem_activity_place
|
||||
#: view:golem.activity:golem_activity_place.tree
|
||||
msgid "darkgrey: places_used < places_min; red: places_remain == 0; orange: places_remain <= 4;"
|
||||
msgstr ""
|
||||
|
||||
|
@ -15,4 +15,4 @@
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from . import golem_activity_session
|
||||
from . import golem_activity
|
||||
|
@ -18,11 +18,11 @@
|
||||
from openerp import models, fields, api, _
|
||||
|
||||
|
||||
class GolemActivitySession(models.Model):
|
||||
_inherit = 'golem.activity.session'
|
||||
class GolemActivity(models.Model):
|
||||
_inherit = 'golem.activity'
|
||||
|
||||
places_min = fields.Integer('Minimum places', default=0,
|
||||
help='Minimum places to maintain the session')
|
||||
help='Minimum places to maintain the activity')
|
||||
is_overbooked = fields.Boolean('Allow overbook?', default=False)
|
||||
places_overbooked = fields.Integer('Places with overbook', default=0)
|
||||
|
||||
|
@ -20,10 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<!-- Form -->
|
||||
<record id="view_form" model="ir.ui.view">
|
||||
<field name="name">GOLEM Activity Sessions Places Form additions</field>
|
||||
<field name="model">golem.activity.session</field>
|
||||
<field name="name">GOLEM Activity Places Form additions</field>
|
||||
<field name="model">golem.activity</field>
|
||||
<field name="inherit_id"
|
||||
ref="golem_activity_session_registration.activity_form" />
|
||||
ref="golem_activity_registration.activity_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="places" position="after">
|
||||
<field name="places_min" />
|
||||
@ -35,11 +35,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</record>
|
||||
|
||||
<!-- Tree -->
|
||||
<record id="session_tree" model="ir.ui.view">
|
||||
<field name="name">Session list places adaptations</field>
|
||||
<field name="model">golem.activity.session</field>
|
||||
<record id="tree" model="ir.ui.view">
|
||||
<field name="name">Activity list places adaptations</field>
|
||||
<field name="model">golem.activity</field>
|
||||
<field name="inherit_id"
|
||||
ref="golem_activity_session_registration.activity_tree" />
|
||||
ref="golem_activity_registration.activity_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<tree position="attributes">
|
||||
<attribute name="colors">darkgrey: places_used < places_min; red: places_remain == 0; orange: places_remain <= 4;</attribute>
|
||||
|
Loading…
Reference in New Issue
Block a user