change name patents

conv_bal
Phongsan.b 2014-08-19 18:45:09 +07:00
parent 0ae11df278
commit 97183e2f9c
93 changed files with 1 additions and 1902 deletions

View File

@ -6,7 +6,7 @@ from netforce.access import get_active_company
class Patient(Model): class Patient(Model):
_name="clinic.patient" _name="clinic.patient"
_string="Partients" _string="Partient"
_audit_log=True _audit_log=True
_name_field="number" _name_field="number"
_multi_company=True _multi_company=True

View File

@ -1 +0,0 @@
cash ,cash,cash-Inspiron,16.06.2014 16:46,file:///home/cash/.config/libreoffice/3;

View File

@ -1 +0,0 @@
David Janssens,datrus,len,19.07.2013 16:42,file:///home/datrus/.config/libreoffice/3;

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,41 +0,0 @@
<v:bread>
<v:bread_item string="Activities" action="activ_all"/>
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Call">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="type" invisible="1"/>
<v:separator string="Call Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="user_id"/>
<v:field name="subject"/>
<v:field name="due_date"/>
</div>
<div class="span5 form-horizontal">
<v:field name="related_id"/>
<v:field name="name_id"/>
</div>
</v:row>
<div class="form-horizontal">
<v:field name="description" width="600" height="80"/>
</div>
<v:separator string="Additional Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="state"/>
</div>
<div class="span5 form-horizontal">
<v:field name="phone"/>
<v:field name="email"/>
</div>
</v:row>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="activ_all"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,27 +0,0 @@
<v:bread>
<v:bread_item string="Activities" action="activ_all"/>
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Email">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="type" invisible="1"/>
<v:field name="date"/>
<v:field name="user_id"/>
<v:field name="name_id" required="1"/>
<v:field name="related_id"/>
<v:field name="subject" size="xlarge"/>
<v:field name="state" invisible="1"/>
<v:field name="body" width="800" height="400"/>
<v:separator string="Additional Information"/>
<v:field name="state" readonly="1"/>
<v:field name="uuid" invisible="1"/>
</v:form_body>
{{#ifeq context.data.state "new"}}
<v:form_foot>
<v:button string="Send" method="send_email" size="large" type="primary" next="activ_all"/>
</v:form_foot>
{{/ifeq}}
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,44 +0,0 @@
<v:bread>
<v:bread_item string="Activities" action="activ_all"/>
</v:bread>
<v:page title="{{context.title}}">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="type" invisible="1"/>
<v:separator string="Calendar Details"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="user_id"/>
<v:field name="subject"/>
<v:field name="event_start"/>
<v:field name="event_end"/>
</div>
<div class="span5 form-horizontal">
<v:field name="related_id"/>
<v:field name="name_id"/>
</div>
</v:row>
<v:separator string="Other Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="location"/>
<v:field name="state"/>
</div>
<div class="span5 form-horizontal">
<v:field name="phone"/>
<v:field name="email"/>
</div>
</v:row>
<v:separator string="Description Information"/>
<div class="form-horizontal">
<v:field name="description" width="600" height="80"/>
</div>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="activ_all"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,44 +0,0 @@
<v:bread>
<v:bread_item string="Activities" action="activ_all"/>
</v:bread>
<v:page title="{{context.title}}">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="type" invisible="1"/>
<v:separator string="Meeting Details"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="user_id"/>
<v:field name="subject"/>
<v:field name="event_start"/>
<v:field name="event_end"/>
</div>
<div class="span5 form-horizontal">
<v:field name="related_id"/>
<v:field name="name_id"/>
</div>
</v:row>
<v:separator string="Other Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="location"/>
<v:field name="state"/>
</div>
<div class="span5 form-horizontal">
<v:field name="phone"/>
<v:field name="email"/>
</div>
</v:row>
<v:separator string="Description Information"/>
<div class="form-horizontal">
<v:field name="description" width="600" height="80"/>
</div>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="activ_all"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,42 +0,0 @@
<v:bread>
<v:bread_item string="Activities" action="activ_all"/>
</v:bread>
<v:page title="{{context.title}}">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="type" invisible="1"/>
<v:separator string="Task Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="user_id"/>
<v:field name="subject"/>
<v:field name="due_date"/>
</div>
<div class="span5 form-horizontal">
<v:field name="related_id"/>
<v:field name="name_id"/>
</div>
</v:row>
<div class="form-horizontal">
<v:field name="description" width="600" height="80"/>
</div>
<v:separator string="Additional Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="state"/>
<v:field name="priority"/>
</div>
<div class="span5 form-horizontal">
<v:field name="phone"/>
<v:field name="email"/>
</div>
</v:row>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="activ_all"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,14 +0,0 @@
<v:flash/>
{{include "activ_search" context=context}}
<v:button string="Delete" method="_delete" type="danger" size="small"/>
<v:button string="Search" action="_search" icon="search" size="small" pull="right"/>
<v:list action="view_activity">
<field name="type"/>
<field name="user_id"/>
<field name="subject"/>
<field name="related_id"/>
<field name="name_id"/>
<field name="priority"/>
<field name="date"/>
<field name="state"/>
</v:list>

View File

@ -1,17 +0,0 @@
<v:page title="Activities">
<v:toolbar>
<v:button_group string="New Activity" dropdown="1" icon="plus-sign">
<v:item string="Task" action="activ_new_task"/>
<v:item string="Event" action="activ_new_event"/>
<v:item string="Meeting" action="activ_new_meeting"/>
<v:item string="Call" action="activ_new_call"/>
<v:item string="Email" action="activ_new_email"/>
</v:button_group>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="activ_all"/>
<v:tab_item string="Pending" action="activ_pending"/>
<v:tab_item string="Done" action="activ_done"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,5 +0,0 @@
<v:search>
<field name="type"/>
<field name="user_id"/>
<field name="subject"/>
</v:search>

View File

@ -1,14 +0,0 @@
<v:widget title="Pending Activities">
<v:button_group string="New Activity" dropdown="1" icon="plus-sign">
<v:item string="Task" action="activ_new_task"/>
<v:item string="Event" action="activ_new_event"/>
<v:item string="Meeting" action="activ_new_meeting"/>
<v:item string="Call" action="activ_new_call"/>
</v:button_group>
<v:list action="view_activity" noselect="1">
<field name="type"/>
<field name="subject"/>
<field name="user_id"/>
<field name="state"/>
</v:list>
</v:widget>

View File

@ -1,14 +0,0 @@
<v:page title="Copy lead to opportunity">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="lead_id" invisible="1"/>
<v:field name="user_id"/>
<v:field name="partner_id"/>
<v:field name="name"/>
</v:form_body>
<v:form_foot>
<v:button string="Copy" method="do_copy" size="large" type="primary"/>
</v:form_foot>
</v:form>
</v:page>

View File

@ -1,3 +0,0 @@
<v:widget title="Expected revenue">
<v:chart width="550" height="150" type="bar"/>
</v:widget>

View File

@ -1,38 +0,0 @@
<v:page title="{{#if context.title}}{{context.title}}{{else}}Leads Analysis{{/if}}">
<v:flash/>
<v:form_body background="1">
<v:row>
<v:field name="group_field" span="2"/>
<v:field name="subgroup_field" span="2"/>
<v:field name="view_type" span="2"/>
</v:row>
<v:separator string="Time Frame"/>
<v:row>
<v:field name="date_field" span="2"/>
<v:field name="date_from" span="2"/>
<v:field name="date_to" span="2"/>
</v:row>
<v:field name="hide_details" invisible="1"/>
</v:form_body>
<v:toolbar>
<v:button string="Run Report" type="primary" method="run_report"/>
{{#if context.data.hide_details}}
<v:button string="Show Details" method="show_details"/>
{{else}}
<v:button string="Hide Details" method="hide_details"/>
{{/if}}
<v:button_group string="Export" dropdown="1">
<v:item string="CSV"/>
</v:button_group>
</v:toolbar>
<hr/>
<v:field name="domain_str" invisible="1"/>
{{#if context.data.domain_str}}
<div style="background-color:#eee;padding:10px;margin-bottom:5px">
Filtered By:
<div style="white-space:pre">{{{context.data.domain_str}}}</div>
</div>
{{/if}}
<v:field name="report_action" invisible="1"/>
{{view "action" options=context.data.report_action context=context}}
</v:page>

View File

@ -1,78 +0,0 @@
<v:bread>
<v:bread_item string="Leads" action="lead_all"/>
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Lead">
<v:flash/>
<v:form border="1">
{{#if context.data.id}}
<v:form_head>
<div class="btn-toolbar" style="float:right;margin:0">
<v:button_group string="Options" dropdown="1" align="right">
<v:item string="Copy to Partner" method="copy_to_partner"/>
<v:item string="Copy to Contact" method="copy_to_contact"/>
{{#ifeq context.data.state "qualified"}}
<v:item string="Copy to Opportunity" action="convert_lead" action_options="lead_id={{context.data.id}}"/>
{{/ifeq}}
<v:divider/>
<v:item string="Send Email" method="send_email"/>
<v:item string="View Activities" action="activ_all" action_options="lead_id={{context.data.id}}"/>
</v:button_group>
</div>
</v:form_head>
{{/if}}
<v:form_body background="1">
<v:separator string="Lead Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="user_id"/>
<v:field name="first_name"/>
<v:field name="last_name"/>
<v:field name="company"/>
<v:field name="title"/>
</div>
<div class="span5 form-horizontal">
<v:field name="state"/>
<v:field name="phone"/>
<v:field name="email"/>
<v:field name="rating"/>
</div>
</v:row>
<v:separator string="Address Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="street"/>
<v:field name="city"/>
<v:field name="province"/>
<v:field name="zip"/>
<v:field name="country_id"/>
</div>
<div class="span5 form-horizontal">
<v:field name="website"/>
</div>
</v:row>
<v:separator string="Additional Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="employees"/>
<v:field name="revenue"/>
</div>
<div class="span5 form-horizontal">
<v:field name="lead_source"/>
<v:field name="industry"/>
</div>
</v:row>
<v:separator string="Description Information"/>
<div class="form-horizontal">
<v:field name="description" width="600" height="80"/>
</div>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="lead_all"/>
{{#ifeq context.data.state "new"}}
<v:button string="Convert" method="do_convert" size="large" type="success"/>
{{/ifeq}}
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,14 +0,0 @@
<v:flash/>
{{include "lead_search" context=context}}
<v:button string="Delete" method="_delete" type="danger" size="small"/>
<v:button string="Export" action="lead_export" size="small"/>
<v:button string="Search" action="_search" icon="search" size="small" pull="right"/>
<v:list action="lead_edit">
<field name="date"/>
<field name="user_id"/>
<field name="name"/>
<field name="company"/>
<field name="rating"/>
<field name="lead_source"/>
<field name="state"/>
</v:list>

View File

@ -1,15 +0,0 @@
<v:page title="Leads">
<v:toolbar>
<v:button string="New Lead" icon="plus-sign" action="lead_edit"/>
<v:button string="Import" action="lead_import" icon="download"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="lead_all"/>
<v:tab_item string="Open" action="lead_open"/>
<v:tab_item string="Contacted" action="lead_contacted"/>
<v:tab_item string="Qualified" action="lead_qualified"/>
<v:tab_item string="Unqualified" action="lead_unqualified"/>
<v:tab_item string="Recycled" action="lead_recycled"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,9 +0,0 @@
<v:report_list>
<field name="date"/>
<field name="user_id"/>
<field name="name"/>
<field name="company"/>
<field name="rating"/>
<field name="lead_source"/>
<field name="state"/>
</v:report_list>

View File

@ -1,6 +0,0 @@
<v:search>
<field name="date"/>
<field name="user_id"/>
<field name="name"/>
<field name="company"/>
</v:search>

View File

@ -1,16 +0,0 @@
<v:modal title="Select lead">
<div class="modal-body">
<v:flash/>
<v:list>
<field name="date"/>
<field name="name"/>
<field name="company"/>
<field name="rating"/>
<field name="state"/>
</v:list>
</div>
<div class="modal-footer">
<v:button string="Copy to contact" type="primary" method="copy_to_contact"/>
<v:button string="Cancel" action="_close"/>
</div>
</v:modal>

View File

@ -1,16 +0,0 @@
<v:modal title="Select lead">
<div class="modal-body">
<v:flash/>
<v:list>
<field name="date"/>
<field name="name"/>
<field name="company"/>
<field name="rating"/>
<field name="state"/>
</v:list>
</div>
<div class="modal-footer">
<v:button string="Copy to partner" type="primary" method="copy_to_partner"/>
<v:button string="Cancel" action="_close"/>
</div>
</v:modal>

View File

@ -1,38 +0,0 @@
<v:page title="{{#if context.title}}{{context.title}}{{else}}Opportunity Analysis{{/if}}">
<v:flash/>
<v:form_body background="1">
<v:row>
<v:field name="group_field" span="2"/>
<v:field name="subgroup_field" span="2"/>
<v:field name="view_type" span="2"/>
</v:row>
<v:separator string="Time Frame"/>
<v:row>
<v:field name="date_field" span="2"/>
<v:field name="date_from" span="2"/>
<v:field name="date_to" span="2"/>
</v:row>
<v:field name="hide_details" invisible="1"/>
</v:form_body>
<v:toolbar>
<v:button string="Run Report" type="primary" method="run_report"/>
{{#if context.data.hide_details}}
<v:button string="Show Details" method="show_details"/>
{{else}}
<v:button string="Hide Details" method="hide_details"/>
{{/if}}
<v:button_group string="Export" dropdown="1">
<v:item string="CSV"/>
</v:button_group>
</v:toolbar>
<hr/>
<v:field name="domain_str" invisible="1"/>
{{#if context.data.domain_str}}
<div style="background-color:#eee;padding:10px;margin-bottom:5px">
Filtered By:
<div style="white-space:pre">{{{context.data.domain_str}}}</div>
</div>
{{/if}}
<v:field name="report_action" invisible="1"/>
{{view "action" options=context.data.report_action context=context}}
</v:page>

View File

@ -1,73 +0,0 @@
<v:bread>
<v:bread_item string="Opportunities" action="opport_all"/>
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Opportunity">
<v:flash/>
<v:form border="1">
<v:form_head>
<strong>{{field_value "state" context=context}}</strong>
<div class="btn-toolbar" style="float:right;margin:0">
{{#if context.data.id}}
<v:button_group string="Options" dropdown="1" align="right">
<v:item string="Copy To Quotation" method="copy_to_quotation"/>
<v:item string="Copy" method="copy"/>
<v:divider/>
<v:item string="Send Email" method="send_email"/>
<v:item string="View Activities" action="activ_all" action_options="opport_id={{context.data.id}}"/>
<v:item string="View Quotations" action="quot_all" action_options='search_domain=[["opport_id","=",{{context.data.id}}]]'/>
</v:button_group>
{{/if}}
</div>
</v:form_head>
<v:form_body background="1">
<v:separator string="Opportunity Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="user_id"/>
<v:field name="name"/>
<v:field name="partner_id" create="1"/>
<v:field name="contact_id"/>
</div>
<div class="span5 form-horizontal">
<v:field name="date_close"/>
<v:field name="stage_id"/>
<v:field name="probability"/>
<v:field name="amount"/>
</div>
</v:row>
<v:separator string="Additional Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="lead_source"/>
<v:field name="next_step"/>
</div>
<div class="span5 form-horizontal">
<v:field name="product_id"/>
<v:field name="qty"/>
</div>
</v:row>
<v:separator string="Description Information"/>
<v:row>
<div class="span5 form-horizontal">
<v:field name="description" width="500" height="80"/>
</div>
</v:row>
<v:field name="uuid" invisible="1"/>
<v:field name="state" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="opport_all"/>
{{#ifeq context.data.state "open"}}
<v:button string="Won" method="do_won" size="large" type="success"/>
<v:button string="Lost" method="do_lost" size="large" type="danger"/>
{{/ifeq}}
{{#ifin context.data.state "won" "lost"}}
<v:button string="Reopen" method="do_reopen" size="large" icon="repeat"/>
{{/ifin}}
</v:form_foot>
</v:form>
{{#if context.data.id}}
<v:field name="quotations" template="quot_rlist" rlist="1"/>
{{/if}}
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,14 +0,0 @@
<v:flash/>
{{include "opport_search" context=context}}
<v:button string="Delete" method="_delete" type="danger" size="small"/>
<v:button string="Export" action="opport_export" size="small"/>
<v:button string="Search" action="_search" icon="search" size="small" pull="right"/>
<v:list action="opport_edit">
<field name="user_id"/>
<field name="name"/>
<field name="partner_id"/>
<field name="date_close"/>
<field name="stage_id"/>
<field name="probability"/>
<field name="amount"/>
</v:list>

View File

@ -1,13 +0,0 @@
<v:page title="Opportunities">
<v:toolbar>
<v:button string="New Opportunity" icon="plus-sign" action="opport_edit"/>
<v:button string="Import" action="opport_import" icon="download"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="opport_all"/>
<v:tab_item string="Open" action="opport_open"/>
<v:tab_item string="Won" action="opport_won"/>
<v:tab_item string="Lost" action="opport_lost"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,9 +0,0 @@
<v:report_list>
<field name="user_id"/>
<field name="name"/>
<field name="partner_id"/>
<field name="date_close"/>
<field name="stage_id"/>
<field name="probability"/>
<field name="amount" group_operator="sum"/>
</v:report_list>

View File

@ -1,6 +0,0 @@
<v:search>
<field name="user_id"/>
<field name="name"/>
<field name="partner_id"/>
<field name="stage_id"/>
</v:search>

View File

@ -1,3 +0,0 @@
<v:widget title="Opportunities by stage">
<v:chart width="550" height="150" type="bar"/>
</v:widget>

View File

@ -1,9 +0,0 @@
<v:widget title="Open Opportunities">
<v:button string="New Opportunity" icon="plus-sign" action="opport_edit"/>
<v:list action="opport_edit" noselect="1">
<field name="name"/>
<field name="user_id"/>
<field name="stage_id"/>
<field name="date_close"/>
</v:list>
</v:widget>

View File

@ -1,15 +0,0 @@
<v:bread>
<v:bread_item string="Pricelists" action="pricelist_all"/>
<v:bread_item string="{{context.data.list_id.1.}}" action="pricelist_edit" action_options="active_id={{context.data.list_id.0.}}"/>
</v:bread>
<v:page title="Add products to pricelist">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="categ_id"/>
</v:form_body>
<v:form_foot>
<v:button string="Add products" method="add_products" size="large" type="primary"/>
</v:form_foot>
</v:form>
</v:page>

View File

@ -1,29 +0,0 @@
<v:bread>
<v:bread_item string="Pricelists" action="pricelist_all"/>
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Pricelist">
<v:flash/>
<v:form>
<v:form_head>
{{#if context.data.id}}
<div class="btn-toolbar" style="float:right;margin:0">
<v:button string="Print PDF" icon="print" action="report_pricelist" action_options="active_id={{context.data.id}}"/>
<v:button_group string="Options" dropdown="1" align="right">
<v:item string="Add products" action="pricelist_add" action_options="list_id={{context.data.id}}"/>
<v:item string="Update Prices" method="update_prices"/>
</v:button_group>
</div>
{{/if}}
</v:form_head>
<v:form_body background="1">
<v:field name="name"/>
<v:field name="date"/>
<v:field name="discount"/>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="pricelist_all"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,18 +0,0 @@
<v:bread>
<v:bread_item string="Pricelist Items" action="pricelist_item_all"/>
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Pricelist Item">
<v:flash/>
<v:form>
<v:form_body background="1">
<v:field name="list_id"/>
<v:field name="product_id"/>
<v:field name="price"/>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="pricelist_item_all"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,9 +0,0 @@
<v:flash/>
{{include "pricelist_item_search" context=context}}
<v:button string="Delete" method="_delete" type="danger" size="small"/>
<v:button string="Search" action="_search" icon="search" size="small" pull="right"/>
<v:list action="pricelist_item_edit">
<field name="list_id"/>
<field name="product_id"/>
<field name="price"/>
</v:list>

View File

@ -1,9 +0,0 @@
<v:page title="Price List Items">
<v:toolbar>
<v:button string="New Price List Item" icon="plus-sign" action="pricelist_item_edit"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="pricelist_item_all"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,4 +0,0 @@
<v:search>
<field name="list_id"/>
<field name="product_id"/>
</v:search>

View File

@ -1,9 +0,0 @@
<v:flash/>
{{include "pricelist_search" context=context}}
<v:button string="Delete" method="_delete" type="danger" size="small"/>
<v:button string="Export" action="pricelist_export" size="small"/>
<v:button string="Search" action="_search" icon="search" size="small" pull="right"/>
<v:list action="pricelist_edit">
<field name="name"/>
<field name="date"/>
</v:list>

View File

@ -1,10 +0,0 @@
<v:page title="Price Lists">
<v:toolbar>
<v:button string="New Price List" icon="plus-sign" action="pricelist_edit"/>
<v:button string="Import" action="pricelist_import" icon="download"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="pricelist_all"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,4 +0,0 @@
<v:search>
<field name="name"/>
<field name="date"/>
</v:search>

View File

@ -1,80 +0,0 @@
<v:bread>
<v:bread_item string="Quotations" action="quot_all"/>
{{#ifeq context.data.state "draft"}}
<v:bread_item string="Draft" action="quot_draft"/>
{{/ifeq}}
{{#ifeq context.data.state "waiting_approval"}}
<v:bread_item string="Awaiting Approval" action="quot_waiting_approval"/>
{{/ifeq}}
{{#ifeq context.data.state "approved"}}
<v:bread_item string="Approved" action="quot_approved"/>
{{/ifeq}}
{{#ifeq context.data.state "won"}}
<v:bread_item string="Won" action="quot_won"/>
{{/ifeq}}
{{#ifeq context.data.state "lost"}}
<v:bread_item string="Lost" action="quot_lost"/>
{{/ifeq}}
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Quotation">
<v:flash/>
<v:form border="1" {{#ifin context.data.state "approved" "won" "lost" "canceled"}}readonly="1"{{/ifin}}>
<v:form_head>
<strong>{{field_value "state" context=context}}</strong>
{{#if context.data.id}}
<div class="btn-toolbar" style="float:right;margin:0">
<v:button string="Print PDF" icon="print" action="report_quot_form" action_options="quot_id={{context.data.id}}"/>
<v:button_group string="Options" dropdown="1">
<v:item string="Copy To Sales Order" method="copy_to_sale_order"/>
<v:item string="Copy" method="copy"/>
<v:item string="Revise" method="revise" confirm="Are you sure you want to revise this quotation?"/>
<v:divider/>
<v:item string="View Activities" action="activ_all" action_options="quot_id={{context.data.id}}"/>
<v:item string="View Sales Orders" action="sale_all" action_options='search_domain=[["ref","=","{{context.data.number}}"]]'/>
</v:button_group>
</div>
{{/if}}
</v:form_head>
<v:form_body {{#unless context.readonly}}background="1"{{/unless}}>
<v:row>
<v:field name="partner_id" span="2" onchange="onchange_partner" create="1"/>
<v:field name="date" span="2"/>
<v:field name="number" span="2"/>
<v:field name="ref" span="2"/>
<v:field name="exp_date" span="2"/>
</v:row>
<v:row>
<v:field name="currency_id" span="2"/>
<v:field name="tax_type" span="2" onchange="update_amounts"/>
<v:field name="user_id" span="2"/>
<v:field name="opport_id" span="2"/>
<v:field name="payment_terms" span="2"/>
</v:row>
<v:field name="lines" template="quot_line_sheet" count="5" nolabel="1"/>
<div class="offset8 form-horizontal">
<v:field name="amount_subtotal"/>
<v:field name="amount_tax"/>
<v:field name="amount_total"/>
</div>
<v:field name="other_info" width="400" height="50"/>
<v:field name="state" invisible="1"/>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
{{#ifin context.data.state "draft" "waiting_approval"}}
<v:button_group string="Save" split="1" method="_save" size="large" type="primary" next="quot_all">
<v:item string="Save &amp; submit for approval" method="submit_for_approval" next="quot_waiting_approval"/>
</v:button_group>
<v:button string="Approve" method="approve" size="large" type="success" next="quot_approved"/>
{{/ifin}}
{{#ifeq context.data.state "approved"}}
<v:button string="Won" method="do_won" size="large" type="success"/>
<v:button string="Lost" method="do_lost" size="large" type="danger"/>
{{/ifeq}}
{{#ifin context.data.state "won" "lost"}}
<v:button string="Reopen" method="do_reopen" size="large" icon="repeat"/>
{{/ifin}}
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,10 +0,0 @@
<v:sheet onremove="update_amounts">
<field name="product_id" onchange="onchange_product"/>
<field name="description"/>
<field name="qty" onchange="update_amounts"/>
<field name="uom_id" onchange="onchange_uom"/>
<field name="unit_price" onchange="update_amounts"/>
<field name="discount" onchange="update_amounts"/>
<field name="tax_id" onchange="update_amounts"/>
<field name="amount"/>
</v:sheet>

View File

@ -1,15 +0,0 @@
<v:flash/>
{{include "quot_search" context=context}}
<v:button string="Delete" method="_delete" type="danger" size="small"/>
<v:button string="Export" action="quot_export" size="small"/>
<v:button string="Search" action="_search" icon="search" size="small" pull="right"/>
<v:list action="quot_edit">
<field name="number"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="date"/>
<field name="user_id"/>
<field name="amount_total"/>
<field name="payment_terms"/>
<field name="state"/>
</v:list>

View File

@ -1,15 +0,0 @@
<v:page title="Quotations">
<v:toolbar>
<v:button string="New Quotation" icon="plus-sign" action="quot_edit"/>
<v:button string="Import" action="quot_import" icon="download"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="quot_all"/>
<v:tab_item string="Draft" action="quot_draft"/>
<v:tab_item string="Awaiting Approval" action="quot_waiting_approval"/>
<v:tab_item string="Approved" action="quot_approved"/>
<v:tab_item string="Won" action="quot_won"/>
<v:tab_item string="Lost" action="quot_lost"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,9 +0,0 @@
<v:list action="quot_edit" nodata="">
<field name="number"/>
<field name="ref"/>
<field name="date"/>
<field name="user_id"/>
<field name="amount_total"/>
<field name="payment_terms"/>
<field name="state"/>
</v:list>

View File

@ -1,6 +0,0 @@
<v:search>
<field name="number"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="opport_id"/>
</v:search>

View File

@ -1,17 +0,0 @@
<v:modal title="Select quotation">
<div class="modal-body">
<v:flash/>
<v:form>
<v:list>
<field name="number"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="date"/>
</v:list>
</v:form>
</div>
<div class="modal-footer">
<v:button string="Copy" type="primary" method="copy_to_sale_order"/>
<v:button string="Cancel" onclick="cancel_modal()"/>
</div>
</v:modal>

View File

@ -1,10 +0,0 @@
<v:widget title="Pending Quotations">
<v:button string="New Quotation" icon="plus-sign" action="quot_edit"/>
<v:list action="quot_edit" noselect="1">
<field name="number"/>
<field name="partner_id"/>
<field name="date"/>
<field name="amount_total"/>
<field name="state"/>
</v:list>
</v:widget>

View File

@ -1,40 +0,0 @@
<center>
<h2>
Opportunities by Salesperson
</h2>
<h3>
{{context.company_name}}
<br/>
From {{context.data.date_from}} to {{context.data.date_to}}
</h3>
</center>
<table class="table">
<thead>
<tr>
<th>
Salesperson
</th>
{{#each context.data.stages}}
<th>
{{this}}
</th>
{{/each}}
</tr>
</thead>
<tbody>
{{#each context.data.lines}}
<tr>
<td>
<a href="#">
{{user_name}}
</a>
</td>
{{#each amounts}}
<td>
{{this}}
</td>
{{/each}}
</tr>
{{/each}}
</tbody>
</table>

View File

@ -1,23 +0,0 @@
<v:page title="Opportunities By Salesperson">
<v:flash/>
<v:form_body background="1">
<v:row>
<v:field name="date_from" span="2"/>
<v:field name="date_to" span="2"/>
<div class="span2" style="margin-top:10px">
<v:button string="Update" type="primary" icon="refresh" method="show_report"/>
</div>
</v:row>
</v:form_body>
<div id="report">
<v:action name="report_opport_user"/>
</div>
</v:page>
<v:form_actions>
<v:button_group string="Export" type="primary" dropdown="1">
<v:item string="PDF" action="report_opport_user_jasper" action_options="format=pdf"/>
<v:item string="Excel" action="report_opport_user_jasper" action_options="format=xls"/>
<v:item string="Google Docs" action="report_opport_user_jasper" action_options="format=xls&upload_gdocs=1"/>
</v:button_group>
</v:form_actions>

View File

@ -1,67 +0,0 @@
<center>
<h2>
Sales by Customer
</h2>
<h3>
{{context.company_name}}
<br/>
For the month ended {{context.data.date_to}}
</h3>
</center>
<table class="table">
<thead>
<tr>
<th>
Partner
</th>
<th>
{{context.data.month0}}
</th>
<th>
{{context.data.month1}}
</th>
<th>
{{context.data.month2}}
</th>
<th>
{{context.data.month3}}
</th>
<th>
Total
</th>
</tr>
</thead>
<tbody>
{{#each_group context.data.lines "categ_name"}}
<tr>
<td colspan="10">
{{categ_name}}
</td>
</tr>
{{#each group_items}}
<tr>
<td>
<a href="action?name=report_product_sales_page&product_id={{product_id}}&date_from={{date_from}}&date_to={{date_to}}">
{{partner_name}}
</a>
</td>
<td>
{{month0}}
</td>
<td>
{{month1}}
</td>
<td>
{{month2}}
</td>
<td>
{{month3}}
</td>
<td>
{{total}}
</td>
</tr>
{{/each}}
{{/each_group}}
</tbody>
</table>

View File

@ -1,22 +0,0 @@
<v:page title="Sales by Customer">
<v:flash/>
<v:form_body background="1">
<v:row>
<v:field name="date" span="2"/>
<div class="span2" style="margin-top:10px">
<v:button string="Update" type="primary" icon="refresh" method="show_report"/>
</div>
</v:row>
</v:form_body>
<div id="report">
<v:action name="report_sale_cust"/>
</div>
</v:page>
<v:form_actions>
<v:button_group string="Export" type="primary" dropdown="1">
<v:item string="PDF" action="report_sale_cust_jasper" action_options="format=pdf"/>
<v:item string="Excel" action="report_sale_cust_jasper" action_options="format=xls"/>
<v:item string="Google Docs" action="report_sale_cust_jasper" action_options="format=xls&upload_gdocs=1"/>
</v:button_group>
</v:form_actions>

View File

@ -1,91 +0,0 @@
<center>
<h2>
Sales by Product
</h2>
<h3>
{{context.company_name}}
<br/>
From {{context.data.date_from}} to {{context.data.date_to}}
</h3>
</center>
<table class="table">
<thead>
<tr>
<th>
Product
</th>
<th>
Current Unit Price
</th>
<th>
Qty Sold
</th>
<th>
Total
</th>
<th>
Avg. Price
</th>
</tr>
</thead>
<tbody>
{{#each_group context.data.lines "categ_name" sum="amount"}}
<tr>
<td colspan="10">
{{categ_name}}
</td>
</tr>
{{#each group_items}}
<tr>
<td>
<a href="#">
{{product_name}}
</a>
</td>
<td>
{{product_price}}
</td>
<td>
<a href="#">
{{qty}}
</a>
</td>
<td>
<a href="#">
{{currency amount}}
</a>
</td>
<td>
<a href="#">
{{currency avg_price}}
</a>
</td>
</tr>
{{/each}}
<tr>
<td>
Total {{categ_name}}
</td>
<td></td>
<td></td>
<td>{{sum.amount}}</td>
</tr>
{{/each_group}}
</tbody>
<tfoot>
<tr>
<th colspan="2">
Total
</th>
<th>
{{context.data.total_qty}}
</th>
<th>
{{currency context.data.total_amount}}
</th>
<th>
{{currency context.data.total_avg_price}}
</th>
</tr>
</tfoot>
</table>

View File

@ -1,23 +0,0 @@
<v:page title="Sales by Product">
<v:flash/>
<v:form_body background="1">
<v:row>
<v:field name="date_from" span="2"/>
<v:field name="date_to" span="2"/>
<div class="span2" style="margin-top:10px">
<v:button string="Update" type="primary" icon="refresh" method="show_report"/>
</div>
</v:row>
</v:form_body>
<div id="report">
<v:action name="report_sale_prod"/>
</div>
</v:page>
<v:form_actions>
<v:button_group string="Export" type="primary" dropdown="1">
<v:item string="PDF" action="report_sale_product_jasper" action_options="format=pdf"/>
<v:item string="Excel" action="report_sale_product_jasper" action_options="format=xls"/>
<v:item string="Google Docs" action="report_sale_product_jasper" action_options="format=xls&upload_gdocs=1"/>
</v:button_group>
</v:form_actions>

View File

@ -1,60 +0,0 @@
<center>
<h2>
Sales by Salesperson
</h2>
<h3>
{{context.company_name}}
<br/>
For the month ended {{context.data.date_to}}
</h3>
</center>
<table class="table">
<thead>
<tr>
<th>
Salesperson
</th>
<th>
{{context.data.month0}}
</th>
<th>
{{context.data.month1}}
</th>
<th>
{{context.data.month2}}
</th>
<th>
{{context.data.month3}}
</th>
<th>
Total
</th>
</tr>
</thead>
<tbody>
{{#each context.data.lines}}
<tr>
<td>
<a href="#">
{{user_name}}
</a>
</td>
<td>
{{month0}}
</td>
<td>
{{month1}}
</td>
<td>
{{month2}}
</td>
<td>
{{month3}}
</td>
<td>
{{total}}
</td>
</tr>
{{/each}}
</tbody>
</table>

View File

@ -1,22 +0,0 @@
<v:page title="Sales by Salesperson">
<v:flash/>
<v:form_body background="1">
<v:row>
<v:field name="date" span="2"/>
<div class="span2" style="margin-top:10px">
<v:button string="Update" type="primary" icon="refresh" method="show_report"/>
</div>
</v:row>
</v:form_body>
<div id="report">
<v:action name="report_sale_user"/>
</div>
</v:page>
<v:form_actions>
<v:button_group string="Export" type="primary" dropdown="1">
<v:item string="PDF" action="report_sale_user_jasper" action_options="format=pdf"/>
<v:item string="Excel" action="report_sale_user_jasper" action_options="format=xls"/>
<v:item string="Google Docs" action="report_sale_user_jasper" action_options="format=xls&upload_gdocs=1"/>
</v:button_group>
</v:form_actions>

View File

@ -1,38 +0,0 @@
<v:page title="{{#if context.title}}{{context.title}}{{else}}Sales Analysis{{/if}}">
<v:flash/>
<v:form_body background="1">
<v:row>
<v:field name="group_field" span="2"/>
<v:field name="subgroup_field" span="2"/>
<v:field name="view_type" span="2"/>
</v:row>
<v:separator string="Time Frame"/>
<v:row>
<v:field name="date_field" span="2"/>
<v:field name="date_from" span="2"/>
<v:field name="date_to" span="2"/>
</v:row>
<v:field name="hide_details" invisible="1"/>
</v:form_body>
<v:toolbar>
<v:button string="Run Report" type="primary" method="run_report"/>
{{#if context.data.hide_details}}
<v:button string="Show Details" method="show_details"/>
{{else}}
<v:button string="Hide Details" method="hide_details"/>
{{/if}}
<v:button_group string="Export" dropdown="1">
<v:item string="CSV"/>
</v:button_group>
</v:toolbar>
<hr/>
<v:field name="domain_str" invisible="1"/>
{{#if context.data.domain_str}}
<div style="background-color:#eee;padding:10px;margin-bottom:5px">
Filtered By:
<div style="white-space:pre">{{{context.data.domain_str}}}</div>
</div>
{{/if}}
<v:field name="report_action" invisible="1"/>
{{view "action" options=context.data.report_action context=context}}
</v:page>

View File

@ -1,17 +0,0 @@
<v:page title="{{context.company_name}}">
<div class="row">
<div class="span6">
<v:action name="exp_revenue_widget"/>
<v:action name="opport_stage_widget"/>
<v:action name="sale_month_widget"/>
<v:action name="sale_prod_categ_widget"/>
</div>
<div class="span6">
<v:action name="opport_widget"/>
<v:action name="activ_widget"/>
<v:action name="quot_widget"/>
<v:action name="sale_widget"/>
</div>
</div>
</v:page>
<v:feedback/>

View File

@ -1,42 +0,0 @@
<v:bread>
<v:bread_item string="Contacts" action="sale_contact_list"/>
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Contact">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="name"/>
<v:separator string="Contact Person"/>
<v:row>
<v:field name="first_name" span="3"/>
<v:field name="last_name" span="3"/>
<v:field name="email" span="3"/>
</v:row>
<v:separator string="Contact Details"/>
<v:row>
<div class="span3">
<v:field name="street"/>
<v:field name="street2"/>
<v:field name="city"/>
<v:field name="state"/>
<v:field name="zip"/>
<v:field name="country_id"/>
</div>
<div class="span3 offset1">
<v:field name="phone"/>
<v:field name="fax"/>
<v:field name="mobile"/>
</div>
</v:row>
<v:separator string="Currency"/>
<v:field name="currency_id"/>
<v:field name="uuid" invisible="1"/>
<v:separator string="Sales"/>
<v:field name="sale_price_list_id"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" type="primary" size="large" method="_save" next="sale_contact_list"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,9 +0,0 @@
<v:flash/>
{{#if context.data}}
<v:button string="Delete" method="_delete" type="danger" size="small"/>
{{/if}}
<v:list action="sale_contact_edit">
<field name="name"/>
<field name="email"/>
<field name="phone"/>
</v:list>

View File

@ -1,13 +0,0 @@
<v:page title="Contacts">
<v:toolbar>
<v:button string="Add Contact" action="sale_contact_edit" icon="plus-sign"/>
<v:button string="Add Employee" icon="plus-sign"/>
<v:button string="Import" action="contact_import" icon="download"/>
<v:button string="Export" action="contact_export" icon="upload"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="sale_contact_list"/>
<v:tab_item string="Customers" action="sale_contact_customer"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,3 +0,0 @@
<v:widget title="Sales per customer">
<v:chart width="550" height="150" type="pie"/>
</v:widget>

View File

@ -1,87 +0,0 @@
<v:bread>
<v:bread_item string="Sales Orders" action="sale_all"/>
{{#ifeq context.data.state "draft"}}
<v:bread_item string="Draft" action="sale_draft"/>
{{/ifeq}}
{{#ifeq context.data.state "confirmed"}}
<v:bread_item string="Confirmed" action="sale_confirmed"/>
{{/ifeq}}
{{#ifeq context.data.state "done"}}
<v:bread_item string="Completed" action="sale_done"/>
{{/ifeq}}
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Sales Order">
<v:flash/>
<v:form border="1" {{#ifin context.data.state "confirmed" "done" "voided"}}readonly="1"{{/ifin}}>
<v:form_head>
<strong>{{field_value "state" context=context}}</strong>
<div class="btn-toolbar" style="float:right;margin:0">
{{#if context.data.id}}
<v:button string="Print PDF" icon="print" action="report_sale_form_doc" action_options="order_id={{context.data.id}}"/>
{{/if}}
<v:button_group string="Options" dropdown="1" align="right">
{{#ifeq context.data.state "draft"}}
<v:item string="Copy From Quotation" action="quot_to_sale"/>
{{/ifeq}}
{{#if context.data.id}}
{{#ifeq context.data.state "confirmed"}}
<v:item string="Copy To Goods Issue" method="copy_to_picking"/>
<v:item string="Copy To Customer Invoice" method="copy_to_invoice"/>
{{/ifeq}}
<v:item string="Copy" method="copy"/>
{{#ifin context.data.state "confirmed" "done"}}
<v:divider/>
<v:item string="Void" method="void" confirm="Are you sure you want to void this sales order?"/>
{{/ifin}}
<v:divider/>
<v:item string="View Activities" action="activ_all" action_options="sale_id={{context.data.id}}"/>
<v:item string="View Goods Issues" action="pick_out_all" action_options='search_domain=[["ref","=","{{context.data.number}}"]]'/>
<v:item string="View Customer Invoices" action="receivable_all" action_options='search_domain=[["ref","=","{{context.data.number}}"]]'/>
{{/if}}
</v:button_group>
</div>
</v:form_head>
<v:form_body {{#unless context.readonly}}background="1"{{/unless}}>
<v:row>
<div class="span8">
<v:row>
<v:field name="partner_id" span="2" create="1"/>
<v:field name="date" span="2"/>
<v:field name="number" span="2"/>
<v:field name="ref" span="2"/>
</v:row>
<v:row>
<v:field name="currency_id" span="2"/>
<v:field name="tax_type" span="2" onchange="update_amounts"/>
<v:field name="user_id" span="2"/>
<v:field name="quot_id" span="2"/>
</v:row>
</div>
<div class="span2" style="padding-top:20px;padding-left:10px">
<v:field name="is_delivered"/>
<v:field name="is_paid"/>
</div>
</v:row>
<v:field name="lines" template="sale_order_line_sheet" count="5" nolabel="1"/>
<div class="offset8 form-horizontal">
<v:field name="amount_subtotal"/>
<v:field name="amount_tax"/>
<v:field name="amount_total"/>
</div>
<v:field name="other_info" width="400" height="50"/>
<v:field name="state" invisible="1"/>
<v:field name="uuid" invisible="1"/>
</v:form_body>
{{#ifin context.data.state "draft"}}
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="sale_all"/>
<v:button string="Confirm" method="confirm" size="large" type="success"/>
</v:form_foot>
{{/ifin}}
</v:form>
{{#if context.data.id}}
<v:field name="invoices" template="sale_invoice_rlist" rlist="1"/>
<v:field name="pickings" template="sale_pick_rlist" rlist="1"/>
{{/if}}
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,10 +0,0 @@
<v:list action="view_invoice" nodata="" noselect="1">
<field name="number"/>
<field name="ref"/>
<field name="type"/>
<field name="date"/>
<field name="due_date"/>
<field name="amount_paid"/>
<field name="amount_due"/>
<field name="state"/>
</v:list>

View File

@ -1,11 +0,0 @@
<div class="nf-header">
<div class="container">
{{include "main_header" context=context}}
{{include "sale_menu" context=context}}
</div>
</div>
<div id="content" class="container">
{{{context.content}}}
<footer class="footer">
</footer>
</div>

View File

@ -1,13 +0,0 @@
<v:flash/>
<v:list action="sale_edit">
<action_options>active_id={{context.data.order_id.0.}}</action_options>
<field name="order_id"/>
<field name="partner_id"/>
<field name="date"/>
<field name="product_id"/>
<field name="description"/>
<field name="qty"/>
<field name="uom_id"/>
<field name="unit_price"/>
<field name="amount"/>
</v:list>

View File

@ -1,18 +0,0 @@
{{#if context.data}}
<v:toolbar>
<v:button string="Copy To Goods Issue" method="copy_to_picking" size="small"/>
</v:toolbar>
{{/if}}
<v:flash/>
<v:list action="sale_edit">
<action_options>active_id={{context.data.order_id.0.}}</action_options>
<field name="order_id"/>
<field name="partner_id"/>
<field name="date"/>
<field name="product_id"/>
<field name="qty"/>
<field name="uom_id"/>
<field name="qty_delivered"/>
<field name="qty_to_deliver"/>
<field name="qty_pending"/>
</v:list>

View File

@ -1,18 +0,0 @@
<v:flash/>
{{#if context.data}}
<v:toolbar>
<v:button string="Copy To Invoice" method="copy_to_invoice" size="small"/>
</v:toolbar>
{{/if}}
<v:list action="sale_edit">
<action_options>active_id={{context.data.order_id.0.}}</action_options>
<field name="order_id"/>
<field name="partner_id"/>
<field name="date"/>
<field name="product_id"/>
<field name="description"/>
<field name="amount"/>
<field name="amount_invoiced"/>
<field name="amount_to_invoice"/>
<field name="amount_paid"/>
</v:list>

View File

@ -1,8 +0,0 @@
<v:page title="Sales Order Lines">
<v:tabs>
<v:tab_item string="All" action="sale_line_all"/>
<v:tab_item string="To Deliver" action="sale_line_to_deliver"/>
<v:tab_item string="To Invoice" action="sale_line_to_invoice"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,15 +0,0 @@
<v:flash/>
{{include "sale_search" context=context}}
<v:button string="Delete" method="_delete" type="danger" size="small"/>
<v:button string="Export" action="sale_export" size="small"/>
<v:button string="Search" action="_search" icon="search" size="small" pull="right"/>
<v:list action="sale_edit">
<field name="number"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="date"/>
<field name="amount_total"/>
<field name="is_delivered"/>
<field name="is_paid"/>
<field name="state"/>
</v:list>

View File

@ -1,3 +0,0 @@
<v:widget title="Sales per month">
<v:chart width="550" height="150" type="bar"/>
</v:widget>

View File

@ -1,9 +0,0 @@
<v:sheet onremove="update_amounts">
<field name="product_id" onchange="onchange_product"/>
<field name="description"/>
<field name="qty" onchange="update_amounts"/>
<field name="uom_id" onchange="onchange_uom"/>
<field name="unit_price" onchange="update_amounts"/>
<field name="tax_id" onchange="update_amounts"/>
<field name="amount"/>
</v:sheet>

View File

@ -1,13 +0,0 @@
<v:page title="Sales Orders">
<v:toolbar>
<v:button string="New Sales Order" icon="plus-sign" action="sale_edit"/>
<v:button string="Import" action="sale_import" icon="download"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="sale_all"/>
<v:tab_item string="Draft" action="sale_draft"/>
<v:tab_item string="Confirmed" action="sale_confirmed"/>
<v:tab_item string="Completed" action="sale_done"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,6 +0,0 @@
<v:list action="view_picking" nodata="" noselect="1">
<field name="number"/>
<field name="ref"/>
<field name="date"/>
<field name="state"/>
</v:list>

View File

@ -1,3 +0,0 @@
<v:widget title="Sales per product category">
<v:chart width="550" height="150" type="pie"/>
</v:widget>

View File

@ -1,38 +0,0 @@
<v:bread>
<v:bread_item string="Products" action="sale_product_list"/>
</v:bread>
<v:page title="{{context.title}}">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="name"/>
<v:separator string="Optional details"/>
<v:field name="description"/>
<v:field name="uom_id"/>
<v:field name="tags" size="xlarge"/>
<v:row>
<v:field name="purchase_price" span="2"/>
<v:field name="purchase_account_id" span="2"/>
<v:field name="purchase_tax_id" span="2"/>
</v:row>
<v:row>
<v:field name="sale_price" span="2"/>
<v:field name="sale_account_id" span="2"/>
<v:field name="sale_tax_id" span="2"/>
</v:row>
<v:row>
<v:field name="cost_method" span="3"/>
<v:field name="cost_price" span="3"/>
</v:row>
<v:row>
<v:field name="stock_in_account_id" span="3"/>
<v:field name="stock_out_account_id" span="3"/>
</v:row>
<v:field name="image"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" type="primary" size="large" method="_save" next="sale_product_list"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,11 +0,0 @@
<v:flash/>
{{#if context.data}}
<v:button string="Delete" method="_delete" type="danger" size="small"/>
{{/if}}
<v:list action="sale_product_edit">
<field name="name"/>
<field name="description"/>
<field name="sale_price"/>
<field name="sale_account_id"/>
<field name="sale_tax_id"/>
</v:list>

View File

@ -1,11 +0,0 @@
<v:page title="Products">
<v:toolbar>
<v:button string="Add Item" icon="plus-sign" action="sale_product_edit"/>
<v:button string="Import" action="product_import" icon="download"/>
<v:button string="Export" action="product_export" icon="upload"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="sale_product_list"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,12 +0,0 @@
<v:report_list>
<field name="user_id"/>
<field name="order_id"/>
<field name="partner_id"/>
<field name="date"/>
<field name="product_id"/>
<field name="description"/>
<field name="qty"/>
<field name="uom_id"/>
<field name="unit_price"/>
<field name="amount" group_operator="sum"/>
</v:report_list>

View File

@ -1,6 +0,0 @@
<v:search>
<field name="number"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="date"/>
</v:search>

View File

@ -1,21 +0,0 @@
<v:bread>
<v:bread_item string="Sales Targets" action="sale_target_all"/>
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Sales Target">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:field name="date_from"/>
<v:field name="date_to"/>
<v:field name="user_id"/>
<v:field name="prod_categ_id"/>
<v:field name="amount_target"/>
<v:field name="qty_target"/>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary" next="sale_target_all"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,14 +0,0 @@
<v:flash/>
<v:button string="Delete" method="_delete" type="danger" size="small"/>
<v:list action="sale_target_edit">
<field name="date_from"/>
<field name="date_to"/>
<field name="user_id"/>
<field name="prod_categ_id"/>
<field name="amount_target"/>
<field name="amount_actual"/>
<field name="amount_expected"/>
<field name="qty_target"/>
<field name="qty_actual"/>
<field name="qty_expected"/>
</v:list>

View File

@ -1,9 +0,0 @@
<v:page title="Sales Targets">
<v:toolbar>
<v:button string="New Sales Target" icon="plus-sign" action="sale_target_edit"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="sale_target_all"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,16 +0,0 @@
<v:modal title="Select sales order">
<div class="modal-body">
<v:flash/>
<v:list>
<field name="number"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="date"/>
<field name="state"/>
</v:list>
</div>
<div class="modal-footer">
<v:button string="Copy" type="primary" method="copy_to_invoice"/>
<v:button string="Cancel" action="_close"/>
</div>
</v:modal>

View File

@ -1,17 +0,0 @@
<v:modal title="Copy to goods shipment">
<div class="modal-body">
<v:flash/>
Select sale order:
<v:list>
<field name="number"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="date"/>
<field name="state"/>
</v:list>
</div>
<div class="modal-footer btn-toolbar">
<v:button string="Select" method="copy_to_picking" type="primary"/>
<v:button string="Cancel" action="_close"/>
</div>
</v:modal>

View File

@ -1,10 +0,0 @@
<v:widget title="Pending Sales Orders">
<v:button string="New Sales Order" icon="plus-sign" action="sale_edit"/>
<v:list action="sale_edit" noselect="1">
<field name="number"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="date"/>
<field name="amount_total"/>
</v:list>
</v:widget>

View File

@ -1,19 +0,0 @@
<v:bread>
<v:bread_item string="Sales Stages" action="stage_all"/>
</v:bread>
<v:page title="{{#if context.data.id}}Edit{{else}}New{{/if}} Sales Stage">
<v:flash/>
<v:form border="1">
<v:form_body background="1">
<v:row>
<v:field name="name" span="2"/>
<v:field name="sequence" span="2"/>
</v:row>
<v:field name="uuid" invisible="1"/>
</v:form_body>
<v:form_foot>
<v:button string="Save" method="_save" size="large" type="primary"/>
</v:form_foot>
</v:form>
<v:history uuid="{{context.data.uuid}}"/>
</v:page>

View File

@ -1,7 +0,0 @@
<v:flash/>
<v:button string="Delete" method="_delete" type="danger" size="small"/>
<v:button string="Export" action="stage_export" size="small"/>
<v:list action="stage_edit">
<field name="name"/>
<field name="sequence"/>
</v:list>

View File

@ -1,10 +0,0 @@
<v:page title="Sale Stages">
<v:toolbar>
<v:button string="New Sale Stage" icon="plus-sign" action="stage_edit"/>
<v:button string="Import" action="stage_import" icon="download"/>
</v:toolbar>
<v:tabs>
<v:tab_item string="All" action="stage_all"/>
</v:tabs>
{{{context.content}}}
</v:page>

View File

@ -1,123 +0,0 @@
<html>
<head>
<link href="/static/css/bootstrap.css" rel="stylesheet" type="text/css"/>
<script src="/static/js/jquery-1.10.2.min.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
{{#if logo}}
<img src="{{file_path logo}}" style="max-height:50px"/>
{{/if}}
<div class="page-header" style="margin-top:20px">
<h2>
Quotation #{{number}}
</h2>
</div>
<form method="POST">
<div class="form-group">
<label>Contact</label>
<p class="form-control-static">
{{partner_name}}
</p>
</div>
{{#if exp_date}}
<div class="form-group">
<label>Valid Until</label>
<p class="form-control-static">
{{exp_date}}
</p>
</div>
{{/if}}
<div class="form-group">
<label>Document File</label>
<p class="form-control-static">
<a href="{{file_path file}}" target="_blank">{{filename file}}</a>
</p>
</div>
<div class="form-group">
<label>Prepared By</label>
<p class="form-control-static">
{{user_name}}
</p>
</div>
{{#ifeq state "approved"}}
<div class="form-group">
<button class="btn btn-success approve" name="submit" value="accept"><span class="glyphicon glyphicon-ok"></span> Accept</button>
<button class="btn btn-danger reject" name="submit" value="reject"><span class="glyphicon glyphicon-remove"></span> Reject</button>
</div>
{{else}}
<div class="form-group">
<label>Status</label>
<p class="form-control-static">
{{#ifeq state "draft"}}
Draft
{{/ifeq}}
{{#ifeq state "waiting_approval"}}
Waiting Approval
{{/ifeq}}
{{#ifeq state "won"}}
Won
{{/ifeq}}
{{#ifeq state "lost"}}
Lost
{{/ifeq}}
</p>
</div>
{{/ifeq}}
<div style="border-bottom:1px solid #ccc;margin-bottom:10px">
{{num_comments}} Comments
</div>
{{#each comments}}
<div style="border-bottom:1px solid #ccc;margin-bottom:10px">
<p style="color:#666"><i>Posted on {{date}}</i></p>
<p>{{body}}</p>
</div>
{{/each}}
<div class="form-group">
<button class="btn add-comment"><span class="glyphicon glyphicon-plus"></span> Add Comment</button>
</div>
<div class="new-comment" style="display:none">
<div class="form-group">
<label>Message</label>
<textarea name="message" class="form-control" style="width:500px"></textarea>
</div>
<div class="form-group">
<button class="btn btn-primary" name="submit" value="send"><span class="glyphicon glyphicon-envelope"></span> Send</button>
<button class="btn cancel-comment">Cancel</button>
</div>
</div>
</form>
</div>
<script>
$(function() {
$(".add-comment").on("click",function(e) {
e.preventDefault();
$(".add-comment").hide();
$(".new-comment").show();
});
$(".cancel-comment").on("click",function(e) {
e.preventDefault();
$(".new-comment").hide();
$(".add-comment").show();
});
$(".approve").on("click",function(e) {
var res=confirm("Are you sure you want to accept this offer?");
if (!res) {
e.preventDefault();
return;
}
});
$(".reject").on("click",function(e) {
var res=confirm("Are you sure you want to reject this offer?");
if (!res) {
e.preventDefault();
return;
}
});
});
</script>
</body>
</html>