Add Lead Origin

This commit is contained in:
oscar alvarez 2023-06-12 07:55:34 -05:00
parent 5c03ff06e0
commit 4293f1842f
7 changed files with 6 additions and 51 deletions

View File

@ -26,7 +26,6 @@ from . import commission
from . import account
from . import analytic
from . import price_list
# from . import opportunity
def register():

View File

@ -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')

View File

@ -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')]"/>

View File

@ -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)

View File

@ -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>

View File

@ -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

View File

@ -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"/>