Add Lead Origin
This commit is contained in:
parent
5c03ff06e0
commit
4293f1842f
|
@ -26,7 +26,6 @@ from . import commission
|
|||
from . import account
|
||||
from . import analytic
|
||||
from . import price_list
|
||||
# from . import opportunity
|
||||
|
||||
|
||||
def register():
|
||||
|
|
|
@ -97,6 +97,7 @@ class Booking(Workflow, ModelSQL, ModelView):
|
|||
media = fields.Selection(MEDIA, 'Media', states=STATES_BLOCKED,
|
||||
help="Way through which the booking arrives.")
|
||||
media_string = media.translated('media')
|
||||
lead_origin = fields.Many2One('crm.lead_origin', 'Lead Origin')
|
||||
plan = fields.Selection(PLAN, 'Commercial Plan', states=STATES_BLOCKED,
|
||||
help="Plans offered by hotel and selected by guest for booking.")
|
||||
plan_string = plan.translated('plan')
|
||||
|
|
11
booking.xml
11
booking.xml
|
@ -95,17 +95,6 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<field name="name">booking_folio_form</field>
|
||||
</record>
|
||||
|
||||
<!-- <record model="ir.ui.view" id="revenue_forecast_view_tree">
|
||||
<field name="model">hotel.revenue_forecast</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="name">revenue_forecast_tree</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="revenue_forecast_view_form">
|
||||
<field name="model">hotel.revenue_forecast</field>
|
||||
<field name="type">form</field>
|
||||
<field name="name">revenue_forecast_form</field>
|
||||
</record> -->
|
||||
|
||||
<record model="ir.model.button" id="booking_cancel_button">
|
||||
<field name="name">cancel</field>
|
||||
<field name="model" search="[('model', '=', 'hotel.booking')]"/>
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.model import fields
|
||||
|
||||
|
||||
class Opportunity(metaclass=PoolMeta):
|
||||
__name__ = 'sale.opportunity'
|
||||
agent = fields.Many2One('commission.agent', "Agent")
|
||||
agency = fields.Many2One('commission.agent', "Agency")
|
||||
source = fields.Selection([
|
||||
('databases', 'Databases'),
|
||||
('social_network', 'Social Network'),
|
||||
('direct', 'Direct'),
|
||||
('referred', 'Referred'),
|
||||
('other', 'Other'),
|
||||
], 'Source', required=True)
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
|
||||
<record model="ir.ui.view" id="opportunity_view_form">
|
||||
<field name="model">sale.opportunity</field>
|
||||
<field name="inherit" ref="sale_opportunity.opportunity_view_form"/>
|
||||
<field name="name">opportunity_form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="opportunity_view_tree">
|
||||
<field name="model">sale.opportunity</field>
|
||||
<field name="inherit" ref="sale_opportunity.opportunity_view_tree"/>
|
||||
<field name="name">opportunity_tree</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</tryton>
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=6.0.88
|
||||
version=6.0.89
|
||||
depends:
|
||||
party
|
||||
company
|
||||
|
@ -18,6 +18,7 @@ depends:
|
|||
party_personal
|
||||
account_statement_co
|
||||
goal
|
||||
crm
|
||||
xml:
|
||||
hotel.xml
|
||||
guest.xml
|
||||
|
|
|
@ -9,7 +9,9 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<label name="number"/>
|
||||
<field name="number"/>
|
||||
<label name="contact"/>
|
||||
<field name="contact" colspan="3"/>
|
||||
<field name="contact"/>
|
||||
<label name="lead_origin"/>
|
||||
<field name="lead_origin" widget="selection"/>
|
||||
<label name="booking_date"/>
|
||||
<field name="booking_date"/>
|
||||
<label name="responsible_payment"/>
|
||||
|
|
Loading…
Reference in New Issue