Skip to content

Commit

Permalink
[9.0] ADD sequence to order sale order type in tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomacr committed Aug 29, 2017
1 parent afed005 commit 0780a72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sale_order_type/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{
"name": "Sale Order Types",
"version": "9.0.1.1.0",
"version": "9.0.1.2.0",
"category": "Sales Management",
"author": "Grupo Vermon,"
"AvanzOSC,"
Expand Down
5 changes: 5 additions & 0 deletions sale_order_type/models/sale_order_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
class SaleOrderTypology(models.Model):
_name = 'sale.order.type'
_description = 'Type of sale order'
_order = "sequence asc"

@api.model
def _get_domain_sequence_id(self):
Expand Down Expand Up @@ -44,3 +45,7 @@ def default_picking_policy(self):
payment_term_id = fields.Many2one('account.payment.term', 'Payment Term')
pricelist_id = fields.Many2one('product.pricelist', 'Pricelist')
incoterm_id = fields.Many2one('stock.incoterms', 'Incoterm')
sequence = fields.Integer(
'Sequence',
required=True,
default=10)
1 change: 1 addition & 0 deletions sale_order_type/views/sale_order_type_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<field name="model">sale.order.type</field>
<field name="arch" type="xml">
<tree string="Type">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="warehouse_id"/>
<field name="sequence_id"/>
Expand Down

0 comments on commit 0780a72

Please sign in to comment.