Atik Agewan(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-statusbar-add-widget-aag into
lp:~openerp-dev/openobject-addons/trunk-statusbar.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-statusbar-add-widget-aag/+merge/75487
Hello,
Sale,Purchase,Stock,Crm,Mrp,Project,Hr_expense,Hr_holidays,Hr_recruitment,Project_issue,Account,Project_long_term
: Add widget=statusbar in state fields-in view File.And in some File Rename
state "Draft" to "New" as per specification.
Thanks
Atik
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-statusbar-add-widget-aag/+merge/75487
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-statusbar.
=== modified file 'account/account_bank_statement.py'
--- account/account_bank_statement.py 2011-07-01 23:41:24 +0000
+++ account/account_bank_statement.py 2011-09-15 07:09:46 +0000
@@ -144,7 +144,7 @@
states={'confirm':[('readonly', True)]}),
'move_line_ids': fields.one2many('account.move.line', 'statement_id',
'Entry lines', states={'confirm':[('readonly',True)]}),
- 'state': fields.selection([('draft', 'Draft'),('confirm', 'Confirmed')],
+ 'state': fields.selection([('draft', 'New'),('confirm', 'Confirmed')],
'State', required=True,
states={'confirm': [('readonly', True)]}, readonly="1",
help='When new statement is created the state will be \'Draft\'. \
=== modified file 'account/account_invoice_view.xml'
--- account/account_invoice_view.xml 2011-09-11 13:50:25 +0000
+++ account/account_invoice_view.xml 2011-09-15 07:09:46 +0000
@@ -205,7 +205,7 @@
<field name="amount_tax"/>
<field name="reconciled"/>
<field name="amount_total"/>
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, open, paid" statusbar_colors="{'proforma':'blue','proforma2':'blue'}"/>
<field name="residual"/>
<group col="6" colspan="4">
<button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" icon="gtk-cancel"/>
@@ -300,7 +300,7 @@
<field name="amount_tax"/>
<field name="reconciled"/>
<field name="amount_total"/>
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, open, paid" statusbar_colors="{'proforma':'blue','proforma2':'blue'}"/>
<field name="residual"/>
<group col="8" colspan="4" groups="base.group_user">
<button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" icon="gtk-cancel"/>
=== modified file 'account/account_view.xml'
--- account/account_view.xml 2011-09-12 14:49:25 +0000
+++ account/account_view.xml 2011-09-15 07:09:46 +0000
@@ -596,7 +596,7 @@
</page>
</notebook>
<group col="8" colspan="4">
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, confirm"/>
<field name="balance_end"/>
<button name="button_cancel" states="confirm" string="Cancel" type="object" icon="gtk-cancel"/>
<button name="button_dummy" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
@@ -2642,7 +2642,7 @@
</group>
</group>
<group col="8" colspan="4">
- <field name="state" colspan="4"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, confirm" colspan="4"/>
<button name="button_cancel" states="confirm,open" string="Cancel" icon="terp-gtk-stop" type="object" groups="base.group_extended"/>
<button name="button_confirm_cash" states="open" string="Close CashBox" icon="terp-dialog-close" type="object"/>
<button name="button_open" states="draft" string="Open CashBox" icon="gtk-go-forward" type="object"/>
=== modified file 'analytic/analytic.py'
--- analytic/analytic.py 2011-07-01 23:41:24 +0000
+++ analytic/analytic.py 2011-09-15 07:09:46 +0000
@@ -168,7 +168,7 @@
'date_start': fields.date('Date Start'),
'date': fields.date('Date End', select=True),
'company_id': fields.many2one('res.company', 'Company', required=False), #not required because we want to allow different companies to use the same chart of account, except for leaf accounts.
- 'state': fields.selection([('draft','Draft'),('open','Open'), ('pending','Pending'),('cancelled', 'Cancelled'),('close','Closed'),('template', 'Template')], 'State', required=True,
+ 'state': fields.selection([('draft','New'),('open','Started'), ('pending','Pending'),('cancelled', 'Cancelled'),('close','Closed'),('template', 'Template')], 'State', required=True,
help='* When an account is created its in \'Draft\' state.\
\n* If any associated partner is there, it can be in \'Open\' state.\
\n* If any pending balance is there it can be in \'Pending\'. \
=== modified file 'crm/crm.py'
--- crm/crm.py 2011-09-13 13:28:43 +0000
+++ crm/crm.py 2011-09-15 07:09:46 +0000
@@ -29,7 +29,7 @@
MAX_LEVEL = 15
AVAILABLE_STATES = [
- ('draft', 'Draft'),
+ ('draft', 'New'),
('open', 'Open'),
('cancel', 'Cancelled'),
('done', 'Closed'),
=== modified file 'crm/crm_lead_view.xml'
--- crm/crm_lead_view.xml 2011-09-13 17:29:22 +0000
+++ crm/crm_lead_view.xml 2011-09-15 07:09:46 +0000
@@ -120,7 +120,7 @@
<field name="description" nolabel="1" colspan="4"/>
<separator colspan="4"/>
<group col="8" colspan="4">
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, open, done" statusbar_colors="{'pending':'blue'}"/>
<button name="case_cancel" string="Cancel"
states="draft,open,pending" type="object"
icon="gtk-cancel" />
@@ -516,7 +516,7 @@
<separator colspan="4"/>
<group col="10" colspan="4">
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, open, done" statusbar_colors="{'pending':'blue'}"/>
<button name="case_cancel" string="Cancel" states="draft" type="object" icon="gtk-cancel" />
<button name="case_mark_lost" string="Mark Lost" states="open,pending" type="object" icon="gtk-cancel" />
<button name="case_reset" string="Reset to Draft" states="done,cancel" type="object" icon="gtk-convert" />
=== modified file 'crm/crm_phonecall_view.xml'
--- crm/crm_phonecall_view.xml 2011-08-10 14:57:07 +0000
+++ crm/crm_phonecall_view.xml 2011-09-15 07:09:46 +0000
@@ -107,7 +107,7 @@
<field name="description" nolabel="1" colspan="4" />
<separator colspan="4" />
<group col="8" colspan="4">
- <field name="state" select="1" />
+ <field name="state" widget="statusbar" statusbar_visible=" open, done" statusbar_colors="{'pending':'red'}" select="1"/>
<button name="case_cancel" string="Cancel"
states="open,pending" type="object"
icon="gtk-cancel" />
=== modified file 'hr_expense/hr_expense.py'
--- hr_expense/hr_expense.py 2011-09-13 13:45:51 +0000
+++ hr_expense/hr_expense.py 2011-09-15 07:09:46 +0000
@@ -77,7 +77,7 @@
'department_id':fields.many2one('hr.department','Department'),
'company_id': fields.many2one('res.company', 'Company', required=True),
'state': fields.selection([
- ('draft', 'Draft'),
+ ('draft', 'New'),
('confirm', 'Waiting Approval'),
('accepted', 'Approved'),
('invoiced', 'Invoiced'),
=== modified file 'hr_expense/hr_expense_view.xml'
--- hr_expense/hr_expense_view.xml 2011-09-11 13:50:25 +0000
+++ hr_expense/hr_expense_view.xml 2011-09-15 07:09:46 +0000
@@ -99,11 +99,11 @@
</group>
</form>
</field>
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, confirm, accepted, invoiced" statusbar_colors="{'confirm':'blue','cancelled':'red'}"/>
<group col="6" colspan="2">
<button name="draft" states="confirm,cancelled" string="Set to Draft" type="workflow" icon="gtk-convert" groups="base.group_hr_user"/>
<button name="refuse" states="confirm,accepted" string="Refuse" type="workflow" icon="gtk-no" groups="base.group_hr_user" />
- <button name="confirm" states="draft" string="Confirm" type="workflow" icon="gtk-apply"/>
+ <button name="confirm" states="draft" string="Submit to Manager" type="workflow" icon="gtk-apply"/>
<button name="invoice" states="accepted" string="Invoice" type="object" icon="gtk-go-forward" groups="base.group_hr_user"/>
<button name="validate" states="confirm" string="Approve" type="workflow" icon="gtk-go-forward" groups="base.group_hr_user"/>
</group>
=== modified file 'hr_holidays/hr_holidays.py'
--- hr_holidays/hr_holidays.py 2011-07-08 09:22:32 +0000
+++ hr_holidays/hr_holidays.py 2011-09-15 07:09:46 +0000
@@ -111,7 +111,7 @@
_columns = {
'name': fields.char('Description', required=True, size=64),
- 'state': fields.selection([('draft', 'Draft'), ('confirm', 'Waiting Approval'), ('refuse', 'Refused'),
+ 'state': fields.selection([('draft', 'New'), ('confirm', 'Waiting Approval'), ('refuse', 'Refused'),
('validate1', 'Waiting Second Approval'), ('validate', 'Approved'), ('cancel', 'Cancelled')],
'State', readonly=True, help='The state is set to \'Draft\', when a holiday request is created.\
\nThe state is \'Waiting Approval\', when holiday request is confirmed by user.\
=== modified file 'hr_holidays/hr_holidays_view.xml'
--- hr_holidays/hr_holidays_view.xml 2011-09-11 13:50:25 +0000
+++ hr_holidays/hr_holidays_view.xml 2011-09-15 07:09:46 +0000
@@ -83,7 +83,7 @@
<separator string="Reasons" colspan="4"/>
<field name="notes" nolabel="1" colspan="4"/>
<newline/>
- <field name="state" colspan="2"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, confirm, validate" statusbar_colors="{'confirm':'blue','validate1':'blue','refuse':'red'}" colspan="2"/>
<group colspan="2" col="6">
<button string="Refuse" name="refuse" states="confirm,validate1" type="workflow" icon="gtk-no" groups="base.group_hr_user,base.group_hr_manager"/>
<button string="Confirm" name="confirm" states="draft" type="workflow" icon="gtk-yes"/>
@@ -125,7 +125,7 @@
<separator string="Reasons" colspan="4"/>
<field name="notes" nolabel="1" colspan="4"/>
<newline/>
- <field name="state" colspan="2"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, confirm, validate" statusbar_colors="{'confirm':'blue','validate1':'blue','refuse':'red'}" colspan="2"/>
<group colspan="2" col="6">
<button string="Refuse" name="refuse" states="confirm" type="workflow" icon="gtk-no" groups="base.group_hr_user"/>
<button string="Confirm" name="confirm" states="draft" type="workflow" icon="gtk-yes"/>
=== modified file 'hr_recruitment/hr_recruitment_view.xml'
--- hr_recruitment/hr_recruitment_view.xml 2011-09-09 14:18:44 +0000
+++ hr_recruitment/hr_recruitment_view.xml 2011-09-15 07:09:46 +0000
@@ -132,7 +132,7 @@
</group>
<separator colspan="4" string="Status"/>
<group col="8" colspan="4">
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, open, done" statusbar_colors="{'pending':'blue'}"/>
<button name="case_cancel" string="Refuse" states="draft,open,pending" type="object" icon="gtk-cancel"/>
<button name="case_open" string="In Progress" states="draft,pending" type="object" icon="gtk-go-forward"/>
<button name="case_pending" string="Pending" states="open" type="object" icon="gtk-media-pause"/>
=== modified file 'mrp/mrp.py'
--- mrp/mrp.py 2011-07-01 23:41:24 +0000
+++ mrp/mrp.py 2011-09-15 07:09:46 +0000
@@ -475,7 +475,7 @@
'move_created_ids2': fields.one2many('stock.move', 'production_id', 'Moves Created', domain=[('state','in', ('done', 'cancel'))]),
'product_lines': fields.one2many('mrp.production.product.line', 'production_id', 'Scheduled goods'),
'workcenter_lines': fields.one2many('mrp.production.workcenter.line', 'production_id', 'Work Centers Utilisation'),
- 'state': fields.selection([('draft','Draft'),('picking_except', 'Picking Exception'),('confirmed','Waiting Goods'),('ready','Ready to Produce'),('in_production','In Production'),('cancel','Cancelled'),('done','Done')],'State', readonly=True,
+ 'state': fields.selection([('draft','New'),('picking_except', 'Picking Exception'),('confirmed','Waiting Goods'),('ready','Ready to Produce'),('in_production','Production Started'),('cancel','Cancelled'),('done','Done')],'State', readonly=True,
help='When the production order is created the state is set to \'Draft\'.\n If the order is confirmed the state is set to \'Waiting Goods\'.\n If any exceptions are there, the state is set to \'Picking Exception\'.\
\nIf the stock is available then the state is set to \'Ready to Produce\'.\n When the production gets started then the state is set to \'In Production\'.\n When the production is over, the state is set to \'Done\'.'),
'hour_total': fields.function(_production_calc, type='float', string='Total Hours', multi='workorder', store=True),
=== modified file 'mrp/mrp_view.xml'
--- mrp/mrp_view.xml 2011-09-11 13:50:25 +0000
+++ mrp/mrp_view.xml 2011-09-15 07:09:46 +0000
@@ -700,7 +700,7 @@
</field>
<separator colspan="4"/>
<group col="9" colspan="4">
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, ready, in_production, done" statusbar_colors="{'picking_except':'red','confirmed':'blue'}"/>
<button name="button_cancel" states="draft,ready,in_production,picking_except" string="Cancel" icon="gtk-stop"/>
<button name="action_cancel" type="object" states="confirmed" string="Cancel" icon="gtk-stop"/>
<button name="button_confirm" states="draft" string="Confirm Production" icon="gtk-apply"/>
=== modified file 'project/project.py'
--- project/project.py 2011-09-07 22:48:29 +0000
+++ project/project.py 2011-09-15 07:09:46 +0000
@@ -430,7 +430,7 @@
'priority': fields.selection([('4','Very Low'), ('3','Low'), ('2','Medium'), ('1','Important'), ('0','Very important')], 'Priority'),
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of tasks."),
'type_id': fields.many2one('project.task.type', 'Stage'),
- 'state': fields.selection([('draft', 'Draft'),('open', 'In Progress'),('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', readonly=True, required=True,
+ 'state': fields.selection([('draft', 'New'),('open', 'In Progress'),('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', readonly=True, required=True,
help='If the task is created the state is \'Draft\'.\n If the task is started, the state becomes \'In Progress\'.\n If review is needed the task is in \'Pending\' state.\
\n If the task is over, the states is set to \'Done\'.'),
'create_date': fields.datetime('Create Date', readonly=True,select=True),
=== modified file 'project/project_view.xml'
--- project/project_view.xml 2011-09-13 16:29:07 +0000
+++ project/project_view.xml 2011-09-15 07:09:46 +0000
@@ -45,7 +45,7 @@
<newline/>
<separator colspan="4"/>
<group col="9" colspan="8">
- <field name="state" select="1" readonly="1"/>
+ <field name="state" widget="statusbar" statusbar_visible=" open, close" statusbar_colors="{'pending':'blue'}" select="1" readonly="1"/>
<button name="set_cancel" string="Cancel" type="object" states="open,pending" icon="gtk-cancel"/>
<button name="set_template" string="Set as Template" type="object" states="open" icon="gtk-convert" groups="base.group_extended"/>
<button name="set_open" string="Reactivate Project" type="object" states="pending,cancelled,close" icon="gtk-ok"/>
@@ -257,7 +257,7 @@
</field>
<newline/>
<group col="11" colspan="4">
- <field name="state" select="1"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, open, done" statusbar_colors="{'pending':'blue'}" select="1"/>
<button name="do_cancel" states="draft,open,pending" string="Cancel" type="object" icon="gtk-cancel"/>
<button name="do_draft" states="open" string="Draft" type="object" icon="gtk-indent"/>
<button name="do_open" states="pending,draft" string="Start Task" type="object" icon="gtk-execute"/>
=== modified file 'project_issue/project_issue.py'
--- project_issue/project_issue.py 2011-09-14 09:39:37 +0000
+++ project_issue/project_issue.py 2011-09-15 07:09:46 +0000
@@ -196,7 +196,7 @@
domain="[('partner_id','=',partner_id)]"),
'company_id': fields.many2one('res.company', 'Company'),
'description': fields.text('Description'),
- 'state': fields.selection([('draft', 'New'), ('open', 'To Do'), ('cancel', 'Cancelled'), ('done', 'Closed'),('pending', 'Pending'), ], 'State', size=16, readonly=True,
+ 'state': fields.selection([('draft', 'New'), ('open', 'To Solve'), ('cancel', 'Cancelled'), ('done', 'Closed'),('pending', 'Pending'), ], 'State', size=16, readonly=True,
help='The state is set to \'Draft\', when a case is created.\
\nIf the case is in progress the state is set to \'Open\'.\
\nWhen the case is over, the state is set to \'Done\'.\
=== modified file 'project_issue/project_issue_view.xml'
--- project_issue/project_issue_view.xml 2011-09-14 09:39:37 +0000
+++ project_issue/project_issue_view.xml 2011-09-15 07:09:46 +0000
@@ -83,9 +83,9 @@
<field name="description" nolabel="1" colspan="4"/>
<separator colspan="4"/>
<group col="8" colspan="4">
- <field name="state" />
+ <field name="state" widget="statusbar" statusbar_visible=" draft, open, done" statusbar_colors="{'pending':'blue'}"/>
<button name="case_cancel" string="Cancel" states="draft,open,pending" type="object" icon="gtk-cancel"/>
- <button name="case_open" string="Open" states="draft,pending" type="object" icon="gtk-go-forward"/>
+ <button name="case_open" string="Solve" states="draft,pending" type="object" icon="gtk-go-forward"/>
<button name="case_close" string="Close" states="open,draft,pending" type="object" icon="terp-dialog-close"/>
<button name="case_pending" string="Pending" states="draft,open" type="object" icon="gtk-media-pause"/>
<button name="case_escalate" string="Escalate" states="open,draft,pending" type="object" icon="gtk-go-up"/>
=== modified file 'project_long_term/project_long_term.py'
--- project_long_term/project_long_term.py 2011-07-01 23:41:24 +0000
+++ project_long_term/project_long_term.py 2011-09-15 07:09:46 +0000
@@ -117,7 +117,7 @@
'task_ids': fields.one2many('project.task', 'phase_id', "Project Tasks", states={'done':[('readonly',True)], 'cancelled':[('readonly',True)]}),
'resource_ids': fields.one2many('project.resource.allocation', 'phase_id', "Project Resources",states={'done':[('readonly',True)], 'cancelled':[('readonly',True)]}),
'responsible_id': fields.many2one('res.users', 'Responsible', states={'done':[('readonly',True)], 'cancelled':[('readonly',True)]}),
- 'state': fields.selection([('draft', 'Draft'), ('open', 'In Progress'), ('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', readonly=True, required=True,
+ 'state': fields.selection([('draft', 'New'), ('open', 'In Progress'), ('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', readonly=True, required=True,
help='If the phase is created the state \'Draft\'.\n If the phase is started, the state becomes \'In Progress\'.\n If review is needed the phase is in \'Pending\' state.\
\n If the phase is over, the states is set to \'Done\'.'),
'total_hours': fields.function(_compute, string='Total Hours'),
=== modified file 'project_long_term/project_long_term_view.xml'
--- project_long_term/project_long_term_view.xml 2011-09-11 13:50:25 +0000
+++ project_long_term/project_long_term_view.xml 2011-09-15 07:09:46 +0000
@@ -140,7 +140,7 @@
</field>
<separator string="" colspan="4"/>
<group col="12" colspan="4">
- <field name="state" select="1"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, open, done" statusbar_colors="{'pending':'blue'}" select="1"/>
<button string="Cancel" name="set_cancel" states="draft,open,pending" icon="gtk-cancel"/>
<button string="Draft" name="set_draft" states="open" icon="gtk-indent"/>
<button string="Pending" name="set_pending" states="open" icon="gtk-media-pause"/>
=== modified file 'purchase/purchase_view.xml'
--- purchase/purchase_view.xml 2011-08-24 04:59:36 +0000
+++ purchase/purchase_view.xml 2011-09-15 07:09:46 +0000
@@ -194,7 +194,7 @@
<button name="button_dummy" states="draft" string="Compute" type="object" icon="gtk-execute"/>
</group>
<group col="11" colspan="4">
- <field name="state" readonly="1"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, approved, done" statusbar_colors="{'except_picking':'red','except_invoice':'red','confirmed':'blue','wait':'blue'}" readonly="1"/>
<button name="purchase_cancel" states="draft,confirmed,wait_auth" string="Cancel" icon="gtk-cancel"/>
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
<button name="action_cancel" states="approved,except_picking,except_invoice,wait" string="Cancel Purchase Order" type="object" icon="gtk-cancel"/>
=== modified file 'sale/sale.py'
--- sale/sale.py 2011-09-04 16:59:39 +0000
+++ sale/sale.py 2011-09-15 07:09:46 +0000
@@ -199,7 +199,7 @@
'state': fields.selection([
('draft', 'Quotation'),
('waiting_date', 'Waiting Schedule'),
- ('manual', 'Manual In Progress'),
+ ('manual', 'To Invoice'),
('progress', 'In Progress'),
('shipping_except', 'Shipping Exception'),
('invoice_except', 'Invoice Exception'),
=== modified file 'sale/sale_view.xml'
--- sale/sale_view.xml 2011-09-09 10:15:04 +0000
+++ sale/sale_view.xml 2011-09-15 07:09:46 +0000
@@ -177,7 +177,7 @@
<button name="%(action_view_sale_advance_payment_inv)d" string="Advance Invoice" type="action" icon="gtk-execute" states="draft,manual" groups="base.group_extended"/>
</group>
<group col="13" colspan="4">
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, progress, done" statusbar_colors="{'shipping_except':'red','invoice_except':'red','waiting_date':'blue'}"/>
<button name="invoice_recreate" states="invoice_except" string="Recreate Invoice" icon="gtk-go-forward"/>
<button name="invoice_corrected" states="invoice_except" string="Ignore Exception" icon="gtk-apply"/>
<button name="ship_recreate" states="shipping_except" string="Recreate Packing" icon="gtk-ok"/>
=== modified file 'stock/stock.py'
--- stock/stock.py 2011-09-13 13:45:51 +0000
+++ stock/stock.py 2011-09-15 07:09:46 +0000
@@ -1545,7 +1545,7 @@
'move_history_ids2': fields.many2many('stock.move', 'stock_move_history_ids', 'child_id', 'parent_id', 'Move History (parent moves)'),
'picking_id': fields.many2one('stock.picking', 'Reference', select=True,states={'done': [('readonly', True)]}),
'note': fields.text('Notes'),
- 'state': fields.selection([('draft', 'Draft'), ('waiting', 'Waiting'), ('confirmed', 'Not Available'), ('assigned', 'Available'), ('done', 'Done'), ('cancel', 'Cancelled')], 'State', readonly=True, select=True,
+ 'state': fields.selection([('draft', 'New'), ('waiting', 'Waiting'), ('confirmed', 'Not Available'), ('assigned', 'Available'), ('done', 'Done'), ('cancel', 'Cancelled')], 'State', readonly=True, select=True,
help='When the stock move is created it is in the \'Draft\' state.\n After that, it is set to \'Not Available\' state if the scheduler did not find the products.\n When products are reserved it is set to \'Available\'.\n When the picking is done the state is \'Done\'.\
\nThe state is \'Waiting\' if the move is waiting for another one.'),
'price_unit': fields.float('Unit Price', digits_compute= dp.get_precision('Account'), help="Technical field used to record the product cost set by the user during a picking confirmation (when average price costing method is used)"),
=== modified file 'stock/stock_view.xml'
--- stock/stock_view.xml 2011-09-11 13:50:25 +0000
+++ stock/stock_view.xml 2011-09-15 07:09:46 +0000
@@ -1467,7 +1467,7 @@
</group>
<separator colspan="4"/>
- <field name="state"/>
+ <field name="state" widget="statusbar" statusbar_visible=" draft, assigned, done" statusbar_colors="{'waiting':'blue','confirmed':'blue'}"/>
<group col="4" colspan="2">
<button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
<button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp