Skip to content

Commit

Permalink
[8.0.1.2.0] l10n_id_djbc_plb_lap_pengeluaran
Browse files Browse the repository at this point in the history
  • Loading branch information
andhit-r committed Nov 13, 2018
1 parent 73c6c38 commit cb459d3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion l10n_id_djbc_plb_lap_pengeluaran/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Indonesia - Lap. Pengeluaran for DJBC's "
"Pusat Logistik Berikat",
"version": "8.0.1.1.0",
"version": "8.0.1.2.0",
"category": "localization",
"website": "https://opensynergy-indonesia.com",
"author": "OpenSynergy Indonesia",
Expand Down
29 changes: 16 additions & 13 deletions l10n_id_djbc_plb_lap_pengeluaran/reports/plb_lap_pengeluaran.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
<tree create="false" edit="false" delete="false">
<field name="jenis_dokumen"/>
<field name="no_dokumen"/>
<field name="tgl_dokumen"/>
<field name="no_pengeluaran"/>
<field name="tgl_pengeluaran"/>
<field name="tgl_dokumen"/>
<field name="no_pengeluaran"/>
<field name="tgl_pengeluaran"/>
<field name="penerima"/>
<field name="pemilik_barang"/>
<field name="kode_barang"/>
<field name="nama_barang"/>
<field name="jumlah"/>
<field name="satuan"/>
<field name="nilai"/>
<field name="pemilik_barang"/>
<field name="warehouse_id"/>
<field name="kode_barang"/>
<field name="nama_barang"/>
<field name="jumlah"/>
<field name="satuan"/>
<field name="nilai"/>
</tree>
</field>
</record>
Expand All @@ -32,17 +33,19 @@
<search>
<field name="jenis_dokumen"/>
<field name="no_dokumen"/>
<field name="no_pengeluaran"/>
<field name="no_pengeluaran"/>
<field name="penerima"/>
<field name="pemilik_barang"/>
<field name="kode_barang"/>
<field name="nama_barang"/>
<field name="pemilik_barang"/>
<field name="kode_barang"/>
<field name="nama_barang"/>
<field name="warehouse_id"/>
<group string="Group By">
<filter name="grp_jenis_dokumen" string="Jenis Dokumen" context="{'group_by':'jenis_dokumen'}"/>
<filter name="grp_no_dokumen" string="No. Dokumen" context="{'group_by':'no_dokumen'}"/>
<filter name="grp_no_pengeluaran" string="No. Pengeluaran" context="{'group_by':'no_pengeluaran'}"/>
<filter name="grp_penerima" string="Pembeli/Penerima" context="{'group_by':'penerima'}"/>
<filter name="grp_pemilik" string="Pemilik" context="{'group_by':'pemilik_barang'}"/>
<filter name="grp_warehouse" string="Warehouse" context="{'group_by':'warehouse_id'}"/>
</group>
</search>
</field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PLBLapPengeluaranWizard(models.TransientModel):
partner_id = fields.Many2one(
string="Pemilik Barang",
comodel_name="res.partner",
required=True
required=False
)

@api.multi
Expand All @@ -30,7 +30,7 @@ def action_print_sreen(self):
criteria = [
("tgl_pengeluaran", ">=", self.date_start),
("tgl_pengeluaran", "<=", self.date_end),
("pemilik_barang", "=", self.partner_id.id)
("warehouse_id", "in", self.warehouse_ids.ids)
]
waction.domain = criteria
return waction.read()[0]
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,10 @@
<field name="mode">primary</field>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='warehouse_ids']" position="attributes">
<attribute name="required">False</attribute>
</xpath>
<xpath expr="//field[@name='warehouse_ids']" position="replace">
<field name="partner_id"/>
</xpath>
</data>
</field>
</record>

<record id="plb_lap_pengeluaran_wizard_action" model="ir.actions.act_window">
<field name="name">Pengeluaran Barang</field>
<field name="res_model">l10n_id.plb_lap_pengeluaran_wizard</field>
Expand Down

0 comments on commit cb459d3

Please sign in to comment.